MCPcopy Create free account

hub / github.com/AllenDang/giu / functions

Functions1,016 in github.com/AllenDang/giu

↓ 3 callersMethodGetState
GetState returns previously stored state by id.
Context.go:218
↓ 3 callersMethodGetTag
GetTag returns a style setter for the specified tag or empty Style() if no tag.
CSS.go:89
↓ 3 callersMethodHasFocus
HasFocus returns true if window is focused.
Window.go:173
↓ 3 callersMethodHeader
Header sets header formatting NOTE: level (counting from 0!) is header level. (for instance, header `# H1` will have level 0). NOTE: since cimgui-go t
Markdown.go:104
↓ 3 callersFunctionInputText
InputText creates new input text widget.
TextWidgets.go:178
↓ 3 callersMethodIsOpen
IsOpen sets if window widget is `opened` (minimized).
Window.go:81
↓ 3 callersFunctionLoadImage
LoadImage loads image from file and returns *image.RGBA.
Utils.go:39
↓ 3 callersMethodMaxValue
MaxValue sets maximum value of the drag.
SliderWidgets.go:307
↓ 3 callersMethodMinValue
MinValue sets minimum value of the drag.
SliderWidgets.go:301
↓ 3 callersFunctionMsgbox
Msgbox opens message box. call it whenever you want to open popup with question / info.
Msgbox.go:161
↓ 3 callersFunctionNewCanvas
NewCanvas creates a new Canvas with a specified height. It initializes the canvas with a default surface and binds it to a ReflectiveBoundTexture back
examples/paint/canvas.go:183
↓ 3 callersFunctionNewUniformLoader
NewUniformLoader creates a new SurfaceLoader that creates a uniform color image. Parameters: - width: The width of the image. - height: The height of
SurfaceLoaders.go:326
↓ 3 callersMethodOnClick
OnClick adds on-click-callback.
ImageWidgets.go:66
↓ 3 callersMethodOnDClick
OnDClick sets callback when mouse button `mouseButton` is double-clicked.
EventHandler.go:100
↓ 3 callersFunctionPopStyleColor
PopStyleColor is used to stop applying colors styles. It should be called after each PushStyleColor... (for each push) If PopStyleColor wasn't called
Style.go:164
↓ 3 callersFunctionPushStyleColor
PushStyleColor wraps imgui.PushStyleColorVec4 NOTE: don't forget to call PopStyleColor()!
Style.go:76
↓ 3 callersMethodRotation
Rotation sets the rotation of the matrix.
Gizmo.go:356
↓ 3 callersFunctionSelectable
Selectable constructs a selectable widget.
ClickableWidgets.go:450
↓ 3 callersMethodSetDirty
SetDirty permits MasterWindow defering setting dirty states after it's render().
Context.go:109
↓ 3 callersMethodSetFontSize
SetFontSize sets size of the font. NOTE: Be aware, that StyleSetter needs to add a new font to font atlas for each font's size.
StyleSetter.go:189
↓ 3 callersMethodSetPlotColor
SetPlotColor sets colorID's color.
StyleSetter.go:136
↓ 3 callersMethodSize
Size sets image size.
ImageWidgets.go:72
↓ 3 callersFunctionTable
Table creates new TableWidget.
TableWidgets.go:145
↓ 3 callersMethodTransform
Transform sets the position of the matrix.
Gizmo.go:346
↓ 3 callersMethodgetState
()
Msgbox.go:149
↓ 3 callersMethodparseFlag
(m MasterWindowFlags)
Backend.go:61
↓ 3 callersFunctionpopupStateID
(name string)
Popups.go:20
↓ 3 callersFunctionsave
(name, data string)
cmd/gmdeploy/utils.go:9
↓ 2 callersMethodAddBezierCubic
AddBezierCubic draws bezier cubic.
Canvas.go:88
↓ 2 callersMethodAddCircle
AddCircle draws a circle.
Canvas.go:103
↓ 2 callersMethodAddImage
AddImage draws a textured rectangle.
Canvas.go:165
↓ 2 callersMethodAddLine
AddLine draws a line (from p1 to p2).
Canvas.go:35
↓ 2 callersMethodAddQuad
AddQuad draws a quad.
Canvas.go:113
↓ 2 callersMethodAddRect
AddRect draws a rectangle.
Canvas.go:73
↓ 2 callersMethodAddText
AddText draws text.
Canvas.go:83
↓ 2 callersMethodAddTriangle
AddTriangle draws a triangle.
Canvas.go:93
↓ 2 callersFunctionAlignManually
AlignManually allows to apply alignment manually. As long as AlignSetter is really EXPERIMENTAL feature and may fail randomly, the following method is
Alignment.go:42
↓ 2 callersMethodAspect
Aspect sets the Aspect Ratio.
Gizmo.go:475
↓ 2 callersMethodBorder
Border sets whether child should have border You can use imgui.ChildFlagsBorders as well.
Widgets.go:85
↓ 2 callersMethodBuild
Build implements Widget interface.
ExtraWidgets.go:138
↓ 2 callersMethodBuildTableColumn
BuildTableColumn executes table column build steps.
TableWidgets.go:121
↓ 2 callersMethodBuildTableRow
BuildTableRow executes table row build steps.
TableWidgets.go:57
↓ 2 callersMethodButtons
Buttons sets which buttons should be possible.
Msgbox.go:177
↓ 2 callersFunctionCSS
CSS prepares new CSSStylesheet. It allows to apply style using a CSS stylesheet The intention of the code looks as follows: - The CSS stylesheet is pa
CSS.go:51
↓ 2 callersFunctionCSSTag
CSSTag creates CSSTagWidget.
CSS.go:219
↓ 2 callersFunctionCombo
Combo creates a new ComboWidget.
Widgets.go:210
↓ 2 callersMethodCompute
Compute processes the draw commands on the canvas and updates the image accordingly. It initializes the canvas if it hasn't been initialized yet, and
examples/paint/canvas.go:95
↓ 2 callersFunctionDeg2Rad
Deg2Rad converts degrees to radians.
Utils.go:272
↓ 2 callersMethodEventHandler
EventHandler allows to attach a custym EventHandler to the tab item in order to detect events on it.
Widgets.go:657
↓ 2 callersMethodFOV
FOV sets the Field of View.
Gizmo.go:467
↓ 2 callersMethodFlags
Flags sets window flags.
Window.go:87
↓ 2 callersMethodForceRelease
ForceRelease forces releasing resources against all finalizers, effectively losing the object but ensuring both RAM and VRAM are freed.
ReflectiveBoundTexture.go:254
↓ 2 callersMethodFramePadding
FramePadding sets button's frame padding (set 0 to fit image to the frame).
ClickableWidgets.go:289
↓ 2 callersFunctionGetCanvas
GetCanvas returns current draw list (for current window). it will fail if called out of window's layout.
Canvas.go:28
↓ 2 callersFunctionGizmo
Gizmo creates a new GizmoWidget.
Gizmo.go:75
↓ 2 callersMethodGizmo
(view *ViewMatrix, projection *ProjectionMatrix)
Gizmo.go:55
↓ 2 callersMethodGizmos
Gizmos adds GizmoI elements to the GizmoWidget area.
Gizmo.go:105
↓ 2 callersMethodIO
IO returns the imgui.IO object.
Context.go:104
↓ 2 callersFunctionIsItemActive
IsItemActive returns true if item is active.
Events.go:27
↓ 2 callersFunctionIsItemHovered
IsItemHovered returns true if mouse is over the item.
Events.go:16
↓ 2 callersFunctionIsMouseDoubleClicked
IsMouseDoubleClicked returns true if mouse button `button` is double clicked.
Events.go:63
↓ 2 callersMethodIsVec2
IsVec2 returns true if the style var id should be processed as imgui.Vec2 if not, it is interpreted as float32.
StyleIDs.go:148
↓ 2 callersFunctionMenuItem
MenuItem creates new MenuItemWidget.
Widgets.go:436
↓ 2 callersFunctionNewFileLoader
NewFileLoader creates a new SurfaceLoader that loads images from the specified file path. Parameters: - path: The path to the file to load the image
SurfaceLoaders.go:102
↓ 2 callersFunctionNewFsFileLoader
NewFsFileLoader creates a new SurfaceLoader that loads images from the specified file interface. Parameters: - file: the file interface representing
SurfaceLoaders.go:160
↓ 2 callersFunctionNewProjectionMatrix
NewProjectionMatrix creates a new ProjectionMatrix.
Gizmo.go:455
↓ 2 callersFunctionNewURLLoader
NewURLLoader creates a new SurfaceLoader that loads images from the specified URL. Parameters: - url: The URL to load the image from. - httpdir: The
SurfaceLoaders.go:247
↓ 2 callersMethodOnFailure
OnFailure sets event trigger when image failed to download/load.
ImageWidgets.go:307
↓ 2 callersMethodOverlay
Overlay sets custom overlay displayed on the bar.
Widgets.go:555
↓ 2 callersFunctionPNGToRgba
PNGToRgba loads image file interface and assume caller takes care of interface proper closing.
Utils.go:29
↓ 2 callersMethodParse
Parse parses CSS stylesheet and stores the rules in the receiver. NOTE: more than one CSS stylesheets can be parsed, however the app could panic if th
CSS.go:102
↓ 2 callersMethodPathLineTo
PathLineTo adds a line between the last point and the provided one.
Canvas.go:130
↓ 2 callersFunctionPopStyle
PopStyle should be called to stop applying style. It should be called as many times, as you called PushStyle... NOTE: If you don't call PopStyle imgui
Style.go:150
↓ 2 callersMethodPrepareStringSlice
PrepareStringSlice is a version of PrepareString that works on slices.
Context.go:128
↓ 2 callersFunctionPushFont
You may want to use styles in order to make your app looking more beautiful. You have two ways to apply style to a widget: 1. Use the StyleSetter e.g.
Style.go:43
↓ 2 callersFunctionPushFramePadding
PushFramePadding calls PushStyleVar(StyleFramePadding,...)
Style.go:128
↓ 2 callersMethodPushImageToBackend
PushImageToBackend updates the backend texture with the current state of the canvas image. The commit parameter determines whether the changes should
examples/paint/canvas.go:74
↓ 2 callersFunctionPushItemSpacing
PushItemSpacing calls PushStyleVar(StyleVarItemSpacing,...)
Style.go:133
↓ 2 callersMethodResetState
ResetState resets the state of the StatefulReflectiveBoundTexture. Returns: - error: An error if the state is currently loading, otherwise nil.
StatefulReflectiveBoundTexture.go:109
↓ 2 callersMethodSelected
Selected sets whether the item is selected.
Widgets.go:459
↓ 2 callersMethodSetBgColor
SetBgColor sets background color of master window.
MasterWindow.go:226
↓ 2 callersMethodSetFSRoot
SetFSRoot sets the root directory for file:// URLs. Parameters: - root: The root directory to set.
SurfaceLoaders.go:259
↓ 2 callersMethodSetFont
SetFont sets font.
StyleSetter.go:181
↓ 2 callersMethodSetPlotStyleFloat
SetPlotStyleFloat sets StylePlotVarID to float value. NOTE: for float typed values see above in comments over StyleVarID's comments.
StyleSetter.go:165
↓ 2 callersMethodSetPos
SetPos sets position of master window.
MasterWindow.go:257
↓ 2 callersMethodSetTargetFPS
SetTargetFPS sets target FPS of master window. Default for GLFW is 30.
MasterWindow.go:242
↓ 2 callersMethodSetUserFile
SetUserFile sets the path to the .ini file which saves the user preferences (e.g. subwindow positions, table column widths, etc.). Provide an empty st
MasterWindow.go:374
↓ 2 callersMethodSize
Size sets window size NOTE: size can be changed by user, if you want to prevent user from changing window size, use NoResize flag.
Window.go:95
↓ 2 callersMethodSize
Size sets size of the box.
ExtraWidgets.go:303
↓ 2 callersMethodSort
Sort allows you to set Sort function for that column. I talso could be used to detect click event.
TableWidgets.go:115
↓ 2 callersMethodSplitRefType
SplitRefType allows to set how sashPos should be interpreted. Default is counting from left/top layout's edge in px.
SplitLayout.go:84
↓ 2 callersFunctionSplitter
Splitter creates new SplitterWidget.
ExtraWidgets.go:26
↓ 2 callersMethodTimeout
Timeout sets download timeout.
ImageWidgets.go:319
↓ 2 callersMethodUnregisterWindowShortcuts
UnregisterKeyboardShortcuts removes window shortcuts from input handler
InputHandler.go:41
↓ 2 callersFunctionapplyPopupState
(name string)
Popups.go:24
↓ 2 callersMethodbuild
build is a local build function. Just to separate Global() and Build() methods.
Gizmo.go:112
↓ 2 callersMethodbuildTooltip
()
Widgets.go:782
↓ 2 callersFunctioncolorsEqual
colorsEqual compares two colors and returns true if they are equal.
examples/paint/draw.go:102
↓ 2 callersMethodcompile
Compile updates m.matrix NOTE: this supposes matrix was allocated correctly!
Gizmo.go:397
↓ 2 callersMethoddecompile
decompile updates m.transform, m.rotation, m.scale from m.matrix.
Gizmo.go:409
← previousnext →101–200 of 1,016, ranked by callers