MCPcopy Create free account

hub / github.com/AllenDang/giu / functions

Functions1,016 in github.com/AllenDang/giu

↓ 2 callersFunctionfittingCanvasSize16By9
(height float32)
examples/paint/canvas.go:197
↓ 2 callersMethodgetStateID
()
Window.go:194
↓ 2 callersFunctiongizmos
()
examples/gizmo/main.go:26
↓ 2 callersMethodload
(id any)
Context.go:234
↓ 2 callersFunctionparseStyleVar
(styleVarValue string, setFloat func(v float32), setVec2 func(x, y float32))
CSS.go:176
↓ 2 callersFunctionpushVarID
(isVec2 bool, v any, pushFloat func(float32), pushVec2 func(imgui.Vec2))
StyleSetter.go:355
↓ 2 callersFunctionrebuildColumns
()
examples/sortable-table/main.go:16
↓ 2 callersMethodregisterDefaultFonts
(fontInfos []FontInfo)
FontAtlasProsessor.go:172
↓ 2 callersFunctiontextHeader
(str string, col color.RGBA)
examples/asyncimage/asyncimage.go:31
↓ 2 callersMethodunbind
unbind releases the texture associated with the ReflectiveBoundTexture from the backend.
ReflectiveBoundTexture.go:189
↓ 1 callersMethodAddFont
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 callersMethodAddImageQuad
AddImageQuad draws a textured on quad.
Canvas.go:170
↓ 1 callersMethodAddLanguage
AddLanguage adds a new "dictionary" to the translator.
Translator.go:94
↓ 1 callersFunctionAlignTextToFramePadding
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 callersMethodAppendDrawCommands
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 callersMethodAutoComplete
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 callersMethodBackend
Backend returns the imgui.backend used by the context.
Context.go:181
↓ 1 callersMethodBgColor
BgColor sets button's background color.
ClickableWidgets.go:277
↓ 1 callersMethodBgColor
BgColor sets the background color of the row.
TableWidgets.go:39
↓ 1 callersMethodBorder
Border sets if children should have borders.
SplitLayout.go:71
↓ 1 callersMethodBorder
Border sets whether box should have border (see Child().Border(...).
ExtraWidgets.go:309
↓ 1 callersMethodBuild
Build implements Widget interface.
Layout.go:25
↓ 1 callersMethodBuildTabItem
BuildTabItem executes tab item build steps.
Widgets.go:669
↓ 1 callersMethodBuildTreeTableRow
BuildTreeTableRow executes table row building steps.
TableWidgets.go:325
↓ 1 callersFunctionBulletText
BulletText creates bulletTextWidget.
TextWidgets.go:133
↓ 1 callersFunctionCalcTextSize
CalcTextSize calls CalcTextSizeV(text, false, -1).
Utils.go:149
↓ 1 callersFunctionCalcTextSizeV
CalcTextSizeV calculates text dimensions.
Utils.go:154
↓ 1 callersFunctionCanvasRow
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 callersFunctionCanvasWidget
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 callersFunctionCloseCurrentPopup
CloseCurrentPopup closes currently opened popup. If no popups opened, no action will be taken.
Popups.go:16
↓ 1 callersFunctionCodeEditor
CodeEditor creates new code editor widget.
CodeEditor.go:60
↓ 1 callersMethodColor
Color sets the color of the gizmo.
Gizmo.go:286
↓ 1 callersFunctionColumn
Column creates a new ColumnWidget.
Widgets.go:350
↓ 1 callersFunctionContextMenu
ContextMenu creates new ContextMenuWidget.
Widgets.go:307
↓ 1 callersMethodContextMenu
ContextMenu adds item in context menu which is opened when user right-click on item.
ExtraWidgets.go:315
↓ 1 callersFunctionCube
Cube creates a new CubeGizmo.
Gizmo.go:194
↓ 1 callersMethodCurrentPosition
CurrentPosition returns a current position of the window.
Window.go:156
↓ 1 callersMethodCurrentSize
CurrentSize returns current size of the window.
Window.go:162
↓ 1 callersFunctionDatePicker
DatePicker creates new DatePickerWidget.
ExtraWidgets.go:428
↓ 1 callersFunctionDefaultTheme
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 callersMethodDelete
Delete deletes the selection.
CodeEditor.go:219
↓ 1 callersMethodDisabled
Disabled sets GizmoWidget's disabled state.
Gizmo.go:93
↓ 1 callersMethodDispose
()
Context.go:35
↓ 1 callersFunctionDrawLine
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 callersFunctionEnqueueNewTextureFromRgba
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 callersMethodError
()
CSS.go:22
↓ 1 callersMethodFarClipping
FarClipping sets the Far Clipping plane.
Gizmo.go:491
↓ 1 callersMethodFastMode
FastMode Displays visible rows only to boost performance.
TableWidgets.go:165
↓ 1 callersMethodFilter
Filter enables/disables the combo filter.
Widgets.go:237
↓ 1 callersMethodFlags
Flags sets plot canvas flags.
Plot.go:186
↓ 1 callersMethodFont
Font sets specific font (does like Style().SetFont).
TextWidgets.go:558
↓ 1 callersMethodFormat
Format sets date format of displayed (in combo) date. Compatible with (time.Time).Format(...) Default: "2006-01-02".
ExtraWidgets.go:460
↓ 1 callersMethodFreeze
Freeze columns/rows so they stay visible when scrolled.
TableWidgets.go:179
↓ 1 callersMethodGetCurrentLineText
GetCurrentLineText returns current line.
CodeEditor.go:147
↓ 1 callersMethodGetCursorPos
GetCursorPos returns cursor position. (in characters).
CodeEditor.go:155
↓ 1 callersMethodGetFSRoot
GetFSRoot returns the root directory for file:// URLs. Returns: - string: The root directory.
SurfaceLoaders.go:267
↓ 1 callersFunctionGetFramePadding
GetFramePadding returns current frame padding.
Style.go:259
↓ 1 callersFunctionGetItemInnerSpacing
GetItemInnerSpacing returns current item inner spacing.
Style.go:253
↓ 1 callersFunctionGetMousePos
GetMousePos returns mouse position.
Utils.go:136
↓ 1 callersMethodGetPos
GetPos return position of master window.
MasterWindow.go:247
↓ 1 callersMethodGetSelectedText
GetSelectedText returns selected text.
CodeEditor.go:135
↓ 1 callersMethodGetSelectionStart
GetSelectionStart returns star pos of selection.
CodeEditor.go:163
↓ 1 callersMethodGetStyle
GetStyle returns the style for the tag.
CSS.go:233
↓ 1 callersMethodGetSurfaceSize
GetSurfaceSize returns the size of the RGBA surface as an image.Point.
ReflectiveBoundTexture.go:220
↓ 1 callersMethodGetText
GetText returns whole text from editor.
CodeEditor.go:142
↓ 1 callersFunctionGetWidgetWidth
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 callersMethodGlobal
Global works like Build() but does not attach the gizmo to the current window.
Gizmo.go:136
↓ 1 callersFunctionGrid
Grid creates a new GridGizmo.
Gizmo.go:155
↓ 1 callersMethodHasSelection
HasSelection returns true if some text is selected.
CodeEditor.go:130
↓ 1 callersMethodHasTag
HasTag returns true if the CSS stylesheet contains the specified tag.
CSS.go:83
↓ 1 callersMethodID
ID sets the internal id of table widget.
TableWidgets.go:159
↓ 1 callersFunctionIdentityMatrix
IdentityMatrix creates a new ViewMatrix with identity matrix.
Gizmo.go:330
↓ 1 callersFunctionImageButton
ImageButton constructs image button widget.
ClickableWidgets.go:214
↓ 1 callersMethodInnerWidthOrWeight
InnerWidthOrWeight sets the inner width or weight of the column.
TableWidgets.go:103
↓ 1 callersFunctionInputTextMultiline
InputTextMultiline creates InputTextMultilineWidget.
TextWidgets.go:28
↓ 1 callersFunctionIsMouseClicked
IsMouseClicked returns true if mouse button `button` is clicked NOTE: if you're looking for clicking detection, see EventHandler.go.
Events.go:53
↓ 1 callersFunctionIsWindowFocused
IsWindowFocused returns true if window is focused NOTE: see also (*Window).HasFocus and (*Window).BringToFront.
Events.go:79
↓ 1 callersFunctionIsWindowHovered
IsWindowHovered returns true if the window is hovered.
Events.go:84
↓ 1 callersMethodLabel
Label sets input field label.
TextWidgets.go:41
↓ 1 callersMethodLabel
Label adds label (alternatively you can use it to set widget's id).
TextWidgets.go:192
↓ 1 callersMethodLabel
Label sets label of input field.
TextWidgets.go:457
↓ 1 callersMethodLabel
Label sets slider label (id).
SliderWidgets.go:57
↓ 1 callersMethodLabel
Label sets slider's label (id).
SliderWidgets.go:140
↓ 1 callersMethodLabel
Label sets slider's label (id).
SliderWidgets.go:219
↓ 1 callersMethodLabel
Label allows to set widgets label. IMPORTANT: label uses AutoID mechanism so your label should not be unique.
SliderWidgets.go:277
↓ 1 callersMethodLabel
Label allows to set widgets label. IMPORTANT: label uses AutoID mechanism so your label should not be unique.
SliderWidgets.go:365
↓ 1 callersMethodLanguageDefinition
LanguageDefinition sets code editor language definition.
CodeEditor.go:91
↓ 1 callersMethodLayoutForFailure
LayoutForFailure allows to specify layout when image failed to download.
ImageWidgets.go:337
↓ 1 callersMethodLayoutForLoading
LayoutForLoading allows to set layout rendered while loading an image.
ImageWidgets.go:331
↓ 1 callersFunctionLine
Line adds a new plot line to the canvas.
Plot.go:466
↓ 1 callersFunctionLink
Link constructs link widget.
ClickableWidgets.go:599
↓ 1 callersMethodLoadSurfaceAsync
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 callersFunctionManipulate
Manipulate creates a new ManipulateGizmo.
Gizmo.go:232
↓ 1 callersMethodManipulate
Manipulate adds ManipulateGizmo to the CubeGizmo.
Gizmo.go:201
↓ 1 callersFunctionMarkdown
Markdown creates new markdown widget.
Markdown.go:73
↓ 1 callersFunctionMenu
Menu creates new MenuWidget.
Widgets.go:494
↓ 1 callersMethodNearClipping
NearClipping sets the Near Clipping plane.
Gizmo.go:483
↓ 1 callersFunctionNewBasicTranslator
NewBasicTranslator creates a new BasicTranslator with the given language tag.
Translator.go:59
↓ 1 callersFunctionNewGLFWBackend
NewGLFWBackend creates a new instance of GLFWBackend.
Backend.go:33
↓ 1 callersMethodOnActivate
OnActivate sets callback when item gets activated.
EventHandler.go:60
← previousnext →201–300 of 1,016, ranked by callers