Versions in this module Expand all Collapse all v18600 v18600.0.0 Jan 15, 2024 Changes in this version + const DragDropPayloadTypeColor3F + const DragDropPayloadTypeColor4F + const KeyA + const KeyBackspace + const KeyC + const KeyDelete + const KeyDownArrow + const KeyEnd + const KeyEnter + const KeyEscape + const KeyHome + const KeyInsert + const KeyKeyPadEnter + const KeyLeftArrow + const KeyPageDown + const KeyPageUp + const KeyRightArrow + const KeySpace + const KeyTab + const KeyUpArrow + const KeyV + const KeyX + const KeyY + const KeyZ + var ErrContextDestroyed = errors.New("context is destroyed") + var ErrNoContext = errors.New("no current context") + var PackedColorModel = color.ModelFunc(func(in color.Color) color.Color { ... }) + func AcceptDragDropPayload(dataType string, flags DragDropFlags) []byte + func AlignTextToFramePadding() + func Begin(id string) bool + func BeginChild(id string) bool + func BeginChildV(id string, size Vec2, border bool, flags WindowFlags) bool + func BeginCombo(label, previewValue string) bool + func BeginComboV(label, previewValue string, flags ComboFlags) bool + func BeginDragDropSource(flags DragDropFlags) bool + func BeginDragDropTarget() bool + func BeginGroup() + func BeginListBox(label string) bool + func BeginListBoxV(label string, size Vec2) bool + func BeginMainMenuBar() bool + func BeginMenu(label string) bool + func BeginMenuBar() bool + func BeginMenuV(label string, enabled bool) bool + func BeginPopup(name string) bool + func BeginPopupContextItem() bool + func BeginPopupContextItemV(id string, flags PopupFlags) bool + func BeginPopupContextVoid() bool + func BeginPopupContextVoidV(id string, flags PopupFlags) bool + func BeginPopupContextWindow() bool + func BeginPopupContextWindowV(id string, flags PopupFlags) bool + func BeginPopupModal(name string) bool + func BeginPopupModalV(name string, open *bool, flags WindowFlags) bool + func BeginPopupV(name string, flags WindowFlags) bool + func BeginTabBar(strID string) bool + func BeginTabBarV(strID string, flags TabBarFlags) bool + func BeginTabItem(label string) bool + func BeginTabItemV(label string, open *bool, flags TabItemFlags) bool + func BeginTable(id string, columnsCount int) bool + func BeginTableV(id string, columnsCount int, flags TableFlags, outerSize Vec2, ...) bool + func BeginTooltip() + func BeginV(id string, open *bool, flags WindowFlags) bool + func Bullet() + func Button(id string) bool + func ButtonV(id string, size Vec2) bool + func CalcItemWidth() float32 + func Checkbox(id string, selected *bool) bool + func ClearActiveID() + func CloseCurrentPopup() + func CollapsingHeader(label string) bool + func CollapsingHeaderV(label string, flags TreeNodeFlags) bool + func ColorButton(id string, col Vec4, flags ColorEditFlags, size Vec2) bool + func ColorEdit3(label string, col *[3]float32) bool + func ColorEdit3V(label string, col *[3]float32, flags ColorEditFlags) bool + func ColorEdit4(label string, col *[4]float32) bool + func ColorEdit4V(label string, col *[4]float32, flags ColorEditFlags) bool + func ColorPicker3(label string, col *[3]float32) bool + func ColorPicker3V(label string, col *[3]float32, flags ColorPickerFlags) bool + func ColorPicker4(label string, col *[4]float32) bool + func ColorPicker4V(label string, col *[4]float32, flags ColorPickerFlags) bool + func ColumnIndex() int + func ColumnOffset() float32 + func ColumnOffsetV(index int) float32 + func ColumnWidth() int + func ColumnWidthV(index int) int + func Columns() + func ColumnsCount() int + func ColumnsV(count int, label string, border bool) + func Combo(id string, value *int32, list []string) bool + func ComboV(id string, value *int32, list []string, heightInItems int) bool + func CursorPosX() float32 + func CursorPosY() float32 + func DragFloat(label string, value *float32) bool + func DragFloat2(label string, value *[2]float32) bool + func DragFloat2V(label string, values *[2]float32, speed, min, max float32, format string, ...) bool + func DragFloat3(label string, value *[3]float32) bool + func DragFloat3V(label string, values *[3]float32, speed, min, max float32, format string, ...) bool + func DragFloat4(label string, value *[4]float32) bool + func DragFloat4V(label string, values *[4]float32, speed, min, max float32, format string, ...) bool + func DragFloatRange2(label string, currentMin *float32, currentMax *float32) bool + func DragFloatRange2V(label string, currentMin *float32, currentMax *float32, speed float32, ...) bool + func DragFloatV(label string, value *float32, speed, min, max float32, format string, ...) bool + func DragInt(label string, value *int32) bool + func DragInt2(label string, value *[2]int32) bool + func DragInt2V(label string, values *[2]int32, speed float32, min, max int32, format string, ...) bool + func DragInt3(label string, value *[3]int32) bool + func DragInt3V(label string, values *[3]int32, speed float32, min, max int32, format string, ...) bool + func DragInt4(label string, value *[4]int32) bool + func DragInt4V(label string, values *[4]int32, speed float32, min, max int32, format string, ...) bool + func DragIntRange2(label string, currentMin *int32, currentMax *int32) bool + func DragIntRange2V(label string, currentMin *int32, currentMax *int32, speed float32, min int, ...) bool + func DragIntV(label string, value *int32, speed float32, min, max int32, format string, ...) bool + func Dummy(size Vec2) + func End() + func EndChild() + func EndCombo() + func EndDragDropSource() + func EndDragDropTarget() + func EndFrame() + func EndGroup() + func EndListBox() + func EndMainMenuBar() + func EndMenu() + func EndMenuBar() + func EndPopup() + func EndTabBar() + func EndTabItem() + func EndTable() + func EndTooltip() + func FontSize() float32 + func FrameHeight() float32 + func FrameHeightWithSpacing() float32 + func Image(id TextureID, size Vec2) + func ImageButton(id TextureID, size Vec2) bool + func ImageButtonV(id TextureID, size Vec2, uv0, uv1 Vec2, framePadding int, bgCol Vec4, ...) bool + func ImageV(id TextureID, size Vec2, uv0, uv1 Vec2, tintCol, borderCol Vec4) + func Indent() + func IndentV(indentW float32) + func IndexBufferLayout() (entrySize int) + func InputInt(label string, value *int32) bool + func InputIntV(label string, value *int32, step int, stepFast int, flags InputTextFlags) bool + func InputText(label string, text *string) bool + func InputTextMultiline(label string, text *string) bool + func InputTextMultilineV(label string, text *string, size Vec2, flags InputTextFlags, ...) bool + func InputTextV(label string, text *string, flags InputTextFlags, cb InputTextCallback) bool + func InputTextWithHint(label string, hint string, text *string) bool + func InputTextWithHintV(label string, hint string, text *string, flags InputTextFlags, ...) bool + func InvisibleButton(id string, size Vec2) bool + func InvisibleButtonV(id string, size Vec2, flags ButtonFlags) bool + func IsAnyItemActive() bool + func IsAnyItemFocused() bool + func IsAnyMouseDown() bool + func IsItemActivated() bool + func IsItemActive() bool + func IsItemClicked() bool + func IsItemDeactivated() bool + func IsItemDeactivatedAfterEdit() bool + func IsItemEdited() bool + func IsItemFocused() bool + func IsItemHovered() bool + func IsItemHoveredV(flags HoveredFlags) bool + func IsItemToggledOpen() bool + func IsItemVisible() bool + func IsKeyDown(key int) bool + func IsKeyPressed(key int) bool + func IsKeyPressedV(key int, repeat bool) bool + func IsKeyReleased(key int) bool + func IsMouseClicked(button int) bool + func IsMouseClickedV(button int, repeat bool) bool + func IsMouseDoubleClicked(button int) bool + func IsMouseDown(button int) bool + func IsMouseDragging(button int, threshold float64) bool + func IsMouseReleased(button int) bool + func IsPopupOpen(id string) bool + func IsPopupOpenV(id string, flags PopupFlags) bool + func IsWindowAppearing() bool + func IsWindowCollapsed() bool + func IsWindowFocused() bool + func IsWindowFocusedV(flags FocusedFlags) bool + func IsWindowHovered() bool + func IsWindowHoveredV(flags HoveredFlags) bool + func KeyIndex(key int) int + func LabelText(label, text string) + func LabelTextf(label, format string, v ...interface{}) + func ListBox(label string, currentItem *int32, items []string) bool + func ListBoxV(label string, currentItem *int32, items []string, heightItems int) bool + func LoadIniSettingsFromDisk(fileName string) + func LoadIniSettingsFromMemory(data string) + func MenuItem(label string) bool + func MenuItemV(label string, shortcut string, selected bool, enabled bool) bool + func NewFrame() + func NextColumn() + func OpenPopup(id string) + func OpenPopupOnItemClick() + func OpenPopupOnItemClickV(id string, flags PopupFlags) + func OpenPopupV(id string, flags PopupFlags) + func PlotHistogram(label string, values []float32) + func PlotHistogramV(label string, values []float32, valuesOffset int, overlayText string, ...) + func PlotLines(label string, values []float32) + func PlotLinesV(label string, values []float32, valuesOffset int, overlayText string, ...) + func PopAllowKeyboardFocus() + func PopButtonRepeat() + func PopFont() + func PopID() + func PopItemFlag() + func PopItemWidth() + func PopStyleColor() + func PopStyleColorV(count int) + func PopStyleVar() + func PopStyleVarV(count int) + func PopTextWrapPos() + func ProgressBar(fraction float32) + func ProgressBarV(fraction float32, size Vec2, overlay string) + func PushAllowKeyboardFocus(allow bool) + func PushButtonRepeat(repeat bool) + func PushFont(font Font) + func PushID(id string) + func PushIDInt(id int) + func PushItemFlag(options ItemFlags, enabled bool) + func PushItemWidth(width float32) + func PushStyleColor(id StyleColorID, color Vec4) + func PushStyleVarFloat(id StyleVarID, value float32) + func PushStyleVarVec2(id StyleVarID, value Vec2) + func PushTextWrapPos() + func PushTextWrapPosV(wrapPosX float32) + func RadioButton(id string, active bool) bool + func RadioButtonInt(id string, v *int, button int) bool + func Render() + func ResetMouseDragDelta(button int) + func SameLine() + func SameLineV(posX float32, spacingW float32) + func SaveIniSettingsToDisk(fileName string) + func SaveIniSettingsToMemory() string + func ScrollMaxX() float32 + func ScrollMaxY() float32 + func ScrollX() float32 + func ScrollY() float32 + func Selectable(label string) bool + func SelectableV(label string, selected bool, flags SelectableFlags, size Vec2) bool + func Separator() + func SetAssertHandler(handler AssertHandler) + func SetColumnOffset(index int, offsetX float32) + func SetColumnWidth(index int, width float32) + func SetCursorPos(localPos Vec2) + func SetCursorScreenPos(absPos Vec2) + func SetDragDropPayload(dataType string, data []byte, cond Condition) bool + func SetItemAllowOverlap() + func SetItemDefaultFocus() + func SetKeyboardFocusHere() + func SetKeyboardFocusHereV(offset int) + func SetMouseCursor(cursor MouseCursorID) + func SetNextItemOpen(open bool, cond Condition) + func SetNextItemWidth(width float32) + func SetNextWindowBgAlpha(value float32) + func SetNextWindowCollapsed(collapsed bool, cond Condition) + func SetNextWindowContentSize(size Vec2) + func SetNextWindowFocus() + func SetNextWindowPos(pos Vec2) + func SetNextWindowPosV(pos Vec2, cond Condition, pivot Vec2) + func SetNextWindowSize(size Vec2) + func SetNextWindowSizeConstraints(sizeMin Vec2, sizeMax Vec2) + func SetNextWindowSizeV(size Vec2, cond Condition) + func SetScrollHereX(ratio float32) + func SetScrollHereY(ratio float32) + func SetScrollX(scrollX float32) + func SetScrollY(scrollY float32) + func SetTabItemClosed(tabOrDockedWindowLabel string) + func SetTooltip(text string) + func SetTooltipf(format string, v ...interface{}) + func ShowDemoWindow(open *bool) + func ShowUserGuide() + func SliderFloat(label string, value *float32, min, max float32) bool + func SliderFloat2(label string, values *[2]float32, min, max float32) bool + func SliderFloat2V(label string, values *[2]float32, min, max float32, format string, ...) bool + func SliderFloat3(label string, values *[3]float32, min, max float32) bool + func SliderFloat3V(label string, values *[3]float32, min, max float32, format string, ...) bool + func SliderFloat4(label string, values *[4]float32, min, max float32) bool + func SliderFloat4V(label string, values *[4]float32, min, max float32, format string, ...) bool + func SliderFloatV(label string, value *float32, min, max float32, format string, ...) bool + func SliderInt(label string, value *int32, min, max int32) bool + func SliderInt2(label string, values *[2]int32, min, max int) bool + func SliderInt2V(label string, values *[2]int32, min, max int, format string, flags SliderFlags) bool + func SliderInt3(label string, values *[3]int32, min, max int) bool + func SliderInt3V(label string, values *[3]int32, min, max int, format string, flags SliderFlags) bool + func SliderInt4(label string, values *[4]int32, min, max int) bool + func SliderInt4V(label string, values *[4]int32, min, max int, format string, flags SliderFlags) bool + func SliderIntV(label string, value *int32, min, max int32, format string, flags SliderFlags) bool + func Spacing() + func StyleColorsClassic() + func StyleColorsDark() + func StyleColorsLight() + func TabItemButton(label string) bool + func TabItemButtonV(label string, flags TabItemFlags) bool + func TableGetColumnCount() int + func TableGetColumnIndex() int + func TableGetColumnName() string + func TableGetColumnNameV(columnN int) string + func TableGetRowIndex() int + func TableHeader(label string) + func TableHeadersRow() + func TableNextColumn() bool + func TableNextRow() + func TableNextRowV(flags TableRowFlags, minRowHeight float32) + func TableSetBgColor(target TableBgTarget, color Vec4) + func TableSetBgColorV(target TableBgTarget, color Vec4, columnN int) + func TableSetColumnIndex(columnN int) bool + func TableSetupColumn(label string) + func TableSetupColumnV(label string, flags TableColumnFlags, initWidthOrHeight float32, userID uint) + func TableSetupScrollFreeze(cols int, rows int) + func Text(text string) + func TextLineHeight() float32 + func TextLineHeightWithSpacing() float32 + func Textf(format string, v ...interface{}) + func Time() float64 + func TreeNode(label string) bool + func TreeNodeToLabelSpacing() float32 + func TreeNodeV(label string, flags TreeNodeFlags) bool + func TreeNodef(format string, v ...interface{}) bool + func TreePop() + func Unindent() + func UnindentV(indentW float32) + func VSliderFloat(label string, size Vec2, value *float32, min, max float32) bool + func VSliderFloatV(label string, size Vec2, value *float32, min, max float32, format string, ...) bool + func VSliderInt(label string, size Vec2, value *int32, min, max int32) bool + func VSliderIntV(label string, size Vec2, value *int32, min, max int32, format string, ...) bool + func Version() string + func VertexBufferLayout() (entrySize int, posOffset int, uvOffset int, colOffset int) + func WindowContentRegionWidth() float32 + func WindowHeight() float32 + func WindowWidth() float32 + type AllocatedGlyphRanges struct + func (ranges *AllocatedGlyphRanges) Free() + type Alpha8Image struct + Height int + Pixels unsafe.Pointer + Width int + type AssertHandler func(expression string, file string, line int) + type AssertionError struct + Expression string + File string + Line int + func (err AssertionError) Error() string + type BackendFlags int + const BackendFlagsHasGamepad + const BackendFlagsHasMouseCursors + const BackendFlagsHasSetMousePos + const BackendFlagsNone + const BackendFlagsRendererHasVtxOffset + type ButtonFlags int + const ButtonFlagsMouseButtonLeft + const ButtonFlagsMouseButtonMiddle + const ButtonFlagsMouseButtonRight + const ButtonFlagsNone + type Clipboard interface + SetText func(value string) + Text func() (string, error) + type ColorEditFlags int + const ColorEditFlagsAlphaBar + const ColorEditFlagsAlphaPreview + const ColorEditFlagsAlphaPreviewHalf + const ColorEditFlagsFloat + const ColorEditFlagsHDR + const ColorEditFlagsHEX + const ColorEditFlagsHSV + const ColorEditFlagsInputHSV + const ColorEditFlagsInputRGB + const ColorEditFlagsNoAlpha + const ColorEditFlagsNoBorder + const ColorEditFlagsNoDragDrop + const ColorEditFlagsNoInputs + const ColorEditFlagsNoLabel + const ColorEditFlagsNoOptions + const ColorEditFlagsNoPicker + const ColorEditFlagsNoSidePreview + const ColorEditFlagsNoSmallPreview + const ColorEditFlagsNoTooltip + const ColorEditFlagsNone + const ColorEditFlagsPickerHueBar + const ColorEditFlagsPickerHueWheel + const ColorEditFlagsRGB + const ColorEditFlagsUint8 + type ColorPickerFlags int + const ColorPickerFlagsAlphaBar + const ColorPickerFlagsAlphaPreview + const ColorPickerFlagsAlphaPreviewHalf + const ColorPickerFlagsFloat + const ColorPickerFlagsHEX + const ColorPickerFlagsHSV + const ColorPickerFlagsInputHSV + const ColorPickerFlagsInputRGB + const ColorPickerFlagsNoAlpha + const ColorPickerFlagsNoInputs + const ColorPickerFlagsNoLabel + const ColorPickerFlagsNoOptions + const ColorPickerFlagsNoPicker + const ColorPickerFlagsNoSidePreview + const ColorPickerFlagsNoSmallPreview + const ColorPickerFlagsNoTooltip + const ColorPickerFlagsNone + const ColorPickerFlagsPickerHueBar + const ColorPickerFlagsPickerHueWheel + const ColorPickerFlagsRGB + const ColorPickerFlagsUint8 + type ComboFlags int + const ComboFlagsHeightLarge + const ComboFlagsHeightLargest + const ComboFlagsHeightRegular + const ComboFlagsHeightSmall + const ComboFlagsNoArrowButton + const ComboFlagsNoPreview + const ComboFlagsNone + const ComboFlagsPopupAlignLeft + type Condition int + const ConditionAlways + const ConditionAppearing + const ConditionFirstUseEver + const ConditionNone + const ConditionOnce + type ConfigFlags int + const ConfigFlagsIsSRGB + const ConfigFlagsIsTouchScreen + const ConfigFlagsNavEnableGamepad + const ConfigFlagsNavEnableKeyboard + const ConfigFlagsNavEnableSetMousePos + const ConfigFlagsNavNoCaptureKeyboard + const ConfigFlagsNoMouse + const ConfigFlagsNoMouseCursorChange + const ConfigFlagsNone + type Context struct + func CreateContext(fontAtlas *FontAtlas) *Context + func CurrentContext() (*Context, error) + func (context *Context) Destroy() + func (context Context) SetCurrent() error + type Dir int + const DirDown + const DirLeft + const DirNone + const DirRight + const DirUp + type DragDropFlags int + const DragDropFlagsAcceptBeforeDelivery + const DragDropFlagsAcceptNoDrawDefaultRect + const DragDropFlagsAcceptPeekOnly + const DragDropFlagsNone + const DragDropFlagsSourceAllowNullID + const DragDropFlagsSourceExtern + const DragDropFlagsSourceNoDisableHover + const DragDropFlagsSourceNoHoldToOpenOthers + const DragDropFlagsSourceNoPreviewTooltip + type DrawCommand uintptr + func (cmd DrawCommand) CallUserCallback(list DrawList) + func (cmd DrawCommand) ClipRect() (rect Vec4) + func (cmd DrawCommand) ElementCount() int + func (cmd DrawCommand) HasUserCallback() bool + func (cmd DrawCommand) IndexOffset() int + func (cmd DrawCommand) TextureID() TextureID + func (cmd DrawCommand) VertexOffset() int + type DrawCornerFlags = DrawFlags + const DrawCornerFlagsAll + const DrawCornerFlagsBot + const DrawCornerFlagsBotLeft + const DrawCornerFlagsBotRight + const DrawCornerFlagsLeft + const DrawCornerFlagsNone + const DrawCornerFlagsRight + const DrawCornerFlagsTop + const DrawCornerFlagsTopLeft + const DrawCornerFlagsTopRight + type DrawData uintptr + func RenderedDrawData() DrawData + func (data DrawData) CommandLists() []DrawList + func (data DrawData) DisplayPos() Vec2 + func (data DrawData) DisplaySize() Vec2 + func (data DrawData) FrameBufferScale() Vec2 + func (data DrawData) ScaleClipRects(scale Vec2) + func (data DrawData) Valid() bool + type DrawFlags int + const DrawFlagsClosed + const DrawFlagsNone + const DrawFlagsRoundCornersAll + const DrawFlagsRoundCornersBottom + const DrawFlagsRoundCornersBottomLeft + const DrawFlagsRoundCornersBottomRight + const DrawFlagsRoundCornersDefault + const DrawFlagsRoundCornersLeft + const DrawFlagsRoundCornersMask + const DrawFlagsRoundCornersNone + const DrawFlagsRoundCornersRight + const DrawFlagsRoundCornersTop + const DrawFlagsRoundCornersTopLeft + const DrawFlagsRoundCornersTopRight + type DrawList uintptr + func BackgroundDrawList() DrawList + func ForegroundDrawList() DrawList + func WindowDrawList() DrawList + func (list DrawList) AddCircle(center Vec2, radius float32, col PackedColor) + func (list DrawList) AddCircleFilled(center Vec2, radius float32, col PackedColor) + func (list DrawList) AddCircleFilledV(center Vec2, radius float32, col PackedColor, numSegments int) + func (list DrawList) AddCircleV(center Vec2, radius float32, col PackedColor, numSegments int, ...) + func (list DrawList) AddImage(textureID TextureID, posMin Vec2, posMax Vec2) + func (list DrawList) AddImageQuad(textureID TextureID, p1 Vec2, p2 Vec2, p3 Vec2, p4 Vec2) + func (list DrawList) AddImageQuadV(textureID TextureID, p1 Vec2, p2 Vec2, p3 Vec2, p4 Vec2, uv1 Vec2, uv2 Vec2, ...) + func (list DrawList) AddImageV(textureID TextureID, posMin Vec2, posMax Vec2, uvMin Vec2, uvMax Vec2, ...) + func (list DrawList) AddLine(p1 Vec2, p2 Vec2, col PackedColor) + func (list DrawList) AddLineV(p1 Vec2, p2 Vec2, col PackedColor, thickness float32) + func (list DrawList) AddRect(min Vec2, max Vec2, col PackedColor) + func (list DrawList) AddRectFilled(min Vec2, max Vec2, col PackedColor) + func (list DrawList) AddRectFilledMultiColor(min Vec2, max Vec2, ...) + func (list DrawList) AddRectFilledV(min Vec2, max Vec2, col PackedColor, rounding float32, flags DrawFlags) + func (list DrawList) AddRectV(min Vec2, max Vec2, col PackedColor, rounding float32, flags DrawFlags, ...) + func (list DrawList) AddText(pos Vec2, col PackedColor, text string) + func (list DrawList) AddTriangle(p1 Vec2, p2 Vec2, p3 Vec2, col PackedColor) + func (list DrawList) AddTriangleFilled(p1 Vec2, p2 Vec2, p3 Vec2, col PackedColor) + func (list DrawList) AddTriangleV(p1 Vec2, p2 Vec2, p3 Vec2, col PackedColor, thickness float32) + func (list DrawList) Commands() []DrawCommand + func (list DrawList) IndexBuffer() (unsafe.Pointer, int) + func (list DrawList) PopClipRect() + func (list DrawList) PushClipRect(min, max Vec2) + func (list DrawList) PushClipRectV(min, max Vec2, intersectWithCurrentClipRect bool) + func (list DrawList) VertexBuffer() (unsafe.Pointer, int) + type FocusedFlags int + const FocusedFlagsAnyWindow + const FocusedFlagsChildWindows + const FocusedFlagsNoPopupHierarchy + const FocusedFlagsNone + const FocusedFlagsRootAndChildWindows + const FocusedFlagsRootWindow + type Font uintptr + const DefaultFont + func (font Font) FindGlyph(ch rune) FontGlyph + func (font Font) FontSize() float32 + type FontAtlas uintptr + func (atlas FontAtlas) AddFontDefault() Font + func (atlas FontAtlas) AddFontDefaultV(cfg FontConfig) Font + func (atlas FontAtlas) AddFontFromFileTTF(filename string, sizePixels float32) Font + func (atlas FontAtlas) AddFontFromFileTTFV(filename string, sizePixels float32, config FontConfig, glyphRange GlyphRanges) Font + func (atlas FontAtlas) AddFontFromMemoryTTF(fontData []byte, sizePixels float32) Font + func (atlas FontAtlas) AddFontFromMemoryTTFV(fontData []byte, sizePixels float32, config FontConfig, glyphRange GlyphRanges) Font + func (atlas FontAtlas) Build() bool + func (atlas FontAtlas) FontBuilderFlags() uint + func (atlas FontAtlas) GlyphRangesChineseFull() GlyphRanges + func (atlas FontAtlas) GlyphRangesChineseSimplifiedCommon() GlyphRanges + func (atlas FontAtlas) GlyphRangesCyrillic() GlyphRanges + func (atlas FontAtlas) GlyphRangesDefault() GlyphRanges + func (atlas FontAtlas) GlyphRangesJapanese() GlyphRanges + func (atlas FontAtlas) GlyphRangesKorean() GlyphRanges + func (atlas FontAtlas) GlyphRangesThai() GlyphRanges + func (atlas FontAtlas) SetFontBuilderFlags(flags uint) + func (atlas FontAtlas) SetTexDesiredWidth(value int) + func (atlas FontAtlas) SetTextureID(id TextureID) + func (atlas FontAtlas) TextureDataAlpha8() *Alpha8Image + func (atlas FontAtlas) TextureDataRGBA32() *RGBA32Image + func (atlas FontAtlas) TextureID() TextureID + type FontConfig uintptr + const DefaultFontConfig + func NewFontConfig() FontConfig + func (config *FontConfig) Delete() + func (config FontConfig) FontBuilderFlags() uint + func (config FontConfig) SetFontBuilderFlags(flags uint) + func (config FontConfig) SetGlyphMaxAdvanceX(value float32) + func (config FontConfig) SetGlyphMinAdvanceX(value float32) + func (config FontConfig) SetGlyphOffsetX(value float32) + func (config FontConfig) SetGlyphOffsetY(value float32) + func (config FontConfig) SetMergeMode(value bool) + func (config FontConfig) SetName(name string) + func (config FontConfig) SetOversampleH(value int) + func (config FontConfig) SetOversampleV(value int) + func (config FontConfig) SetPixelSnapH(value bool) + func (config FontConfig) SetSize(sizePixels float32) + type FontGlyph uintptr + func (glyph FontGlyph) AdvanceX() float32 + func (glyph FontGlyph) Codepoint() int + func (glyph FontGlyph) Colored() bool + func (glyph FontGlyph) U0() float32 + func (glyph FontGlyph) U1() float32 + func (glyph FontGlyph) V0() float32 + func (glyph FontGlyph) V1() float32 + func (glyph FontGlyph) Visible() bool + func (glyph FontGlyph) X0() float32 + func (glyph FontGlyph) X1() float32 + func (glyph FontGlyph) Y0() float32 + func (glyph FontGlyph) Y1() float32 + type GlyphRanges uintptr + const EmptyGlyphRanges + type GlyphRangesBuilder struct + func (builder *GlyphRangesBuilder) Add(from, to rune) + func (builder *GlyphRangesBuilder) AddExisting(ranges ...GlyphRanges) + func (builder *GlyphRangesBuilder) Build() AllocatedGlyphRanges + type HoveredFlags int + const HoveredFlagsAllowWhenBlockedByActiveItem + const HoveredFlagsAllowWhenBlockedByPopup + const HoveredFlagsAllowWhenDisabled + const HoveredFlagsAllowWhenOverlapped + const HoveredFlagsAnyWindow + const HoveredFlagsChildWindows + const HoveredFlagsNoPopupHierarchy + const HoveredFlagsNone + const HoveredFlagsRectOnly + const HoveredFlagsRootAndChildWindows + const HoveredFlagsRootWindow + type IO struct + func CurrentIO() IO + func (io IO) AddInputCharacters(chars string) + func (io IO) AddMouseWheelDelta(horizontal, vertical float32) + func (io IO) DisplayFrameBufferScale() Vec2 + func (io IO) Fonts() FontAtlas + func (io IO) Framerate() float32 + func (io IO) GetBackendFlags() BackendFlags + func (io IO) KeyAlt(leftAlt int, rightAlt int) + func (io IO) KeyAltPressed() bool + func (io IO) KeyCtrl(leftCtrl int, rightCtrl int) + func (io IO) KeyCtrlPressed() bool + func (io IO) KeyMap(imguiKey int, nativeKey int) + func (io IO) KeyPress(key int) + func (io IO) KeyRelease(key int) + func (io IO) KeyShift(leftShift int, rightShift int) + func (io IO) KeyShiftPressed() bool + func (io IO) KeySuper(leftSuper int, rightSuper int) + func (io IO) KeySuperPressed() bool + func (io IO) MetricsActiveAllocations() int + func (io IO) MetricsActiveWindows() int + func (io IO) MetricsRenderIndices() int + func (io IO) MetricsRenderVertices() int + func (io IO) MetricsRenderWindows() int + func (io IO) MouseDelta() Vec2 + func (io IO) MousePosition() Vec2 + func (io IO) MouseWheel() (float32, float32) + func (io IO) SetBackendFlags(flags BackendFlags) + func (io IO) SetClipboard(board Clipboard) + func (io IO) SetConfigFlags(flags ConfigFlags) + func (io IO) SetDeltaTime(value float32) + func (io IO) SetDisplayFrameBufferScale(value Vec2) + func (io IO) SetDisplaySize(value Vec2) + func (io IO) SetFontGlobalScale(value float32) + func (io IO) SetIniFilename(value string) + func (io IO) SetMouseButtonDown(index int, down bool) + func (io IO) SetMouseDrawCursor(show bool) + func (io IO) SetMousePosition(value Vec2) + func (io IO) WantCaptureKeyboard() bool + func (io IO) WantCaptureMouse() bool + func (io IO) WantCaptureMouseUnlessPopupClose() bool + func (io IO) WantTextInput() bool + type InputTextCallback func(InputTextCallbackData) int32 + type InputTextCallbackData struct + func (data InputTextCallbackData) Buffer() []byte + func (data InputTextCallbackData) CursorPos() int + func (data InputTextCallbackData) DeleteBytes(offset, count int) + func (data InputTextCallbackData) EventChar() rune + func (data InputTextCallbackData) EventFlag() InputTextFlags + func (data InputTextCallbackData) EventKey() int + func (data InputTextCallbackData) Flags() InputTextFlags + func (data InputTextCallbackData) InsertBytes(offset int, bytes []byte) + func (data InputTextCallbackData) MarkBufferModified() + func (data InputTextCallbackData) SelectionEnd() int + func (data InputTextCallbackData) SelectionStart() int + func (data InputTextCallbackData) SetCursorPos(value int) + func (data InputTextCallbackData) SetEventChar(value rune) + func (data InputTextCallbackData) SetSelectionEnd(value int) + func (data InputTextCallbackData) SetSelectionStart(value int) + type InputTextFlags int + const ImGuiInputTextFlagsCallbackEdit + const InputTextFlagsAllowTabInput + const InputTextFlagsAlwaysInsertMode + const InputTextFlagsAlwaysOverwriteMode + const InputTextFlagsAutoSelectAll + const InputTextFlagsCallbackAlways + const InputTextFlagsCallbackCharFilter + const InputTextFlagsCallbackCompletion + const InputTextFlagsCallbackHistory + const InputTextFlagsCharsDecimal + const InputTextFlagsCharsHexadecimal + const InputTextFlagsCharsNoBlank + const InputTextFlagsCharsScientific + const InputTextFlagsCharsUppercase + const InputTextFlagsCtrlEnterForNewLine + const InputTextFlagsEnterReturnsTrue + const InputTextFlagsNoHorizontalScroll + const InputTextFlagsNoUndoRedo + const InputTextFlagsNone + const InputTextFlagsPassword + const InputTextFlagsReadOnly + type ItemFlags int + const ItemFlagsButtonRepeat + const ItemFlagsDefault + const ItemFlagsDisabled + const ItemFlagsMixedValue + const ItemFlagsNoNav + const ItemFlagsNoNavDefaultFocus + const ItemFlagsNoTabStop + const ItemFlagsNone + const ItemFlagsSelectableDontClosePopup + type ListClipper struct + DisplayEnd int + DisplayStart int + ItemsCount int + ItemsFrozen int + ItemsHeight float32 + StartPosY float32 + StepNo int + func (clipper *ListClipper) Begin(itemsCount int) + func (clipper *ListClipper) BeginV(itemsCount int, itemsHeight float32) + func (clipper *ListClipper) End() + func (clipper *ListClipper) Step() bool + type MouseCursorID int + const MouseCursorArrow + const MouseCursorCount + const MouseCursorHand + const MouseCursorNone + const MouseCursorResizeAll + const MouseCursorResizeEW + const MouseCursorResizeNESW + const MouseCursorResizeNS + const MouseCursorResizeNWSE + const MouseCursorTextInput + func MouseCursor() MouseCursorID + type PackedColor uint32 + func Packed(c color.Color) PackedColor + func PackedColorFromVec4(vec Vec4) PackedColor + func (clr PackedColor) RGBA() (r, g, b, a uint32) + type PopupFlags int + const PopupFlagsAnyPopup + const PopupFlagsAnyPopupID + const PopupFlagsAnyPopupLevel + const PopupFlagsMouseButtonLeft + const PopupFlagsMouseButtonMiddle + const PopupFlagsMouseButtonRight + const PopupFlagsNoOpenOverExistingPopup + const PopupFlagsNoOpenOverItems + const PopupFlagsNone + type RGBA32Image struct + Height int + Pixels unsafe.Pointer + Width int + type SelectableFlags int + const SelectableFlagsAllowDoubleClick + const SelectableFlagsAllowItemOverlap + const SelectableFlagsDisabled + const SelectableFlagsDontClosePopups + const SelectableFlagsNone + const SelectableFlagsSpanAllColumns + type SliderFlags int + const SliderFlagsAlwaysClamp + const SliderFlagsLogarithmic + const SliderFlagsNoInput + const SliderFlagsNoRoundToFormat + const SliderFlagsNone + type SortDirection int + const SortDirectionAscending + const SortDirectionDescending + const SortDirectionNone + type Style uintptr + func CurrentStyle() Style + func (style Style) Alpha() float32 + func (style Style) AntiAliasedFill() bool + func (style Style) AntiAliasedLines() bool + func (style Style) AntiAliasedLinesUseTex() bool + func (style Style) ButtonTextAlign() Vec2 + func (style Style) CellPadding() Vec2 + func (style Style) ChildBorderSize() float32 + func (style Style) ChildRounding() float32 + func (style Style) CircleTessellationMaxError() float32 + func (style Style) Color(id StyleColorID) Vec4 + func (style Style) ColorButtonPosition() Dir + func (style Style) ColumnsMinSpacing() float32 + func (style Style) CurveTessellationTol() float32 + func (style Style) DisabledAlpha() float32 + func (style Style) DisplaySafeAreaPadding() Vec2 + func (style Style) DisplayWindowPadding() Vec2 + func (style Style) FrameBorderSize() float32 + func (style Style) FramePadding() Vec2 + func (style Style) FrameRounding() float32 + func (style Style) GrabMinSize() float32 + func (style Style) GrabRounding() float32 + func (style Style) IndentSpacing() float32 + func (style Style) ItemInnerSpacing() Vec2 + func (style Style) ItemSpacing() Vec2 + func (style Style) LogSliderDeadzone() float32 + func (style Style) MouseCursorScale() float32 + func (style Style) PopupBorderSize() float32 + func (style Style) PopupRounding() float32 + func (style Style) ScaleAllSizes(scale float32) + func (style Style) ScrollbarRounding() float32 + func (style Style) ScrollbarSize() float32 + func (style Style) SelectableTextAlign() Vec2 + func (style Style) SetAlpha(v float32) + func (style Style) SetAntiAliasedFill(value bool) + func (style Style) SetAntiAliasedLines(value bool) + func (style Style) SetAntiAliasedLinesUseTex(value bool) + func (style Style) SetButtonTextAlign(value Vec2) + func (style Style) SetCellPadding(value Vec2) + func (style Style) SetChildBorderSize(v float32) + func (style Style) SetChildRounding(v float32) + func (style Style) SetCircleTessellationMaxError(v float32) + func (style Style) SetColor(id StyleColorID, value Vec4) + func (style Style) SetColorButtonPosition(value Dir) + func (style Style) SetColumnsMinSpacing(v float32) + func (style Style) SetCurveTessellationTol(v float32) + func (style Style) SetDisabledAlpha(v float32) + func (style Style) SetDisplaySafeAreaPadding(value Vec2) + func (style Style) SetDisplayWindowPadding(value Vec2) + func (style Style) SetFrameBorderSize(v float32) + func (style Style) SetFramePadding(value Vec2) + func (style Style) SetFrameRounding(v float32) + func (style Style) SetGrabMinSize(v float32) + func (style Style) SetGrabRounding(v float32) + func (style Style) SetIndentSpacing(v float32) + func (style Style) SetItemInnerSpacing(value Vec2) + func (style Style) SetItemSpacing(value Vec2) + func (style Style) SetLogSliderDeadzone(v float32) + func (style Style) SetMouseCursorScale(v float32) + func (style Style) SetPopupBorderSize(v float32) + func (style Style) SetPopupRounding(v float32) + func (style Style) SetScrollbarRounding(v float32) + func (style Style) SetScrollbarSize(v float32) + func (style Style) SetSelectableTextAlign(value Vec2) + func (style Style) SetTabBorderSize(v float32) + func (style Style) SetTabMinWidthForCloseButton(v float32) + func (style Style) SetTabRounding(v float32) + func (style Style) SetTouchExtraPadding(value Vec2) + func (style Style) SetWindowBorderSize(v float32) + func (style Style) SetWindowMenuButtonPosition(value Dir) + func (style Style) SetWindowMinSize(value Vec2) + func (style Style) SetWindowPadding(value Vec2) + func (style Style) SetWindowRounding(v float32) + func (style Style) SetWindowTitleAlign(value Vec2) + func (style Style) TabBorderSize() float32 + func (style Style) TabMinWidthForCloseButton() float32 + func (style Style) TabRounding() float32 + func (style Style) TouchExtraPadding() Vec2 + func (style Style) WindowBorderSize() float32 + func (style Style) WindowMenuButtonPosition() Dir + func (style Style) WindowMinSize() Vec2 + func (style Style) WindowPadding() Vec2 + func (style Style) WindowRounding() float32 + func (style Style) WindowTitleAlign() Vec2 + type StyleColorID int + const StyleColorBorder + const StyleColorBorderShadow + const StyleColorButton + const StyleColorButtonActive + const StyleColorButtonHovered + const StyleColorCheckMark + const StyleColorChildBg + const StyleColorDragDropTarget + const StyleColorFrameBg + const StyleColorFrameBgActive + const StyleColorFrameBgHovered + const StyleColorHeader + const StyleColorHeaderActive + const StyleColorHeaderHovered + const StyleColorMenuBarBg + const StyleColorModalWindowDarkening + const StyleColorNavHighlight + const StyleColorNavWindowingDarkening + const StyleColorNavWindowingHighlight + const StyleColorPlotHistogram + const StyleColorPlotHistogramHovered + const StyleColorPlotLines + const StyleColorPlotLinesHovered + const StyleColorPopupBg + const StyleColorResizeGrip + const StyleColorResizeGripActive + const StyleColorResizeGripHovered + const StyleColorScrollbarBg + const StyleColorScrollbarGrab + const StyleColorScrollbarGrabActive + const StyleColorScrollbarGrabHovered + const StyleColorSeparator + const StyleColorSeparatorActive + const StyleColorSeparatorHovered + const StyleColorSliderGrab + const StyleColorSliderGrabActive + const StyleColorTab + const StyleColorTabActive + const StyleColorTabHovered + const StyleColorTabUnfocused + const StyleColorTabUnfocusedActive + const StyleColorTableBorderLight + const StyleColorTableBorderStrong + const StyleColorTableHeaderBg + const StyleColorTableRowBg + const StyleColorTableRowBgAlt + const StyleColorText + const StyleColorTextDisabled + const StyleColorTextSelectedBg + const StyleColorTitleBg + const StyleColorTitleBgActive + const StyleColorTitleBgCollapsed + const StyleColorWindowBg + type StyleVarID int + const StyleVarAlpha + const StyleVarButtonTextAlign + const StyleVarCellPadding + const StyleVarChildBorderSize + const StyleVarChildRounding + const StyleVarDisabledAlpha + const StyleVarFrameBorderSize + const StyleVarFramePadding + const StyleVarFrameRounding + const StyleVarGrabMinSize + const StyleVarGrabRounding + const StyleVarIndentSpacing + const StyleVarItemInnerSpacing + const StyleVarItemSpacing + const StyleVarPopupBorderSize + const StyleVarPopupRounding + const StyleVarScrollbarRounding + const StyleVarScrollbarSize + const StyleVarSelectableTextAlign + const StyleVarTabRounding + const StyleVarWindowBorderSize + const StyleVarWindowMinSize + const StyleVarWindowPadding + const StyleVarWindowRounding + const StyleVarWindowTitleAlign + type TabBarFlags int + const TabBarFlagsAutoSelectNewTabs + const TabBarFlagsFittingPolicyDefault + const TabBarFlagsFittingPolicyMask + const TabBarFlagsFittingPolicyResizeDown + const TabBarFlagsFittingPolicyScroll + const TabBarFlagsNoCloseWithMiddleMouseButton + const TabBarFlagsNoTabListScrollingButtons + const TabBarFlagsNoTooltip + const TabBarFlagsNone + const TabBarFlagsReorderable + const TabBarFlagsTabListPopupButton + type TabItemFlags int + const TabItemFlagsLeading + const TabItemFlagsNoCloseWithMiddleMouseButton + const TabItemFlagsNoPushID + const TabItemFlagsNoReorder + const TabItemFlagsNoTooltip + const TabItemFlagsNone + const TabItemFlagsSetSelected + const TabItemFlagsTrailing + const TabItemFlagsUnsavedDocument + type TableBgTarget int + const TableBgTargetCellBg + const TableBgTargetNone + const TableBgTargetRowBg0 + const TableBgTargetRowBg1 + type TableColumnFlags int + const TableColumnFlagsDefaultHide + const TableColumnFlagsDefaultSort + const TableColumnFlagsDisabled + const TableColumnFlagsIndentDisable + const TableColumnFlagsIndentEnable + const TableColumnFlagsIsEnabled + const TableColumnFlagsIsHovered + const TableColumnFlagsIsSorted + const TableColumnFlagsIsVisible + const TableColumnFlagsNoClip + const TableColumnFlagsNoHeaderLabel + const TableColumnFlagsNoHeaderWidth + const TableColumnFlagsNoHide + const TableColumnFlagsNoReorder + const TableColumnFlagsNoResize + const TableColumnFlagsNoSort + const TableColumnFlagsNoSortAscending + const TableColumnFlagsNoSortDescending + const TableColumnFlagsNone + const TableColumnFlagsPreferSortAscending + const TableColumnFlagsPreferSortDescending + const TableColumnFlagsWidthFixed + const TableColumnFlagsWidthStretch + func TableGetColumnFlags() TableColumnFlags + func TableGetColumnFlagsV(columnN int) TableColumnFlags + type TableColumnSortSpecs struct + ColumnIndex int16 + ColumnUserID uint + SortDirection SortDirection + SortOrder int16 + type TableFlags int + const TableFlagsBorders + const TableFlagsBordersH + const TableFlagsBordersInner + const TableFlagsBordersInnerH + const TableFlagsBordersInnerV + const TableFlagsBordersOuter + const TableFlagsBordersOuterH + const TableFlagsBordersOuterV + const TableFlagsBordersV + const TableFlagsContextMenuInBody + const TableFlagsHideable + const TableFlagsNoBordersInBody + const TableFlagsNoBordersInBodyUntilResize + const TableFlagsNoClip + const TableFlagsNoHostExtendX + const TableFlagsNoHostExtendY + const TableFlagsNoKeepColumnsVisible + const TableFlagsNoPadInnerX + const TableFlagsNoPadOuterX + const TableFlagsNoSavedSettings + const TableFlagsNone + const TableFlagsPadOuterX + const TableFlagsPreciseWidths + const TableFlagsReorderable + const TableFlagsResizable + const TableFlagsRowBg + const TableFlagsScrollX + const TableFlagsScrollY + const TableFlagsSizingFixedFit + const TableFlagsSizingFixedSame + const TableFlagsSizingStretchProp + const TableFlagsSizingStretchSame + const TableFlagsSortMulti + const TableFlagsSortTristate + const TableFlagsSortable + type TableRowFlags int + const TableRowFlagsHeaders + const TableRowFlagsNone + type TableSortSpecs uintptr + func TableGetSortSpecs() TableSortSpecs + func (specs TableSortSpecs) ClearSpecsDirty() + func (specs TableSortSpecs) SetSpecsDirty(value bool) + func (specs TableSortSpecs) Specs() []TableColumnSortSpecs + func (specs TableSortSpecs) SpecsCount() int + func (specs TableSortSpecs) SpecsDirty() bool + type TextureID uintptr + type TreeNodeFlags int + const TreeNodeFlagsAllowItemOverlap + const TreeNodeFlagsBullet + const TreeNodeFlagsCollapsingHeader + const TreeNodeFlagsDefaultOpen + const TreeNodeFlagsFramePadding + const TreeNodeFlagsFramed + const TreeNodeFlagsLeaf + const TreeNodeFlagsNavLeftJumpsBackHere + const TreeNodeFlagsNoAutoOpenOnLog + const TreeNodeFlagsNoTreePushOnOpen + const TreeNodeFlagsNone + const TreeNodeFlagsOpenOnArrow + const TreeNodeFlagsOpenOnDoubleClick + const TreeNodeFlagsSelected + const TreeNodeFlagsSpanAvailWidth + const TreeNodeFlagsSpanFullWidth + type Vec2 struct + X float32 + Y float32 + func CalcTextSize(text string, hideTextAfterDoubleHash bool, wrapWidth float32) Vec2 + func ContentRegionAvail() Vec2 + func ContentRegionMax() Vec2 + func CursorPos() Vec2 + func CursorScreenPos() Vec2 + func CursorStartPos() Vec2 + func ItemRectMax() Vec2 + func ItemRectMin() Vec2 + func MouseDragDelta(button int, lockThreshold float32) Vec2 + func MousePos() Vec2 + func WindowContentRegionMax() Vec2 + func WindowContentRegionMin() Vec2 + func WindowPos() Vec2 + func WindowSize() Vec2 + func (vec Vec2) Minus(other Vec2) Vec2 + func (vec Vec2) Plus(other Vec2) Vec2 + func (vec Vec2) Times(value float32) Vec2 + type Vec4 struct + W float32 + X float32 + Y float32 + Z float32 + func (vec Vec4) Minus(other Vec4) Vec4 + func (vec Vec4) Plus(other Vec4) Vec4 + func (vec Vec4) Times(value float32) Vec4 + type Viewport uintptr + func MainViewport() Viewport + func (viewport Viewport) Center() Vec2 + func (viewport Viewport) Flags() ViewportFlags + func (viewport Viewport) Pos() Vec2 + func (viewport Viewport) Size() Vec2 + func (viewport Viewport) WorkCenter() Vec2 + func (viewport Viewport) WorkPos() Vec2 + func (viewport Viewport) WorkSize() Vec2 + type ViewportFlags int + const ViewportFlagsIsPlatformMonitor + const ViewportFlagsIsPlatformWindow + const ViewportFlagsNone + const ViewportFlagsOwnedByApp + type WindowFlags int + const WindowFlagsAlwaysAutoResize + const WindowFlagsAlwaysHorizontalScrollbar + const WindowFlagsAlwaysUseWindowPadding + const WindowFlagsAlwaysVerticalScrollbar + const WindowFlagsHorizontalScrollbar + const WindowFlagsMenuBar + const WindowFlagsNoBackground + const WindowFlagsNoBringToFrontOnFocus + const WindowFlagsNoCollapse + const WindowFlagsNoDecoration + const WindowFlagsNoFocusOnAppearing + const WindowFlagsNoInputs + const WindowFlagsNoMouseInputs + const WindowFlagsNoMove + const WindowFlagsNoNav + const WindowFlagsNoNavFocus + const WindowFlagsNoNavInputs + const WindowFlagsNoResize + const WindowFlagsNoSavedSettings + const WindowFlagsNoScrollWithMouse + const WindowFlagsNoScrollbar + const WindowFlagsNoTitleBar + const WindowFlagsNone + const WindowFlagsUnsavedDocument Other modules containing this package github.com/jetsetilly/imgui-go github.com/jetsetilly/imgui-go/v18500