Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AllenDang/giu
/ functions
Functions
1,016 in github.com/AllenDang/giu
⨍
Functions
1,016
◇
Types & classes
198
↓ 3 callers
Method
GetState
GetState returns previously stored state by id.
Context.go:218
↓ 3 callers
Method
GetTag
GetTag returns a style setter for the specified tag or empty Style() if no tag.
CSS.go:89
↓ 3 callers
Method
HasFocus
HasFocus returns true if window is focused.
Window.go:173
↓ 3 callers
Method
Header
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 callers
Function
InputText
InputText creates new input text widget.
TextWidgets.go:178
↓ 3 callers
Method
IsOpen
IsOpen sets if window widget is `opened` (minimized).
Window.go:81
↓ 3 callers
Function
LoadImage
LoadImage loads image from file and returns *image.RGBA.
Utils.go:39
↓ 3 callers
Method
MaxValue
MaxValue sets maximum value of the drag.
SliderWidgets.go:307
↓ 3 callers
Method
MinValue
MinValue sets minimum value of the drag.
SliderWidgets.go:301
↓ 3 callers
Function
Msgbox
Msgbox opens message box. call it whenever you want to open popup with question / info.
Msgbox.go:161
↓ 3 callers
Function
NewCanvas
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 callers
Function
NewUniformLoader
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 callers
Method
OnClick
OnClick adds on-click-callback.
ImageWidgets.go:66
↓ 3 callers
Method
OnDClick
OnDClick sets callback when mouse button `mouseButton` is double-clicked.
EventHandler.go:100
↓ 3 callers
Function
PopStyleColor
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 callers
Function
PushStyleColor
PushStyleColor wraps imgui.PushStyleColorVec4 NOTE: don't forget to call PopStyleColor()!
Style.go:76
↓ 3 callers
Method
Rotation
Rotation sets the rotation of the matrix.
Gizmo.go:356
↓ 3 callers
Function
Selectable
Selectable constructs a selectable widget.
ClickableWidgets.go:450
↓ 3 callers
Method
SetDirty
SetDirty permits MasterWindow defering setting dirty states after it's render().
Context.go:109
↓ 3 callers
Method
SetFontSize
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 callers
Method
SetPlotColor
SetPlotColor sets colorID's color.
StyleSetter.go:136
↓ 3 callers
Method
Size
Size sets image size.
ImageWidgets.go:72
↓ 3 callers
Function
Table
Table creates new TableWidget.
TableWidgets.go:145
↓ 3 callers
Method
Transform
Transform sets the position of the matrix.
Gizmo.go:346
↓ 3 callers
Method
getState
()
Msgbox.go:149
↓ 3 callers
Method
parseFlag
(m MasterWindowFlags)
Backend.go:61
↓ 3 callers
Function
popupStateID
(name string)
Popups.go:20
↓ 3 callers
Function
save
(name, data string)
cmd/gmdeploy/utils.go:9
↓ 2 callers
Method
AddBezierCubic
AddBezierCubic draws bezier cubic.
Canvas.go:88
↓ 2 callers
Method
AddCircle
AddCircle draws a circle.
Canvas.go:103
↓ 2 callers
Method
AddImage
AddImage draws a textured rectangle.
Canvas.go:165
↓ 2 callers
Method
AddLine
AddLine draws a line (from p1 to p2).
Canvas.go:35
↓ 2 callers
Method
AddQuad
AddQuad draws a quad.
Canvas.go:113
↓ 2 callers
Method
AddRect
AddRect draws a rectangle.
Canvas.go:73
↓ 2 callers
Method
AddText
AddText draws text.
Canvas.go:83
↓ 2 callers
Method
AddTriangle
AddTriangle draws a triangle.
Canvas.go:93
↓ 2 callers
Function
AlignManually
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 callers
Method
Aspect
Aspect sets the Aspect Ratio.
Gizmo.go:475
↓ 2 callers
Method
Border
Border sets whether child should have border You can use imgui.ChildFlagsBorders as well.
Widgets.go:85
↓ 2 callers
Method
Build
Build implements Widget interface.
ExtraWidgets.go:138
↓ 2 callers
Method
BuildTableColumn
BuildTableColumn executes table column build steps.
TableWidgets.go:121
↓ 2 callers
Method
BuildTableRow
BuildTableRow executes table row build steps.
TableWidgets.go:57
↓ 2 callers
Method
Buttons
Buttons sets which buttons should be possible.
Msgbox.go:177
↓ 2 callers
Function
CSS
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 callers
Function
CSSTag
CSSTag creates CSSTagWidget.
CSS.go:219
↓ 2 callers
Function
Combo
Combo creates a new ComboWidget.
Widgets.go:210
↓ 2 callers
Method
Compute
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 callers
Function
Deg2Rad
Deg2Rad converts degrees to radians.
Utils.go:272
↓ 2 callers
Method
EventHandler
EventHandler allows to attach a custym EventHandler to the tab item in order to detect events on it.
Widgets.go:657
↓ 2 callers
Method
FOV
FOV sets the Field of View.
Gizmo.go:467
↓ 2 callers
Method
Flags
Flags sets window flags.
Window.go:87
↓ 2 callers
Method
ForceRelease
ForceRelease forces releasing resources against all finalizers, effectively losing the object but ensuring both RAM and VRAM are freed.
ReflectiveBoundTexture.go:254
↓ 2 callers
Method
FramePadding
FramePadding sets button's frame padding (set 0 to fit image to the frame).
ClickableWidgets.go:289
↓ 2 callers
Function
GetCanvas
GetCanvas returns current draw list (for current window). it will fail if called out of window's layout.
Canvas.go:28
↓ 2 callers
Function
Gizmo
Gizmo creates a new GizmoWidget.
Gizmo.go:75
↓ 2 callers
Method
Gizmo
(view *ViewMatrix, projection *ProjectionMatrix)
Gizmo.go:55
↓ 2 callers
Method
Gizmos
Gizmos adds GizmoI elements to the GizmoWidget area.
Gizmo.go:105
↓ 2 callers
Method
IO
IO returns the imgui.IO object.
Context.go:104
↓ 2 callers
Function
IsItemActive
IsItemActive returns true if item is active.
Events.go:27
↓ 2 callers
Function
IsItemHovered
IsItemHovered returns true if mouse is over the item.
Events.go:16
↓ 2 callers
Function
IsMouseDoubleClicked
IsMouseDoubleClicked returns true if mouse button `button` is double clicked.
Events.go:63
↓ 2 callers
Method
IsVec2
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 callers
Function
MenuItem
MenuItem creates new MenuItemWidget.
Widgets.go:436
↓ 2 callers
Function
NewFileLoader
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 callers
Function
NewFsFileLoader
NewFsFileLoader creates a new SurfaceLoader that loads images from the specified file interface. Parameters: - file: the file interface representing
SurfaceLoaders.go:160
↓ 2 callers
Function
NewProjectionMatrix
NewProjectionMatrix creates a new ProjectionMatrix.
Gizmo.go:455
↓ 2 callers
Function
NewURLLoader
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 callers
Method
OnFailure
OnFailure sets event trigger when image failed to download/load.
ImageWidgets.go:307
↓ 2 callers
Method
Overlay
Overlay sets custom overlay displayed on the bar.
Widgets.go:555
↓ 2 callers
Function
PNGToRgba
PNGToRgba loads image file interface and assume caller takes care of interface proper closing.
Utils.go:29
↓ 2 callers
Method
Parse
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 callers
Method
PathLineTo
PathLineTo adds a line between the last point and the provided one.
Canvas.go:130
↓ 2 callers
Function
PopStyle
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 callers
Method
PrepareStringSlice
PrepareStringSlice is a version of PrepareString that works on slices.
Context.go:128
↓ 2 callers
Function
PushFont
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 callers
Function
PushFramePadding
PushFramePadding calls PushStyleVar(StyleFramePadding,...)
Style.go:128
↓ 2 callers
Method
PushImageToBackend
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 callers
Function
PushItemSpacing
PushItemSpacing calls PushStyleVar(StyleVarItemSpacing,...)
Style.go:133
↓ 2 callers
Method
ResetState
ResetState resets the state of the StatefulReflectiveBoundTexture. Returns: - error: An error if the state is currently loading, otherwise nil.
StatefulReflectiveBoundTexture.go:109
↓ 2 callers
Method
Selected
Selected sets whether the item is selected.
Widgets.go:459
↓ 2 callers
Method
SetBgColor
SetBgColor sets background color of master window.
MasterWindow.go:226
↓ 2 callers
Method
SetFSRoot
SetFSRoot sets the root directory for file:// URLs. Parameters: - root: The root directory to set.
SurfaceLoaders.go:259
↓ 2 callers
Method
SetFont
SetFont sets font.
StyleSetter.go:181
↓ 2 callers
Method
SetPlotStyleFloat
SetPlotStyleFloat sets StylePlotVarID to float value. NOTE: for float typed values see above in comments over StyleVarID's comments.
StyleSetter.go:165
↓ 2 callers
Method
SetPos
SetPos sets position of master window.
MasterWindow.go:257
↓ 2 callers
Method
SetTargetFPS
SetTargetFPS sets target FPS of master window. Default for GLFW is 30.
MasterWindow.go:242
↓ 2 callers
Method
SetUserFile
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 callers
Method
Size
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 callers
Method
Size
Size sets size of the box.
ExtraWidgets.go:303
↓ 2 callers
Method
Sort
Sort allows you to set Sort function for that column. I talso could be used to detect click event.
TableWidgets.go:115
↓ 2 callers
Method
SplitRefType
SplitRefType allows to set how sashPos should be interpreted. Default is counting from left/top layout's edge in px.
SplitLayout.go:84
↓ 2 callers
Function
Splitter
Splitter creates new SplitterWidget.
ExtraWidgets.go:26
↓ 2 callers
Method
Timeout
Timeout sets download timeout.
ImageWidgets.go:319
↓ 2 callers
Method
UnregisterWindowShortcuts
UnregisterKeyboardShortcuts removes window shortcuts from input handler
InputHandler.go:41
↓ 2 callers
Function
applyPopupState
(name string)
Popups.go:24
↓ 2 callers
Method
build
build is a local build function. Just to separate Global() and Build() methods.
Gizmo.go:112
↓ 2 callers
Method
buildTooltip
()
Widgets.go:782
↓ 2 callers
Function
colorsEqual
colorsEqual compares two colors and returns true if they are equal.
examples/paint/draw.go:102
↓ 2 callers
Method
compile
Compile updates m.matrix NOTE: this supposes matrix was allocated correctly!
Gizmo.go:397
↓ 2 callers
Method
decompile
decompile updates m.transform, m.rotation, m.scale from m.matrix.
Gizmo.go:409
← previous
next →
101–200 of 1,016, ranked by callers