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
↓ 2 callers
Function
fittingCanvasSize16By9
(height float32)
examples/paint/canvas.go:197
↓ 2 callers
Method
getStateID
()
Window.go:194
↓ 2 callers
Function
gizmos
()
examples/gizmo/main.go:26
↓ 2 callers
Method
load
(id any)
Context.go:234
↓ 2 callers
Function
parseStyleVar
(styleVarValue string, setFloat func(v float32), setVec2 func(x, y float32))
CSS.go:176
↓ 2 callers
Function
pushVarID
(isVec2 bool, v any, pushFloat func(float32), pushVec2 func(imgui.Vec2))
StyleSetter.go:355
↓ 2 callers
Function
rebuildColumns
()
examples/sortable-table/main.go:16
↓ 2 callers
Method
registerDefaultFonts
(fontInfos []FontInfo)
FontAtlasProsessor.go:172
↓ 2 callers
Function
textHeader
(str string, col color.RGBA)
examples/asyncimage/asyncimage.go:31
↓ 2 callers
Method
unbind
unbind releases the texture associated with the ReflectiveBoundTexture from the backend.
ReflectiveBoundTexture.go:189
↓ 1 callers
Method
AddFont
AddFont adds font by name, if the font is found, return *FontInfo, otherwise return nil. To use added font, use giu.Style().SetFont(...).
FontAtlasProsessor.go:133
↓ 1 callers
Method
AddImageQuad
AddImageQuad draws a textured on quad.
Canvas.go:170
↓ 1 callers
Method
AddLanguage
AddLanguage adds a new "dictionary" to the translator.
Translator.go:94
↓ 1 callers
Function
AlignTextToFramePadding
AlignTextToFramePadding vertically aligns upcoming text baseline to FramePadding.y so that it will align properly to regularly framed items. Call if y
Style.go:177
↓ 1 callers
Method
AppendDrawCommands
AppendDrawCommands adds a slice of drawCommand to the canvas's existing draw commands. It appends the provided commands to the DrawCommands slice.
examples/paint/canvas.go:85
↓ 1 callers
Method
AutoComplete
AutoComplete enables auto complete popup by using fuzzy search of current value against candidates Press enter to confirm the first candidate.
TextWidgets.go:210
↓ 1 callers
Method
Backend
Backend returns the imgui.backend used by the context.
Context.go:181
↓ 1 callers
Method
BgColor
BgColor sets button's background color.
ClickableWidgets.go:277
↓ 1 callers
Method
BgColor
BgColor sets the background color of the row.
TableWidgets.go:39
↓ 1 callers
Method
Border
Border sets if children should have borders.
SplitLayout.go:71
↓ 1 callers
Method
Border
Border sets whether box should have border (see Child().Border(...).
ExtraWidgets.go:309
↓ 1 callers
Method
Build
Build implements Widget interface.
Layout.go:25
↓ 1 callers
Method
BuildTabItem
BuildTabItem executes tab item build steps.
Widgets.go:669
↓ 1 callers
Method
BuildTreeTableRow
BuildTreeTableRow executes table row building steps.
TableWidgets.go:325
↓ 1 callers
Function
BulletText
BulletText creates bulletTextWidget.
TextWidgets.go:133
↓ 1 callers
Function
CalcTextSize
CalcTextSize calls CalcTextSizeV(text, false, -1).
Utils.go:149
↓ 1 callers
Function
CalcTextSizeV
CalcTextSizeV calculates text dimensions.
Utils.go:154
↓ 1 callers
Function
CanvasRow
CanvasRow creates a row layout for the canvas widget, initializing the canvas if necessary. It ensures the canvas is properly sized and positioned wit
examples/paint/canvas.go:306
↓ 1 callers
Function
CanvasWidget
CanvasWidget creates a widget for the canvas, handling drawing operations and user interactions. It manages mouse events to draw on the canvas and upd
examples/paint/canvas.go:244
↓ 1 callers
Function
CloseCurrentPopup
CloseCurrentPopup closes currently opened popup. If no popups opened, no action will be taken.
Popups.go:16
↓ 1 callers
Function
CodeEditor
CodeEditor creates new code editor widget.
CodeEditor.go:60
↓ 1 callers
Method
Color
Color sets the color of the gizmo.
Gizmo.go:286
↓ 1 callers
Function
Column
Column creates a new ColumnWidget.
Widgets.go:350
↓ 1 callers
Function
ContextMenu
ContextMenu creates new ContextMenuWidget.
Widgets.go:307
↓ 1 callers
Method
ContextMenu
ContextMenu adds item in context menu which is opened when user right-click on item.
ExtraWidgets.go:315
↓ 1 callers
Function
Cube
Cube creates a new CubeGizmo.
Gizmo.go:194
↓ 1 callers
Method
CurrentPosition
CurrentPosition returns a current position of the window.
Window.go:156
↓ 1 callers
Method
CurrentSize
CurrentSize returns current size of the window.
Window.go:162
↓ 1 callers
Function
DatePicker
DatePicker creates new DatePickerWidget.
ExtraWidgets.go:428
↓ 1 callers
Function
DefaultTheme
DefaultTheme generates a default GIU theme's StyleSetter. nolint:dupl // This is something like "data file", so I'd prefer to keep it as simple as po
Themes.go:8
↓ 1 callers
Method
Delete
Delete deletes the selection.
CodeEditor.go:219
↓ 1 callers
Method
Disabled
Disabled sets GizmoWidget's disabled state.
Gizmo.go:93
↓ 1 callers
Method
Dispose
()
Context.go:35
↓ 1 callers
Function
DrawLine
DrawLine draws a line from (x1, y1) to (x2, y2) with the specified color and line width on the given *image.RGBA.
examples/paint/draw.go:10
↓ 1 callers
Function
EnqueueNewTextureFromRgba
EnqueueNewTextureFromRgba adds loading texture request to loading queue it allows us to run this method in main loop NOTE: remember to call it after N
Texture.go:29
↓ 1 callers
Method
Error
()
CSS.go:22
↓ 1 callers
Method
FarClipping
FarClipping sets the Far Clipping plane.
Gizmo.go:491
↓ 1 callers
Method
FastMode
FastMode Displays visible rows only to boost performance.
TableWidgets.go:165
↓ 1 callers
Method
Filter
Filter enables/disables the combo filter.
Widgets.go:237
↓ 1 callers
Method
Flags
Flags sets plot canvas flags.
Plot.go:186
↓ 1 callers
Method
Font
Font sets specific font (does like Style().SetFont).
TextWidgets.go:558
↓ 1 callers
Method
Format
Format sets date format of displayed (in combo) date. Compatible with (time.Time).Format(...) Default: "2006-01-02".
ExtraWidgets.go:460
↓ 1 callers
Method
Freeze
Freeze columns/rows so they stay visible when scrolled.
TableWidgets.go:179
↓ 1 callers
Method
GetCurrentLineText
GetCurrentLineText returns current line.
CodeEditor.go:147
↓ 1 callers
Method
GetCursorPos
GetCursorPos returns cursor position. (in characters).
CodeEditor.go:155
↓ 1 callers
Method
GetFSRoot
GetFSRoot returns the root directory for file:// URLs. Returns: - string: The root directory.
SurfaceLoaders.go:267
↓ 1 callers
Function
GetFramePadding
GetFramePadding returns current frame padding.
Style.go:259
↓ 1 callers
Function
GetItemInnerSpacing
GetItemInnerSpacing returns current item inner spacing.
Style.go:253
↓ 1 callers
Function
GetMousePos
GetMousePos returns mouse position.
Utils.go:136
↓ 1 callers
Method
GetPos
GetPos return position of master window.
MasterWindow.go:247
↓ 1 callers
Method
GetSelectedText
GetSelectedText returns selected text.
CodeEditor.go:135
↓ 1 callers
Method
GetSelectionStart
GetSelectionStart returns star pos of selection.
CodeEditor.go:163
↓ 1 callers
Method
GetStyle
GetStyle returns the style for the tag.
CSS.go:233
↓ 1 callers
Method
GetSurfaceSize
GetSurfaceSize returns the size of the RGBA surface as an image.Point.
ReflectiveBoundTexture.go:220
↓ 1 callers
Method
GetText
GetText returns whole text from editor.
CodeEditor.go:142
↓ 1 callers
Function
GetWidgetWidth
GetWidgetWidth returns a width of widget NOTE: THIS IS A BETA SOLUTION and may contain bugs in most cases, you may want to use supported by imgui GetI
Alignment.go:176
↓ 1 callers
Method
Global
Global works like Build() but does not attach the gizmo to the current window.
Gizmo.go:136
↓ 1 callers
Function
Grid
Grid creates a new GridGizmo.
Gizmo.go:155
↓ 1 callers
Method
HasSelection
HasSelection returns true if some text is selected.
CodeEditor.go:130
↓ 1 callers
Method
HasTag
HasTag returns true if the CSS stylesheet contains the specified tag.
CSS.go:83
↓ 1 callers
Method
ID
ID sets the internal id of table widget.
TableWidgets.go:159
↓ 1 callers
Function
IdentityMatrix
IdentityMatrix creates a new ViewMatrix with identity matrix.
Gizmo.go:330
↓ 1 callers
Function
ImageButton
ImageButton constructs image button widget.
ClickableWidgets.go:214
↓ 1 callers
Method
InnerWidthOrWeight
InnerWidthOrWeight sets the inner width or weight of the column.
TableWidgets.go:103
↓ 1 callers
Function
InputTextMultiline
InputTextMultiline creates InputTextMultilineWidget.
TextWidgets.go:28
↓ 1 callers
Function
IsMouseClicked
IsMouseClicked returns true if mouse button `button` is clicked NOTE: if you're looking for clicking detection, see EventHandler.go.
Events.go:53
↓ 1 callers
Function
IsWindowFocused
IsWindowFocused returns true if window is focused NOTE: see also (*Window).HasFocus and (*Window).BringToFront.
Events.go:79
↓ 1 callers
Function
IsWindowHovered
IsWindowHovered returns true if the window is hovered.
Events.go:84
↓ 1 callers
Method
Label
Label sets input field label.
TextWidgets.go:41
↓ 1 callers
Method
Label
Label adds label (alternatively you can use it to set widget's id).
TextWidgets.go:192
↓ 1 callers
Method
Label
Label sets label of input field.
TextWidgets.go:457
↓ 1 callers
Method
Label
Label sets slider label (id).
SliderWidgets.go:57
↓ 1 callers
Method
Label
Label sets slider's label (id).
SliderWidgets.go:140
↓ 1 callers
Method
Label
Label sets slider's label (id).
SliderWidgets.go:219
↓ 1 callers
Method
Label
Label allows to set widgets label. IMPORTANT: label uses AutoID mechanism so your label should not be unique.
SliderWidgets.go:277
↓ 1 callers
Method
Label
Label allows to set widgets label. IMPORTANT: label uses AutoID mechanism so your label should not be unique.
SliderWidgets.go:365
↓ 1 callers
Method
LanguageDefinition
LanguageDefinition sets code editor language definition.
CodeEditor.go:91
↓ 1 callers
Method
LayoutForFailure
LayoutForFailure allows to specify layout when image failed to download.
ImageWidgets.go:337
↓ 1 callers
Method
LayoutForLoading
LayoutForLoading allows to set layout rendered while loading an image.
ImageWidgets.go:331
↓ 1 callers
Function
Line
Line adds a new plot line to the canvas.
Plot.go:466
↓ 1 callers
Function
Link
Link constructs link widget.
ClickableWidgets.go:599
↓ 1 callers
Method
LoadSurfaceAsync
LoadSurfaceAsync loads the surface asynchronously using the provided SurfaceLoader. It sets the state to loading, and upon completion, updates the sta
StatefulReflectiveBoundTexture.go:137
↓ 1 callers
Function
Manipulate
Manipulate creates a new ManipulateGizmo.
Gizmo.go:232
↓ 1 callers
Method
Manipulate
Manipulate adds ManipulateGizmo to the CubeGizmo.
Gizmo.go:201
↓ 1 callers
Function
Markdown
Markdown creates new markdown widget.
Markdown.go:73
↓ 1 callers
Function
Menu
Menu creates new MenuWidget.
Widgets.go:494
↓ 1 callers
Method
NearClipping
NearClipping sets the Near Clipping plane.
Gizmo.go:483
↓ 1 callers
Function
NewBasicTranslator
NewBasicTranslator creates a new BasicTranslator with the given language tag.
Translator.go:59
↓ 1 callers
Function
NewGLFWBackend
NewGLFWBackend creates a new instance of GLFWBackend.
Backend.go:33
↓ 1 callers
Method
OnActivate
OnActivate sets callback when item gets activated.
EventHandler.go:60
← previous
next →
201–300 of 1,016, ranked by callers