imgui

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 7 Imported by: 41

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlignTextToFramePadding

func AlignTextToFramePadding()

vertically align upcoming text baseline to FramePadding.y so that it will align properly to regularly framed items (call if you have text on a line before a framed item)

func ArrowButton

func ArrowButton(str_id string, dir Dir) bool

square button with an arrow shape

func Begin

func Begin(name string) bool

func BeginChildID

func BeginChildID(id ID) bool

func BeginChildIDV

func BeginChildIDV(id ID, size Vec2, child_flags ChildFlags, window_flags WindowFlags) bool

BeginChildIDV parameter default value hint: size: ImVec2(0,0) child_flags: 0 window_flags: 0

func BeginChildStr

func BeginChildStr(str_id string) bool

func BeginChildStrV

func BeginChildStrV(str_id string, size Vec2, child_flags ChildFlags, window_flags WindowFlags) bool

BeginChildStrV parameter default value hint: size: ImVec2(0,0) child_flags: 0 window_flags: 0

func BeginCombo

func BeginCombo(label, preview_value string) bool

func BeginComboV

func BeginComboV(label, preview_value string, flags ComboFlags) bool

BeginComboV parameter default value hint: flags: 0

func BeginDisabled

func BeginDisabled()

func BeginDisabledV

func BeginDisabledV(disabled bool)

BeginDisabledV parameter default value hint: disabled: true

func BeginDragDropSource

func BeginDragDropSource() bool

func BeginDragDropSourceV

func BeginDragDropSourceV(flags DragDropFlags) bool

call after submitting an item which may be dragged. when this return true, you can call SetDragDropPayload() + EndDragDropSource() BeginDragDropSourceV parameter default value hint: flags: 0

func BeginDragDropTarget

func BeginDragDropTarget() bool

call after submitting an item that may receive a payload. If this returns true, you can call AcceptDragDropPayload() + EndDragDropTarget()

func BeginGroup

func BeginGroup()

lock horizontal starting position

func BeginItemTooltip

func BeginItemTooltip() bool

begin/append a tooltip window if preceding item was hovered.

func BeginListBox

func BeginListBox(label string) bool

func BeginListBoxV

func BeginListBoxV(label string, size Vec2) bool

open a framed scrolling region BeginListBoxV parameter default value hint: size: ImVec2(0,0)

func BeginMainMenuBar

func BeginMainMenuBar() bool

create and append to a full screen menu-bar.

func BeginMenu

func BeginMenu(label string) bool

func BeginMenuBar

func BeginMenuBar() bool

append to menu-bar of current window (requires ImGuiWindowFlags_MenuBar flag set on parent window).

func BeginMenuV

func BeginMenuV(label string, enabled bool) bool

create a sub-menu entry. only call EndMenu() if this returns true! BeginMenuV parameter default value hint: enabled: true

func BeginPopup

func BeginPopup(str_id string) bool

func BeginPopupContextItem

func BeginPopupContextItem() bool

func BeginPopupContextItemV

func BeginPopupContextItemV(str_id string, popup_flags PopupFlags) bool

open+begin popup when clicked on last item. Use str_id==NULL to associate the popup to previous item. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! BeginPopupContextItemV parameter default value hint: str_id: NULL popup_flags: 1

func BeginPopupContextVoid

func BeginPopupContextVoid() bool

func BeginPopupContextVoidV

func BeginPopupContextVoidV(str_id string, popup_flags PopupFlags) bool

open+begin popup when clicked in void (where there are no windows). BeginPopupContextVoidV parameter default value hint: str_id: NULL popup_flags: 1

func BeginPopupContextWindow

func BeginPopupContextWindow() bool

func BeginPopupContextWindowV

func BeginPopupContextWindowV(str_id string, popup_flags PopupFlags) bool

open+begin popup when clicked on current window. BeginPopupContextWindowV parameter default value hint: str_id: NULL popup_flags: 1

func BeginPopupModal

func BeginPopupModal(name string) bool

func BeginPopupModalV

func BeginPopupModalV(name string, p_open *bool, flags WindowFlags) bool

return true if the modal is open, and you can start outputting to it. BeginPopupModalV parameter default value hint: p_open: NULL flags: 0

func BeginPopupV

func BeginPopupV(str_id string, flags WindowFlags) bool

return true if the popup is open, and you can start outputting to it. BeginPopupV parameter default value hint: flags: 0

func BeginTabBar

func BeginTabBar(str_id string) bool

func BeginTabBarV

func BeginTabBarV(str_id string, flags TabBarFlags) bool

create and append into a TabBar BeginTabBarV parameter default value hint: flags: 0

func BeginTabItem

func BeginTabItem(label string) bool

func BeginTabItemV

func BeginTabItemV(label string, p_open *bool, flags TabItemFlags) bool

create a Tab. Returns true if the Tab is selected. BeginTabItemV parameter default value hint: p_open: NULL flags: 0

func BeginTable

func BeginTable(str_id string, columns int32) bool

func BeginTableV

func BeginTableV(str_id string, columns int32, flags TableFlags, outer_size Vec2, inner_width float32) bool

BeginTableV parameter default value hint: flags: 0 outer_size: ImVec2(0.0f,0.0f) inner_width: 0.0f

func BeginTooltip

func BeginTooltip() bool

begin/append a tooltip window.

func BeginV

func BeginV(name string, p_open *bool, flags WindowFlags) bool

BeginV parameter default value hint: p_open: NULL flags: 0

func Bullet

func Bullet()

draw a small circle + keep the cursor on the same line. advance cursor x position by GetTreeNodeToLabelSpacing(), same distance that TreeNode() uses

func BulletText

func BulletText(fmt string)

shortcut for Bullet()+Text()

func Button

func Button(label string) bool

func ButtonV

func ButtonV(label string, size Vec2) bool

button ButtonV parameter default value hint: size: ImVec2(0,0)

func CalcItemWidth

func CalcItemWidth() float32

width of item given pushed settings and current cursor position. NOT necessarily the width of last item unlike most 'Item' functions.

func Checkbox

func Checkbox(label string, v *bool) bool

func CheckboxFlagsIntPtr

func CheckboxFlagsIntPtr(label string, flags *int32, flags_value int32) bool

func CheckboxFlagsUintPtr

func CheckboxFlagsUintPtr(label string, flags *uint32, flags_value uint32) bool

func ClearContextHookCallbackPool added in v1.2.0

func ClearContextHookCallbackPool()

func ClearDrawCallbackPool added in v1.2.0

func ClearDrawCallbackPool()

func ClearErrorCallbackPool added in v1.2.0

func ClearErrorCallbackPool()

func ClearMemAllocFuncPool added in v1.2.0

func ClearMemAllocFuncPool()

func ClearMemFreeFuncPool added in v1.2.0

func ClearMemFreeFuncPool()

func ClearSizeCallbackPool added in v1.2.0

func ClearSizeCallbackPool()

func ClipboardText

func ClipboardText() string

func CloseCurrentPopup

func CloseCurrentPopup()

manually close the popup we have begin-ed into.

func CollapsingHeaderBoolPtr

func CollapsingHeaderBoolPtr(label string, p_visible *bool) bool

func CollapsingHeaderBoolPtrV

func CollapsingHeaderBoolPtrV(label string, p_visible *bool, flags TreeNodeFlags) bool

when 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header. CollapsingHeaderBoolPtrV parameter default value hint: flags: 0

func CollapsingHeaderTreeNodeFlags

func CollapsingHeaderTreeNodeFlags(label string) bool

func CollapsingHeaderTreeNodeFlagsV

func CollapsingHeaderTreeNodeFlagsV(label string, flags TreeNodeFlags) bool

if returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop(). CollapsingHeaderTreeNodeFlagsV parameter default value hint: flags: 0

func ColorButton

func ColorButton(desc_id string, col Vec4) bool

func ColorButtonV

func ColorButtonV(desc_id string, col Vec4, flags ColorEditFlags, size Vec2) bool

display a color square/button, hover for details, return true when pressed. ColorButtonV parameter default value hint: flags: 0 size: ImVec2(0,0)

func ColorConvertFloat4ToU32

func ColorConvertFloat4ToU32(in Vec4) uint32

func ColorConvertHSVtoRGB

func ColorConvertHSVtoRGB(h, s, v float32, out_r, out_g, out_b *float32)

func ColorConvertRGBtoHSV

func ColorConvertRGBtoHSV(r, g, b float32, out_h, out_s, out_v *float32)

func ColorEdit3

func ColorEdit3(label string, col *[3]float32) bool

func ColorEdit3V

func ColorEdit3V(label string, col *[3]float32, flags ColorEditFlags) bool

ColorEdit3V parameter default value hint: flags: 0

func ColorEdit4

func ColorEdit4(label string, col *[4]float32) bool

func ColorEdit4V

func ColorEdit4V(label string, col *[4]float32, flags ColorEditFlags) bool

ColorEdit4V parameter default value hint: flags: 0

func ColorPicker3

func ColorPicker3(label string, col *[3]float32) bool

func ColorPicker3V

func ColorPicker3V(label string, col *[3]float32, flags ColorEditFlags) bool

ColorPicker3V parameter default value hint: flags: 0

func ColorPicker4

func ColorPicker4(label string, col *[4]float32) bool

func ColorPicker4V

func ColorPicker4V(label string, col *[4]float32, flags ColorEditFlags, ref_col *float32) bool

ColorPicker4V parameter default value hint: flags: 0 ref_col: NULL

func ColorU32Col

func ColorU32Col(idx Col) uint32

func ColorU32ColV

func ColorU32ColV(idx Col, alpha_mul float32) uint32

retrieve given style color with style alpha applied and optional extra alpha multiplier, packed as a 32-bit value suitable for ImDrawList ColorU32ColV parameter default value hint: alpha_mul: 1.0f

func ColorU32U32

func ColorU32U32(col uint32) uint32

func ColorU32U32V

func ColorU32U32V(col uint32, alpha_mul float32) uint32

retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList ColorU32U32V parameter default value hint: alpha_mul: 1.0f

func ColorU32Vec4

func ColorU32Vec4(col Vec4) uint32

retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList

func ColumnIndex

func ColumnIndex() int32

get current column index

func ColumnOffset

func ColumnOffset() float32

func ColumnOffsetV

func ColumnOffsetV(column_index int32) float32

get position of column line (in pixels, from the left side of the contents region). pass -1 to use current column, otherwise 0..GetColumnsCount() inclusive. column 0 is typically 0.0f ColumnOffsetV parameter default value hint: column_index: -1

func ColumnWidth

func ColumnWidth() float32

func ColumnWidthV

func ColumnWidthV(column_index int32) float32

get column width (in pixels). pass -1 to use current column ColumnWidthV parameter default value hint: column_index: -1

func Columns

func Columns()

func ColumnsCount

func ColumnsCount() int32

func ColumnsV

func ColumnsV(count int32, id string, borders bool)

ColumnsV parameter default value hint: count: 1 id: NULL borders: true

func ComboStr

func ComboStr(label string, current_item *int32, items_separated_by_zeros string) bool

func ComboStrV

func ComboStrV(label string, current_item *int32, items_separated_by_zeros string, popup_max_height_in_items int32) bool

Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" ComboStrV parameter default value hint: popup_max_height_in_items: -1

func ComboStrarr

func ComboStrarr(label string, current_item *int32, items []string, items_count int32) bool

func ComboStrarrV

func ComboStrarrV(label string, current_item *int32, items []string, items_count, popup_max_height_in_items int32) bool

ComboStrarrV parameter default value hint: popup_max_height_in_items: -1

func CursorPosX

func CursorPosX() float32

[window-local] "

func CursorPosY

func CursorPosY() float32

[window-local] "

func DebugCheckVersionAndDataLayout

func DebugCheckVersionAndDataLayout(version_str string, sz_io, sz_style, sz_vec2, sz_vec4, sz_drawvert, sz_drawidx uint64) bool

This is called by IMGUI_CHECKVERSION() macro.

func DebugFlashStyleColor

func DebugFlashStyleColor(idx Col)

func DebugLog

func DebugLog(fmt string)

Call via IMGUI_DEBUG_LOG() for maximum stripping in caller code!

func DebugStartItemPicker

func DebugStartItemPicker()

func DebugTextEncoding

func DebugTextEncoding(text string)

func DestroyContext

func DestroyContext()

func DestroyContextV

func DestroyContextV(ctx *Context)

NULL = destroy current context DestroyContextV parameter default value hint: ctx: NULL

func DestroyPlatformWindows

func DestroyPlatformWindows()

call DestroyWindow platform functions for all viewports. call from backend Shutdown() if you need to close platform windows before imgui shutdown. otherwise will be called by DestroyContext().

func DragFloat

func DragFloat(label string, v *float32) bool

func DragFloat2

func DragFloat2(label string, v *[2]float32) bool

func DragFloat2V

func DragFloat2V(label string, v *[2]float32, v_speed, v_min, v_max float32, format string, flags SliderFlags) bool

DragFloat2V parameter default value hint: v_speed: 1.0f v_min: 0.0f v_max: 0.0f format: "%.3f" flags: 0

func DragFloat3

func DragFloat3(label string, v *[3]float32) bool

func DragFloat3V

func DragFloat3V(label string, v *[3]float32, v_speed, v_min, v_max float32, format string, flags SliderFlags) bool

DragFloat3V parameter default value hint: v_speed: 1.0f v_min: 0.0f v_max: 0.0f format: "%.3f" flags: 0

func DragFloat4

func DragFloat4(label string, v *[4]float32) bool

func DragFloat4V

func DragFloat4V(label string, v *[4]float32, v_speed, v_min, v_max float32, format string, flags SliderFlags) bool

DragFloat4V parameter default value hint: v_speed: 1.0f v_min: 0.0f v_max: 0.0f format: "%.3f" flags: 0

func DragFloatRange2

func DragFloatRange2(label string, v_current_min, v_current_max *float32) bool

func DragFloatRange2V

func DragFloatRange2V(label string, v_current_min, v_current_max *float32, v_speed, v_min, v_max float32, format, format_max string, flags SliderFlags) bool

DragFloatRange2V parameter default value hint: v_speed: 1.0f v_min: 0.0f v_max: 0.0f format: "%.3f" format_max: NULL flags: 0

func DragFloatV

func DragFloatV(label string, v *float32, v_speed, v_min, v_max float32, format string, flags SliderFlags) bool

If v_min >= v_max we have no bound DragFloatV parameter default value hint: v_speed: 1.0f v_min: 0.0f v_max: 0.0f format: "%.3f" flags: 0

func DragInt

func DragInt(label string, v *int32) bool

func DragInt2

func DragInt2(label string, v *[2]int32) bool

func DragInt2V

func DragInt2V(label string, v *[2]int32, v_speed float32, v_min, v_max int32, format string, flags SliderFlags) bool

DragInt2V parameter default value hint: v_speed: 1.0f v_min: 0 v_max: 0 format: "%d" flags: 0

func DragInt3

func DragInt3(label string, v *[3]int32) bool

func DragInt3V

func DragInt3V(label string, v *[3]int32, v_speed float32, v_min, v_max int32, format string, flags SliderFlags) bool

DragInt3V parameter default value hint: v_speed: 1.0f v_min: 0 v_max: 0 format: "%d" flags: 0

func DragInt4

func DragInt4(label string, v *[4]int32) bool

func DragInt4V

func DragInt4V(label string, v *[4]int32, v_speed float32, v_min, v_max int32, format string, flags SliderFlags) bool

DragInt4V parameter default value hint: v_speed: 1.0f v_min: 0 v_max: 0 format: "%d" flags: 0

func DragIntRange2

func DragIntRange2(label string, v_current_min, v_current_max *int32) bool

func DragIntRange2V

func DragIntRange2V(label string, v_current_min, v_current_max *int32, v_speed float32, v_min, v_max int32, format, format_max string, flags SliderFlags) bool

DragIntRange2V parameter default value hint: v_speed: 1.0f v_min: 0 v_max: 0 format: "%d" format_max: NULL flags: 0

func DragIntV

func DragIntV(label string, v *int32, v_speed float32, v_min, v_max int32, format string, flags SliderFlags) bool

If v_min >= v_max we have no bound DragIntV parameter default value hint: v_speed: 1.0f v_min: 0 v_max: 0 format: "%d" flags: 0

func DragScalar

func DragScalar(label string, data_type DataType, p_data uintptr) bool

func DragScalarN

func DragScalarN(label string, data_type DataType, p_data uintptr, components int32) bool

func DragScalarNV

func DragScalarNV(label string, data_type DataType, p_data uintptr, components int32, v_speed float32, p_min, p_max uintptr, format string, flags SliderFlags) bool

DragScalarNV parameter default value hint: v_speed: 1.0f p_min: NULL p_max: NULL format: NULL flags: 0

func DragScalarV

func DragScalarV(label string, data_type DataType, p_data uintptr, v_speed float32, p_min, p_max uintptr, format string, flags SliderFlags) bool

DragScalarV parameter default value hint: v_speed: 1.0f p_min: NULL p_max: NULL format: NULL flags: 0

func Dummy

func Dummy(size Vec2)

add a dummy item of given size. unlike InvisibleButton(), Dummy() won't take the mouse click or be navigable into.

func End

func End()

func EndChild

func EndChild()

func EndCombo

func EndCombo()

only call EndCombo() if BeginCombo() returns true!

func EndDisabled

func EndDisabled()

func EndDragDropSource

func EndDragDropSource()

only call EndDragDropSource() if BeginDragDropSource() returns true!

func EndDragDropTarget

func EndDragDropTarget()

only call EndDragDropTarget() if BeginDragDropTarget() returns true!

func EndFrame

func EndFrame()

ends the Dear ImGui frame. automatically called by Render(). If you don't need to render data (skipping rendering) you may call EndFrame() without Render()... but you'll have wasted CPU already! If you don't need to render, better to not create any windows and not call NewFrame() at all!

func EndGroup

func EndGroup()

unlock horizontal starting position + capture the whole group bounding box into one "item" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.)

func EndListBox

func EndListBox()

only call EndListBox() if BeginListBox() returned true!

func EndMainMenuBar

func EndMainMenuBar()

only call EndMainMenuBar() if BeginMainMenuBar() returns true!

func EndMenu

func EndMenu()

only call EndMenu() if BeginMenu() returns true!

func EndMenuBar

func EndMenuBar()

only call EndMenuBar() if BeginMenuBar() returns true!

func EndPopup

func EndPopup()

only call EndPopup() if BeginPopupXXX() returns true!

func EndTabBar

func EndTabBar()

only call EndTabBar() if BeginTabBar() returns true!

func EndTabItem

func EndTabItem()

only call EndTabItem() if BeginTabItem() returns true!

func EndTable

func EndTable()

only call EndTable() if BeginTable() returns true!

func EndTooltip

func EndTooltip()

only call EndTooltip() if BeginTooltip()/BeginItemTooltip() returns true!

func FontSize

func FontSize() float32

get current font size (= height in pixels) of current font with current scale applied

func FrameCount

func FrameCount() int32

get global imgui frame count. incremented by 1 every frame.

func FrameHeight

func FrameHeight() float32

~ FontSize + style.FramePadding.y * 2

func FrameHeightWithSpacing

func FrameHeightWithSpacing() float32

~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets)

func Image

func Image(user_texture_id TextureID, image_size Vec2)

func ImageButton

func ImageButton(str_id string, user_texture_id TextureID, image_size Vec2) bool

func ImageButtonV

func ImageButtonV(str_id string, user_texture_id TextureID, image_size, uv0, uv1 Vec2, bg_col, tint_col Vec4) bool

ImageButtonV parameter default value hint: uv0: ImVec2(0,0) uv1: ImVec2(1,1) bg_col: ImVec4(0,0,0,0) tint_col: ImVec4(1,1,1,1)

func ImageV

func ImageV(user_texture_id TextureID, image_size, uv0, uv1 Vec2, tint_col, border_col Vec4)

ImageV parameter default value hint: uv0: ImVec2(0,0) uv1: ImVec2(1,1) tint_col: ImVec4(1,1,1,1) border_col: ImVec4(0,0,0,0)

func Indent

func Indent()

func IndentV

func IndentV(indent_w float32)

move content position toward the right, by indent_w, or style.IndentSpacing if indent_w <= 0 IndentV parameter default value hint: indent_w: 0.0f

func IndexBufferLayout

func IndexBufferLayout() (entrySize int)

IndexBufferLayout returns the byte size necessary to select fields in an index buffer of DrawList.

func InputDouble

func InputDouble(label string, v *float64) bool

func InputDoubleV

func InputDoubleV(label string, v *float64, step, step_fast float64, format string, flags InputTextFlags) bool

InputDoubleV parameter default value hint: step: 0.0 step_fast: 0.0 format: "%.6f" flags: 0

func InputFloat

func InputFloat(label string, v *float32) bool

func InputFloat2

func InputFloat2(label string, v *[2]float32) bool

func InputFloat2V

func InputFloat2V(label string, v *[2]float32, format string, flags InputTextFlags) bool

InputFloat2V parameter default value hint: format: "%.3f" flags: 0

func InputFloat3

func InputFloat3(label string, v *[3]float32) bool

func InputFloat3V

func InputFloat3V(label string, v *[3]float32, format string, flags InputTextFlags) bool

InputFloat3V parameter default value hint: format: "%.3f" flags: 0

func InputFloat4

func InputFloat4(label string, v *[4]float32) bool

func InputFloat4V

func InputFloat4V(label string, v *[4]float32, format string, flags InputTextFlags) bool

InputFloat4V parameter default value hint: format: "%.3f" flags: 0

func InputFloatV

func InputFloatV(label string, v *float32, step, step_fast float32, format string, flags InputTextFlags) bool

InputFloatV parameter default value hint: step: 0.0f step_fast: 0.0f format: "%.3f" flags: 0

func InputInt

func InputInt(label string, v *int32) bool

func InputInt2

func InputInt2(label string, v *[2]int32) bool

func InputInt2V

func InputInt2V(label string, v *[2]int32, flags InputTextFlags) bool

InputInt2V parameter default value hint: flags: 0

func InputInt3

func InputInt3(label string, v *[3]int32) bool

func InputInt3V

func InputInt3V(label string, v *[3]int32, flags InputTextFlags) bool

InputInt3V parameter default value hint: flags: 0

func InputInt4

func InputInt4(label string, v *[4]int32) bool

func InputInt4V

func InputInt4V(label string, v *[4]int32, flags InputTextFlags) bool

InputInt4V parameter default value hint: flags: 0

func InputIntV

func InputIntV(label string, v *int32, step, step_fast int32, flags InputTextFlags) bool

InputIntV parameter default value hint: step: 1 step_fast: 100 flags: 0

func InputScalar

func InputScalar(label string, data_type DataType, p_data uintptr) bool

func InputScalarN

func InputScalarN(label string, data_type DataType, p_data uintptr, components int32) bool

func InputScalarNV

func InputScalarNV(label string, data_type DataType, p_data uintptr, components int32, p_step, p_step_fast uintptr, format string, flags InputTextFlags) bool

InputScalarNV parameter default value hint: p_step: NULL p_step_fast: NULL format: NULL flags: 0

func InputScalarV

func InputScalarV(label string, data_type DataType, p_data, p_step, p_step_fast uintptr, format string, flags InputTextFlags) bool

InputScalarV parameter default value hint: p_step: NULL p_step_fast: NULL format: NULL flags: 0

func InputTextMultiline

func InputTextMultiline(label string, buf *string, size Vec2, flags InputTextFlags, callback InputTextCallback) bool

func InputTextWithHint

func InputTextWithHint(label, hint string, buf *string, flags InputTextFlags, callback InputTextCallback) bool

func InternalActivateItemByID

func InternalActivateItemByID(id ID)

Activate an item by ID (button, checkbox, tree node etc.). Activation is queued and processed on the next frame when the item is encountered again.

func InternalAddSettingsHandler

func InternalAddSettingsHandler(handler *SettingsHandler)

func InternalArrowButtonEx

func InternalArrowButtonEx(str_id string, dir Dir, size_arg Vec2) bool

func InternalArrowButtonExV

func InternalArrowButtonExV(str_id string, dir Dir, size_arg Vec2, flags ButtonFlags) bool

InternalArrowButtonExV parameter default value hint: flags: 0

func InternalBeginBoxSelect

func InternalBeginBoxSelect(scope_rect Rect, window *Window, box_select_id ID, ms_flags MultiSelectFlags) bool

func InternalBeginChildEx

func InternalBeginChildEx(name string, id ID, size_arg Vec2, child_flags ChildFlags, window_flags WindowFlags) bool

func InternalBeginColumns

func InternalBeginColumns(str_id string, count int32)

func InternalBeginColumnsV

func InternalBeginColumnsV(str_id string, count int32, flags OldColumnFlags)

setup number of columns. use an identifier to distinguish multiple column sets. close with EndColumns(). InternalBeginColumnsV parameter default value hint: flags: 0

func InternalBeginComboPopup

func InternalBeginComboPopup(popup_id ID, bb Rect, flags ComboFlags) bool

func InternalBeginComboPreview

func InternalBeginComboPreview() bool

func InternalBeginDisabledOverrideReenable

func InternalBeginDisabledOverrideReenable()

func InternalBeginDockableDragDropSource

func InternalBeginDockableDragDropSource(window *Window)

func InternalBeginDockableDragDropTarget

func InternalBeginDockableDragDropTarget(window *Window)

func InternalBeginDocked

func InternalBeginDocked(window *Window, p_open *bool)

func InternalBeginDragDropTargetCustom

func InternalBeginDragDropTargetCustom(bb Rect, id ID) bool

func InternalBeginErrorTooltip added in v1.1.0

func InternalBeginErrorTooltip() bool

func InternalBeginMenuEx

func InternalBeginMenuEx(label, icon string) bool

func InternalBeginMenuExV

func InternalBeginMenuExV(label, icon string, enabled bool) bool

InternalBeginMenuExV parameter default value hint: enabled: true

func InternalBeginPopupEx

func InternalBeginPopupEx(id ID, extra_window_flags WindowFlags) bool

func InternalBeginTabBarEx

func InternalBeginTabBarEx(tab_bar *TabBar, bb Rect, flags TabBarFlags) bool

func InternalBeginTableEx

func InternalBeginTableEx(name string, id ID, columns_count int32) bool

func InternalBeginTableExV

func InternalBeginTableExV(name string, id ID, columns_count int32, flags TableFlags, outer_size Vec2, inner_width float32) bool

InternalBeginTableExV parameter default value hint: flags: 0 outer_size: ImVec2(0,0) inner_width: 0.0f

func InternalBeginTooltipEx

func InternalBeginTooltipEx(tooltip_flags TooltipFlags, extra_window_flags WindowFlags) bool

func InternalBeginTooltipHidden

func InternalBeginTooltipHidden() bool

func InternalBeginViewportSideBar

func InternalBeginViewportSideBar(name string, viewport *Viewport, dir Dir, size float32, window_flags WindowFlags) bool

func InternalBringWindowToDisplayBack

func InternalBringWindowToDisplayBack(window *Window)

func InternalBringWindowToDisplayBehind

func InternalBringWindowToDisplayBehind(window, above_window *Window)

func InternalBringWindowToDisplayFront

func InternalBringWindowToDisplayFront(window *Window)

func InternalBringWindowToFocusFront

func InternalBringWindowToFocusFront(window *Window)

func InternalButtonBehavior

func InternalButtonBehavior(bb Rect, id ID, out_hovered, out_held *bool) bool

func InternalButtonBehaviorV

func InternalButtonBehaviorV(bb Rect, id ID, out_hovered, out_held *bool, flags ButtonFlags) bool

InternalButtonBehaviorV parameter default value hint: flags: 0

func InternalButtonEx

func InternalButtonEx(label string) bool

func InternalButtonExV

func InternalButtonExV(label string, size_arg Vec2, flags ButtonFlags) bool

InternalButtonExV parameter default value hint: size_arg: ImVec2(0,0) flags: 0

func InternalCalcTypematicRepeatAmount

func InternalCalcTypematicRepeatAmount(t0, t1, repeat_delay, repeat_rate float32) int32

func InternalCalcWrapWidthForPos

func InternalCalcWrapWidthForPos(pos Vec2, wrap_pos_x float32) float32

func InternalCallContextHooks

func InternalCallContextHooks(context *Context, typeArg ContextHookType)

func InternalCheckboxFlagsS64Ptr

func InternalCheckboxFlagsS64Ptr(label string, flags *int64, flags_value int64) bool

func InternalCheckboxFlagsU64Ptr

func InternalCheckboxFlagsU64Ptr(label string, flags *uint64, flags_value uint64) bool

func InternalClearActiveID

func InternalClearActiveID()

func InternalClearDragDrop

func InternalClearDragDrop()

func InternalClearIniSettings

func InternalClearIniSettings()

func InternalClearWindowSettings

func InternalClearWindowSettings(name string)

func InternalCloseButton

func InternalCloseButton(id ID, pos Vec2) bool

func InternalClosePopupToLevel

func InternalClosePopupToLevel(remaining int32, restore_focus_to_window_under_popup bool)

func InternalClosePopupsExceptModals

func InternalClosePopupsExceptModals()

func InternalClosePopupsOverWindow

func InternalClosePopupsOverWindow(ref_window *Window, restore_focus_to_window_under_popup bool)

func InternalCollapseButton

func InternalCollapseButton(id ID, pos Vec2, dock_node *DockNode) bool

func InternalColorEditOptionsPopup

func InternalColorEditOptionsPopup(col *float32, flags ColorEditFlags)

func InternalColorPickerOptionsPopup

func InternalColorPickerOptionsPopup(ref_col *float32, flags ColorEditFlags)

func InternalColorTooltip

func InternalColorTooltip(text string, col *float32, flags ColorEditFlags)

func InternalColumnNormFromOffset

func InternalColumnNormFromOffset(columns *OldColumns, offset float32) float32

func InternalColumnOffsetFromNorm

func InternalColumnOffsetFromNorm(columns *OldColumns, offset_norm float32) float32

func InternalDataTypeApplyFromText

func InternalDataTypeApplyFromText(buf string, data_type DataType, p_data uintptr, format string) bool

func InternalDataTypeApplyFromTextV

func InternalDataTypeApplyFromTextV(buf string, data_type DataType, p_data uintptr, format string, p_data_when_empty uintptr) bool

InternalDataTypeApplyFromTextV parameter default value hint: p_data_when_empty: NULL

func InternalDataTypeApplyOp

func InternalDataTypeApplyOp(data_type DataType, op int32, output, arg_1, arg_2 uintptr)

func InternalDataTypeClamp

func InternalDataTypeClamp(data_type DataType, p_data, p_min, p_max uintptr) bool

func InternalDataTypeCompare

func InternalDataTypeCompare(data_type DataType, arg_1, arg_2 uintptr) int32

func InternalDataTypeFormatString

func InternalDataTypeFormatString(buf string, buf_size int32, data_type DataType, p_data uintptr, format string) int32

func InternalDataTypeIsZero added in v1.1.0

func InternalDataTypeIsZero(data_type DataType, p_data uintptr) bool

func InternalDebugAllocHook

func InternalDebugAllocHook(info *DebugAllocInfo, frame_count int32, ptr uintptr, size uint64)

size >= 0 : alloc, size = -1 : free

func InternalDebugBreakButton

func InternalDebugBreakButton(label, description_of_location string) bool

func InternalDebugBreakButtonTooltip

func InternalDebugBreakButtonTooltip(keyboard_only bool, description_of_location string)

func InternalDebugBreakClearData

func InternalDebugBreakClearData()

func InternalDebugDrawCursorPos

func InternalDebugDrawCursorPos()

func InternalDebugDrawCursorPosV

func InternalDebugDrawCursorPosV(col uint32)

InternalDebugDrawCursorPosV parameter default value hint: col: 4278190335

func InternalDebugDrawItemRect

func InternalDebugDrawItemRect()

func InternalDebugDrawItemRectV

func InternalDebugDrawItemRectV(col uint32)

InternalDebugDrawItemRectV parameter default value hint: col: 4278190335

func InternalDebugDrawLineExtents

func InternalDebugDrawLineExtents()

func InternalDebugDrawLineExtentsV

func InternalDebugDrawLineExtentsV(col uint32)

InternalDebugDrawLineExtentsV parameter default value hint: col: 4278190335

func InternalDebugHookIdInfo

func InternalDebugHookIdInfo(id ID, data_type DataType, data_id, data_id_end uintptr)

func InternalDebugLocateItem

func InternalDebugLocateItem(target_id ID)

Call sparingly: only 1 at the same time!

func InternalDebugLocateItemOnHover

func InternalDebugLocateItemOnHover(target_id ID)

Only call on reaction to a mouse Hover: because only 1 at the same time!

func InternalDebugLocateItemResolveWithLastItem

func InternalDebugLocateItemResolveWithLastItem()

func InternalDebugNodeColumns

func InternalDebugNodeColumns(columns *OldColumns)

func InternalDebugNodeDockNode

func InternalDebugNodeDockNode(node *DockNode, label string)

func InternalDebugNodeDrawCmdShowMeshAndBoundingBox

func InternalDebugNodeDrawCmdShowMeshAndBoundingBox(out_draw_list, draw_list *DrawList, draw_cmd *DrawCmd, show_mesh, show_aabb bool)

func InternalDebugNodeDrawList

func InternalDebugNodeDrawList(window *Window, viewport *ViewportP, draw_list *DrawList, label string)

func InternalDebugNodeFont

func InternalDebugNodeFont(font *Font)

func InternalDebugNodeFontGlyph

func InternalDebugNodeFontGlyph(font *Font, glyph *FontGlyph)

func InternalDebugNodeInputTextState

func InternalDebugNodeInputTextState(state *InputTextState)

func InternalDebugNodeMultiSelectState

func InternalDebugNodeMultiSelectState(state *MultiSelectState)

func InternalDebugNodePlatformMonitor

func InternalDebugNodePlatformMonitor(monitor *PlatformMonitor, label string, idx int32)

func InternalDebugNodeStorage

func InternalDebugNodeStorage(storage *Storage, label string)

func InternalDebugNodeTabBar

func InternalDebugNodeTabBar(tab_bar *TabBar, label string)

func InternalDebugNodeTable

func InternalDebugNodeTable(table *Table)

func InternalDebugNodeTableSettings

func InternalDebugNodeTableSettings(settings *TableSettings)

func InternalDebugNodeTypingSelectState

func InternalDebugNodeTypingSelectState(state *TypingSelectState)

func InternalDebugNodeViewport

func InternalDebugNodeViewport(viewport *ViewportP)

func InternalDebugNodeWindow

func InternalDebugNodeWindow(window *Window, label string)

func InternalDebugNodeWindowSettings

func InternalDebugNodeWindowSettings(settings *WindowSettings)

func InternalDebugRenderKeyboardPreview

func InternalDebugRenderKeyboardPreview(draw_list *DrawList)

func InternalDebugRenderViewportThumbnail

func InternalDebugRenderViewportThumbnail(draw_list *DrawList, viewport *ViewportP, bb Rect)

func InternalDebugTextUnformattedWithLocateItem

func InternalDebugTextUnformattedWithLocateItem(line_begin, line_end string)

func InternalDestroyPlatformWindow

func InternalDestroyPlatformWindow(viewport *ViewportP)

func InternalDockBuilderCopyWindowSettings

func InternalDockBuilderCopyWindowSettings(src_name, dst_name string)

func InternalDockBuilderDockWindow

func InternalDockBuilderDockWindow(window_name string, node_id ID)

func InternalDockBuilderFinish

func InternalDockBuilderFinish(node_id ID)

func InternalDockBuilderRemoveNode

func InternalDockBuilderRemoveNode(node_id ID)

Remove node and all its child, undock all windows

func InternalDockBuilderRemoveNodeChildNodes

func InternalDockBuilderRemoveNodeChildNodes(node_id ID)

Remove all split/hierarchy. All remaining docked windows will be re-docked to the remaining root node (node_id).

func InternalDockBuilderRemoveNodeDockedWindows

func InternalDockBuilderRemoveNodeDockedWindows(node_id ID)

func InternalDockBuilderRemoveNodeDockedWindowsV

func InternalDockBuilderRemoveNodeDockedWindowsV(node_id ID, clear_settings_refs bool)

InternalDockBuilderRemoveNodeDockedWindowsV parameter default value hint: clear_settings_refs: true

func InternalDockBuilderSetNodePos

func InternalDockBuilderSetNodePos(node_id ID, pos Vec2)

func InternalDockBuilderSetNodeSize

func InternalDockBuilderSetNodeSize(node_id ID, size Vec2)

func InternalDockContextCalcDropPosForDocking

func InternalDockContextCalcDropPosForDocking(target *Window, target_node *DockNode, payload_window *Window, payload_node *DockNode, split_dir Dir, split_outer bool, out_pos *Vec2) bool

func InternalDockContextClearNodes

func InternalDockContextClearNodes(ctx *Context, root_id ID, clear_settings_refs bool)

Use root_id==0 to clear all

func InternalDockContextEndFrame

func InternalDockContextEndFrame(ctx *Context)

func InternalDockContextInitialize

func InternalDockContextInitialize(ctx *Context)

func InternalDockContextNewFrameUpdateDocking

func InternalDockContextNewFrameUpdateDocking(ctx *Context)

func InternalDockContextNewFrameUpdateUndocking

func InternalDockContextNewFrameUpdateUndocking(ctx *Context)

func InternalDockContextProcessUndockNode

func InternalDockContextProcessUndockNode(ctx *Context, node *DockNode)

func InternalDockContextProcessUndockWindow

func InternalDockContextProcessUndockWindow(ctx *Context, window *Window)

func InternalDockContextProcessUndockWindowV

func InternalDockContextProcessUndockWindowV(ctx *Context, window *Window, clear_persistent_docking_ref bool)

InternalDockContextProcessUndockWindowV parameter default value hint: clear_persistent_docking_ref: true

func InternalDockContextQueueDock

func InternalDockContextQueueDock(ctx *Context, target *Window, target_node *DockNode, payload *Window, split_dir Dir, split_ratio float32, split_outer bool)

func InternalDockContextQueueUndockNode

func InternalDockContextQueueUndockNode(ctx *Context, node *DockNode)

func InternalDockContextQueueUndockWindow

func InternalDockContextQueueUndockWindow(ctx *Context, window *Window)

func InternalDockContextRebuildNodes

func InternalDockContextRebuildNodes(ctx *Context)

func InternalDockContextShutdown

func InternalDockContextShutdown(ctx *Context)

func InternalDockNodeBeginAmendTabBar

func InternalDockNodeBeginAmendTabBar(node *DockNode) bool

func InternalDockNodeEndAmendTabBar

func InternalDockNodeEndAmendTabBar()

func InternalDockNodeGetDepth

func InternalDockNodeGetDepth(node *DockNode) int32

func InternalDockNodeIsInHierarchyOf

func InternalDockNodeIsInHierarchyOf(node, parent *DockNode) bool

func InternalDockNodeWindowMenuHandlerDefault

func InternalDockNodeWindowMenuHandlerDefault(ctx *Context, node *DockNode, tab_bar *TabBar)

func InternalDragBehavior

func InternalDragBehavior(id ID, data_type DataType, p_v uintptr, v_speed float32, p_min, p_max uintptr, format string, flags SliderFlags) bool

func InternalEndBoxSelect

func InternalEndBoxSelect(scope_rect Rect, ms_flags MultiSelectFlags)

func InternalEndColumns

func InternalEndColumns()

close columns

func InternalEndComboPreview

func InternalEndComboPreview()

func InternalEndDisabledOverrideReenable

func InternalEndDisabledOverrideReenable()

func InternalEndErrorTooltip added in v1.1.0

func InternalEndErrorTooltip()

func InternalErrorCheckEndFrameFinalizeErrorTooltip added in v1.1.0

func InternalErrorCheckEndFrameFinalizeErrorTooltip()

func InternalErrorCheckUsingSetCursorPosToExtendParentBoundaries

func InternalErrorCheckUsingSetCursorPosToExtendParentBoundaries()

func InternalErrorLog added in v1.1.0

func InternalErrorLog(msg string) bool

func InternalErrorRecoveryStoreState added in v1.1.0

func InternalErrorRecoveryStoreState(state_out *ErrorRecoveryState)

func InternalErrorRecoveryTryToRecoverState added in v1.1.0

func InternalErrorRecoveryTryToRecoverState(state_in *ErrorRecoveryState)

func InternalErrorRecoveryTryToRecoverWindowState added in v1.1.0

func InternalErrorRecoveryTryToRecoverWindowState(state_in *ErrorRecoveryState)

func InternalFindRenderedTextEnd

func InternalFindRenderedTextEnd(text string) string

func InternalFindRenderedTextEndV

func InternalFindRenderedTextEndV(text string) string

Find the optional ## from which we stop displaying text. InternalFindRenderedTextEndV parameter default value hint:

func InternalFindWindowDisplayIndex

func InternalFindWindowDisplayIndex(window *Window) int32

func InternalFocusItem

func InternalFocusItem()

Focus last item (no selection/activation).

func InternalFocusTopMostWindowUnderOne

func InternalFocusTopMostWindowUnderOne(under_this_window, ignore_window *Window, filter_viewport *Viewport, flags FocusRequestFlags)

func InternalFocusWindow

func InternalFocusWindow(window *Window)

func InternalFocusWindowV

func InternalFocusWindowV(window *Window, flags FocusRequestFlags)

InternalFocusWindowV parameter default value hint: flags: 0

func InternalGcAwakeTransientWindowBuffers

func InternalGcAwakeTransientWindowBuffers(window *Window)

func InternalGcCompactTransientMiscBuffers

func InternalGcCompactTransientMiscBuffers()

func InternalGcCompactTransientWindowBuffers

func InternalGcCompactTransientWindowBuffers(window *Window)

func InternalImAbsDouble

func InternalImAbsDouble(x float64) float64

func InternalImAbsFloat

func InternalImAbsFloat(x float32) float32

func InternalImAbsInt

func InternalImAbsInt(x int32) int32

func InternalImAlphaBlendColors

func InternalImAlphaBlendColors(col_a, col_b uint32) uint32

func InternalImBitArrayClearAllBits

func InternalImBitArrayClearAllBits(arr *uint32, bitcount int32)

func InternalImBitArrayClearBit

func InternalImBitArrayClearBit(arr *uint32, n int32)

func InternalImBitArrayGetStorageSizeInBytes

func InternalImBitArrayGetStorageSizeInBytes(bitcount int32) uint64

func InternalImBitArraySetBit

func InternalImBitArraySetBit(arr *uint32, n int32)

func InternalImBitArraySetBitRange

func InternalImBitArraySetBitRange(arr *uint32, n, n2 int32)

func InternalImBitArrayTestBit

func InternalImBitArrayTestBit(arr *uint32, n int32) bool

func InternalImCharIsBlankA

func InternalImCharIsBlankA(c rune) bool

func InternalImCharIsBlankW

func InternalImCharIsBlankW(c uint32) bool

func InternalImCharIsXdigitA

func InternalImCharIsXdigitA(c rune) bool

func InternalImDot

func InternalImDot(a, b Vec2) float32

func InternalImExponentialMovingAverage

func InternalImExponentialMovingAverage(avg, sample float32, n int32) float32

func InternalImFileLoadToMemory

func InternalImFileLoadToMemory(filename, mode string) uintptr

func InternalImFileLoadToMemoryV

func InternalImFileLoadToMemoryV(filename, mode string, out_file_size *uint64, padding_bytes int32) uintptr

InternalImFileLoadToMemoryV parameter default value hint: out_file_size: NULL padding_bytes: 0

func InternalImFloorFloat

func InternalImFloorFloat(f float32) float32

Decent replacement for floorf()

func InternalImFontAtlasBuildFinish

func InternalImFontAtlasBuildFinish(atlas *FontAtlas)

func InternalImFontAtlasBuildInit

func InternalImFontAtlasBuildInit(atlas *FontAtlas)

func InternalImFontAtlasBuildMultiplyCalcLookupTable

func InternalImFontAtlasBuildMultiplyCalcLookupTable(out_table *[256]uint, in_multiply_factor float32)

func InternalImFontAtlasBuildMultiplyRectAlpha8 added in v1.2.0

func InternalImFontAtlasBuildMultiplyRectAlpha8(table *[256]uint, pixels *uint, x, y, w, h, stride int32)

func InternalImFontAtlasBuildPackCustomRects

func InternalImFontAtlasBuildPackCustomRects(atlas *FontAtlas, stbrp_context_opaque uintptr)

func InternalImFontAtlasBuildRender32bppRectFromString

func InternalImFontAtlasBuildRender32bppRectFromString(atlas *FontAtlas, x, y, w, h int32, in_str string, in_marker_char rune, in_marker_pixel_value uint32)

func InternalImFontAtlasBuildRender8bppRectFromString

func InternalImFontAtlasBuildRender8bppRectFromString(atlas *FontAtlas, x, y, w, h int32, in_str string, in_marker_char rune, in_marker_pixel_value uint)

func InternalImFontAtlasBuildSetupFont

func InternalImFontAtlasBuildSetupFont(atlas *FontAtlas, font *Font, font_config *FontConfig, ascent, descent float32)

func InternalImFontAtlasUpdateConfigDataPointers

func InternalImFontAtlasUpdateConfigDataPointers(atlas *FontAtlas)

func InternalImFormatString

func InternalImFormatString(buf string, buf_size uint64, fmt string) int32

func InternalImFormatStringToTempBuffer

func InternalImFormatStringToTempBuffer(out_buf, out_buf_end []string, fmt string)

func InternalImInvLength

func InternalImInvLength(lhs Vec2, fail_value float32) float32

func InternalImIsFloatAboveGuaranteedIntegerPrecision

func InternalImIsFloatAboveGuaranteedIntegerPrecision(f float32) bool

func InternalImIsPowerOfTwoInt

func InternalImIsPowerOfTwoInt(v int32) bool

func InternalImIsPowerOfTwoU64

func InternalImIsPowerOfTwoU64(v uint64) bool

func InternalImLengthSqrVec2

func InternalImLengthSqrVec2(lhs Vec2) float32

func InternalImLengthSqrVec4

func InternalImLengthSqrVec4(lhs Vec4) float32

func InternalImLinearRemapClamp

func InternalImLinearRemapClamp(s0, s1, d0, d1, x float32) float32

func InternalImLinearSweep

func InternalImLinearSweep(current, target, speed float32) float32

func InternalImLogDouble

func InternalImLogDouble(x float64) float64

func InternalImLogFloat

func InternalImLogFloat(x float32) float32

DragBehaviorT/SliderBehaviorT uses ImLog with either float/double and need the precision

func InternalImModPositive

func InternalImModPositive(a, b int32) int32

func InternalImParseFormatFindEnd

func InternalImParseFormatFindEnd(format string) string

func InternalImParseFormatFindStart

func InternalImParseFormatFindStart(format string) string

func InternalImParseFormatPrecision

func InternalImParseFormatPrecision(format string, default_value int32) int32

func InternalImParseFormatSanitizeForPrinting

func InternalImParseFormatSanitizeForPrinting(fmt_in, fmt_out string, fmt_out_size uint64)

func InternalImParseFormatSanitizeForScanning

func InternalImParseFormatSanitizeForScanning(fmt_in, fmt_out string, fmt_out_size uint64) string

func InternalImParseFormatTrimDecorations

func InternalImParseFormatTrimDecorations(format, buf string, buf_size uint64) string

func InternalImPowDouble

func InternalImPowDouble(x, y float64) float64

func InternalImPowFloat

func InternalImPowFloat(x, y float32) float32

DragBehaviorT/SliderBehaviorT uses ImPow with either float/double and need the precision

func InternalImRsqrtDouble

func InternalImRsqrtDouble(x float64) float64

func InternalImRsqrtFloat

func InternalImRsqrtFloat(x float32) float32

func InternalImSaturate

func InternalImSaturate(f float32) float32

func InternalImSignDouble

func InternalImSignDouble(x float64) float64

func InternalImSignFloat

func InternalImSignFloat(x float32) float32

Sign operator - returns -1, 0 or 1 based on sign of argument

func InternalImStrSkipBlank

func InternalImStrSkipBlank(str string) string

Find first non-blank character.

func InternalImStrTrimBlanks

func InternalImStrTrimBlanks(str string)

Remove leading and trailing blanks from a buffer.

func InternalImStrbol

func InternalImStrbol(buf_mid_line, buf_begin string) string

Find beginning-of-line

func InternalImStrchrRange

func InternalImStrchrRange(str_begin, str_end string, c rune) string

Find first occurrence of 'c' in string range.

func InternalImStrdup

func InternalImStrdup(str string) string

Duplicate a string.

func InternalImStrdupcpy

func InternalImStrdupcpy(dst string, p_dst_size *uint64, str string) string

Copy in provided buffer, recreate buffer if needed.

func InternalImStreolRange

func InternalImStreolRange(str, str_end string) string

End end-of-line

func InternalImStricmp

func InternalImStricmp(str1, str2 string) int32

Case insensitive compare.

func InternalImStristr

func InternalImStristr(haystack, haystack_end, needle, needle_end string) string

Find a substring in a string range.

func InternalImStrlenW

func InternalImStrlenW(str *Wchar) int32

Computer string length (ImWchar string)

func InternalImStrncpy

func InternalImStrncpy(dst, src string, count uint64)

Copy to a certain count and always zero terminate (strncpy doesn't).

func InternalImStrnicmp

func InternalImStrnicmp(str1, str2 string, count uint64) int32

Case insensitive compare to a certain count.

func InternalImTextCharFromUtf8

func InternalImTextCharFromUtf8(out_char *uint32, in_text, in_text_end string) int32

read one character. return input UTF-8 bytes count

func InternalImTextCharToUtf8

func InternalImTextCharToUtf8(out_buf *[5]rune, c uint32) string

return out_buf

func InternalImTextCountCharsFromUtf8

func InternalImTextCountCharsFromUtf8(in_text, in_text_end string) int32

return number of UTF-8 code-points (NOT bytes count)

func InternalImTextCountLines

func InternalImTextCountLines(in_text, in_text_end string) int32

return number of lines taken by text. trailing carriage return doesn't count as an extra line.

func InternalImTextCountUtf8BytesFromChar

func InternalImTextCountUtf8BytesFromChar(in_text, in_text_end string) int32

return number of bytes to express one char in UTF-8

func InternalImTextCountUtf8BytesFromStr

func InternalImTextCountUtf8BytesFromStr(in_text, in_text_end *Wchar) int32

return number of bytes to express string in UTF-8

func InternalImTextFindPreviousUtf8Codepoint

func InternalImTextFindPreviousUtf8Codepoint(in_text_start, in_text_curr string) string

return previous UTF-8 code-point.

func InternalImTextStrFromUtf8

func InternalImTextStrFromUtf8(out_buf *Wchar, out_buf_size int32, in_text, in_text_end string) int32

func InternalImTextStrFromUtf8V

func InternalImTextStrFromUtf8V(out_buf *Wchar, out_buf_size int32, in_text, in_text_end string, in_remaining []string) int32

return input UTF-8 bytes count InternalImTextStrFromUtf8V parameter default value hint: in_remaining: NULL

func InternalImTextStrToUtf8

func InternalImTextStrToUtf8(out_buf string, out_buf_size int32, in_text, in_text_end *Wchar) int32

return output UTF-8 bytes count

func InternalImToUpper

func InternalImToUpper(c rune) rune

func InternalImTriangleArea

func InternalImTriangleArea(a, b, c Vec2) float32

func InternalImTriangleBarycentricCoords

func InternalImTriangleBarycentricCoords(a, b, c, p Vec2, out_u, out_v, out_w *float32)

func InternalImTriangleContainsPoint

func InternalImTriangleContainsPoint(a, b, c, p Vec2) bool

func InternalImTriangleIsClockwise

func InternalImTriangleIsClockwise(a, b, c Vec2) bool

func InternalImTruncFloat

func InternalImTruncFloat(f float32) float32

func InternalImUpperPowerOfTwo

func InternalImUpperPowerOfTwo(v int32) int32

func InternalImageButtonEx

func InternalImageButtonEx(id ID, texture_id TextureID, image_size, uv0, uv1 Vec2, bg_col, tint_col Vec4) bool

func InternalImageButtonExV

func InternalImageButtonExV(id ID, texture_id TextureID, image_size, uv0, uv1 Vec2, bg_col, tint_col Vec4, flags ButtonFlags) bool

InternalImageButtonExV parameter default value hint: flags: 0

func InternalInitialize

func InternalInitialize()

func InternalInputTextDeactivateHook

func InternalInputTextDeactivateHook(id ID)

func InternalInputTextEx

func InternalInputTextEx(label, hint, buf string, buf_size int32, size_arg Vec2, flags InputTextFlags) bool

func InternalIsActiveIdUsingNavDir

func InternalIsActiveIdUsingNavDir(dir Dir) bool

func InternalIsAliasKey

func InternalIsAliasKey(key Key) bool

func InternalIsClippedEx

func InternalIsClippedEx(bb Rect, id ID) bool

func InternalIsDragDropActive

func InternalIsDragDropActive() bool

func InternalIsDragDropPayloadBeingAccepted

func InternalIsDragDropPayloadBeingAccepted() bool

func InternalIsGamepadKey

func InternalIsGamepadKey(key Key) bool

func InternalIsKeyChordPressedInputFlags

func InternalIsKeyChordPressedInputFlags(key_chord KeyChord, flags InputFlags) bool

func InternalIsKeyChordPressedInputFlagsV

func InternalIsKeyChordPressedInputFlagsV(key_chord KeyChord, flags InputFlags, owner_id ID) bool

InternalIsKeyChordPressedInputFlagsV parameter default value hint: owner_id: 0

func InternalIsKeyDownID

func InternalIsKeyDownID(key Key, owner_id ID) bool

func InternalIsKeyPressedInputFlags

func InternalIsKeyPressedInputFlags(key Key, flags InputFlags) bool

func InternalIsKeyPressedInputFlagsV

func InternalIsKeyPressedInputFlagsV(key Key, flags InputFlags, owner_id ID) bool

Important: when transitioning from old to new IsKeyPressed(): old API has "bool repeat = true", so would default to repeat. New API requiress explicit ImGuiInputFlags_Repeat. InternalIsKeyPressedInputFlagsV parameter default value hint: owner_id: 0

func InternalIsKeyReleasedID

func InternalIsKeyReleasedID(key Key, owner_id ID) bool

func InternalIsKeyboardKey

func InternalIsKeyboardKey(key Key) bool

func InternalIsLRModKey

func InternalIsLRModKey(key Key) bool

func InternalIsLegacyKey

func InternalIsLegacyKey(key Key) bool

func InternalIsMouseClickedInputFlags

func InternalIsMouseClickedInputFlags(button MouseButton, flags InputFlags) bool

func InternalIsMouseClickedInputFlagsV

func InternalIsMouseClickedInputFlagsV(button MouseButton, flags InputFlags, owner_id ID) bool

InternalIsMouseClickedInputFlagsV parameter default value hint: owner_id: 0

func InternalIsMouseDoubleClickedID

func InternalIsMouseDoubleClickedID(button MouseButton, owner_id ID) bool

func InternalIsMouseDownID

func InternalIsMouseDownID(button MouseButton, owner_id ID) bool

func InternalIsMouseDragPastThreshold

func InternalIsMouseDragPastThreshold(button MouseButton) bool

func InternalIsMouseDragPastThresholdV

func InternalIsMouseDragPastThresholdV(button MouseButton, lock_threshold float32) bool

InternalIsMouseDragPastThresholdV parameter default value hint: lock_threshold: -1.0f

func InternalIsMouseKey

func InternalIsMouseKey(key Key) bool

func InternalIsMouseReleasedID

func InternalIsMouseReleasedID(button MouseButton, owner_id ID) bool

func InternalIsNamedKey

func InternalIsNamedKey(key Key) bool

func InternalIsNamedKeyOrMod

func InternalIsNamedKeyOrMod(key Key) bool

func InternalIsPopupOpenID

func InternalIsPopupOpenID(id ID, popup_flags PopupFlags) bool

func InternalIsWindowAbove

func InternalIsWindowAbove(potential_above, potential_below *Window) bool

func InternalIsWindowChildOf

func InternalIsWindowChildOf(window, potential_parent *Window, popup_hierarchy, dock_hierarchy bool) bool

func InternalIsWindowContentHoverable

func InternalIsWindowContentHoverable(window *Window) bool

func InternalIsWindowContentHoverableV

func InternalIsWindowContentHoverableV(window *Window, flags HoveredFlags) bool

InternalIsWindowContentHoverableV parameter default value hint: flags: 0

func InternalIsWindowNavFocusable

func InternalIsWindowNavFocusable(window *Window) bool

func InternalIsWindowWithinBeginStackOf

func InternalIsWindowWithinBeginStackOf(window, potential_parent *Window) bool

func InternalItemAdd

func InternalItemAdd(bb Rect, id ID) bool

func InternalItemAddV

func InternalItemAddV(bb Rect, id ID, nav_bb *Rect, extra_flags ItemFlags) bool

InternalItemAddV parameter default value hint: nav_bb: NULL extra_flags: 0

func InternalItemHoverable

func InternalItemHoverable(bb Rect, id ID, item_flags ItemFlags) bool

func InternalItemSizeRect

func InternalItemSizeRect(bb Rect)

func InternalItemSizeRectV

func InternalItemSizeRectV(bb Rect, text_baseline_y float32)

FIXME: This is a misleading API since we expect CursorPos to be bb.Min. InternalItemSizeRectV parameter default value hint: text_baseline_y: -1.0f

func InternalItemSizeVec2

func InternalItemSizeVec2(size Vec2)

func InternalItemSizeVec2V

func InternalItemSizeVec2V(size Vec2, text_baseline_y float32)

InternalItemSizeVec2V parameter default value hint: text_baseline_y: -1.0f

func InternalKeepAliveID

func InternalKeepAliveID(id ID)

func InternalKeyChordName

func InternalKeyChordName(key_chord KeyChord) string

func InternalLocalizeGetMsg

func InternalLocalizeGetMsg(key LocKey) string

func InternalLocalizeRegisterEntries

func InternalLocalizeRegisterEntries(entries *LocEntry, count int32)

func InternalLogBegin

func InternalLogBegin(typeArg LogType, auto_open_depth int32)

-> BeginCapture() when we design v2 api, for now stay under the radar by using the old name.

func InternalLogRenderedText

func InternalLogRenderedText(ref_pos *Vec2, text string)

func InternalLogRenderedTextV

func InternalLogRenderedTextV(ref_pos *Vec2, text string)

InternalLogRenderedTextV parameter default value hint:

func InternalLogSetNextTextDecoration

func InternalLogSetNextTextDecoration(prefix, suffix string)

func InternalLogToBuffer

func InternalLogToBuffer()

func InternalLogToBufferV

func InternalLogToBufferV(auto_open_depth int32)

Start logging/capturing to internal buffer InternalLogToBufferV parameter default value hint: auto_open_depth: -1

func InternalMarkIniSettingsDirty

func InternalMarkIniSettingsDirty()

func InternalMarkIniSettingsDirtyWindowPtr

func InternalMarkIniSettingsDirtyWindowPtr(window *Window)

func InternalMarkItemEdited

func InternalMarkItemEdited(id ID)

Mark data associated to given item as "edited", used by IsItemDeactivatedAfterEdit() function.

func InternalMenuItemEx

func InternalMenuItemEx(label, icon string) bool

func InternalMenuItemExV

func InternalMenuItemExV(label, icon, shortcut string, selected, enabled bool) bool

InternalMenuItemExV parameter default value hint: shortcut: NULL selected: false enabled: true

func InternalMultiSelectAddSetAll

func InternalMultiSelectAddSetAll(ms *MultiSelectTempData, selected bool)

func InternalMultiSelectAddSetRange

func InternalMultiSelectAddSetRange(ms *MultiSelectTempData, selected bool, range_dir int32, first_item, last_item SelectionUserData)

func InternalMultiSelectItemFooter

func InternalMultiSelectItemFooter(id ID, p_selected, p_pressed *bool)

func InternalMultiSelectItemHeader added in v1.2.0

func InternalMultiSelectItemHeader(id ID, p_selected *bool, p_button_flags *ButtonFlags)

func InternalNavClearPreferredPosForAxis

func InternalNavClearPreferredPosForAxis(axis Axis)

func InternalNavHighlightActivated

func InternalNavHighlightActivated(id ID)

func InternalNavInitRequestApplyResult

func InternalNavInitRequestApplyResult()

func InternalNavInitWindow

func InternalNavInitWindow(window *Window, force_reinit bool)

func InternalNavMoveRequestApplyResult

func InternalNavMoveRequestApplyResult()

func InternalNavMoveRequestButNoResultYet

func InternalNavMoveRequestButNoResultYet() bool

func InternalNavMoveRequestCancel

func InternalNavMoveRequestCancel()

func InternalNavMoveRequestForward

func InternalNavMoveRequestForward(move_dir, clip_dir Dir, move_flags NavMoveFlags, scroll_flags ScrollFlags)

func InternalNavMoveRequestResolveWithLastItem

func InternalNavMoveRequestResolveWithLastItem(result *NavItemData)

func InternalNavMoveRequestResolveWithPastTreeNode

func InternalNavMoveRequestResolveWithPastTreeNode(result *NavItemData, tree_node_data *TreeNodeStackData)

func InternalNavMoveRequestSubmit

func InternalNavMoveRequestSubmit(move_dir, clip_dir Dir, move_flags NavMoveFlags, scroll_flags ScrollFlags)

func InternalNavMoveRequestTryWrapping

func InternalNavMoveRequestTryWrapping(window *Window, move_flags NavMoveFlags)

func InternalNavTweakPressedAmount

func InternalNavTweakPressedAmount(axis Axis) float32

func InternalNavUpdateCurrentWindowIsScrollPushableX

func InternalNavUpdateCurrentWindowIsScrollPushableX()

func InternalOpenPopupEx

func InternalOpenPopupEx(id ID)

func InternalOpenPopupExV

func InternalOpenPopupExV(id ID, popup_flags PopupFlags)

InternalOpenPopupExV parameter default value hint: popup_flags: ImGuiPopupFlags_None

func InternalPopColumnsBackground

func InternalPopColumnsBackground()

func InternalPopFocusScope

func InternalPopFocusScope()

func InternalPushColumnClipRect

func InternalPushColumnClipRect(column_index int32)

func InternalPushColumnsBackground

func InternalPushColumnsBackground()

func InternalPushFocusScope

func InternalPushFocusScope(id ID)

func InternalPushMultiItemsWidths

func InternalPushMultiItemsWidths(components int32, width_full float32)

func InternalPushOverrideID

func InternalPushOverrideID(id ID)

Push given value as-is at the top of the ID stack (whereas PushID combines old and new hashes)

func InternalRemoveContextHook

func InternalRemoveContextHook(context *Context, hook_to_remove ID)

func InternalRemoveSettingsHandler

func InternalRemoveSettingsHandler(type_name string)

func InternalRenderArrow

func InternalRenderArrow(draw_list *DrawList, pos Vec2, col uint32, dir Dir)

func InternalRenderArrowDockMenu

func InternalRenderArrowDockMenu(draw_list *DrawList, p_min Vec2, sz float32, col uint32)

func InternalRenderArrowPointingAt

func InternalRenderArrowPointingAt(draw_list *DrawList, pos, half_sz Vec2, direction Dir, col uint32)

func InternalRenderArrowV

func InternalRenderArrowV(draw_list *DrawList, pos Vec2, col uint32, dir Dir, scale float32)

InternalRenderArrowV parameter default value hint: scale: 1.0f

func InternalRenderBullet

func InternalRenderBullet(draw_list *DrawList, pos Vec2, col uint32)

func InternalRenderCheckMark

func InternalRenderCheckMark(draw_list *DrawList, pos Vec2, col uint32, sz float32)

func InternalRenderColorRectWithAlphaCheckerboard

func InternalRenderColorRectWithAlphaCheckerboard(draw_list *DrawList, p_min, p_max Vec2, fill_col uint32, grid_step float32, grid_off Vec2)

func InternalRenderColorRectWithAlphaCheckerboardV

func InternalRenderColorRectWithAlphaCheckerboardV(draw_list *DrawList, p_min, p_max Vec2, fill_col uint32, grid_step float32, grid_off Vec2, rounding float32, flags DrawFlags)

InternalRenderColorRectWithAlphaCheckerboardV parameter default value hint: rounding: 0.0f flags: 0

func InternalRenderDragDropTargetRect

func InternalRenderDragDropTargetRect(bb, item_clip_rect Rect)

func InternalRenderFrame

func InternalRenderFrame(p_min, p_max Vec2, fill_col uint32)

func InternalRenderFrameBorder

func InternalRenderFrameBorder(p_min, p_max Vec2)

func InternalRenderFrameBorderV

func InternalRenderFrameBorderV(p_min, p_max Vec2, rounding float32)

InternalRenderFrameBorderV parameter default value hint: rounding: 0.0f

func InternalRenderFrameV

func InternalRenderFrameV(p_min, p_max Vec2, fill_col uint32, borders bool, rounding float32)

InternalRenderFrameV parameter default value hint: borders: true rounding: 0.0f

func InternalRenderMouseCursor

func InternalRenderMouseCursor(pos Vec2, scale float32, mouse_cursor MouseCursor, col_fill, col_border, col_shadow uint32)

func InternalRenderNavCursor added in v1.1.0

func InternalRenderNavCursor(bb Rect, id ID)

func InternalRenderNavCursorV added in v1.1.0

func InternalRenderNavCursorV(bb Rect, id ID, flags NavRenderCursorFlags)

Navigation highlight InternalRenderNavCursorV parameter default value hint: flags: ImGuiNavRenderCursorFlags_None

func InternalRenderRectFilledRangeH

func InternalRenderRectFilledRangeH(draw_list *DrawList, rect Rect, col uint32, x_start_norm, x_end_norm, rounding float32)

func InternalRenderRectFilledWithHole

func InternalRenderRectFilledWithHole(draw_list *DrawList, outer, inner Rect, col uint32, rounding float32)

func InternalRenderText

func InternalRenderText(pos Vec2, text string)

func InternalRenderTextClipped

func InternalRenderTextClipped(pos_min, pos_max Vec2, text string, text_size_if_known *Vec2)

func InternalRenderTextClippedEx

func InternalRenderTextClippedEx(draw_list *DrawList, pos_min, pos_max Vec2, text string, text_size_if_known *Vec2)

func InternalRenderTextClippedExV

func InternalRenderTextClippedExV(draw_list *DrawList, pos_min, pos_max Vec2, text string, text_size_if_known *Vec2, align Vec2, clip_rect *Rect)

InternalRenderTextClippedExV parameter default value hint: align: ImVec2(0,0) clip_rect: NULL

func InternalRenderTextClippedV

func InternalRenderTextClippedV(pos_min, pos_max Vec2, text string, text_size_if_known *Vec2, align Vec2, clip_rect *Rect)

InternalRenderTextClippedV parameter default value hint: align: ImVec2(0,0) clip_rect: NULL

func InternalRenderTextEllipsis

func InternalRenderTextEllipsis(draw_list *DrawList, pos_min, pos_max Vec2, clip_max_x, ellipsis_max_x float32, text string, text_size_if_known *Vec2)

func InternalRenderTextV

func InternalRenderTextV(pos Vec2, text string, hide_text_after_hash bool)

InternalRenderTextV parameter default value hint: hide_text_after_hash: true

func InternalRenderTextWrapped

func InternalRenderTextWrapped(pos Vec2, text string, wrap_width float32)

func InternalScaleWindowsInViewport

func InternalScaleWindowsInViewport(viewport *ViewportP, scale float32)

func InternalScrollToBringRectIntoView

func InternalScrollToBringRectIntoView(window *Window, rect Rect)

func InternalScrollToItem

func InternalScrollToItem()

func InternalScrollToItemV

func InternalScrollToItemV(flags ScrollFlags)

InternalScrollToItemV parameter default value hint: flags: 0

func InternalScrollToRect

func InternalScrollToRect(window *Window, rect Rect)

func InternalScrollToRectV

func InternalScrollToRectV(window *Window, rect Rect, flags ScrollFlags)

InternalScrollToRectV parameter default value hint: flags: 0

func InternalScrollbar

func InternalScrollbar(axis Axis)

func InternalScrollbarEx

func InternalScrollbarEx(bb Rect, id ID, axis Axis, p_scroll_v *int64, avail_v, contents_v int64, flags DrawFlags) bool

func InternalSeparatorEx

func InternalSeparatorEx(flags SeparatorFlags)

func InternalSeparatorExV

func InternalSeparatorExV(flags SeparatorFlags, thickness float32)

InternalSeparatorExV parameter default value hint: thickness: 1.0f

func InternalSeparatorTextEx

func InternalSeparatorTextEx(id ID, label, label_end string, extra_width float32)

func InternalSetActiveID

func InternalSetActiveID(id ID, window *Window)

func InternalSetActiveIdUsingAllKeyboardKeys

func InternalSetActiveIdUsingAllKeyboardKeys()

func InternalSetCurrentFont

func InternalSetCurrentFont(font *Font)

func InternalSetCurrentViewport

func InternalSetCurrentViewport(window *Window, viewport *ViewportP)

func InternalSetFocusID

func InternalSetFocusID(id ID, window *Window)

func InternalSetHoveredID

func InternalSetHoveredID(id ID)

func InternalSetItemKeyOwnerInputFlags

func InternalSetItemKeyOwnerInputFlags(key Key, flags InputFlags)

Set key owner to last item if it is hovered or active. Equivalent to 'if (IsItemHovered() || IsItemActive()) SetKeyOwner(key, GetItemID());'.

func InternalSetKeyOwner

func InternalSetKeyOwner(key Key, owner_id ID)

func InternalSetKeyOwnerV

func InternalSetKeyOwnerV(key Key, owner_id ID, flags InputFlags)

InternalSetKeyOwnerV parameter default value hint: flags: 0

func InternalSetKeyOwnersForKeyChord

func InternalSetKeyOwnersForKeyChord(key KeyChord, owner_id ID)

func InternalSetKeyOwnersForKeyChordV

func InternalSetKeyOwnersForKeyChordV(key KeyChord, owner_id ID, flags InputFlags)

InternalSetKeyOwnersForKeyChordV parameter default value hint: flags: 0

func InternalSetLastItemData

func InternalSetLastItemData(item_id ID, in_flags ItemFlags, status_flags ItemStatusFlags, item_rect Rect)

func InternalSetNavCursorVisibleAfterMove added in v1.1.0

func InternalSetNavCursorVisibleAfterMove()

func InternalSetNavFocusScope

func InternalSetNavFocusScope(focus_scope_id ID)

func InternalSetNavID

func InternalSetNavID(id ID, nav_layer NavLayer, focus_scope_id ID, rect_rel Rect)

func InternalSetNavWindow

func InternalSetNavWindow(window *Window)

func InternalSetNextItemRefVal

func InternalSetNextItemRefVal(data_type DataType, p_data uintptr)

func InternalSetNextWindowRefreshPolicy

func InternalSetNextWindowRefreshPolicy(flags WindowRefreshFlags)

func InternalSetScrollFromPosXWindowPtr

func InternalSetScrollFromPosXWindowPtr(window *Window, local_x, center_x_ratio float32)

func InternalSetScrollFromPosYWindowPtr

func InternalSetScrollFromPosYWindowPtr(window *Window, local_y, center_y_ratio float32)

func InternalSetScrollXWindowPtr

func InternalSetScrollXWindowPtr(window *Window, scroll_x float32)

func InternalSetScrollYWindowPtr

func InternalSetScrollYWindowPtr(window *Window, scroll_y float32)

func InternalSetShortcutRouting

func InternalSetShortcutRouting(key_chord KeyChord, flags InputFlags, owner_id ID) bool

owner_id needs to be explicit and cannot be 0

func InternalSetWindowClipRectBeforeSetChannel

func InternalSetWindowClipRectBeforeSetChannel(window *Window, clip_rect Rect)

func InternalSetWindowCollapsedWindowPtr

func InternalSetWindowCollapsedWindowPtr(window *Window, collapsed bool)

func InternalSetWindowCollapsedWindowPtrV

func InternalSetWindowCollapsedWindowPtrV(window *Window, collapsed bool, cond Cond)

InternalSetWindowCollapsedWindowPtrV parameter default value hint: cond: 0

func InternalSetWindowDock

func InternalSetWindowDock(window *Window, dock_id ID, cond Cond)

func InternalSetWindowHiddenAndSkipItemsForCurrentFrame

func InternalSetWindowHiddenAndSkipItemsForCurrentFrame(window *Window)

func InternalSetWindowHitTestHole

func InternalSetWindowHitTestHole(window *Window, pos, size Vec2)

func InternalSetWindowParentWindowForFocusRoute

func InternalSetWindowParentWindowForFocusRoute(window, parent_window *Window)

You may also use SetNextWindowClass()'s FocusRouteParentWindowId field.

func InternalSetWindowPosWindowPtr

func InternalSetWindowPosWindowPtr(window *Window, pos Vec2)

func InternalSetWindowPosWindowPtrV

func InternalSetWindowPosWindowPtrV(window *Window, pos Vec2, cond Cond)

InternalSetWindowPosWindowPtrV parameter default value hint: cond: 0

func InternalSetWindowSizeWindowPtr

func InternalSetWindowSizeWindowPtr(window *Window, size Vec2)

func InternalSetWindowSizeWindowPtrV

func InternalSetWindowSizeWindowPtrV(window *Window, size Vec2, cond Cond)

InternalSetWindowSizeWindowPtrV parameter default value hint: cond: 0

func InternalSetWindowViewport

func InternalSetWindowViewport(window *Window, viewport *ViewportP)

func InternalShadeVertsLinearColorGradientKeepAlpha

func InternalShadeVertsLinearColorGradientKeepAlpha(draw_list *DrawList, vert_start_idx, vert_end_idx int32, gradient_p0, gradient_p1 Vec2, col0, col1 uint32)

func InternalShadeVertsLinearUV

func InternalShadeVertsLinearUV(draw_list *DrawList, vert_start_idx, vert_end_idx int32, a, b, uv_a, uv_b Vec2, clamp bool)

func InternalShadeVertsTransformPos

func InternalShadeVertsTransformPos(draw_list *DrawList, vert_start_idx, vert_end_idx int32, pivot_in Vec2, cos_a, sin_a float32, pivot_out Vec2)

func InternalShortcutID

func InternalShortcutID(key_chord KeyChord, flags InputFlags, owner_id ID) bool

func InternalShowFontAtlas

func InternalShowFontAtlas(atlas *FontAtlas)

func InternalShrinkWidths

func InternalShrinkWidths(items *ShrinkWidthItem, count int32, width_excess float32)

func InternalShutdown

func InternalShutdown()

Since 1.60 this is a _private_ function. You can call DestroyContext() to destroy the context created by CreateContext().

func InternalSliderBehavior

func InternalSliderBehavior(bb Rect, id ID, data_type DataType, p_v, p_min, p_max uintptr, format string, flags SliderFlags, out_grab_bb *Rect) bool

func InternalSplitterBehavior

func InternalSplitterBehavior(bb Rect, id ID, axis Axis, size1, size2 *float32, min_size1, min_size2 float32) bool

func InternalSplitterBehaviorV

func InternalSplitterBehaviorV(bb Rect, id ID, axis Axis, size1, size2 *float32, min_size1, min_size2, hover_extend, hover_visibility_delay float32, bg_col uint32) bool

InternalSplitterBehaviorV parameter default value hint: hover_extend: 0.0f hover_visibility_delay: 0.0f bg_col: 0

func InternalStartMouseMovingWindow

func InternalStartMouseMovingWindow(window *Window)

func InternalStartMouseMovingWindowOrNode

func InternalStartMouseMovingWindowOrNode(window *Window, node *DockNode, undock bool)

func InternalTabBarAddTab

func InternalTabBarAddTab(tab_bar *TabBar, tab_flags TabItemFlags, window *Window)

func InternalTabBarCloseTab

func InternalTabBarCloseTab(tab_bar *TabBar, tab *TabItem)

func InternalTabBarGetTabName

func InternalTabBarGetTabName(tab_bar *TabBar, tab *TabItem) string

func InternalTabBarGetTabOrder

func InternalTabBarGetTabOrder(tab_bar *TabBar, tab *TabItem) int32

func InternalTabBarProcessReorder

func InternalTabBarProcessReorder(tab_bar *TabBar) bool

func InternalTabBarQueueFocusStr added in v1.1.0

func InternalTabBarQueueFocusStr(tab_bar *TabBar, tab_name string)

func InternalTabBarQueueFocusTabItemPtr added in v1.1.0

func InternalTabBarQueueFocusTabItemPtr(tab_bar *TabBar, tab *TabItem)

func InternalTabBarQueueReorder

func InternalTabBarQueueReorder(tab_bar *TabBar, tab *TabItem, offset int32)

func InternalTabBarQueueReorderFromMousePos

func InternalTabBarQueueReorderFromMousePos(tab_bar *TabBar, tab *TabItem, mouse_pos Vec2)

func InternalTabBarRemoveTab

func InternalTabBarRemoveTab(tab_bar *TabBar, tab_id ID)

func InternalTabItemBackground

func InternalTabItemBackground(draw_list *DrawList, bb Rect, flags TabItemFlags, col uint32)

func InternalTabItemEx

func InternalTabItemEx(tab_bar *TabBar, label string, p_open *bool, flags TabItemFlags, docked_window *Window) bool

func InternalTabItemLabelAndCloseButton

func InternalTabItemLabelAndCloseButton(draw_list *DrawList, bb Rect, flags TabItemFlags, frame_padding Vec2, label string, tab_id, close_button_id ID, is_contents_visible bool, out_just_closed, out_text_clipped *bool)

func InternalTableAngledHeadersRowEx

func InternalTableAngledHeadersRowEx(row_id ID, angle, max_label_width float32, data *TableHeaderData, data_count int32)

func InternalTableBeginApplyRequests

func InternalTableBeginApplyRequests(table *Table)

func InternalTableBeginCell

func InternalTableBeginCell(table *Table, column_n int32)

func InternalTableBeginContextMenuPopup

func InternalTableBeginContextMenuPopup(table *Table) bool

func InternalTableBeginInitMemory

func InternalTableBeginInitMemory(table *Table, columns_count int32)

func InternalTableBeginRow

func InternalTableBeginRow(table *Table)

func InternalTableCalcMaxColumnWidth

func InternalTableCalcMaxColumnWidth(table *Table, column_n int32) float32

func InternalTableDrawBorders

func InternalTableDrawBorders(table *Table)

func InternalTableDrawDefaultContextMenu

func InternalTableDrawDefaultContextMenu(table *Table, flags_for_section_to_display TableFlags)

func InternalTableEndCell

func InternalTableEndCell(table *Table)

func InternalTableEndRow

func InternalTableEndRow(table *Table)

func InternalTableFixColumnSortDirection

func InternalTableFixColumnSortDirection(table *Table, column *TableColumn)

func InternalTableGcCompactSettings

func InternalTableGcCompactSettings()

func InternalTableGcCompactTransientBuffersTablePtr

func InternalTableGcCompactTransientBuffersTablePtr(table *Table)

func InternalTableGcCompactTransientBuffersTableTempDataPtr

func InternalTableGcCompactTransientBuffersTableTempDataPtr(table *TableTempData)

func InternalTableGetColumnNameTablePtr

func InternalTableGetColumnNameTablePtr(table *Table, column_n int32) string

func InternalTableGetColumnWidthAuto

func InternalTableGetColumnWidthAuto(table *Table, column *TableColumn) float32

func InternalTableGetHeaderAngledMaxLabelWidth

func InternalTableGetHeaderAngledMaxLabelWidth() float32

func InternalTableGetHeaderRowHeight

func InternalTableGetHeaderRowHeight() float32

func InternalTableGetHoveredRow

func InternalTableGetHoveredRow() int32

Retrieve *PREVIOUS FRAME* hovered row. This difference with TableGetHoveredColumn() is the reason why this is not public yet.

func InternalTableLoadSettings

func InternalTableLoadSettings(table *Table)

func InternalTableMergeDrawChannels

func InternalTableMergeDrawChannels(table *Table)

func InternalTableOpenContextMenu

func InternalTableOpenContextMenu()

func InternalTableOpenContextMenuV

func InternalTableOpenContextMenuV(column_n int32)

InternalTableOpenContextMenuV parameter default value hint: column_n: -1

func InternalTablePopBackgroundChannel

func InternalTablePopBackgroundChannel()

func InternalTablePushBackgroundChannel

func InternalTablePushBackgroundChannel()

func InternalTableRemove

func InternalTableRemove(table *Table)

func InternalTableResetSettings

func InternalTableResetSettings(table *Table)

func InternalTableSaveSettings

func InternalTableSaveSettings(table *Table)

func InternalTableSetColumnSortDirection

func InternalTableSetColumnSortDirection(column_n int32, sort_direction SortDirection, append_to_sort_specs bool)

func InternalTableSetColumnWidth

func InternalTableSetColumnWidth(column_n int32, width float32)

func InternalTableSetColumnWidthAutoAll

func InternalTableSetColumnWidthAutoAll(table *Table)

func InternalTableSetColumnWidthAutoSingle

func InternalTableSetColumnWidthAutoSingle(table *Table, column_n int32)

func InternalTableSettingsAddSettingsHandler

func InternalTableSettingsAddSettingsHandler()

func InternalTableSetupDrawChannels

func InternalTableSetupDrawChannels(table *Table)

func InternalTableSortSpecsBuild

func InternalTableSortSpecsBuild(table *Table)

func InternalTableSortSpecsSanitize

func InternalTableSortSpecsSanitize(table *Table)

func InternalTableUpdateBorders

func InternalTableUpdateBorders(table *Table)

func InternalTableUpdateColumnsWeightFromWidth

func InternalTableUpdateColumnsWeightFromWidth(table *Table)

func InternalTableUpdateLayout

func InternalTableUpdateLayout(table *Table)

func InternalTeleportMousePos

func InternalTeleportMousePos(pos Vec2)

func InternalTempInputIsActive

func InternalTempInputIsActive(id ID) bool

func InternalTempInputScalar

func InternalTempInputScalar(bb Rect, id ID, label string, data_type DataType, p_data uintptr, format string) bool

func InternalTempInputScalarV

func InternalTempInputScalarV(bb Rect, id ID, label string, data_type DataType, p_data uintptr, format string, p_clamp_min, p_clamp_max uintptr) bool

InternalTempInputScalarV parameter default value hint: p_clamp_min: NULL p_clamp_max: NULL

func InternalTempInputText

func InternalTempInputText(bb Rect, id ID, label, buf string, buf_size int32, flags InputTextFlags) bool

func InternalTestKeyOwner

func InternalTestKeyOwner(key Key, owner_id ID) bool

Test that key is either not owned, either owned by 'owner_id'

func InternalTestShortcutRouting

func InternalTestShortcutRouting(key_chord KeyChord, owner_id ID) bool

func InternalTextEx

func InternalTextEx(text string)

func InternalTextExV

func InternalTextExV(text string, flags TextFlags)

InternalTextExV parameter default value hint: flags: 0

func InternalTranslateWindowsInViewport

func InternalTranslateWindowsInViewport(viewport *ViewportP, old_pos, new_pos, old_size, new_size Vec2)

func InternalTreeNodeBehavior

func InternalTreeNodeBehavior(id ID, flags TreeNodeFlags, label string) bool

func InternalTreeNodeBehaviorV

func InternalTreeNodeBehaviorV(id ID, flags TreeNodeFlags, label, label_end string) bool

InternalTreeNodeBehaviorV parameter default value hint: label_end: NULL

func InternalTreeNodeGetOpen

func InternalTreeNodeGetOpen(storage_id ID) bool

func InternalTreeNodeSetOpen

func InternalTreeNodeSetOpen(storage_id ID, open bool)

func InternalTreeNodeUpdateNextOpen

func InternalTreeNodeUpdateNextOpen(storage_id ID, flags TreeNodeFlags) bool

Return open state. Consume previous SetNextItemOpen() data, if any. May return true when logging.

func InternalTreePushOverrideID

func InternalTreePushOverrideID(id ID)

func InternalTypematicRepeatRate

func InternalTypematicRepeatRate(flags InputFlags, repeat_delay, repeat_rate *float32)

func InternalUpdateHoveredWindowAndCaptureFlags

func InternalUpdateHoveredWindowAndCaptureFlags()

func InternalUpdateInputEvents

func InternalUpdateInputEvents(trickle_fast_inputs bool)

func InternalUpdateMouseMovingWindowEndFrame

func InternalUpdateMouseMovingWindowEndFrame()

func InternalUpdateMouseMovingWindowNewFrame

func InternalUpdateMouseMovingWindowNewFrame()
func InternalUpdateWindowParentAndRootLinks(window *Window, flags WindowFlags, parent_window *Window)

func InternalUpdateWindowSkipRefresh

func InternalUpdateWindowSkipRefresh(window *Window)

func InternalWindowAlwaysWantOwnTabBar

func InternalWindowAlwaysWantOwnTabBar(window *Window) bool

func InvisibleButton

func InvisibleButton(str_id string, size Vec2) bool

func InvisibleButtonV

func InvisibleButtonV(str_id string, size Vec2, flags ButtonFlags) bool

flexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.) InvisibleButtonV parameter default value hint: flags: 0

func IsAnyItemActive

func IsAnyItemActive() bool

is any item active?

func IsAnyItemFocused

func IsAnyItemFocused() bool

is any item focused?

func IsAnyItemHovered

func IsAnyItemHovered() bool

is any item hovered?

func IsAnyMouseDown

func IsAnyMouseDown() bool

[WILL OBSOLETE] is any mouse button held? This was designed for backends, but prefer having backend maintain a mask of held mouse buttons, because upcoming input queue system will make this invalid.

func IsItemActivated

func IsItemActivated() bool

was the last item just made active (item was previously inactive).

func IsItemActive

func IsItemActive() bool

is the last item active? (e.g. button being held, text field being edited. This will continuously return true while holding mouse button on an item. Items that don't interact will always return false)

func IsItemClicked

func IsItemClicked() bool

func IsItemClickedV

func IsItemClickedV(mouse_button MouseButton) bool

is the last item hovered and mouse clicked on? (**) == IsMouseClicked(mouse_button) && IsItemHovered()Important. (**) this is NOT equivalent to the behavior of e.g. Button(). Read comments in function definition. IsItemClickedV parameter default value hint: mouse_button: 0

func IsItemDeactivated

func IsItemDeactivated() bool

was the last item just made inactive (item was previously active). Useful for Undo/Redo patterns with widgets that require continuous editing.

func IsItemDeactivatedAfterEdit

func IsItemDeactivatedAfterEdit() bool

was the last item just made inactive and made a value change when it was active? (e.g. Slider/Drag moved). Useful for Undo/Redo patterns with widgets that require continuous editing. Note that you may get false positives (some widgets such as Combo()/ListBox()/Selectable() will return true even when clicking an already selected item).

func IsItemEdited

func IsItemEdited() bool

did the last item modify its underlying value this frame? or was pressed? This is generally the same as the "bool" return value of many widgets.

func IsItemFocused

func IsItemFocused() bool

is the last item focused for keyboard/gamepad navigation?

func IsItemHovered

func IsItemHovered() bool

func IsItemHoveredV

func IsItemHoveredV(flags HoveredFlags) bool

is the last item hovered? (and usable, aka not blocked by a popup, etc.). See ImGuiHoveredFlags for more options. IsItemHoveredV parameter default value hint: flags: 0

func IsItemToggledOpen

func IsItemToggledOpen() bool

was the last item open state toggled? set by TreeNode().

func IsItemToggledSelection

func IsItemToggledSelection() bool

Was the last item selection state toggled? Useful if you need the per-item information _before_ reaching EndMultiSelect(). We only returns toggle _event_ in order to handle clipping correctly.

func IsItemVisible

func IsItemVisible() bool

is the last item visible? (items may be out of sight because of clipping/scrolling)

func IsKeyChordPressed

func IsKeyChordPressed(key_chord KeyChord) bool

was key chord (mods + key) pressed, e.g. you can pass 'ImGuiMod_Ctrl | ImGuiKey_S' as a key-chord. This doesn't do any routing or focus check, please consider using Shortcut() function instead.

func IsKeyDown

func IsKeyDown(key Key) bool

is key being held.

func IsKeyPressedBool

func IsKeyPressedBool(key Key) bool

func IsKeyPressedBoolV

func IsKeyPressedBoolV(key Key, repeat bool) bool

was key pressed (went from !Down to Down)? if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate IsKeyPressedBoolV parameter default value hint: repeat: true

func IsKeyReleased

func IsKeyReleased(key Key) bool

was key released (went from Down to !Down)?

func IsMouseClickedBool

func IsMouseClickedBool(button MouseButton) bool

func IsMouseClickedBoolV

func IsMouseClickedBoolV(button MouseButton, repeat bool) bool

did mouse button clicked? (went from !Down to Down). Same as GetMouseClickedCount() == 1. IsMouseClickedBoolV parameter default value hint: repeat: false

func IsMouseDoubleClicked

func IsMouseDoubleClicked(button MouseButton) bool

did mouse button double-clicked? Same as GetMouseClickedCount() == 2. (note that a double-click will also report IsMouseClicked() == true)

func IsMouseDown

func IsMouseDown(button MouseButton) bool

is mouse button held?

func IsMouseDragging

func IsMouseDragging(button MouseButton) bool

func IsMouseDraggingV

func IsMouseDraggingV(button MouseButton, lock_threshold float32) bool

is mouse dragging? (uses io.MouseDraggingThreshold if lock_threshold < 0.0f) IsMouseDraggingV parameter default value hint: lock_threshold: -1.0f

func IsMouseHoveringRect

func IsMouseHoveringRect(r_min, r_max Vec2) bool

func IsMouseHoveringRectV

func IsMouseHoveringRectV(r_min, r_max Vec2, clip bool) bool

is mouse hovering given bounding rect (in screen space). clipped by current clipping settings, but disregarding of other consideration of focus/window ordering/popup-block. IsMouseHoveringRectV parameter default value hint: clip: true

func IsMousePosValid

func IsMousePosValid() bool

func IsMousePosValidV

func IsMousePosValidV(mouse_pos *Vec2) bool

by convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mouse available IsMousePosValidV parameter default value hint: mouse_pos: NULL

func IsMouseReleased

func IsMouseReleased(button MouseButton) bool

did mouse button released? (went from Down to !Down)

func IsPopupOpenStr

func IsPopupOpenStr(str_id string) bool

func IsPopupOpenStrV

func IsPopupOpenStrV(str_id string, flags PopupFlags) bool

return true if the popup is open. IsPopupOpenStrV parameter default value hint: flags: 0

func IsRectVisible

func IsRectVisible(size Vec2) bool

test if rectangle (of given size, starting from cursor position) is visible / not clipped.

func IsRectVisibleVec2

func IsRectVisibleVec2(rect_min, rect_max Vec2) bool

test if rectangle (in screen space) is visible / not clipped. to perform coarse clipping on user's side.

func IsWindowAppearing

func IsWindowAppearing() bool

func IsWindowCollapsed

func IsWindowCollapsed() bool

func IsWindowDocked

func IsWindowDocked() bool

is current window docked into another window?

func IsWindowFocused

func IsWindowFocused() bool

func IsWindowFocusedV

func IsWindowFocusedV(flags FocusedFlags) bool

is current window focused? or its root/child, depending on flags. see flags for options. IsWindowFocusedV parameter default value hint: flags: 0

func IsWindowHovered

func IsWindowHovered() bool

func IsWindowHoveredV

func IsWindowHoveredV(flags HoveredFlags) bool

is current window hovered and hoverable (e.g. not blocked by a popup/modal)? See ImGuiHoveredFlags_ for options. IMPORTANT: If you are trying to check whether your mouse should be dispatched to Dear ImGui or to your underlying app, you should not use this function! Use the 'io.WantCaptureMouse' boolean for that! Refer to FAQ entry "How can I tell whether to dispatch mouse/keyboard to Dear ImGui or my application?" for details. IsWindowHoveredV parameter default value hint: flags: 0

func KeyName

func KeyName(key Key) string

[DEBUG] returns English name of the key. Those names a provided for debugging purpose and are not meant to be saved persistently not compared.

func KeyPressedAmount

func KeyPressedAmount(key Key, repeat_delay, rate float32) int32

uses provided repeat rate/delay. return a count, most often 0 or 1 but might be >1 if RepeatRate is small enough that DeltaTime > RepeatRate

func LabelText

func LabelText(label, fmt string)

display text+label aligned the same way as value+label widgets

func ListBoxStrarr

func ListBoxStrarr(label string, current_item *int32, items []string, items_count int32) bool

func ListBoxStrarrV

func ListBoxStrarrV(label string, current_item *int32, items []string, items_count, height_in_items int32) bool

ListBoxStrarrV parameter default value hint: height_in_items: -1

func LoadIniSettingsFromDisk

func LoadIniSettingsFromDisk(ini_filename string)

call after CreateContext() and before the first call to NewFrame(). NewFrame() automatically calls LoadIniSettingsFromDisk(io.IniFilename).

func LoadIniSettingsFromMemory

func LoadIniSettingsFromMemory(ini_data string)

func LoadIniSettingsFromMemoryV

func LoadIniSettingsFromMemoryV(ini_data string, ini_size uint64)

call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source. LoadIniSettingsFromMemoryV parameter default value hint: ini_size: 0

func LogButtons

func LogButtons()

helper to display buttons for logging to tty/file/clipboard

func LogFinish

func LogFinish()

stop logging (close file, etc.)

func LogText

func LogText(fmt string)

pass text data straight to log (without being displayed)

func LogToClipboard

func LogToClipboard()

func LogToClipboardV

func LogToClipboardV(auto_open_depth int32)

start logging to OS clipboard LogToClipboardV parameter default value hint: auto_open_depth: -1

func LogToFile

func LogToFile()

func LogToFileV

func LogToFileV(auto_open_depth int32, filename string)

start logging to file LogToFileV parameter default value hint: auto_open_depth: -1 filename: NULL

func LogToTTY

func LogToTTY()

func LogToTTYV

func LogToTTYV(auto_open_depth int32)

start logging to tty (stdout) LogToTTYV parameter default value hint: auto_open_depth: -1

func MemAlloc

func MemAlloc(size uint64) uintptr

func MemFree

func MemFree(ptr uintptr)
func MenuItemBool(label string) bool
func MenuItemBoolPtr(label, shortcut string, p_selected *bool) bool
func MenuItemBoolPtrV(label, shortcut string, p_selected *bool, enabled bool) bool

return true when activated + toggle (*p_selected) if p_selected != NULL MenuItemBoolPtrV parameter default value hint: enabled: true

func MenuItemBoolV(label, shortcut string, selected, enabled bool) bool

return true when activated. MenuItemBoolV parameter default value hint: shortcut: NULL selected: false enabled: true

func MouseClickedCount

func MouseClickedCount(button MouseButton) int32

return the number of successive mouse-clicks at the time where a click happen (otherwise 0).

func NewFrame

func NewFrame()

start a new Dear ImGui frame, you can submit any command from this point until Render()/EndFrame().

func NewLine

func NewLine()

undo a SameLine() or force a new line when in a horizontal-layout context.

func NextColumn

func NextColumn()

next column, defaults to current row or next row if the current row is finished

func OpenPopupID

func OpenPopupID(id ID)

func OpenPopupIDV

func OpenPopupIDV(id ID, popup_flags PopupFlags)

id overload to facilitate calling from nested stacks OpenPopupIDV parameter default value hint: popup_flags: 0

func OpenPopupOnItemClick

func OpenPopupOnItemClick()

func OpenPopupOnItemClickV

func OpenPopupOnItemClickV(str_id string, popup_flags PopupFlags)

helper to open popup when clicked on last item. Default to ImGuiPopupFlags_MouseButtonRight == 1. (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) OpenPopupOnItemClickV parameter default value hint: str_id: NULL popup_flags: 1

func OpenPopupStr

func OpenPopupStr(str_id string)

func OpenPopupStrV

func OpenPopupStrV(str_id string, popup_flags PopupFlags)

call to mark popup as open (don't call every frame!). OpenPopupStrV parameter default value hint: popup_flags: 0

func PlotHistogramFloatPtr

func PlotHistogramFloatPtr(label string, values *float32, values_count int32)

func PlotHistogramFloatPtrV

func PlotHistogramFloatPtrV(label string, values *float32, values_count, values_offset int32, overlay_text string, scale_min, scale_max float32, graph_size Vec2, stride int32)

PlotHistogramFloatPtrV parameter default value hint: values_offset: 0 overlay_text: NULL scale_min: FLT_MAX scale_max: FLT_MAX graph_size: ImVec2(0,0) stride: sizeof(float)

func PlotLinesFloatPtr

func PlotLinesFloatPtr(label string, values *float32, values_count int32)

func PlotLinesFloatPtrV

func PlotLinesFloatPtrV(label string, values *float32, values_count, values_offset int32, overlay_text string, scale_min, scale_max float32, graph_size Vec2, stride int32)

PlotLinesFloatPtrV parameter default value hint: values_offset: 0 overlay_text: NULL scale_min: FLT_MAX scale_max: FLT_MAX graph_size: ImVec2(0,0) stride: sizeof(float)

func PopClipRect

func PopClipRect()

func PopFont

func PopFont()

func PopID

func PopID()

pop from the ID stack.

func PopItemFlag

func PopItemFlag()

func PopItemWidth

func PopItemWidth()

func PopStyleColor

func PopStyleColor()

func PopStyleColorV

func PopStyleColorV(count int32)

PopStyleColorV parameter default value hint: count: 1

func PopStyleVar

func PopStyleVar()

func PopStyleVarV

func PopStyleVarV(count int32)

PopStyleVarV parameter default value hint: count: 1

func PopTextWrapPos

func PopTextWrapPos()

func ProgressBar

func ProgressBar(fraction float32)

func ProgressBarV

func ProgressBarV(fraction float32, size_arg Vec2, overlay string)

ProgressBarV parameter default value hint: size_arg: ImVec2(-FLT_MIN,0) overlay: NULL

func PushClipRect

func PushClipRect(clip_rect_min, clip_rect_max Vec2, intersect_with_current_clip_rect bool)

func PushFont

func PushFont(font *Font)

use NULL as a shortcut to push default font

func PushIDInt

func PushIDInt(int_id int32)

push integer into the ID stack (will hash integer).

func PushIDPtr

func PushIDPtr(ptr_id uintptr)

push pointer into the ID stack (will hash pointer).

func PushIDStr

func PushIDStr(str_id string)

push string into the ID stack (will hash string).

func PushIDStrStr

func PushIDStrStr(str_id_begin, str_id_end string)

push string into the ID stack (will hash string).

func PushItemFlag

func PushItemFlag(option ItemFlags, enabled bool)

modify specified shared item flag, e.g. PushItemFlag(ImGuiItemFlags_NoTabStop, true)

func PushItemWidth

func PushItemWidth(item_width float32)

push width of items for common large "item+label" widgets. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side).

func PushStyleColorU32

func PushStyleColorU32(idx Col, col uint32)

modify a style color. always use this if you modify the style after NewFrame().

func PushStyleColorVec4

func PushStyleColorVec4(idx Col, col Vec4)

func PushStyleVarFloat

func PushStyleVarFloat(idx StyleVar, val float32)

modify a style float variable. always use this if you modify the style after NewFrame()!

func PushStyleVarVec2

func PushStyleVarVec2(idx StyleVar, val Vec2)

modify a style ImVec2 variable. "

func PushStyleVarX

func PushStyleVarX(idx StyleVar, val_x float32)

modify X component of a style ImVec2 variable. "

func PushStyleVarY

func PushStyleVarY(idx StyleVar, val_y float32)

modify Y component of a style ImVec2 variable. "

func PushTextWrapPos

func PushTextWrapPos()

func PushTextWrapPosV

func PushTextWrapPosV(wrap_local_pos_x float32)

push word-wrapping position for Text*() commands. < 0.0f: no wrapping; 0.0f: wrap to end of window (or column); > 0.0f: wrap at 'wrap_pos_x' position in window local space PushTextWrapPosV parameter default value hint: wrap_local_pos_x: 0.0f

func RadioButtonBool

func RadioButtonBool(label string, active bool) bool

use with e.g. if (RadioButton("one", my_value==1)) my_value = 1;

func RadioButtonIntPtr

func RadioButtonIntPtr(label string, v *int32, v_button int32) bool

shortcut to handle the above pattern when value is an integer

func Render

func Render()

ends the Dear ImGui frame, finalize the draw data. You can then get call GetDrawData().

func RenderPlatformWindowsDefault

func RenderPlatformWindowsDefault()

func RenderPlatformWindowsDefaultV

func RenderPlatformWindowsDefaultV(platform_render_arg, renderer_render_arg uintptr)

call in main loop. will call RenderWindow/SwapBuffers platform functions for each secondary viewport which doesn't have the ImGuiViewportFlags_Minimized flag set. May be reimplemented by user for custom rendering needs. RenderPlatformWindowsDefaultV parameter default value hint: platform_render_arg: NULL renderer_render_arg: NULL

func ResetMouseDragDelta

func ResetMouseDragDelta()

func ResetMouseDragDeltaV

func ResetMouseDragDeltaV(button MouseButton)

ResetMouseDragDeltaV parameter default value hint: button: 0

func SameLine

func SameLine()

func SameLineV

func SameLineV(offset_from_start_x, spacing float32)

call between widgets or groups to layout them horizontally. X position given in window coordinates. SameLineV parameter default value hint: offset_from_start_x: 0.0f spacing: -1.0f

func SaveIniSettingsToDisk

func SaveIniSettingsToDisk(ini_filename string)

this is automatically called (if io.IniFilename is not empty) a few seconds after any modification that should be reflected in the .ini file (and also by DestroyContext).

func SaveIniSettingsToMemory

func SaveIniSettingsToMemory() string

func SaveIniSettingsToMemoryV

func SaveIniSettingsToMemoryV(out_ini_size *uint64) string

return a zero-terminated string with the .ini data which you can save by your own mean. call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings. SaveIniSettingsToMemoryV parameter default value hint: out_ini_size: NULL

func ScrollMaxX

func ScrollMaxX() float32

get maximum scrolling amount ~~ ContentSize.x - WindowSize.x - DecorationsSize.x

func ScrollMaxY

func ScrollMaxY() float32

get maximum scrolling amount ~~ ContentSize.y - WindowSize.y - DecorationsSize.y

func ScrollX

func ScrollX() float32

get scrolling amount [0 .. GetScrollMaxX()]

func ScrollY

func ScrollY() float32

get scrolling amount [0 .. GetScrollMaxY()]

func SelectableBool

func SelectableBool(label string) bool

func SelectableBoolPtr

func SelectableBoolPtr(label string, p_selected *bool) bool

func SelectableBoolPtrV

func SelectableBoolPtrV(label string, p_selected *bool, flags SelectableFlags, size Vec2) bool

"bool* p_selected" point to the selection state (read-write), as a convenient helper. SelectableBoolPtrV parameter default value hint: flags: 0 size: ImVec2(0,0)

func SelectableBoolV

func SelectableBoolV(label string, selected bool, flags SelectableFlags, size Vec2) bool

"bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height SelectableBoolV parameter default value hint: selected: false flags: 0 size: ImVec2(0,0)

func Separator

func Separator()

separator, generally horizontal. inside a menu bar or in horizontal layout mode, this becomes a vertical separator.

func SeparatorText

func SeparatorText(label string)

currently: formatted text with an horizontal line

func SetAllocatorFunctions added in v1.2.0

func SetAllocatorFunctions(alloc_func MemAllocFunc, free_func MemFreeFunc)

func SetAllocatorFunctionsV added in v1.2.0

func SetAllocatorFunctionsV(alloc_func MemAllocFunc, free_func MemFreeFunc, user_data uintptr)

SetAllocatorFunctionsV parameter default value hint: user_data: NULL

func SetAssertHandler

func SetAssertHandler(handler AssertHandler)

SetAssertHandler registers a handler function for all future assertions. Setting nil will disable special handling. The default handler panics.

func SetClipboardText

func SetClipboardText(text string)

func SetColorEditOptions

func SetColorEditOptions(flags ColorEditFlags)

initialize current options (generally on application startup) if you want to select a default format, picker type, etc. User will be able to change many settings, unless you pass the _NoOptions flag to your calls.

func SetColumnOffset

func SetColumnOffset(column_index int32, offset_x float32)

set position of column line (in pixels, from the left side of the contents region). pass -1 to use current column

func SetColumnWidth

func SetColumnWidth(column_index int32, width float32)

set column width (in pixels). pass -1 to use current column

func SetCurrentContext

func SetCurrentContext(ctx *Context)

func SetCursorPos

func SetCursorPos(local_pos Vec2)

[window-local] "

func SetCursorPosX

func SetCursorPosX(local_x float32)

[window-local] "

func SetCursorPosY

func SetCursorPosY(local_y float32)

[window-local] "

func SetCursorScreenPos

func SetCursorScreenPos(pos Vec2)

cursor position, absolute coordinates. THIS IS YOUR BEST FRIEND.

func SetDragDropPayload

func SetDragDropPayload(typeArg string, data uintptr, sz uint64) bool

func SetDragDropPayloadV

func SetDragDropPayloadV(typeArg string, data uintptr, sz uint64, cond Cond) bool

type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui. Return true when payload has been accepted. SetDragDropPayloadV parameter default value hint: cond: 0

func SetItemDefaultFocus

func SetItemDefaultFocus()

make last item the default focused item of of a newly appearing window.

func SetItemKeyOwner

func SetItemKeyOwner(key Key)

Set key owner to last item ID if it is hovered or active. Equivalent to 'if (IsItemHovered() || IsItemActive()) SetKeyOwner(key, GetItemID());'.

func SetItemTooltip

func SetItemTooltip(fmt string)

set a text-only tooltip if preceding item was hovered. override any previous call to SetTooltip().

func SetKeyboardFocusHere

func SetKeyboardFocusHere()

func SetKeyboardFocusHereV

func SetKeyboardFocusHereV(offset int32)

focus keyboard on the next widget. Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget. SetKeyboardFocusHereV parameter default value hint: offset: 0

func SetMouseCursor

func SetMouseCursor(cursor_type MouseCursor)

set desired mouse cursor shape

func SetNavCursorVisible added in v1.1.0

func SetNavCursorVisible(visible bool)

alter visibility of keyboard/gamepad cursor. by default: show when using an arrow key, hide when clicking with mouse.

func SetNextFrameWantCaptureKeyboard

func SetNextFrameWantCaptureKeyboard(want_capture_keyboard bool)

Override io.WantCaptureKeyboard flag next frame (said flag is left for your application to handle, typically when true it instructs your app to ignore inputs). e.g. force capture keyboard when your widget is being hovered. This is equivalent to setting "io.WantCaptureKeyboard = want_capture_keyboard"; after the next NewFrame() call.

func SetNextFrameWantCaptureMouse

func SetNextFrameWantCaptureMouse(want_capture_mouse bool)

Override io.WantCaptureMouse flag next frame (said flag is left for your application to handle, typical when true it instucts your app to ignore inputs). This is equivalent to setting "io.WantCaptureMouse = want_capture_mouse;" after the next NewFrame() call.

func SetNextItemAllowOverlap

func SetNextItemAllowOverlap()

allow next item to be overlapped by a subsequent item. Useful with invisible buttons, selectable, treenode covering an area where subsequent items may need to be added. Note that both Selectable() and TreeNode() have dedicated flags doing this.

func SetNextItemOpen

func SetNextItemOpen(is_open bool)

func SetNextItemOpenV

func SetNextItemOpenV(is_open bool, cond Cond)

set next TreeNode/CollapsingHeader open state. SetNextItemOpenV parameter default value hint: cond: 0

func SetNextItemSelectionUserData

func SetNextItemSelectionUserData(selection_user_data SelectionUserData)

func SetNextItemShortcut

func SetNextItemShortcut(key_chord KeyChord)

func SetNextItemShortcutV

func SetNextItemShortcutV(key_chord KeyChord, flags InputFlags)

SetNextItemShortcutV parameter default value hint: flags: 0

func SetNextItemStorageID

func SetNextItemStorageID(storage_id ID)

set id to use for open/close storage (default to same as item id).

func SetNextItemWidth

func SetNextItemWidth(item_width float32)

set width of the _next_ common large "item+label" widget. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side)

func SetNextWindowBgAlpha

func SetNextWindowBgAlpha(alpha float32)

set next window background color alpha. helper to easily override the Alpha component of ImGuiCol_WindowBg/ChildBg/PopupBg. you may also use ImGuiWindowFlags_NoBackground.

func SetNextWindowClass

func SetNextWindowClass(window_class *WindowClass)

set next window class (control docking compatibility + provide hints to platform backend via custom viewport flags and platform parent/child relationship)

func SetNextWindowCollapsed

func SetNextWindowCollapsed(collapsed bool)

func SetNextWindowCollapsedV

func SetNextWindowCollapsedV(collapsed bool, cond Cond)

set next window collapsed state. call before Begin() SetNextWindowCollapsedV parameter default value hint: cond: 0

func SetNextWindowContentSize

func SetNextWindowContentSize(size Vec2)

set next window content size (~ scrollable client area, which enforce the range of scrollbars). Not including window decorations (title bar, menu bar, etc.) nor WindowPadding. set an axis to 0.0f to leave it automatic. call before Begin()

func SetNextWindowDockID

func SetNextWindowDockID(dock_id ID)

func SetNextWindowDockIDV

func SetNextWindowDockIDV(dock_id ID, cond Cond)

set next window dock id SetNextWindowDockIDV parameter default value hint: cond: 0

func SetNextWindowFocus

func SetNextWindowFocus()

set next window to be focused / top-most. call before Begin()

func SetNextWindowPos

func SetNextWindowPos(pos Vec2)

func SetNextWindowPosV

func SetNextWindowPosV(pos Vec2, cond Cond, pivot Vec2)

set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc. SetNextWindowPosV parameter default value hint: cond: 0 pivot: ImVec2(0,0)

func SetNextWindowScroll

func SetNextWindowScroll(scroll Vec2)

set next window scrolling value (use < 0.0f to not affect a given axis).

func SetNextWindowSize

func SetNextWindowSize(size Vec2)

func SetNextWindowSizeConstraints

func SetNextWindowSizeConstraints(size_min, size_max Vec2)

func SetNextWindowSizeConstraintsV added in v1.2.0

func SetNextWindowSizeConstraintsV(size_min, size_max Vec2, custom_callback SizeCallback, custom_callback_data uintptr)

set next window size limits. use 0.0f or FLT_MAX if you don't want limits. Use -1 for both min and max of same axis to preserve current size (which itself is a constraint). Use callback to apply non-trivial programmatic constraints. SetNextWindowSizeConstraintsV parameter default value hint: custom_callback: NULL custom_callback_data: NULL

func SetNextWindowSizeV

func SetNextWindowSizeV(size Vec2, cond Cond)

set next window size. set axis to 0.0f to force an auto-fit on this axis. call before Begin() SetNextWindowSizeV parameter default value hint: cond: 0

func SetNextWindowViewport

func SetNextWindowViewport(viewport_id ID)

set next window viewport

func SetScrollFromPosXFloat

func SetScrollFromPosXFloat(local_x float32)

func SetScrollFromPosXFloatV

func SetScrollFromPosXFloatV(local_x, center_x_ratio float32)

adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. SetScrollFromPosXFloatV parameter default value hint: center_x_ratio: 0.5f

func SetScrollFromPosYFloat

func SetScrollFromPosYFloat(local_y float32)

func SetScrollFromPosYFloatV

func SetScrollFromPosYFloatV(local_y, center_y_ratio float32)

adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. SetScrollFromPosYFloatV parameter default value hint: center_y_ratio: 0.5f

func SetScrollHereX

func SetScrollHereX()

func SetScrollHereXV

func SetScrollHereXV(center_x_ratio float32)

adjust scrolling amount to make current cursor position visible. center_x_ratio=0.0: left, 0.5: center, 1.0: right. When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead. SetScrollHereXV parameter default value hint: center_x_ratio: 0.5f

func SetScrollHereY

func SetScrollHereY()

func SetScrollHereYV

func SetScrollHereYV(center_y_ratio float32)

adjust scrolling amount to make current cursor position visible. center_y_ratio=0.0: top, 0.5: center, 1.0: bottom. When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead. SetScrollHereYV parameter default value hint: center_y_ratio: 0.5f

func SetScrollXFloat

func SetScrollXFloat(scroll_x float32)

set scrolling amount [0 .. GetScrollMaxX()]

func SetScrollYFloat

func SetScrollYFloat(scroll_y float32)

set scrolling amount [0 .. GetScrollMaxY()]

func SetStateStorage

func SetStateStorage(storage *Storage)

replace current window storage with our own (if you want to manipulate it yourself, typically clear subsection of it)

func SetTabItemClosed

func SetTabItemClosed(tab_or_docked_window_label string)

notify TabBar or Docking system of a closed tab/window ahead (useful to reduce visual flicker on reorderable tab bars). For tab-bar: call after BeginTabBar() and before Tab submissions. Otherwise call with a window name.

func SetTooltip

func SetTooltip(fmt string)

set a text-only tooltip. Often used after a ImGui::IsItemHovered() check. Override any previous call to SetTooltip().

func SetWindowCollapsedBool

func SetWindowCollapsedBool(collapsed bool)

func SetWindowCollapsedBoolV

func SetWindowCollapsedBoolV(collapsed bool, cond Cond)

(not recommended) set current window collapsed state. prefer using SetNextWindowCollapsed(). SetWindowCollapsedBoolV parameter default value hint: cond: 0

func SetWindowCollapsedStr

func SetWindowCollapsedStr(name string, collapsed bool)

func SetWindowCollapsedStrV

func SetWindowCollapsedStrV(name string, collapsed bool, cond Cond)

set named window collapsed state SetWindowCollapsedStrV parameter default value hint: cond: 0

func SetWindowFocus

func SetWindowFocus()

(not recommended) set current window to be focused / top-most. prefer using SetNextWindowFocus().

func SetWindowFocusStr

func SetWindowFocusStr(name string)

set named window to be focused / top-most. use NULL to remove focus.

func SetWindowFontScale

func SetWindowFontScale(scale float32)

[OBSOLETE] set font scale. Adjust IO.FontGlobalScale if you want to scale all windows. This is an old API! For correct scaling, prefer to reload font + rebuild ImFontAtlas + call style.ScaleAllSizes().

func SetWindowPosStr

func SetWindowPosStr(name string, pos Vec2)

func SetWindowPosStrV

func SetWindowPosStrV(name string, pos Vec2, cond Cond)

set named window position. SetWindowPosStrV parameter default value hint: cond: 0

func SetWindowPosVec2

func SetWindowPosVec2(pos Vec2)

func SetWindowPosVec2V

func SetWindowPosVec2V(pos Vec2, cond Cond)

(not recommended) set current window position - call within Begin()/End(). prefer using SetNextWindowPos(), as this may incur tearing and side-effects. SetWindowPosVec2V parameter default value hint: cond: 0

func SetWindowSizeStr

func SetWindowSizeStr(name string, size Vec2)

func SetWindowSizeStrV

func SetWindowSizeStrV(name string, size Vec2, cond Cond)

set named window size. set axis to 0.0f to force an auto-fit on this axis. SetWindowSizeStrV parameter default value hint: cond: 0

func SetWindowSizeVec2

func SetWindowSizeVec2(size Vec2)

func SetWindowSizeVec2V

func SetWindowSizeVec2V(size Vec2, cond Cond)

(not recommended) set current window size - call within Begin()/End(). set to ImVec2(0, 0) to force an auto-fit. prefer using SetNextWindowSize(), as this may incur tearing and minor side-effects. SetWindowSizeVec2V parameter default value hint: cond: 0

func Shortcut

func Shortcut(key_chord KeyChord) bool

func ShortcutNilV

func ShortcutNilV(key_chord KeyChord, flags InputFlags) bool

ShortcutNilV parameter default value hint: flags: 0

func ShowAboutWindow

func ShowAboutWindow()

func ShowAboutWindowV

func ShowAboutWindowV(p_open *bool)

create About window. display Dear ImGui version, credits and build/system information. ShowAboutWindowV parameter default value hint: p_open: NULL

func ShowDebugLogWindow

func ShowDebugLogWindow()

func ShowDebugLogWindowV

func ShowDebugLogWindowV(p_open *bool)

create Debug Log window. display a simplified log of important dear imgui events. ShowDebugLogWindowV parameter default value hint: p_open: NULL

func ShowDemoWindow

func ShowDemoWindow()

func ShowDemoWindowV

func ShowDemoWindowV(p_open *bool)

create Demo window. demonstrate most ImGui features. call this to learn about the library! try to make it always available in your application! ShowDemoWindowV parameter default value hint: p_open: NULL

func ShowFontSelector

func ShowFontSelector(label string)

add font selector block (not a window), essentially a combo listing the loaded fonts.

func ShowIDStackToolWindow

func ShowIDStackToolWindow()

func ShowIDStackToolWindowV

func ShowIDStackToolWindowV(p_open *bool)

create Stack Tool window. hover items with mouse to query information about the source of their unique ID. ShowIDStackToolWindowV parameter default value hint: p_open: NULL

func ShowMetricsWindow

func ShowMetricsWindow()

func ShowMetricsWindowV

func ShowMetricsWindowV(p_open *bool)

create Metrics/Debugger window. display Dear ImGui internals: windows, draw commands, various internal state, etc. ShowMetricsWindowV parameter default value hint: p_open: NULL

func ShowStyleEditor

func ShowStyleEditor()

func ShowStyleEditorV

func ShowStyleEditorV(ref *Style)

add style editor block (not a window). you can pass in a reference ImGuiStyle structure to compare to, revert to and save to (else it uses the default style) ShowStyleEditorV parameter default value hint: ref: NULL

func ShowStyleSelector

func ShowStyleSelector(label string) bool

add style selector block (not a window), essentially a combo listing the default styles.

func ShowUserGuide

func ShowUserGuide()

add basic help/info block (not a window): how to manipulate ImGui as an end-user (mouse/keyboard controls).

func SliderAngle

func SliderAngle(label string, v_rad *float32) bool

func SliderAngleV

func SliderAngleV(label string, v_rad *float32, v_degrees_min, v_degrees_max float32, format string, flags SliderFlags) bool

SliderAngleV parameter default value hint: v_degrees_min: -360.0f v_degrees_max: +360.0f format: "%.0f deg" flags: 0

func SliderFloat

func SliderFloat(label string, v *float32, v_min, v_max float32) bool

func SliderFloat2

func SliderFloat2(label string, v *[2]float32, v_min, v_max float32) bool

func SliderFloat2V

func SliderFloat2V(label string, v *[2]float32, v_min, v_max float32, format string, flags SliderFlags) bool

SliderFloat2V parameter default value hint: format: "%.3f" flags: 0

func SliderFloat3

func SliderFloat3(label string, v *[3]float32, v_min, v_max float32) bool

func SliderFloat3V

func SliderFloat3V(label string, v *[3]float32, v_min, v_max float32, format string, flags SliderFlags) bool

SliderFloat3V parameter default value hint: format: "%.3f" flags: 0

func SliderFloat4

func SliderFloat4(label string, v *[4]float32, v_min, v_max float32) bool

func SliderFloat4V

func SliderFloat4V(label string, v *[4]float32, v_min, v_max float32, format string, flags SliderFlags) bool

SliderFloat4V parameter default value hint: format: "%.3f" flags: 0

func SliderFloatV

func SliderFloatV(label string, v *float32, v_min, v_max float32, format string, flags SliderFlags) bool

adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. SliderFloatV parameter default value hint: format: "%.3f" flags: 0

func SliderInt

func SliderInt(label string, v *int32, v_min, v_max int32) bool

func SliderInt2

func SliderInt2(label string, v *[2]int32, v_min, v_max int32) bool

func SliderInt2V

func SliderInt2V(label string, v *[2]int32, v_min, v_max int32, format string, flags SliderFlags) bool

SliderInt2V parameter default value hint: format: "%d" flags: 0

func SliderInt3

func SliderInt3(label string, v *[3]int32, v_min, v_max int32) bool

func SliderInt3V

func SliderInt3V(label string, v *[3]int32, v_min, v_max int32, format string, flags SliderFlags) bool

SliderInt3V parameter default value hint: format: "%d" flags: 0

func SliderInt4

func SliderInt4(label string, v *[4]int32, v_min, v_max int32) bool

func SliderInt4V

func SliderInt4V(label string, v *[4]int32, v_min, v_max int32, format string, flags SliderFlags) bool

SliderInt4V parameter default value hint: format: "%d" flags: 0

func SliderIntV

func SliderIntV(label string, v *int32, v_min, v_max int32, format string, flags SliderFlags) bool

SliderIntV parameter default value hint: format: "%d" flags: 0

func SliderScalar

func SliderScalar(label string, data_type DataType, p_data, p_min, p_max uintptr) bool

func SliderScalarN

func SliderScalarN(label string, data_type DataType, p_data uintptr, components int32, p_min, p_max uintptr) bool

func SliderScalarNV

func SliderScalarNV(label string, data_type DataType, p_data uintptr, components int32, p_min, p_max uintptr, format string, flags SliderFlags) bool

SliderScalarNV parameter default value hint: format: NULL flags: 0

func SliderScalarV

func SliderScalarV(label string, data_type DataType, p_data, p_min, p_max uintptr, format string, flags SliderFlags) bool

SliderScalarV parameter default value hint: format: NULL flags: 0

func SmallButton

func SmallButton(label string) bool

button with (FramePadding.y == 0) to easily embed within text

func Spacing

func Spacing()

add vertical spacing.

func StyleColorName

func StyleColorName(idx Col) string

get a string corresponding to the enum value (for display, saving, etc.).

func StyleColorsClassic

func StyleColorsClassic()

func StyleColorsClassicV

func StyleColorsClassicV(dst *Style)

classic imgui style StyleColorsClassicV parameter default value hint: dst: NULL

func StyleColorsDark

func StyleColorsDark()

func StyleColorsDarkV

func StyleColorsDarkV(dst *Style)

new, recommended style (default) StyleColorsDarkV parameter default value hint: dst: NULL

func StyleColorsLight

func StyleColorsLight()

func StyleColorsLightV

func StyleColorsLightV(dst *Style)

best used with borders and a custom, thicker font StyleColorsLightV parameter default value hint: dst: NULL

func TabItemButton

func TabItemButton(label string) bool

func TabItemButtonV

func TabItemButtonV(label string, flags TabItemFlags) bool

create a Tab behaving like a button. return true when clicked. cannot be selected in the tab bar. TabItemButtonV parameter default value hint: flags: 0

func TableAngledHeadersRow

func TableAngledHeadersRow()

submit a row with angled headers for every column with the ImGuiTableColumnFlags_AngledHeader flag. MUST BE FIRST ROW.

func TableGetColumnCount

func TableGetColumnCount() int32

return number of columns (value passed to BeginTable)

func TableGetColumnIndex

func TableGetColumnIndex() int32

return current column index.

func TableGetColumnNameInt

func TableGetColumnNameInt() string

func TableGetColumnNameIntV

func TableGetColumnNameIntV(column_n int32) string

return "" if column didn't have a name declared by TableSetupColumn(). Pass -1 to use current column. TableGetColumnNameIntV parameter default value hint: column_n: -1

func TableGetHoveredColumn

func TableGetHoveredColumn() int32

return hovered column. return -1 when table is not hovered. return columns_count if the unused space at the right of visible columns is hovered. Can also use (TableGetColumnFlags() & ImGuiTableColumnFlags_IsHovered) instead.

func TableGetRowIndex

func TableGetRowIndex() int32

return current row index.

func TableHeader

func TableHeader(label string)

submit one header cell manually (rarely used)

func TableHeadersRow

func TableHeadersRow()

submit a row with headers cells based on data provided to TableSetupColumn() + submit context menu

func TableNextColumn

func TableNextColumn() bool

append into the next column (or first column of next row if currently in last column). Return true when column is visible.

func TableNextRow

func TableNextRow()

func TableNextRowV

func TableNextRowV(row_flags TableRowFlags, min_row_height float32)

append into the first cell of a new row. TableNextRowV parameter default value hint: row_flags: 0 min_row_height: 0.0f

func TableSetBgColor

func TableSetBgColor(target TableBgTarget, color uint32)

func TableSetBgColorV

func TableSetBgColorV(target TableBgTarget, color uint32, column_n int32)

change the color of a cell, row, or column. See ImGuiTableBgTarget_ flags for details. TableSetBgColorV parameter default value hint: column_n: -1

func TableSetColumnEnabled

func TableSetColumnEnabled(column_n int32, v bool)

change user accessible enabled/disabled state of a column. Set to false to hide the column. User can use the context menu to change this themselves (right-click in headers, or right-click in columns body with ImGuiTableFlags_ContextMenuInBody)

func TableSetColumnIndex

func TableSetColumnIndex(column_n int32) bool

append into the specified column. Return true when column is visible.

func TableSetupColumn

func TableSetupColumn(label string)

func TableSetupColumnV

func TableSetupColumnV(label string, flags TableColumnFlags, init_width_or_weight float32, user_id ID)

TableSetupColumnV parameter default value hint: flags: 0 init_width_or_weight: 0.0f user_id: 0

func TableSetupScrollFreeze

func TableSetupScrollFreeze(cols, rows int32)

lock columns/rows so they stay visible when scrolled.

func Text

func Text(fmt string)

formatted text

func TextColored

func TextColored(col Vec4, fmt string)

shortcut for PushStyleColor(ImGuiCol_Text, col); Text(fmt, ...); PopStyleColor();

func TextDisabled

func TextDisabled(fmt string)

shortcut for PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); Text(fmt, ...); PopStyleColor();

func TextLineHeight

func TextLineHeight() float32

~ FontSize

func TextLineHeightWithSpacing

func TextLineHeightWithSpacing() float32

~ FontSize + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of text)

func TextLink(label string) bool

hyperlink text button, return true when clicked

func TextLinkOpenURL

func TextLinkOpenURL(label string)

func TextLinkOpenURLV

func TextLinkOpenURLV(label, url string)

hyperlink text button, automatically open file/url when clicked TextLinkOpenURLV parameter default value hint: url: NULL

func TextUnformatted

func TextUnformatted(text string)

func TextUnformattedV

func TextUnformattedV(text string)

raw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'text_end' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. TextUnformattedV parameter default value hint:

func TextWrapped

func TextWrapped(fmt string)

shortcut for PushTextWrapPos(0.0f); Text(fmt, ...); PopTextWrapPos();. Note that this won't work on an auto-resizing window if there's no other widgets to extend the window width, yoy may need to set a size using SetNextWindowSize().

func Time

func Time() float64

get global imgui time. incremented by io.DeltaTime every frame.

func TreeNodeExPtr

func TreeNodeExPtr(ptr_id uintptr, flags TreeNodeFlags, fmt string) bool

func TreeNodeExStr

func TreeNodeExStr(label string) bool

func TreeNodeExStrStr

func TreeNodeExStrStr(str_id string, flags TreeNodeFlags, fmt string) bool

func TreeNodeExStrV

func TreeNodeExStrV(label string, flags TreeNodeFlags) bool

TreeNodeExStrV parameter default value hint: flags: 0

func TreeNodePtr

func TreeNodePtr(ptr_id uintptr, fmt string) bool

"

func TreeNodeStr

func TreeNodeStr(label string) bool

func TreeNodeStrStr

func TreeNodeStrStr(str_id, fmt string) bool

helper variation to easily decorelate the id from the displayed string. Read the FAQ about why and how to use ID. to align arbitrary text at the same level as a TreeNode() you can use Bullet().

func TreeNodeToLabelSpacing

func TreeNodeToLabelSpacing() float32

horizontal distance preceding label when using TreeNode*() or Bullet() == (g.FontSize + style.FramePadding.x*2) for a regular unframed TreeNode

func TreePop

func TreePop()

~ Unindent()+PopID()

func TreePushPtr

func TreePushPtr(ptr_id uintptr)

"

func TreePushStr

func TreePushStr(str_id string)

~ Indent()+PushID(). Already called by TreeNode() when returning true, but you can call TreePush/TreePop yourself if desired.

func Unindent

func Unindent()

func UnindentV

func UnindentV(indent_w float32)

move content position back to the left, by indent_w, or style.IndentSpacing if indent_w <= 0 UnindentV parameter default value hint: indent_w: 0.0f

func UpdatePlatformWindows

func UpdatePlatformWindows()

call in main loop. will call CreateWindow/ResizeWindow/etc. platform functions for each secondary viewport, and DestroyWindow for each inactive viewport.

func VSliderFloat

func VSliderFloat(label string, size Vec2, v *float32, v_min, v_max float32) bool

func VSliderFloatV

func VSliderFloatV(label string, size Vec2, v *float32, v_min, v_max float32, format string, flags SliderFlags) bool

VSliderFloatV parameter default value hint: format: "%.3f" flags: 0

func VSliderInt

func VSliderInt(label string, size Vec2, v *int32, v_min, v_max int32) bool

func VSliderIntV

func VSliderIntV(label string, size Vec2, v *int32, v_min, v_max int32, format string, flags SliderFlags) bool

VSliderIntV parameter default value hint: format: "%d" flags: 0

func VSliderScalar

func VSliderScalar(label string, size Vec2, data_type DataType, p_data, p_min, p_max uintptr) bool

func VSliderScalarV

func VSliderScalarV(label string, size Vec2, data_type DataType, p_data, p_min, p_max uintptr, format string, flags SliderFlags) bool

VSliderScalarV parameter default value hint: format: NULL flags: 0

func ValueBool

func ValueBool(prefix string, b bool)

func ValueFloat

func ValueFloat(prefix string, v float32)

func ValueFloatV

func ValueFloatV(prefix string, v float32, float_format string)

ValueFloatV parameter default value hint: float_format: NULL

func ValueInt

func ValueInt(prefix string, v int32)

func ValueUint

func ValueUint(prefix string, v uint32)

func Version

func Version() string

get the compiled version string e.g. "1.80 WIP" (essentially the value for IMGUI_VERSION from the compiled version of imgui.cpp)

func VertexBufferLayout

func VertexBufferLayout() (entrySize int, posOffset int, uvOffset int, colOffset int)

VertexBufferLayout returns the byte sizes necessary to select fields in a vertex buffer of a DrawList.

func WindowDpiScale

func WindowDpiScale() float32

get DPI scale currently associated to the current window's viewport.

func WindowHeight

func WindowHeight() float32

get current window height (IT IS UNLIKELY YOU EVER NEED TO USE THIS). Shortcut for GetWindowSize().y.

func WindowWidth

func WindowWidth() float32

get current window width (IT IS UNLIKELY YOU EVER NEED TO USE THIS). Shortcut for GetWindowSize().x.

Types

type ActivateFlags

type ActivateFlags int32

original name: ImGuiActivateFlags_

const (
	ActivateFlagsNone ActivateFlags = 0
	// Favor activation that requires keyboard text input (e.g. for Slider/Drag). Default for Enter key.
	ActivateFlagsPreferInput ActivateFlags = 1
	// Favor activation for tweaking with arrows or gamepad (e.g. for Slider/Drag). Default for Space key and if keyboard is not used.
	ActivateFlagsPreferTweak ActivateFlags = 2
	// Request widget to preserve state if it can (e.g. InputText will try to preserve cursor/selection)
	ActivateFlagsTryToPreserveState ActivateFlags = 4
	// Activation requested by a tabbing request
	ActivateFlagsFromTabbing ActivateFlags = 8
	// Activation requested by an item shortcut via SetNextItemShortcut() function.
	ActivateFlagsFromShortcut ActivateFlags = 16
)

type AssertHandler

type AssertHandler func(expression string, file string, line int)

AssertHandler is a handler for an assertion that happened in the native part of ImGui.

type AssertionError

type AssertionError struct {
	Expression string
	File       string
	Line       int
}

AssertionError is the standard error being thrown by the default handler.

func (AssertionError) Error

func (err AssertionError) Error() string

Error returns the string representation.

type Axis

type Axis int32

X/Y enums are fixed to 0/1 so they may be used to index ImVec2 original name: ImGuiAxis

const (
	AxisNone Axis = -1
	AxisX    Axis = 0
	AxisY    Axis = 1
)

type BackendFlags

type BackendFlags int32

Backend capabilities flags stored in io.BackendFlags. Set by imgui_impl_xxx or custom backend. original name: ImGuiBackendFlags_

const (
	BackendFlagsNone BackendFlags = 0
	// Backend Platform supports gamepad and currently has one connected.
	BackendFlagsHasGamepad BackendFlags = 1
	// Backend Platform supports honoring GetMouseCursor() value to change the OS cursor shape.
	BackendFlagsHasMouseCursors BackendFlags = 2
	// Backend Platform supports io.WantSetMousePos requests to reposition the OS mouse position (only used if io.ConfigNavMoveSetMousePos is set).
	BackendFlagsHasSetMousePos BackendFlags = 4
	// Backend Renderer supports ImDrawCmd::VtxOffset. This enables output of large meshes (64K+ vertices) while still using 16-bit indices.
	BackendFlagsRendererHasVtxOffset BackendFlags = 8
	// Backend Platform supports multiple viewports.
	BackendFlagsPlatformHasViewports BackendFlags = 1024
	// Backend Platform supports calling io.AddMouseViewportEvent() with the viewport under the mouse. IF POSSIBLE, ignore viewports with the ImGuiViewportFlags_NoInputs flag (Win32 backend, GLFW 3.30+ backend can do this, SDL backend cannot). If this cannot be done, Dear ImGui needs to use a flawed heuristic to find the viewport under.
	BackendFlagsHasMouseHoveredViewport BackendFlags = 2048
	// Backend Renderer supports multiple viewports.
	BackendFlagsRendererHasViewports BackendFlags = 4096
)

type BitArrayPtr

type BitArrayPtr struct {
	Data *uint32
}

func NewBitArrayPtrFromC

func NewBitArrayPtrFromC[SRC any](cvalue SRC) *BitArrayPtr

NewBitArrayPtrFromC creates BitArrayPtr from its C pointer. SRC ~= *C.ImBitArrayPtr

func (*BitArrayPtr) C

func (selfStruct *BitArrayPtr) C() (result C.ImBitArrayPtr, fin func())

C is like Handle but returns plain type instead of pointer.

func (*BitArrayPtr) Handle

func (self *BitArrayPtr) Handle() (*C.ImBitArrayPtr, func())

Handle returns C version of BitArrayPtr and its finalizer func.

type BitVector

type BitVector struct {
	CData *C.ImBitVector
}

func NewBitVectorFromC

func NewBitVectorFromC[SRC any](cvalue SRC) *BitVector

NewBitVectorFromC creates BitVector from its C pointer. SRC ~= *C.ImBitVector

func NewEmptyBitVector added in v1.2.0

func NewEmptyBitVector() *BitVector

NewEmptyBitVector creates BitVector with its 0 value.

func (BitVector) C

func (self BitVector) C() (C.ImBitVector, func())

C is like Handle but returns plain type instead of pointer.

func (*BitVector) Handle

func (self *BitVector) Handle() (result *C.ImBitVector, fin func())

Handle returns C version of BitVector and its finalizer func.

func (*BitVector) InternalClear

func (self *BitVector) InternalClear()

func (*BitVector) InternalClearBit

func (self *BitVector) InternalClearBit(n int32)

func (*BitVector) InternalCreate

func (self *BitVector) InternalCreate(sz int32)

func (*BitVector) InternalSetBit

func (self *BitVector) InternalSetBit(n int32)

func (*BitVector) InternalTestBit

func (self *BitVector) InternalTestBit(n int32) bool

func (BitVector) SetStorage

func (self BitVector) SetStorage(v vectors.Vector[uint32])

func (*BitVector) Storage

func (self *BitVector) Storage() vectors.Vector[uint32]

type BoxSelectState

type BoxSelectState struct {
	CData *C.ImGuiBoxSelectState
}

func InternalBoxSelectState

func InternalBoxSelectState(id ID) *BoxSelectState

func InternalNewBoxSelectState

func InternalNewBoxSelectState() *BoxSelectState

func NewBoxSelectStateFromC

func NewBoxSelectStateFromC[SRC any](cvalue SRC) *BoxSelectState

NewBoxSelectStateFromC creates BoxSelectState from its C pointer. SRC ~= *C.ImGuiBoxSelectState

func NewEmptyBoxSelectState added in v1.2.0

func NewEmptyBoxSelectState() *BoxSelectState

NewEmptyBoxSelectState creates BoxSelectState with its 0 value.

func (*BoxSelectState) BoxSelectRectCurr

func (self *BoxSelectState) BoxSelectRectCurr() Rect

func (*BoxSelectState) BoxSelectRectPrev

func (self *BoxSelectState) BoxSelectRectPrev() Rect

func (BoxSelectState) C

func (self BoxSelectState) C() (C.ImGuiBoxSelectState, func())

C is like Handle but returns plain type instead of pointer.

func (*BoxSelectState) Destroy

func (self *BoxSelectState) Destroy()

func (*BoxSelectState) EndPosRel

func (self *BoxSelectState) EndPosRel() Vec2

func (*BoxSelectState) Handle

func (self *BoxSelectState) Handle() (result *C.ImGuiBoxSelectState, fin func())

Handle returns C version of BoxSelectState and its finalizer func.

func (*BoxSelectState) ID

func (self *BoxSelectState) ID() ID

func (*BoxSelectState) IsActive

func (self *BoxSelectState) IsActive() bool

func (*BoxSelectState) IsStartedFromVoid

func (self *BoxSelectState) IsStartedFromVoid() bool

func (*BoxSelectState) IsStartedSetNavIdOnce

func (self *BoxSelectState) IsStartedSetNavIdOnce() bool

func (*BoxSelectState) IsStarting

func (self *BoxSelectState) IsStarting() bool

func (*BoxSelectState) KeyMods

func (self *BoxSelectState) KeyMods() KeyChord

func (*BoxSelectState) RequestClear

func (self *BoxSelectState) RequestClear() bool

func (*BoxSelectState) ScrollAccum

func (self *BoxSelectState) ScrollAccum() Vec2

func (BoxSelectState) SetBoxSelectRectCurr

func (self BoxSelectState) SetBoxSelectRectCurr(v Rect)

func (BoxSelectState) SetBoxSelectRectPrev

func (self BoxSelectState) SetBoxSelectRectPrev(v Rect)

func (BoxSelectState) SetEndPosRel

func (self BoxSelectState) SetEndPosRel(v Vec2)

func (BoxSelectState) SetID

func (self BoxSelectState) SetID(v ID)

func (BoxSelectState) SetIsActive

func (self BoxSelectState) SetIsActive(v bool)

func (BoxSelectState) SetIsStartedFromVoid

func (self BoxSelectState) SetIsStartedFromVoid(v bool)

func (BoxSelectState) SetIsStartedSetNavIdOnce

func (self BoxSelectState) SetIsStartedSetNavIdOnce(v bool)

func (BoxSelectState) SetIsStarting

func (self BoxSelectState) SetIsStarting(v bool)

func (BoxSelectState) SetKeyMods

func (self BoxSelectState) SetKeyMods(v KeyChord)

func (BoxSelectState) SetRequestClear

func (self BoxSelectState) SetRequestClear(v bool)

func (BoxSelectState) SetScrollAccum

func (self BoxSelectState) SetScrollAccum(v Vec2)

func (BoxSelectState) SetStartPosRel

func (self BoxSelectState) SetStartPosRel(v Vec2)

func (BoxSelectState) SetUnclipMode

func (self BoxSelectState) SetUnclipMode(v bool)

func (BoxSelectState) SetUnclipRect

func (self BoxSelectState) SetUnclipRect(v Rect)

func (BoxSelectState) SetWindow

func (self BoxSelectState) SetWindow(v *Window)

func (*BoxSelectState) StartPosRel

func (self *BoxSelectState) StartPosRel() Vec2

func (*BoxSelectState) UnclipMode

func (self *BoxSelectState) UnclipMode() bool

func (*BoxSelectState) UnclipRect

func (self *BoxSelectState) UnclipRect() Rect

func (*BoxSelectState) Window

func (self *BoxSelectState) Window() *Window

type ButtonFlags

type ButtonFlags int32

Flags for InvisibleButton() [extended in imgui_internal.h] original name: ImGuiButtonFlags_

const (
	ButtonFlagsNone ButtonFlags = 0
	// React on left mouse button (default)
	ButtonFlagsMouseButtonLeft ButtonFlags = 1
	// React on right mouse button
	ButtonFlagsMouseButtonRight ButtonFlags = 2
	// React on center mouse button
	ButtonFlagsMouseButtonMiddle ButtonFlags = 4
	// [Internal]
	ButtonFlagsMouseButtonMask ButtonFlags = 7
	// InvisibleButton(): do not disable navigation/tabbing. Otherwise disabled by default.
	ButtonFlagsEnableNav ButtonFlags = 8
)

type ButtonFlagsPrivate

type ButtonFlagsPrivate int32

Extend ImGuiButtonFlags_ original name: ImGuiButtonFlagsPrivate_

const (
	// return true on click (mouse down event)
	ButtonFlagsPressedOnClick ButtonFlagsPrivate = 16
	// [Default] return true on click + release on same item <-- this is what the majority of Button are using
	ButtonFlagsPressedOnClickRelease ButtonFlagsPrivate = 32
	// return true on click + release even if the release event is not done while hovering the item
	ButtonFlagsPressedOnClickReleaseAnywhere ButtonFlagsPrivate = 64
	// return true on release (default requires click+release)
	ButtonFlagsPressedOnRelease ButtonFlagsPrivate = 128
	// return true on double-click (default requires click+release)
	ButtonFlagsPressedOnDoubleClick ButtonFlagsPrivate = 256
	// return true when held into while we are drag and dropping another item (used by e.g. tree nodes, collapsing headers)
	ButtonFlagsPressedOnDragDropHold ButtonFlagsPrivate = 512
	// allow interactions even if a child window is overlapping
	ButtonFlagsFlattenChildren ButtonFlagsPrivate = 2048
	// require previous frame HoveredId to either match id or be null before being usable.
	ButtonFlagsAllowOverlap ButtonFlagsPrivate = 4096
	// vertically align button to match text baseline - ButtonEx() only // FIXME: Should be removed and handled by SmallButton(), not possible currently because of DC.CursorPosPrevLine
	ButtonFlagsAlignTextBaseLine ButtonFlagsPrivate = 32768
	// disable mouse interaction if a key modifier is held
	ButtonFlagsNoKeyModsAllowed ButtonFlagsPrivate = 65536
	// don't set ActiveId while holding the mouse (ImGuiButtonFlags_PressedOnClick only)
	ButtonFlagsNoHoldingActiveId ButtonFlagsPrivate = 131072
	// don't override navigation focus when activated (FIXME: this is essentially used every time an item uses ImGuiItemFlags_NoNav, but because legacy specs don't requires LastItemData to be set ButtonBehavior(), we can't poll g.LastItemData.ItemFlags)
	ButtonFlagsNoNavFocus ButtonFlagsPrivate = 262144
	// don't report as hovered when nav focus is on this item
	ButtonFlagsNoHoveredOnFocus ButtonFlagsPrivate = 524288
	// don't set key/input owner on the initial click (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!)
	ButtonFlagsNoSetKeyOwner ButtonFlagsPrivate = 1048576
	// don't test key/input owner when polling the key (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!)
	ButtonFlagsNoTestKeyOwner   ButtonFlagsPrivate = 2097152
	ButtonFlagsPressedOnMask    ButtonFlagsPrivate = 1008
	ButtonFlagsPressedOnDefault ButtonFlagsPrivate = 32
)

type ChildFlags

type ChildFlags int32

Flags for ImGui::BeginChild() (Legacy: bit 0 must always correspond to ImGuiChildFlags_Borders to be backward compatible with old API using 'bool border = false'. About using AutoResizeX/AutoResizeY flags: - May be combined with SetNextWindowSizeConstraints() to set a min/max size for each axis (see "Demo->Child->Auto-resize with Constraints"). - Size measurement for a given axis is only performed when the child window is within visible boundaries, or is just appearing.

  • This allows BeginChild() to return false when not within boundaries (e.g. when scrolling), which is more optimal. BUT it won't update its auto-size while clipped. While not perfect, it is a better default behavior as the always-on performance gain is more valuable than the occasional "resizing after becoming visible again" glitch.
  • You may also use ImGuiChildFlags_AlwaysAutoResize to force an update even when child window is not in view. HOWEVER PLEASE UNDERSTAND THAT DOING SO WILL PREVENT BeginChild() FROM EVER RETURNING FALSE, disabling benefits of coarse clipping.

original name: ImGuiChildFlags_

const (
	ChildFlagsNone ChildFlags = 0
	// Show an outer border and enable WindowPadding. (IMPORTANT: this is always == 1 == true for legacy reason)
	ChildFlagsBorders ChildFlags = 1
	// Pad with style.WindowPadding even if no border are drawn (no padding by default for non-bordered child windows because it makes more sense)
	ChildFlagsAlwaysUseWindowPadding ChildFlags = 2
	// Allow resize from right border (layout direction). Enable .ini saving (unless ImGuiWindowFlags_NoSavedSettings passed to window flags)
	ChildFlagsResizeX ChildFlags = 4
	// Allow resize from bottom border (layout direction). "
	ChildFlagsResizeY ChildFlags = 8
	// Enable auto-resizing width. Read "IMPORTANT: Size measurement" details above.
	ChildFlagsAutoResizeX ChildFlags = 16
	// Enable auto-resizing height. Read "IMPORTANT: Size measurement" details above.
	ChildFlagsAutoResizeY ChildFlags = 32
	// Combined with AutoResizeX/AutoResizeY. Always measure size even when child is hidden, always return true, always disable clipping optimization! NOT RECOMMENDED.
	ChildFlagsAlwaysAutoResize ChildFlags = 64
	// Style the child window like a framed item: use FrameBg, FrameRounding, FrameBorderSize, FramePadding instead of ChildBg, ChildRounding, ChildBorderSize, WindowPadding.
	ChildFlagsFrameStyle ChildFlags = 128
	// [BETA] Share focus scope, allow keyboard/gamepad navigation to cross over parent border to this child or between sibling child windows.
	ChildFlagsNavFlattened ChildFlags = 256
)

type ClipboardHandler

type ClipboardHandler interface {
	// GetClipboard should return the current contents of the platform clipboard
	GetClipboard() string
	// SetClipboard should replace the contents of the platform clipboard
	SetClipboard(s string)
}

ClipboardHandler interfaces between imgui and the platforms clipboard

type Col

type Col int32

Enumeration for PushStyleColor() / PopStyleColor() original name: ImGuiCol_

const (
	ColText         Col = 0
	ColTextDisabled Col = 1
	// Background of normal windows
	ColWindowBg Col = 2
	// Background of child windows
	ColChildBg Col = 3
	// Background of popups, menus, tooltips windows
	ColPopupBg      Col = 4
	ColBorder       Col = 5
	ColBorderShadow Col = 6
	// Background of checkbox, radio button, plot, slider, text input
	ColFrameBg        Col = 7
	ColFrameBgHovered Col = 8
	ColFrameBgActive  Col = 9
	// Title bar
	ColTitleBg Col = 10
	// Title bar when focused
	ColTitleBgActive Col = 11
	// Title bar when collapsed
	ColTitleBgCollapsed     Col = 12
	ColMenuBarBg            Col = 13
	ColScrollbarBg          Col = 14
	ColScrollbarGrab        Col = 15
	ColScrollbarGrabHovered Col = 16
	ColScrollbarGrabActive  Col = 17
	// Checkbox tick and RadioButton circle
	ColCheckMark        Col = 18
	ColSliderGrab       Col = 19
	ColSliderGrabActive Col = 20
	ColButton           Col = 21
	ColButtonHovered    Col = 22
	ColButtonActive     Col = 23
	// Header* colors are used for CollapsingHeader, TreeNode, Selectable, MenuItem
	ColHeader           Col = 24
	ColHeaderHovered    Col = 25
	ColHeaderActive     Col = 26
	ColSeparator        Col = 27
	ColSeparatorHovered Col = 28
	ColSeparatorActive  Col = 29
	// Resize grip in lower-right and lower-left corners of windows.
	ColResizeGrip        Col = 30
	ColResizeGripHovered Col = 31
	ColResizeGripActive  Col = 32
	// Tab background, when hovered
	ColTabHovered Col = 33
	// Tab background, when tab-bar is focused & tab is unselected
	ColTab Col = 34
	// Tab background, when tab-bar is focused & tab is selected
	ColTabSelected Col = 35
	// Tab horizontal overline, when tab-bar is focused & tab is selected
	ColTabSelectedOverline Col = 36
	// Tab background, when tab-bar is unfocused & tab is unselected
	ColTabDimmed Col = 37
	// Tab background, when tab-bar is unfocused & tab is selected
	ColTabDimmedSelected Col = 38
	//..horizontal overline, when tab-bar is unfocused & tab is selected
	ColTabDimmedSelectedOverline Col = 39
	// Preview overlay color when about to docking something
	ColDockingPreview Col = 40
	// Background color for empty node (e.g. CentralNode with no window docked into it)
	ColDockingEmptyBg       Col = 41
	ColPlotLines            Col = 42
	ColPlotLinesHovered     Col = 43
	ColPlotHistogram        Col = 44
	ColPlotHistogramHovered Col = 45
	// Table header background
	ColTableHeaderBg Col = 46
	// Table outer and header borders (prefer using Alpha=1.0 here)
	ColTableBorderStrong Col = 47
	// Table inner borders (prefer using Alpha=1.0 here)
	ColTableBorderLight Col = 48
	// Table row background (even rows)
	ColTableRowBg Col = 49
	// Table row background (odd rows)
	ColTableRowBgAlt Col = 50
	// Hyperlink color
	ColTextLink       Col = 51
	ColTextSelectedBg Col = 52
	// Rectangle highlighting a drop target
	ColDragDropTarget Col = 53
	// Color of keyboard/gamepad navigation cursor/rectangle, when visible
	ColNavCursor Col = 54
	// Highlight window when using CTRL+TAB
	ColNavWindowingHighlight Col = 55
	// Darken/colorize entire screen behind the CTRL+TAB window list, when active
	ColNavWindowingDimBg Col = 56
	// Darken/colorize entire screen behind a modal window, when one is active
	ColModalWindowDimBg Col = 57
	ColCOUNT            Col = 58
)

type Color

type Color struct {
	FieldValue Vec4
}

func ColorHSV

func ColorHSV(h, s, v float32) Color

func ColorHSVV

func ColorHSVV(h, s, v, a float32) Color

ColorHSVV parameter default value hint: a: 1.0f

func NewColor

func NewColor(r, g, b, a float32) Color

func NewColorFromColor

func NewColorFromColor(c color.Color) Color

func NewColorFromPacked

func NewColorFromPacked(v uint32) Color

func (Color) Color

func (i Color) Color() color.Color

func (*Color) Destroy

func (self *Color) Destroy()

func (*Color) FromC

func (i *Color) FromC(colAny unsafe.Pointer) *Color

colAny i ~C.ImColor and will be force coerted!

func (Color) Pack

func (i Color) Pack() uint32

func (*Color) SetHSV

func (self *Color) SetHSV(h, s, v float32)

func (*Color) SetHSVV

func (self *Color) SetHSVV(h, s, v, a float32)

SetHSVV parameter default value hint: a: 1.0f

func (Color) ToC

func (i Color) ToC() C.ImColor

func (*Color) Value

func (self *Color) Value() Vec4

type ColorEditFlags

type ColorEditFlags int32

Flags for ColorEdit3() / ColorEdit4() / ColorPicker3() / ColorPicker4() / ColorButton() original name: ImGuiColorEditFlags_

const (
	ColorEditFlagsNone ColorEditFlags = 0
	//              // ColorEdit, ColorPicker, ColorButton: ignore Alpha component (will only read 3 components from the input pointer).
	ColorEditFlagsNoAlpha ColorEditFlags = 2
	//              // ColorEdit: disable picker when clicking on color square.
	ColorEditFlagsNoPicker ColorEditFlags = 4
	//              // ColorEdit: disable toggling options menu when right-clicking on inputs/small preview.
	ColorEditFlagsNoOptions ColorEditFlags = 8
	//              // ColorEdit, ColorPicker: disable color square preview next to the inputs. (e.g. to show only the inputs)
	ColorEditFlagsNoSmallPreview ColorEditFlags = 16
	//              // ColorEdit, ColorPicker: disable inputs sliders/text widgets (e.g. to show only the small preview color square).
	ColorEditFlagsNoInputs ColorEditFlags = 32
	//              // ColorEdit, ColorPicker, ColorButton: disable tooltip when hovering the preview.
	ColorEditFlagsNoTooltip ColorEditFlags = 64
	//              // ColorEdit, ColorPicker: disable display of inline text label (the label is still forwarded to the tooltip and picker).
	ColorEditFlagsNoLabel ColorEditFlags = 128
	//              // ColorPicker: disable bigger color preview on right side of the picker, use small color square preview instead.
	ColorEditFlagsNoSidePreview ColorEditFlags = 256
	//              // ColorEdit: disable drag and drop target. ColorButton: disable drag and drop source.
	ColorEditFlagsNoDragDrop ColorEditFlags = 512
	//              // ColorButton: disable border (which is enforced by default)
	ColorEditFlagsNoBorder ColorEditFlags = 1024
	//              // ColorEdit, ColorPicker: show vertical alpha bar/gradient in picker.
	ColorEditFlagsAlphaBar ColorEditFlags = 65536
	//              // ColorEdit, ColorPicker, ColorButton: display preview as a transparent color over a checkerboard, instead of opaque.
	ColorEditFlagsAlphaPreview ColorEditFlags = 131072
	//              // ColorEdit, ColorPicker, ColorButton: display half opaque / half checkerboard, instead of opaque.
	ColorEditFlagsAlphaPreviewHalf ColorEditFlags = 262144
	//              // (WIP) ColorEdit: Currently only disable 0.0f..1.0f limits in RGBA edition (note: you probably want to use ImGuiColorEditFlags_Float flag as well).
	ColorEditFlagsHDR ColorEditFlags = 524288
	// [Display]    // ColorEdit: override _display_ type among RGB/HSV/Hex. ColorPicker: select any combination using one or more of RGB/HSV/Hex.
	ColorEditFlagsDisplayRGB ColorEditFlags = 1048576
	// [Display]    // "
	ColorEditFlagsDisplayHSV ColorEditFlags = 2097152
	// [Display]    // "
	ColorEditFlagsDisplayHex ColorEditFlags = 4194304
	// [DataType]   // ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0..255.
	ColorEditFlagsUint8 ColorEditFlags = 8388608
	// [DataType]   // ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0.0f..1.0f floats instead of 0..255 integers. No round-trip of value via integers.
	ColorEditFlagsFloat ColorEditFlags = 16777216
	// [Picker]     // ColorPicker: bar for Hue, rectangle for Sat/Value.
	ColorEditFlagsPickerHueBar ColorEditFlags = 33554432
	// [Picker]     // ColorPicker: wheel for Hue, triangle for Sat/Value.
	ColorEditFlagsPickerHueWheel ColorEditFlags = 67108864
	// [Input]      // ColorEdit, ColorPicker: input and output data in RGB format.
	ColorEditFlagsInputRGB ColorEditFlags = 134217728
	// [Input]      // ColorEdit, ColorPicker: input and output data in HSV format.
	ColorEditFlagsInputHSV       ColorEditFlags = 268435456
	ColorEditFlagsDefaultOptions ColorEditFlags = 177209344
	ColorEditFlagsDisplayMask    ColorEditFlags = 7340032
	ColorEditFlagsDataTypeMask   ColorEditFlags = 25165824
	ColorEditFlagsPickerMask     ColorEditFlags = 100663296
	ColorEditFlagsInputMask      ColorEditFlags = 402653184
)

type ColorMod

type ColorMod struct {
	CData *C.ImGuiColorMod
}

func NewColorModFromC

func NewColorModFromC[SRC any](cvalue SRC) *ColorMod

NewColorModFromC creates ColorMod from its C pointer. SRC ~= *C.ImGuiColorMod

func NewEmptyColorMod added in v1.2.0

func NewEmptyColorMod() *ColorMod

NewEmptyColorMod creates ColorMod with its 0 value.

func (*ColorMod) BackupValue

func (self *ColorMod) BackupValue() Vec4

func (ColorMod) C

func (self ColorMod) C() (C.ImGuiColorMod, func())

C is like Handle but returns plain type instead of pointer.

func (*ColorMod) Col

func (self *ColorMod) Col() Col

func (*ColorMod) Handle

func (self *ColorMod) Handle() (result *C.ImGuiColorMod, fin func())

Handle returns C version of ColorMod and its finalizer func.

func (ColorMod) SetBackupValue

func (self ColorMod) SetBackupValue(v Vec4)

func (ColorMod) SetCol

func (self ColorMod) SetCol(v Col)

type ComboFlags

type ComboFlags int32

Flags for ImGui::BeginCombo() original name: ImGuiComboFlags_

const (
	ComboFlagsNone ComboFlags = 0
	// Align the popup toward the left by default
	ComboFlagsPopupAlignLeft ComboFlags = 1
	// Max ~4 items visible. Tip: If you want your combo popup to be a specific size you can use SetNextWindowSizeConstraints() prior to calling BeginCombo()
	ComboFlagsHeightSmall ComboFlags = 2
	// Max ~8 items visible (default)
	ComboFlagsHeightRegular ComboFlags = 4
	// Max ~20 items visible
	ComboFlagsHeightLarge ComboFlags = 8
	// As many fitting items as possible
	ComboFlagsHeightLargest ComboFlags = 16
	// Display on the preview box without the square arrow button
	ComboFlagsNoArrowButton ComboFlags = 32
	// Display only a square arrow button
	ComboFlagsNoPreview ComboFlags = 64
	// Width dynamically calculated from preview contents
	ComboFlagsWidthFitPreview ComboFlags = 128
	ComboFlagsHeightMask      ComboFlags = 30
)

type ComboFlagsPrivate

type ComboFlagsPrivate int32

Extend ImGuiComboFlags_ original name: ImGuiComboFlagsPrivate_

const (
	// enable BeginComboPreview()
	ComboFlagsCustomPreview ComboFlagsPrivate = 1048576
)

type ComboPreviewData

type ComboPreviewData struct {
	CData *C.ImGuiComboPreviewData
}

func InternalNewComboPreviewData

func InternalNewComboPreviewData() *ComboPreviewData

func NewComboPreviewDataFromC

func NewComboPreviewDataFromC[SRC any](cvalue SRC) *ComboPreviewData

NewComboPreviewDataFromC creates ComboPreviewData from its C pointer. SRC ~= *C.ImGuiComboPreviewData

func NewEmptyComboPreviewData added in v1.2.0

func NewEmptyComboPreviewData() *ComboPreviewData

NewEmptyComboPreviewData creates ComboPreviewData with its 0 value.

func (*ComboPreviewData) BackupCursorMaxPos

func (self *ComboPreviewData) BackupCursorMaxPos() Vec2

func (*ComboPreviewData) BackupCursorPos

func (self *ComboPreviewData) BackupCursorPos() Vec2

func (*ComboPreviewData) BackupCursorPosPrevLine

func (self *ComboPreviewData) BackupCursorPosPrevLine() Vec2

func (*ComboPreviewData) BackupLayout

func (self *ComboPreviewData) BackupLayout() LayoutType

func (*ComboPreviewData) BackupPrevLineTextBaseOffset

func (self *ComboPreviewData) BackupPrevLineTextBaseOffset() float32

func (ComboPreviewData) C

func (self ComboPreviewData) C() (C.ImGuiComboPreviewData, func())

C is like Handle but returns plain type instead of pointer.

func (*ComboPreviewData) Destroy

func (self *ComboPreviewData) Destroy()

func (*ComboPreviewData) Handle

func (self *ComboPreviewData) Handle() (result *C.ImGuiComboPreviewData, fin func())

Handle returns C version of ComboPreviewData and its finalizer func.

func (*ComboPreviewData) PreviewRect

func (self *ComboPreviewData) PreviewRect() Rect

func (ComboPreviewData) SetBackupCursorMaxPos

func (self ComboPreviewData) SetBackupCursorMaxPos(v Vec2)

func (ComboPreviewData) SetBackupCursorPos

func (self ComboPreviewData) SetBackupCursorPos(v Vec2)

func (ComboPreviewData) SetBackupCursorPosPrevLine

func (self ComboPreviewData) SetBackupCursorPosPrevLine(v Vec2)

func (ComboPreviewData) SetBackupLayout

func (self ComboPreviewData) SetBackupLayout(v LayoutType)

func (ComboPreviewData) SetBackupPrevLineTextBaseOffset

func (self ComboPreviewData) SetBackupPrevLineTextBaseOffset(v float32)

func (ComboPreviewData) SetPreviewRect

func (self ComboPreviewData) SetPreviewRect(v Rect)

type Cond

type Cond int32

Enumeration for ImGui::SetNextWindow***(), SetWindow***(), SetNextItem***() functions Represent a condition. Important: Treat as a regular enum! Do NOT combine multiple values using binary operators! All the functions above treat 0 as a shortcut to ImGuiCond_Always. original name: ImGuiCond_

const (
	// No condition (always set the variable), same as _Always
	CondNone Cond = 0
	// No condition (always set the variable), same as _None
	CondAlways Cond = 1
	// Set the variable once per runtime session (only the first call will succeed)
	CondOnce Cond = 2
	// Set the variable if the object/window has no persistently saved data (no entry in .ini file)
	CondFirstUseEver Cond = 4
	// Set the variable if the object/window is appearing after being hidden/inactive (or the first time)
	CondAppearing Cond = 8
)

type ConfigFlags

type ConfigFlags int32

Configuration flags stored in io.ConfigFlags. Set by user/application. original name: ImGuiConfigFlags_

const (
	ConfigFlagsNone ConfigFlags = 0
	// Master keyboard navigation enable flag. Enable full Tabbing + directional arrows + space/enter to activate.
	ConfigFlagsNavEnableKeyboard ConfigFlags = 1
	// Master gamepad navigation enable flag. Backend also needs to set ImGuiBackendFlags_HasGamepad.
	ConfigFlagsNavEnableGamepad ConfigFlags = 2
	// Instruct dear imgui to disable mouse inputs and interactions.
	ConfigFlagsNoMouse ConfigFlags = 16
	// Instruct backend to not alter mouse cursor shape and visibility. Use if the backend cursor changes are interfering with yours and you don't want to use SetMouseCursor() to change mouse cursor. You may want to honor requests from imgui by reading GetMouseCursor() yourself instead.
	ConfigFlagsNoMouseCursorChange ConfigFlags = 32
	// Instruct dear imgui to disable keyboard inputs and interactions. This is done by ignoring keyboard events and clearing existing states.
	ConfigFlagsNoKeyboard ConfigFlags = 64
	// Docking enable flags.
	ConfigFlagsDockingEnable ConfigFlags = 128
	// Viewport enable flags (require both ImGuiBackendFlags_PlatformHasViewports + ImGuiBackendFlags_RendererHasViewports set by the respective backends)
	ConfigFlagsViewportsEnable ConfigFlags = 1024
	// [BETA: Don't use] FIXME-DPI: Reposition and resize imgui windows when the DpiScale of a viewport changed (mostly useful for the main viewport hosting other window). Note that resizing the main window itself is up to your application.
	ConfigFlagsDpiEnableScaleViewports ConfigFlags = 16384
	// [BETA: Don't use] FIXME-DPI: Request bitmap-scaled fonts to match DpiScale. This is a very low-quality workaround. The correct way to handle DPI is _currently_ to replace the atlas and/or fonts in the Platform_OnChangedViewport callback, but this is all early work in progress.
	ConfigFlagsDpiEnableScaleFonts ConfigFlags = 32768
	// Application is SRGB-aware.
	ConfigFlagsIsSRGB ConfigFlags = 1048576
	// Application is using a touch screen instead of a mouse.
	ConfigFlagsIsTouchScreen ConfigFlags = 2097152
)

type Context

type Context struct {
	CData *C.ImGuiContext
}

func CreateContext

func CreateContext() *Context

func CreateContextV

func CreateContextV(shared_font_atlas *FontAtlas) *Context

CreateContextV parameter default value hint: shared_font_atlas: NULL

func CurrentContext

func CurrentContext() *Context

func InternalNewContext

func InternalNewContext(shared_font_atlas *FontAtlas) *Context

func NewContextFromC

func NewContextFromC[SRC any](cvalue SRC) *Context

NewContextFromC creates Context from its C pointer. SRC ~= *C.ImGuiContext

func NewEmptyContext added in v1.2.0

func NewEmptyContext() *Context

NewEmptyContext creates Context with its 0 value.

func (*Context) ActiveId

func (self *Context) ActiveId() ID

func (*Context) ActiveIdAllowOverlap

func (self *Context) ActiveIdAllowOverlap() bool

func (*Context) ActiveIdClickOffset

func (self *Context) ActiveIdClickOffset() Vec2

func (*Context) ActiveIdFromShortcut

func (self *Context) ActiveIdFromShortcut() bool

func (*Context) ActiveIdHasBeenEditedBefore

func (self *Context) ActiveIdHasBeenEditedBefore() bool

func (*Context) ActiveIdHasBeenEditedThisFrame

func (self *Context) ActiveIdHasBeenEditedThisFrame() bool

func (*Context) ActiveIdHasBeenPressedBefore

func (self *Context) ActiveIdHasBeenPressedBefore() bool

func (*Context) ActiveIdIsAlive

func (self *Context) ActiveIdIsAlive() ID

func (*Context) ActiveIdIsJustActivated

func (self *Context) ActiveIdIsJustActivated() bool

func (*Context) ActiveIdMouseButton

func (self *Context) ActiveIdMouseButton() int32

func (*Context) ActiveIdNoClearOnFocusLoss

func (self *Context) ActiveIdNoClearOnFocusLoss() bool

func (*Context) ActiveIdPreviousFrame

func (self *Context) ActiveIdPreviousFrame() ID

func (*Context) ActiveIdPreviousFrameHasBeenEditedBefore

func (self *Context) ActiveIdPreviousFrameHasBeenEditedBefore() bool

func (*Context) ActiveIdPreviousFrameIsAlive

func (self *Context) ActiveIdPreviousFrameIsAlive() bool

func (*Context) ActiveIdPreviousFrameWindow

func (self *Context) ActiveIdPreviousFrameWindow() *Window

func (*Context) ActiveIdSource

func (self *Context) ActiveIdSource() InputSource

func (*Context) ActiveIdTimer

func (self *Context) ActiveIdTimer() float32

func (*Context) ActiveIdUsingAllKeyboardKeys

func (self *Context) ActiveIdUsingAllKeyboardKeys() bool

func (*Context) ActiveIdUsingNavDirMask

func (self *Context) ActiveIdUsingNavDirMask() uint32

func (*Context) ActiveIdWindow

func (self *Context) ActiveIdWindow() *Window

func (*Context) BeginComboDepth

func (self *Context) BeginComboDepth() int32

func (*Context) BeginMenuDepth

func (self *Context) BeginMenuDepth() int32

func (*Context) BeginPopupStack

func (self *Context) BeginPopupStack() vectors.Vector[PopupData]

func (*Context) BoxSelectState

func (self *Context) BoxSelectState() BoxSelectState

func (Context) C

func (self Context) C() (C.ImGuiContext, func())

C is like Handle but returns plain type instead of pointer.

func (*Context) ClipboardHandlerData

func (self *Context) ClipboardHandlerData() vectors.Vector[int8]

func (*Context) ClipperTempData

func (self *Context) ClipperTempData() vectors.Vector[ListClipperData]

func (*Context) ClipperTempDataStacked

func (self *Context) ClipperTempDataStacked() int32

func (*Context) ColorEditCurrentID

func (self *Context) ColorEditCurrentID() ID

func (*Context) ColorEditOptions

func (self *Context) ColorEditOptions() ColorEditFlags

func (*Context) ColorEditSavedColor

func (self *Context) ColorEditSavedColor() uint32

func (*Context) ColorEditSavedHue

func (self *Context) ColorEditSavedHue() float32

func (*Context) ColorEditSavedID

func (self *Context) ColorEditSavedID() ID

func (*Context) ColorEditSavedSat

func (self *Context) ColorEditSavedSat() float32

func (*Context) ColorPickerRef

func (self *Context) ColorPickerRef() Vec4

func (*Context) ColorStack

func (self *Context) ColorStack() vectors.Vector[ColorMod]

func (*Context) ComboPreviewData

func (self *Context) ComboPreviewData() ComboPreviewData

func (*Context) ConfigFlagsCurrFrame

func (self *Context) ConfigFlagsCurrFrame() ConfigFlags

func (*Context) ConfigFlagsLastFrame

func (self *Context) ConfigFlagsLastFrame() ConfigFlags

func (*Context) ConfigNavWindowingKeyNext

func (self *Context) ConfigNavWindowingKeyNext() KeyChord

func (*Context) ConfigNavWindowingKeyPrev

func (self *Context) ConfigNavWindowingKeyPrev() KeyChord

func (*Context) ContextName

func (self *Context) ContextName() [16]rune

func (*Context) CurrentDpiScale

func (self *Context) CurrentDpiScale() float32

func (*Context) CurrentFocusScopeId

func (self *Context) CurrentFocusScopeId() ID

func (*Context) CurrentItemFlags

func (self *Context) CurrentItemFlags() ItemFlags

func (*Context) CurrentMultiSelect

func (self *Context) CurrentMultiSelect() *MultiSelectTempData

func (*Context) CurrentTabBar

func (self *Context) CurrentTabBar() *TabBar

func (*Context) CurrentTabBarStack

func (self *Context) CurrentTabBarStack() vectors.Vector[PtrOrIndex]

func (*Context) CurrentTable

func (self *Context) CurrentTable() *Table

func (*Context) CurrentViewport

func (self *Context) CurrentViewport() *ViewportP

func (*Context) CurrentWindow

func (self *Context) CurrentWindow() *Window

func (*Context) CurrentWindowStack

func (self *Context) CurrentWindowStack() vectors.Vector[WindowStackData]

func (*Context) DataTypeZeroValue

func (self *Context) DataTypeZeroValue() DataTypeStorage

func (*Context) DebugAllocInfo

func (self *Context) DebugAllocInfo() DebugAllocInfo

func (*Context) DebugBeginReturnValueCullDepth

func (self *Context) DebugBeginReturnValueCullDepth() int

func (*Context) DebugBreakInLocateId

func (self *Context) DebugBreakInLocateId() bool

func (*Context) DebugBreakInShortcutRouting

func (self *Context) DebugBreakInShortcutRouting() KeyChord

func (*Context) DebugBreakInTable

func (self *Context) DebugBreakInTable() ID

func (*Context) DebugBreakInWindow

func (self *Context) DebugBreakInWindow() ID

func (*Context) DebugBreakKeyChord

func (self *Context) DebugBreakKeyChord() KeyChord

func (*Context) DebugDrawIdConflicts

func (self *Context) DebugDrawIdConflicts() ID

func (*Context) DebugDrawIdConflictsCount added in v1.1.0

func (self *Context) DebugDrawIdConflictsCount() int32

func (*Context) DebugFlashStyleColorBackup

func (self *Context) DebugFlashStyleColorBackup() Vec4

func (*Context) DebugFlashStyleColorIdx

func (self *Context) DebugFlashStyleColorIdx() Col

func (*Context) DebugFlashStyleColorTime

func (self *Context) DebugFlashStyleColorTime() float32

func (*Context) DebugHookIdInfo

func (self *Context) DebugHookIdInfo() ID

func (*Context) DebugHoveredDockNode

func (self *Context) DebugHoveredDockNode() *DockNode

func (*Context) DebugIDStackTool

func (self *Context) DebugIDStackTool() IDStackTool

func (*Context) DebugItemPickerActive

func (self *Context) DebugItemPickerActive() bool

func (*Context) DebugItemPickerBreakId

func (self *Context) DebugItemPickerBreakId() ID

func (*Context) DebugItemPickerMouseButton

func (self *Context) DebugItemPickerMouseButton() byte

func (*Context) DebugLocateFrames

func (self *Context) DebugLocateFrames() byte

func (*Context) DebugLocateId

func (self *Context) DebugLocateId() ID

func (*Context) DebugLogAutoDisableFlags

func (self *Context) DebugLogAutoDisableFlags() DebugLogFlags

func (*Context) DebugLogAutoDisableFrames

func (self *Context) DebugLogAutoDisableFrames() byte

func (*Context) DebugLogBuf

func (self *Context) DebugLogBuf() TextBuffer

func (*Context) DebugLogFlags

func (self *Context) DebugLogFlags() DebugLogFlags

func (*Context) DebugLogIndex

func (self *Context) DebugLogIndex() TextIndex

func (*Context) DebugLogSkippedErrors added in v1.1.0

func (self *Context) DebugLogSkippedErrors() int32

func (*Context) DebugMetricsConfig

func (self *Context) DebugMetricsConfig() MetricsConfig

func (*Context) DebugShowGroupRects

func (self *Context) DebugShowGroupRects() bool

func (*Context) Destroy

func (self *Context) Destroy()

func (*Context) DimBgRatio

func (self *Context) DimBgRatio() float32

func (*Context) DisabledAlphaBackup

func (self *Context) DisabledAlphaBackup() float32

func (*Context) DisabledStackSize

func (self *Context) DisabledStackSize() int16

func (*Context) DockContext

func (self *Context) DockContext() DockContext

func (*Context) DragCurrentAccum

func (self *Context) DragCurrentAccum() float32

func (*Context) DragCurrentAccumDirty

func (self *Context) DragCurrentAccumDirty() bool

func (*Context) DragDropAcceptFlags

func (self *Context) DragDropAcceptFlags() DragDropFlags

func (*Context) DragDropAcceptFrameCount

func (self *Context) DragDropAcceptFrameCount() int32

func (*Context) DragDropAcceptIdCurr

func (self *Context) DragDropAcceptIdCurr() ID

func (*Context) DragDropAcceptIdCurrRectSurface

func (self *Context) DragDropAcceptIdCurrRectSurface() float32

func (*Context) DragDropAcceptIdPrev

func (self *Context) DragDropAcceptIdPrev() ID

func (*Context) DragDropActive

func (self *Context) DragDropActive() bool

func (*Context) DragDropHoldJustPressedId

func (self *Context) DragDropHoldJustPressedId() ID

func (*Context) DragDropMouseButton

func (self *Context) DragDropMouseButton() int32

func (*Context) DragDropPayload

func (self *Context) DragDropPayload() Payload

func (*Context) DragDropPayloadBufLocal

func (self *Context) DragDropPayloadBufLocal() [16]uint

func (*Context) DragDropSourceFlags

func (self *Context) DragDropSourceFlags() DragDropFlags

func (*Context) DragDropSourceFrameCount

func (self *Context) DragDropSourceFrameCount() int32

func (*Context) DragDropTargetClipRect

func (self *Context) DragDropTargetClipRect() Rect

func (*Context) DragDropTargetId

func (self *Context) DragDropTargetId() ID

func (*Context) DragDropTargetRect

func (self *Context) DragDropTargetRect() Rect

func (*Context) DragDropWithinSource

func (self *Context) DragDropWithinSource() bool

func (*Context) DragDropWithinTarget

func (self *Context) DragDropWithinTarget() bool

func (*Context) DragSpeedDefaultRatio

func (self *Context) DragSpeedDefaultRatio() float32

func (*Context) DrawChannelsTempMergeBuffer

func (self *Context) DrawChannelsTempMergeBuffer() vectors.Vector[DrawChannel]

func (*Context) DrawListSharedData

func (self *Context) DrawListSharedData() DrawListSharedData

func (*Context) ErrorCallback added in v1.2.0

func (self *Context) ErrorCallback() ErrorCallback

func (*Context) ErrorCallbackUserData added in v1.1.0

func (self *Context) ErrorCallbackUserData() uintptr

func (*Context) ErrorCountCurrentFrame added in v1.1.0

func (self *Context) ErrorCountCurrentFrame() int32

func (*Context) ErrorFirst added in v1.1.0

func (self *Context) ErrorFirst() bool

func (*Context) ErrorTooltipLockedPos added in v1.1.0

func (self *Context) ErrorTooltipLockedPos() Vec2

func (*Context) FallbackMonitor

func (self *Context) FallbackMonitor() PlatformMonitor

func (*Context) FocusScopeStack

func (self *Context) FocusScopeStack() vectors.Vector[FocusScopeData]

func (*Context) Font

func (self *Context) Font() *Font

func (*Context) FontAtlasOwnedByContext

func (self *Context) FontAtlasOwnedByContext() bool

func (*Context) FontBaseSize

func (self *Context) FontBaseSize() float32

func (*Context) FontScale

func (self *Context) FontScale() float32

func (*Context) FontSize

func (self *Context) FontSize() float32

func (*Context) FrameCount

func (self *Context) FrameCount() int32

func (*Context) FrameCountEnded

func (self *Context) FrameCountEnded() int32

func (*Context) FrameCountPlatformEnded

func (self *Context) FrameCountPlatformEnded() int32

func (*Context) FrameCountRendered

func (self *Context) FrameCountRendered() int32

func (*Context) FramerateSecPerFrame

func (self *Context) FramerateSecPerFrame() [60]float32

func (*Context) FramerateSecPerFrameAccum

func (self *Context) FramerateSecPerFrameAccum() float32

func (*Context) FramerateSecPerFrameCount

func (self *Context) FramerateSecPerFrameCount() int32

func (*Context) FramerateSecPerFrameIdx

func (self *Context) FramerateSecPerFrameIdx() int32

func (*Context) GcCompactAll

func (self *Context) GcCompactAll() bool

func (*Context) GroupStack

func (self *Context) GroupStack() vectors.Vector[GroupData]

func (*Context) Handle

func (self *Context) Handle() (result *C.ImGuiContext, fin func())

Handle returns C version of Context and its finalizer func.

func (*Context) HookIdNext

func (self *Context) HookIdNext() ID

func (*Context) Hooks

func (self *Context) Hooks() vectors.Vector[ContextHook]

func (*Context) HoverItemDelayClearTimer

func (self *Context) HoverItemDelayClearTimer() float32

func (*Context) HoverItemDelayId

func (self *Context) HoverItemDelayId() ID

func (*Context) HoverItemDelayIdPreviousFrame

func (self *Context) HoverItemDelayIdPreviousFrame() ID

func (*Context) HoverItemDelayTimer

func (self *Context) HoverItemDelayTimer() float32

func (*Context) HoverItemUnlockedStationaryId

func (self *Context) HoverItemUnlockedStationaryId() ID

func (*Context) HoverWindowUnlockedStationaryId

func (self *Context) HoverWindowUnlockedStationaryId() ID

func (*Context) HoveredId

func (self *Context) HoveredId() ID

func (*Context) HoveredIdAllowOverlap

func (self *Context) HoveredIdAllowOverlap() bool

func (*Context) HoveredIdIsDisabled

func (self *Context) HoveredIdIsDisabled() bool

func (*Context) HoveredIdNotActiveTimer

func (self *Context) HoveredIdNotActiveTimer() float32

func (*Context) HoveredIdPreviousFrame

func (self *Context) HoveredIdPreviousFrame() ID

func (*Context) HoveredIdPreviousFrameItemCount

func (self *Context) HoveredIdPreviousFrameItemCount() int32

func (*Context) HoveredIdTimer

func (self *Context) HoveredIdTimer() float32

func (*Context) HoveredWindow

func (self *Context) HoveredWindow() *Window

func (*Context) HoveredWindowBeforeClear

func (self *Context) HoveredWindowBeforeClear() *Window

func (*Context) HoveredWindowUnderMovingWindow

func (self *Context) HoveredWindowUnderMovingWindow() *Window

func (*Context) IO

func (self *Context) IO() IO

func (*Context) Initialized

func (self *Context) Initialized() bool

func (*Context) InputEventsNextEventId

func (self *Context) InputEventsNextEventId() uint32

func (*Context) InputEventsNextMouseSource

func (self *Context) InputEventsNextMouseSource() MouseSource

func (*Context) InputEventsQueue

func (self *Context) InputEventsQueue() vectors.Vector[InputEvent]

func (*Context) InputEventsTrail

func (self *Context) InputEventsTrail() vectors.Vector[InputEvent]

func (*Context) InputTextDeactivatedState

func (self *Context) InputTextDeactivatedState() InputTextDeactivatedState

func (*Context) InputTextPasswordFont

func (self *Context) InputTextPasswordFont() Font

func (*Context) InputTextState

func (self *Context) InputTextState() InputTextState

func (*Context) ItemFlagsStack

func (self *Context) ItemFlagsStack() vectors.Vector[ItemFlags]

func (*Context) ItemUnclipByLog

func (self *Context) ItemUnclipByLog() bool

func (*Context) KeysOwnerData

func (self *Context) KeysOwnerData() [154]KeyOwnerData

func (*Context) KeysRoutingTable

func (self *Context) KeysRoutingTable() KeyRoutingTable

func (*Context) LastActiveId

func (self *Context) LastActiveId() ID

func (*Context) LastActiveIdTimer

func (self *Context) LastActiveIdTimer() float32

func (*Context) LastItemData

func (self *Context) LastItemData() LastItemData

func (*Context) LastKeyModsChangeFromNoneTime

func (self *Context) LastKeyModsChangeFromNoneTime() float64

func (*Context) LastKeyModsChangeTime

func (self *Context) LastKeyModsChangeTime() float64

func (*Context) LastKeyboardKeyPressTime

func (self *Context) LastKeyboardKeyPressTime() float64

func (*Context) LocalizationTable

func (self *Context) LocalizationTable() [13]string

func (*Context) LogBuffer

func (self *Context) LogBuffer() TextBuffer

func (*Context) LogDepthRef

func (self *Context) LogDepthRef() int32

func (*Context) LogDepthToExpand

func (self *Context) LogDepthToExpand() int32

func (*Context) LogDepthToExpandDefault

func (self *Context) LogDepthToExpandDefault() int32

func (*Context) LogEnabled

func (self *Context) LogEnabled() bool

func (*Context) LogLineFirstItem

func (self *Context) LogLineFirstItem() bool

func (*Context) LogLinePosY

func (self *Context) LogLinePosY() float32

func (*Context) LogNextPrefix

func (self *Context) LogNextPrefix() string

func (*Context) LogNextSuffix

func (self *Context) LogNextSuffix() string

func (*Context) LogType

func (self *Context) LogType() LogType

func (*Context) MenusIdSubmittedThisFrame

func (self *Context) MenusIdSubmittedThisFrame() vectors.Vector[ID]

func (*Context) MouseCursor

func (self *Context) MouseCursor() MouseCursor

func (*Context) MouseLastHoveredViewport

func (self *Context) MouseLastHoveredViewport() *ViewportP

func (*Context) MouseLastValidPos

func (self *Context) MouseLastValidPos() Vec2

func (*Context) MouseStationaryTimer

func (self *Context) MouseStationaryTimer() float32

func (*Context) MouseViewport

func (self *Context) MouseViewport() *ViewportP

func (*Context) MovingWindow

func (self *Context) MovingWindow() *Window

func (*Context) MultiSelectTempData

func (self *Context) MultiSelectTempData() vectors.Vector[MultiSelectTempData]

func (*Context) MultiSelectTempDataStacked

func (self *Context) MultiSelectTempDataStacked() int32

func (*Context) NavActivateDownId

func (self *Context) NavActivateDownId() ID

func (*Context) NavActivateFlags

func (self *Context) NavActivateFlags() ActivateFlags

func (*Context) NavActivateId

func (self *Context) NavActivateId() ID

func (*Context) NavActivatePressedId

func (self *Context) NavActivatePressedId() ID

func (*Context) NavAnyRequest

func (self *Context) NavAnyRequest() bool

func (*Context) NavCursorHideFrames added in v1.1.0

func (self *Context) NavCursorHideFrames() int

func (*Context) NavCursorVisible added in v1.1.0

func (self *Context) NavCursorVisible() bool

func (*Context) NavFocusRoute

func (self *Context) NavFocusRoute() vectors.Vector[FocusScopeData]

func (*Context) NavFocusScopeId

func (self *Context) NavFocusScopeId() ID

func (*Context) NavHighlightActivatedId

func (self *Context) NavHighlightActivatedId() ID

func (*Context) NavHighlightActivatedTimer

func (self *Context) NavHighlightActivatedTimer() float32

func (*Context) NavHighlightItemUnderNav added in v1.1.0

func (self *Context) NavHighlightItemUnderNav() bool

func (*Context) NavId

func (self *Context) NavId() ID

func (*Context) NavIdIsAlive

func (self *Context) NavIdIsAlive() bool

func (*Context) NavInitRequest

func (self *Context) NavInitRequest() bool

func (*Context) NavInitRequestFromMove

func (self *Context) NavInitRequestFromMove() bool

func (*Context) NavInitResult

func (self *Context) NavInitResult() NavItemData

func (*Context) NavInputSource

func (self *Context) NavInputSource() InputSource

func (*Context) NavJustMovedFromFocusScopeId

func (self *Context) NavJustMovedFromFocusScopeId() ID

func (*Context) NavJustMovedToFocusScopeId

func (self *Context) NavJustMovedToFocusScopeId() ID

func (*Context) NavJustMovedToHasSelectionData

func (self *Context) NavJustMovedToHasSelectionData() bool

func (*Context) NavJustMovedToId

func (self *Context) NavJustMovedToId() ID

func (*Context) NavJustMovedToIsTabbing

func (self *Context) NavJustMovedToIsTabbing() bool

func (*Context) NavJustMovedToKeyMods

func (self *Context) NavJustMovedToKeyMods() KeyChord

func (*Context) NavLastValidSelectionUserData

func (self *Context) NavLastValidSelectionUserData() SelectionUserData

func (*Context) NavLayer

func (self *Context) NavLayer() NavLayer

func (*Context) NavMousePosDirty

func (self *Context) NavMousePosDirty() bool

func (*Context) NavMoveClipDir

func (self *Context) NavMoveClipDir() Dir

func (*Context) NavMoveDir

func (self *Context) NavMoveDir() Dir

func (*Context) NavMoveDirForDebug

func (self *Context) NavMoveDirForDebug() Dir

func (*Context) NavMoveFlags

func (self *Context) NavMoveFlags() NavMoveFlags

func (*Context) NavMoveForwardToNextFrame

func (self *Context) NavMoveForwardToNextFrame() bool

func (*Context) NavMoveKeyMods

func (self *Context) NavMoveKeyMods() KeyChord

func (*Context) NavMoveResultLocal

func (self *Context) NavMoveResultLocal() NavItemData

func (*Context) NavMoveResultLocalVisible

func (self *Context) NavMoveResultLocalVisible() NavItemData

func (*Context) NavMoveResultOther

func (self *Context) NavMoveResultOther() NavItemData

func (*Context) NavMoveScoringItems

func (self *Context) NavMoveScoringItems() bool

func (*Context) NavMoveScrollFlags

func (self *Context) NavMoveScrollFlags() ScrollFlags

func (*Context) NavMoveSubmitted

func (self *Context) NavMoveSubmitted() bool

func (*Context) NavNextActivateFlags

func (self *Context) NavNextActivateFlags() ActivateFlags

func (*Context) NavNextActivateId

func (self *Context) NavNextActivateId() ID

func (*Context) NavScoringDebugCount

func (self *Context) NavScoringDebugCount() int32

func (*Context) NavScoringNoClipRect

func (self *Context) NavScoringNoClipRect() Rect

func (*Context) NavScoringRect

func (self *Context) NavScoringRect() Rect

func (*Context) NavTabbingCounter

func (self *Context) NavTabbingCounter() int32

func (*Context) NavTabbingDir

func (self *Context) NavTabbingDir() int32

func (*Context) NavTabbingResultFirst

func (self *Context) NavTabbingResultFirst() NavItemData

func (*Context) NavWindow

func (self *Context) NavWindow() *Window

func (*Context) NavWindowingAccumDeltaPos

func (self *Context) NavWindowingAccumDeltaPos() Vec2

func (*Context) NavWindowingAccumDeltaSize

func (self *Context) NavWindowingAccumDeltaSize() Vec2

func (*Context) NavWindowingHighlightAlpha

func (self *Context) NavWindowingHighlightAlpha() float32

func (*Context) NavWindowingListWindow

func (self *Context) NavWindowingListWindow() *Window

func (*Context) NavWindowingTarget

func (self *Context) NavWindowingTarget() *Window

func (*Context) NavWindowingTargetAnim

func (self *Context) NavWindowingTargetAnim() *Window

func (*Context) NavWindowingTimer

func (self *Context) NavWindowingTimer() float32

func (*Context) NavWindowingToggleKey

func (self *Context) NavWindowingToggleKey() Key

func (*Context) NavWindowingToggleLayer

func (self *Context) NavWindowingToggleLayer() bool

func (*Context) NextItemData

func (self *Context) NextItemData() NextItemData

func (*Context) NextWindowData

func (self *Context) NextWindowData() NextWindowData

func (*Context) OpenPopupStack

func (self *Context) OpenPopupStack() vectors.Vector[PopupData]

func (*Context) PlatformIO

func (self *Context) PlatformIO() PlatformIO

func (*Context) PlatformImeData

func (self *Context) PlatformImeData() PlatformImeData

func (*Context) PlatformImeDataPrev

func (self *Context) PlatformImeDataPrev() PlatformImeData

func (*Context) PlatformImeViewport

func (self *Context) PlatformImeViewport() ID

func (*Context) PlatformLastFocusedViewportId

func (self *Context) PlatformLastFocusedViewportId() ID

func (*Context) PlatformMonitorsFullWorkRect

func (self *Context) PlatformMonitorsFullWorkRect() Rect

func (*Context) PlatformWindowsCreatedCount

func (self *Context) PlatformWindowsCreatedCount() int32

func (*Context) ScrollbarClickDeltaToGrabCenter

func (self *Context) ScrollbarClickDeltaToGrabCenter() float32

func (*Context) ScrollbarSeekMode

func (self *Context) ScrollbarSeekMode() int16

func (Context) SetActiveId

func (self Context) SetActiveId(v ID)

func (Context) SetActiveIdAllowOverlap

func (self Context) SetActiveIdAllowOverlap(v bool)

func (Context) SetActiveIdClickOffset

func (self Context) SetActiveIdClickOffset(v Vec2)

func (Context) SetActiveIdFromShortcut

func (self Context) SetActiveIdFromShortcut(v bool)

func (Context) SetActiveIdHasBeenEditedBefore

func (self Context) SetActiveIdHasBeenEditedBefore(v bool)

func (Context) SetActiveIdHasBeenEditedThisFrame

func (self Context) SetActiveIdHasBeenEditedThisFrame(v bool)

func (Context) SetActiveIdHasBeenPressedBefore

func (self Context) SetActiveIdHasBeenPressedBefore(v bool)

func (Context) SetActiveIdIsAlive

func (self Context) SetActiveIdIsAlive(v ID)

func (Context) SetActiveIdIsJustActivated

func (self Context) SetActiveIdIsJustActivated(v bool)

func (Context) SetActiveIdMouseButton

func (self Context) SetActiveIdMouseButton(v int32)

func (Context) SetActiveIdNoClearOnFocusLoss

func (self Context) SetActiveIdNoClearOnFocusLoss(v bool)

func (Context) SetActiveIdPreviousFrame

func (self Context) SetActiveIdPreviousFrame(v ID)

func (Context) SetActiveIdPreviousFrameHasBeenEditedBefore

func (self Context) SetActiveIdPreviousFrameHasBeenEditedBefore(v bool)

func (Context) SetActiveIdPreviousFrameIsAlive

func (self Context) SetActiveIdPreviousFrameIsAlive(v bool)

func (Context) SetActiveIdPreviousFrameWindow

func (self Context) SetActiveIdPreviousFrameWindow(v *Window)

func (Context) SetActiveIdSource

func (self Context) SetActiveIdSource(v InputSource)

func (Context) SetActiveIdTimer

func (self Context) SetActiveIdTimer(v float32)

func (Context) SetActiveIdUsingAllKeyboardKeys

func (self Context) SetActiveIdUsingAllKeyboardKeys(v bool)

func (Context) SetActiveIdUsingNavDirMask

func (self Context) SetActiveIdUsingNavDirMask(v uint32)

func (Context) SetActiveIdWindow

func (self Context) SetActiveIdWindow(v *Window)

func (Context) SetBeginComboDepth

func (self Context) SetBeginComboDepth(v int32)

func (Context) SetBeginMenuDepth

func (self Context) SetBeginMenuDepth(v int32)

func (Context) SetBeginPopupStack

func (self Context) SetBeginPopupStack(v vectors.Vector[PopupData])

func (Context) SetBoxSelectState

func (self Context) SetBoxSelectState(v BoxSelectState)

func (Context) SetClipboardHandlerData

func (self Context) SetClipboardHandlerData(v vectors.Vector[int8])

func (Context) SetClipperTempData

func (self Context) SetClipperTempData(v vectors.Vector[ListClipperData])

func (Context) SetClipperTempDataStacked

func (self Context) SetClipperTempDataStacked(v int32)

func (Context) SetColorEditCurrentID

func (self Context) SetColorEditCurrentID(v ID)

func (Context) SetColorEditOptions

func (self Context) SetColorEditOptions(v ColorEditFlags)

func (Context) SetColorEditSavedColor

func (self Context) SetColorEditSavedColor(v uint32)

func (Context) SetColorEditSavedHue

func (self Context) SetColorEditSavedHue(v float32)

func (Context) SetColorEditSavedID

func (self Context) SetColorEditSavedID(v ID)

func (Context) SetColorEditSavedSat

func (self Context) SetColorEditSavedSat(v float32)

func (Context) SetColorPickerRef

func (self Context) SetColorPickerRef(v Vec4)

func (Context) SetColorStack

func (self Context) SetColorStack(v vectors.Vector[ColorMod])

func (Context) SetComboPreviewData

func (self Context) SetComboPreviewData(v ComboPreviewData)

func (Context) SetConfigFlagsCurrFrame

func (self Context) SetConfigFlagsCurrFrame(v ConfigFlags)

func (Context) SetConfigFlagsLastFrame

func (self Context) SetConfigFlagsLastFrame(v ConfigFlags)

func (Context) SetConfigNavWindowingKeyNext

func (self Context) SetConfigNavWindowingKeyNext(v KeyChord)

func (Context) SetConfigNavWindowingKeyPrev

func (self Context) SetConfigNavWindowingKeyPrev(v KeyChord)

func (Context) SetContextName

func (self Context) SetContextName(v *[16]rune)

func (Context) SetCurrentDpiScale

func (self Context) SetCurrentDpiScale(v float32)

func (Context) SetCurrentFocusScopeId

func (self Context) SetCurrentFocusScopeId(v ID)

func (Context) SetCurrentItemFlags

func (self Context) SetCurrentItemFlags(v ItemFlags)

func (Context) SetCurrentMultiSelect

func (self Context) SetCurrentMultiSelect(v *MultiSelectTempData)

func (Context) SetCurrentTabBar

func (self Context) SetCurrentTabBar(v *TabBar)

func (Context) SetCurrentTabBarStack

func (self Context) SetCurrentTabBarStack(v vectors.Vector[PtrOrIndex])

func (Context) SetCurrentTable

func (self Context) SetCurrentTable(v *Table)

func (Context) SetCurrentViewport

func (self Context) SetCurrentViewport(v *ViewportP)

func (Context) SetCurrentWindow

func (self Context) SetCurrentWindow(v *Window)

func (Context) SetCurrentWindowStack

func (self Context) SetCurrentWindowStack(v vectors.Vector[WindowStackData])

func (Context) SetDataTypeZeroValue

func (self Context) SetDataTypeZeroValue(v DataTypeStorage)

func (Context) SetDebugAllocInfo

func (self Context) SetDebugAllocInfo(v DebugAllocInfo)

func (Context) SetDebugBeginReturnValueCullDepth

func (self Context) SetDebugBeginReturnValueCullDepth(v int)

func (Context) SetDebugBreakInLocateId

func (self Context) SetDebugBreakInLocateId(v bool)

func (Context) SetDebugBreakInShortcutRouting

func (self Context) SetDebugBreakInShortcutRouting(v KeyChord)

func (Context) SetDebugBreakInTable

func (self Context) SetDebugBreakInTable(v ID)

func (Context) SetDebugBreakInWindow

func (self Context) SetDebugBreakInWindow(v ID)

func (Context) SetDebugBreakKeyChord

func (self Context) SetDebugBreakKeyChord(v KeyChord)

func (Context) SetDebugDrawIdConflicts

func (self Context) SetDebugDrawIdConflicts(v ID)

func (Context) SetDebugDrawIdConflictsCount added in v1.1.0

func (self Context) SetDebugDrawIdConflictsCount(v int32)

func (Context) SetDebugFlashStyleColorBackup

func (self Context) SetDebugFlashStyleColorBackup(v Vec4)

func (Context) SetDebugFlashStyleColorIdx

func (self Context) SetDebugFlashStyleColorIdx(v Col)

func (Context) SetDebugFlashStyleColorTime

func (self Context) SetDebugFlashStyleColorTime(v float32)

func (Context) SetDebugHookIdInfo

func (self Context) SetDebugHookIdInfo(v ID)

func (Context) SetDebugHoveredDockNode

func (self Context) SetDebugHoveredDockNode(v *DockNode)

func (Context) SetDebugIDStackTool

func (self Context) SetDebugIDStackTool(v IDStackTool)

func (Context) SetDebugItemPickerActive

func (self Context) SetDebugItemPickerActive(v bool)

func (Context) SetDebugItemPickerBreakId

func (self Context) SetDebugItemPickerBreakId(v ID)

func (Context) SetDebugItemPickerMouseButton

func (self Context) SetDebugItemPickerMouseButton(v byte)

func (Context) SetDebugLocateFrames

func (self Context) SetDebugLocateFrames(v byte)

func (Context) SetDebugLocateId

func (self Context) SetDebugLocateId(v ID)

func (Context) SetDebugLogAutoDisableFlags

func (self Context) SetDebugLogAutoDisableFlags(v DebugLogFlags)

func (Context) SetDebugLogAutoDisableFrames

func (self Context) SetDebugLogAutoDisableFrames(v byte)

func (Context) SetDebugLogBuf

func (self Context) SetDebugLogBuf(v TextBuffer)

func (Context) SetDebugLogFlags

func (self Context) SetDebugLogFlags(v DebugLogFlags)

func (Context) SetDebugLogIndex

func (self Context) SetDebugLogIndex(v TextIndex)

func (Context) SetDebugLogSkippedErrors added in v1.1.0

func (self Context) SetDebugLogSkippedErrors(v int32)

func (Context) SetDebugMetricsConfig

func (self Context) SetDebugMetricsConfig(v MetricsConfig)

func (Context) SetDebugShowGroupRects

func (self Context) SetDebugShowGroupRects(v bool)

func (Context) SetDimBgRatio

func (self Context) SetDimBgRatio(v float32)

func (Context) SetDisabledAlphaBackup

func (self Context) SetDisabledAlphaBackup(v float32)

func (Context) SetDisabledStackSize

func (self Context) SetDisabledStackSize(v int16)

func (Context) SetDockContext

func (self Context) SetDockContext(v DockContext)

func (Context) SetDragCurrentAccum

func (self Context) SetDragCurrentAccum(v float32)

func (Context) SetDragCurrentAccumDirty

func (self Context) SetDragCurrentAccumDirty(v bool)

func (Context) SetDragDropAcceptFlags

func (self Context) SetDragDropAcceptFlags(v DragDropFlags)

func (Context) SetDragDropAcceptFrameCount

func (self Context) SetDragDropAcceptFrameCount(v int32)

func (Context) SetDragDropAcceptIdCurr

func (self Context) SetDragDropAcceptIdCurr(v ID)

func (Context) SetDragDropAcceptIdCurrRectSurface

func (self Context) SetDragDropAcceptIdCurrRectSurface(v float32)

func (Context) SetDragDropAcceptIdPrev

func (self Context) SetDragDropAcceptIdPrev(v ID)

func (Context) SetDragDropActive

func (self Context) SetDragDropActive(v bool)

func (Context) SetDragDropHoldJustPressedId

func (self Context) SetDragDropHoldJustPressedId(v ID)

func (Context) SetDragDropMouseButton

func (self Context) SetDragDropMouseButton(v int32)

func (Context) SetDragDropPayload

func (self Context) SetDragDropPayload(v Payload)

func (Context) SetDragDropPayloadBufLocal

func (self Context) SetDragDropPayloadBufLocal(v *[16]uint)

func (Context) SetDragDropSourceFlags

func (self Context) SetDragDropSourceFlags(v DragDropFlags)

func (Context) SetDragDropSourceFrameCount

func (self Context) SetDragDropSourceFrameCount(v int32)

func (Context) SetDragDropTargetClipRect

func (self Context) SetDragDropTargetClipRect(v Rect)

func (Context) SetDragDropTargetId

func (self Context) SetDragDropTargetId(v ID)

func (Context) SetDragDropTargetRect

func (self Context) SetDragDropTargetRect(v Rect)

func (Context) SetDragDropWithinSource

func (self Context) SetDragDropWithinSource(v bool)

func (Context) SetDragDropWithinTarget

func (self Context) SetDragDropWithinTarget(v bool)

func (Context) SetDragSpeedDefaultRatio

func (self Context) SetDragSpeedDefaultRatio(v float32)

func (Context) SetDrawChannelsTempMergeBuffer

func (self Context) SetDrawChannelsTempMergeBuffer(v vectors.Vector[DrawChannel])

func (Context) SetDrawListSharedData

func (self Context) SetDrawListSharedData(v DrawListSharedData)

func (Context) SetErrorCallback added in v1.2.0

func (self Context) SetErrorCallback(v ErrorCallback)

func (Context) SetErrorCallbackUserData added in v1.1.0

func (self Context) SetErrorCallbackUserData(v uintptr)

func (Context) SetErrorCountCurrentFrame added in v1.1.0

func (self Context) SetErrorCountCurrentFrame(v int32)

func (Context) SetErrorFirst added in v1.1.0

func (self Context) SetErrorFirst(v bool)

func (Context) SetErrorTooltipLockedPos added in v1.1.0

func (self Context) SetErrorTooltipLockedPos(v Vec2)

func (Context) SetFallbackMonitor

func (self Context) SetFallbackMonitor(v PlatformMonitor)

func (Context) SetFocusScopeStack

func (self Context) SetFocusScopeStack(v vectors.Vector[FocusScopeData])

func (Context) SetFont

func (self Context) SetFont(v *Font)

func (Context) SetFontAtlasOwnedByContext

func (self Context) SetFontAtlasOwnedByContext(v bool)

func (Context) SetFontBaseSize

func (self Context) SetFontBaseSize(v float32)

func (Context) SetFontScale

func (self Context) SetFontScale(v float32)

func (Context) SetFontSize

func (self Context) SetFontSize(v float32)

func (Context) SetFrameCount

func (self Context) SetFrameCount(v int32)

func (Context) SetFrameCountEnded

func (self Context) SetFrameCountEnded(v int32)

func (Context) SetFrameCountPlatformEnded

func (self Context) SetFrameCountPlatformEnded(v int32)

func (Context) SetFrameCountRendered

func (self Context) SetFrameCountRendered(v int32)

func (Context) SetFramerateSecPerFrame

func (self Context) SetFramerateSecPerFrame(v *[60]float32)

func (Context) SetFramerateSecPerFrameAccum

func (self Context) SetFramerateSecPerFrameAccum(v float32)

func (Context) SetFramerateSecPerFrameCount

func (self Context) SetFramerateSecPerFrameCount(v int32)

func (Context) SetFramerateSecPerFrameIdx

func (self Context) SetFramerateSecPerFrameIdx(v int32)

func (Context) SetGcCompactAll

func (self Context) SetGcCompactAll(v bool)

func (Context) SetGroupStack

func (self Context) SetGroupStack(v vectors.Vector[GroupData])

func (Context) SetHookIdNext

func (self Context) SetHookIdNext(v ID)

func (Context) SetHooks

func (self Context) SetHooks(v vectors.Vector[ContextHook])

func (Context) SetHoverItemDelayClearTimer

func (self Context) SetHoverItemDelayClearTimer(v float32)

func (Context) SetHoverItemDelayId

func (self Context) SetHoverItemDelayId(v ID)

func (Context) SetHoverItemDelayIdPreviousFrame

func (self Context) SetHoverItemDelayIdPreviousFrame(v ID)

func (Context) SetHoverItemDelayTimer

func (self Context) SetHoverItemDelayTimer(v float32)

func (Context) SetHoverItemUnlockedStationaryId

func (self Context) SetHoverItemUnlockedStationaryId(v ID)

func (Context) SetHoverWindowUnlockedStationaryId

func (self Context) SetHoverWindowUnlockedStationaryId(v ID)

func (Context) SetHoveredId

func (self Context) SetHoveredId(v ID)

func (Context) SetHoveredIdAllowOverlap

func (self Context) SetHoveredIdAllowOverlap(v bool)

func (Context) SetHoveredIdIsDisabled

func (self Context) SetHoveredIdIsDisabled(v bool)

func (Context) SetHoveredIdNotActiveTimer

func (self Context) SetHoveredIdNotActiveTimer(v float32)

func (Context) SetHoveredIdPreviousFrame

func (self Context) SetHoveredIdPreviousFrame(v ID)

func (Context) SetHoveredIdPreviousFrameItemCount

func (self Context) SetHoveredIdPreviousFrameItemCount(v int32)

func (Context) SetHoveredIdTimer

func (self Context) SetHoveredIdTimer(v float32)

func (Context) SetHoveredWindow

func (self Context) SetHoveredWindow(v *Window)

func (Context) SetHoveredWindowBeforeClear

func (self Context) SetHoveredWindowBeforeClear(v *Window)

func (Context) SetHoveredWindowUnderMovingWindow

func (self Context) SetHoveredWindowUnderMovingWindow(v *Window)

func (Context) SetIO

func (self Context) SetIO(v IO)

func (Context) SetInitialized

func (self Context) SetInitialized(v bool)

func (Context) SetInputEventsNextEventId

func (self Context) SetInputEventsNextEventId(v uint32)

func (Context) SetInputEventsNextMouseSource

func (self Context) SetInputEventsNextMouseSource(v MouseSource)

func (Context) SetInputEventsQueue

func (self Context) SetInputEventsQueue(v vectors.Vector[InputEvent])

func (Context) SetInputEventsTrail

func (self Context) SetInputEventsTrail(v vectors.Vector[InputEvent])

func (Context) SetInputTextDeactivatedState

func (self Context) SetInputTextDeactivatedState(v InputTextDeactivatedState)

func (Context) SetInputTextPasswordFont

func (self Context) SetInputTextPasswordFont(v Font)

func (Context) SetInputTextState

func (self Context) SetInputTextState(v InputTextState)

func (Context) SetItemFlagsStack added in v1.2.0

func (self Context) SetItemFlagsStack(v vectors.Vector[ItemFlags])

func (Context) SetItemUnclipByLog

func (self Context) SetItemUnclipByLog(v bool)

func (Context) SetKeysOwnerData

func (self Context) SetKeysOwnerData(v *[154]KeyOwnerData)

func (Context) SetKeysRoutingTable

func (self Context) SetKeysRoutingTable(v KeyRoutingTable)

func (Context) SetLastActiveId

func (self Context) SetLastActiveId(v ID)

func (Context) SetLastActiveIdTimer

func (self Context) SetLastActiveIdTimer(v float32)

func (Context) SetLastItemData

func (self Context) SetLastItemData(v LastItemData)

func (Context) SetLastKeyModsChangeFromNoneTime

func (self Context) SetLastKeyModsChangeFromNoneTime(v float64)

func (Context) SetLastKeyModsChangeTime

func (self Context) SetLastKeyModsChangeTime(v float64)

func (Context) SetLastKeyboardKeyPressTime

func (self Context) SetLastKeyboardKeyPressTime(v float64)

func (Context) SetLocalizationTable

func (self Context) SetLocalizationTable(v *[13]string)

func (Context) SetLogBuffer

func (self Context) SetLogBuffer(v TextBuffer)

func (Context) SetLogDepthRef

func (self Context) SetLogDepthRef(v int32)

func (Context) SetLogDepthToExpand

func (self Context) SetLogDepthToExpand(v int32)

func (Context) SetLogDepthToExpandDefault

func (self Context) SetLogDepthToExpandDefault(v int32)

func (Context) SetLogEnabled

func (self Context) SetLogEnabled(v bool)

func (Context) SetLogLineFirstItem

func (self Context) SetLogLineFirstItem(v bool)

func (Context) SetLogLinePosY

func (self Context) SetLogLinePosY(v float32)

func (Context) SetLogNextPrefix

func (self Context) SetLogNextPrefix(v string)

func (Context) SetLogNextSuffix

func (self Context) SetLogNextSuffix(v string)

func (Context) SetLogType

func (self Context) SetLogType(v LogType)

func (Context) SetMenusIdSubmittedThisFrame

func (self Context) SetMenusIdSubmittedThisFrame(v vectors.Vector[ID])

func (Context) SetMouseCursor

func (self Context) SetMouseCursor(v MouseCursor)

func (Context) SetMouseLastHoveredViewport

func (self Context) SetMouseLastHoveredViewport(v *ViewportP)

func (Context) SetMouseLastValidPos

func (self Context) SetMouseLastValidPos(v Vec2)

func (Context) SetMouseStationaryTimer

func (self Context) SetMouseStationaryTimer(v float32)

func (Context) SetMouseViewport

func (self Context) SetMouseViewport(v *ViewportP)

func (Context) SetMovingWindow

func (self Context) SetMovingWindow(v *Window)

func (Context) SetMultiSelectTempData

func (self Context) SetMultiSelectTempData(v vectors.Vector[MultiSelectTempData])

func (Context) SetMultiSelectTempDataStacked

func (self Context) SetMultiSelectTempDataStacked(v int32)

func (Context) SetNavActivateDownId

func (self Context) SetNavActivateDownId(v ID)

func (Context) SetNavActivateFlags

func (self Context) SetNavActivateFlags(v ActivateFlags)

func (Context) SetNavActivateId

func (self Context) SetNavActivateId(v ID)

func (Context) SetNavActivatePressedId

func (self Context) SetNavActivatePressedId(v ID)

func (Context) SetNavAnyRequest

func (self Context) SetNavAnyRequest(v bool)

func (Context) SetNavCursorHideFrames added in v1.1.0

func (self Context) SetNavCursorHideFrames(v int)

func (Context) SetNavCursorVisible added in v1.1.0

func (self Context) SetNavCursorVisible(v bool)

func (Context) SetNavFocusRoute

func (self Context) SetNavFocusRoute(v vectors.Vector[FocusScopeData])

func (Context) SetNavFocusScopeId

func (self Context) SetNavFocusScopeId(v ID)

func (Context) SetNavHighlightActivatedId

func (self Context) SetNavHighlightActivatedId(v ID)

func (Context) SetNavHighlightActivatedTimer

func (self Context) SetNavHighlightActivatedTimer(v float32)

func (Context) SetNavHighlightItemUnderNav added in v1.1.0

func (self Context) SetNavHighlightItemUnderNav(v bool)

func (Context) SetNavId

func (self Context) SetNavId(v ID)

func (Context) SetNavIdIsAlive

func (self Context) SetNavIdIsAlive(v bool)

func (Context) SetNavInitRequest

func (self Context) SetNavInitRequest(v bool)

func (Context) SetNavInitRequestFromMove

func (self Context) SetNavInitRequestFromMove(v bool)

func (Context) SetNavInitResult

func (self Context) SetNavInitResult(v NavItemData)

func (Context) SetNavInputSource

func (self Context) SetNavInputSource(v InputSource)

func (Context) SetNavJustMovedFromFocusScopeId

func (self Context) SetNavJustMovedFromFocusScopeId(v ID)

func (Context) SetNavJustMovedToFocusScopeId

func (self Context) SetNavJustMovedToFocusScopeId(v ID)

func (Context) SetNavJustMovedToHasSelectionData

func (self Context) SetNavJustMovedToHasSelectionData(v bool)

func (Context) SetNavJustMovedToId

func (self Context) SetNavJustMovedToId(v ID)

func (Context) SetNavJustMovedToIsTabbing

func (self Context) SetNavJustMovedToIsTabbing(v bool)

func (Context) SetNavJustMovedToKeyMods

func (self Context) SetNavJustMovedToKeyMods(v KeyChord)

func (Context) SetNavLastValidSelectionUserData

func (self Context) SetNavLastValidSelectionUserData(v SelectionUserData)

func (Context) SetNavLayer

func (self Context) SetNavLayer(v NavLayer)

func (Context) SetNavMousePosDirty

func (self Context) SetNavMousePosDirty(v bool)

func (Context) SetNavMoveClipDir

func (self Context) SetNavMoveClipDir(v Dir)

func (Context) SetNavMoveDir

func (self Context) SetNavMoveDir(v Dir)

func (Context) SetNavMoveDirForDebug

func (self Context) SetNavMoveDirForDebug(v Dir)

func (Context) SetNavMoveFlags

func (self Context) SetNavMoveFlags(v NavMoveFlags)

func (Context) SetNavMoveForwardToNextFrame

func (self Context) SetNavMoveForwardToNextFrame(v bool)

func (Context) SetNavMoveKeyMods

func (self Context) SetNavMoveKeyMods(v KeyChord)

func (Context) SetNavMoveResultLocal

func (self Context) SetNavMoveResultLocal(v NavItemData)

func (Context) SetNavMoveResultLocalVisible

func (self Context) SetNavMoveResultLocalVisible(v NavItemData)

func (Context) SetNavMoveResultOther

func (self Context) SetNavMoveResultOther(v NavItemData)

func (Context) SetNavMoveScoringItems

func (self Context) SetNavMoveScoringItems(v bool)

func (Context) SetNavMoveScrollFlags

func (self Context) SetNavMoveScrollFlags(v ScrollFlags)

func (Context) SetNavMoveSubmitted

func (self Context) SetNavMoveSubmitted(v bool)

func (Context) SetNavNextActivateFlags

func (self Context) SetNavNextActivateFlags(v ActivateFlags)

func (Context) SetNavNextActivateId

func (self Context) SetNavNextActivateId(v ID)

func (Context) SetNavScoringDebugCount

func (self Context) SetNavScoringDebugCount(v int32)

func (Context) SetNavScoringNoClipRect

func (self Context) SetNavScoringNoClipRect(v Rect)

func (Context) SetNavScoringRect

func (self Context) SetNavScoringRect(v Rect)

func (Context) SetNavTabbingCounter

func (self Context) SetNavTabbingCounter(v int32)

func (Context) SetNavTabbingDir

func (self Context) SetNavTabbingDir(v int32)

func (Context) SetNavTabbingResultFirst

func (self Context) SetNavTabbingResultFirst(v NavItemData)

func (Context) SetNavWindow

func (self Context) SetNavWindow(v *Window)

func (Context) SetNavWindowingAccumDeltaPos

func (self Context) SetNavWindowingAccumDeltaPos(v Vec2)

func (Context) SetNavWindowingAccumDeltaSize

func (self Context) SetNavWindowingAccumDeltaSize(v Vec2)

func (Context) SetNavWindowingHighlightAlpha

func (self Context) SetNavWindowingHighlightAlpha(v float32)

func (Context) SetNavWindowingListWindow

func (self Context) SetNavWindowingListWindow(v *Window)

func (Context) SetNavWindowingTarget

func (self Context) SetNavWindowingTarget(v *Window)

func (Context) SetNavWindowingTargetAnim

func (self Context) SetNavWindowingTargetAnim(v *Window)

func (Context) SetNavWindowingTimer

func (self Context) SetNavWindowingTimer(v float32)

func (Context) SetNavWindowingToggleKey

func (self Context) SetNavWindowingToggleKey(v Key)

func (Context) SetNavWindowingToggleLayer

func (self Context) SetNavWindowingToggleLayer(v bool)

func (Context) SetNextItemData

func (self Context) SetNextItemData(v NextItemData)

func (Context) SetNextWindowData

func (self Context) SetNextWindowData(v NextWindowData)

func (Context) SetOpenPopupStack

func (self Context) SetOpenPopupStack(v vectors.Vector[PopupData])

func (Context) SetPlatformIO

func (self Context) SetPlatformIO(v PlatformIO)

func (Context) SetPlatformImeData

func (self Context) SetPlatformImeData(v PlatformImeData)

func (Context) SetPlatformImeDataPrev

func (self Context) SetPlatformImeDataPrev(v PlatformImeData)

func (Context) SetPlatformImeViewport

func (self Context) SetPlatformImeViewport(v ID)

func (Context) SetPlatformLastFocusedViewportId

func (self Context) SetPlatformLastFocusedViewportId(v ID)

func (Context) SetPlatformMonitorsFullWorkRect

func (self Context) SetPlatformMonitorsFullWorkRect(v Rect)

func (Context) SetPlatformWindowsCreatedCount

func (self Context) SetPlatformWindowsCreatedCount(v int32)

func (Context) SetScrollbarClickDeltaToGrabCenter

func (self Context) SetScrollbarClickDeltaToGrabCenter(v float32)

func (Context) SetScrollbarSeekMode

func (self Context) SetScrollbarSeekMode(v int16)

func (Context) SetSettingsDirtyTimer

func (self Context) SetSettingsDirtyTimer(v float32)

func (Context) SetSettingsHandlers

func (self Context) SetSettingsHandlers(v vectors.Vector[SettingsHandler])

func (Context) SetSettingsIniData

func (self Context) SetSettingsIniData(v TextBuffer)

func (Context) SetSettingsLoaded

func (self Context) SetSettingsLoaded(v bool)

func (Context) SetShrinkWidthBuffer

func (self Context) SetShrinkWidthBuffer(v vectors.Vector[ShrinkWidthItem])

func (Context) SetSliderCurrentAccum

func (self Context) SetSliderCurrentAccum(v float32)

func (Context) SetSliderCurrentAccumDirty

func (self Context) SetSliderCurrentAccumDirty(v bool)

func (Context) SetSliderGrabClickOffset

func (self Context) SetSliderGrabClickOffset(v float32)

func (Context) SetStackSizesInBeginForCurrentWindow added in v1.1.0

func (self Context) SetStackSizesInBeginForCurrentWindow(v *ErrorRecoveryState)

func (Context) SetStackSizesInNewFrame added in v1.1.0

func (self Context) SetStackSizesInNewFrame(v ErrorRecoveryState)

func (Context) SetStyle

func (self Context) SetStyle(v Style)

func (Context) SetStyleVarStack

func (self Context) SetStyleVarStack(v vectors.Vector[StyleMod])

func (Context) SetTablesLastTimeActive

func (self Context) SetTablesLastTimeActive(v vectors.Vector[float32])

func (Context) SetTablesTempData

func (self Context) SetTablesTempData(v vectors.Vector[TableTempData])

func (Context) SetTablesTempDataStacked

func (self Context) SetTablesTempDataStacked(v int32)

func (Context) SetTempBuffer

func (self Context) SetTempBuffer(v vectors.Vector[int8])

func (Context) SetTempInputId

func (self Context) SetTempInputId(v ID)

func (Context) SetTempKeychordName

func (self Context) SetTempKeychordName(v *[64]rune)

func (Context) SetTestEngine

func (self Context) SetTestEngine(v uintptr)

func (Context) SetTestEngineHookItems

func (self Context) SetTestEngineHookItems(v bool)

func (Context) SetTime

func (self Context) SetTime(v float64)

func (Context) SetTooltipOverrideCount

func (self Context) SetTooltipOverrideCount(v int16)

func (Context) SetTooltipPreviousWindow added in v1.1.0

func (self Context) SetTooltipPreviousWindow(v *Window)

func (Context) SetTreeNodeStack

func (self Context) SetTreeNodeStack(v vectors.Vector[TreeNodeStackData])

func (Context) SetTypingSelectState

func (self Context) SetTypingSelectState(v TypingSelectState)

func (Context) SetViewportCreatedCount

func (self Context) SetViewportCreatedCount(v int32)

func (Context) SetViewportFocusedStampCount

func (self Context) SetViewportFocusedStampCount(v int32)

func (Context) SetWantCaptureKeyboardNextFrame

func (self Context) SetWantCaptureKeyboardNextFrame(v int32)

func (Context) SetWantCaptureMouseNextFrame

func (self Context) SetWantCaptureMouseNextFrame(v int32)

func (Context) SetWantTextInputNextFrame

func (self Context) SetWantTextInputNextFrame(v int32)

func (Context) SetWheelingAxisAvg

func (self Context) SetWheelingAxisAvg(v Vec2)

func (Context) SetWheelingWindow

func (self Context) SetWheelingWindow(v *Window)

func (Context) SetWheelingWindowRefMousePos

func (self Context) SetWheelingWindowRefMousePos(v Vec2)

func (Context) SetWheelingWindowReleaseTimer

func (self Context) SetWheelingWindowReleaseTimer(v float32)

func (Context) SetWheelingWindowScrolledFrame

func (self Context) SetWheelingWindowScrolledFrame(v int32)

func (Context) SetWheelingWindowStartFrame

func (self Context) SetWheelingWindowStartFrame(v int32)

func (Context) SetWheelingWindowWheelRemainder

func (self Context) SetWheelingWindowWheelRemainder(v Vec2)

func (Context) SetWindowResizeBorderExpectedRect

func (self Context) SetWindowResizeBorderExpectedRect(v Rect)

func (Context) SetWindowResizeRelativeMode

func (self Context) SetWindowResizeRelativeMode(v bool)

func (Context) SetWindowsActiveCount

func (self Context) SetWindowsActiveCount(v int32)

func (Context) SetWindowsById

func (self Context) SetWindowsById(v Storage)

func (Context) SetWindowsHoverPadding

func (self Context) SetWindowsHoverPadding(v Vec2)

func (Context) SetWithinEndChild

func (self Context) SetWithinEndChild(v bool)

func (Context) SetWithinFrameScope

func (self Context) SetWithinFrameScope(v bool)

func (Context) SetWithinFrameScopeWithImplicitWindow

func (self Context) SetWithinFrameScopeWithImplicitWindow(v bool)

func (*Context) SettingsDirtyTimer

func (self *Context) SettingsDirtyTimer() float32

func (*Context) SettingsHandlers

func (self *Context) SettingsHandlers() vectors.Vector[SettingsHandler]

func (*Context) SettingsIniData

func (self *Context) SettingsIniData() TextBuffer

func (*Context) SettingsLoaded

func (self *Context) SettingsLoaded() bool

func (*Context) ShrinkWidthBuffer

func (self *Context) ShrinkWidthBuffer() vectors.Vector[ShrinkWidthItem]

func (*Context) SliderCurrentAccum

func (self *Context) SliderCurrentAccum() float32

func (*Context) SliderCurrentAccumDirty

func (self *Context) SliderCurrentAccumDirty() bool

func (*Context) SliderGrabClickOffset

func (self *Context) SliderGrabClickOffset() float32

func (*Context) StackSizesInBeginForCurrentWindow added in v1.1.0

func (self *Context) StackSizesInBeginForCurrentWindow() *ErrorRecoveryState

func (*Context) StackSizesInNewFrame added in v1.1.0

func (self *Context) StackSizesInNewFrame() ErrorRecoveryState

func (*Context) Style

func (self *Context) Style() Style

func (*Context) StyleVarStack

func (self *Context) StyleVarStack() vectors.Vector[StyleMod]

func (*Context) TablesLastTimeActive

func (self *Context) TablesLastTimeActive() vectors.Vector[float32]

func (*Context) TablesTempData

func (self *Context) TablesTempData() vectors.Vector[TableTempData]

func (*Context) TablesTempDataStacked

func (self *Context) TablesTempDataStacked() int32

func (*Context) TempBuffer

func (self *Context) TempBuffer() vectors.Vector[int8]

func (*Context) TempInputId

func (self *Context) TempInputId() ID

func (*Context) TempKeychordName

func (self *Context) TempKeychordName() [64]rune

func (*Context) TestEngine

func (self *Context) TestEngine() uintptr

func (*Context) TestEngineHookItems

func (self *Context) TestEngineHookItems() bool

func (*Context) Time

func (self *Context) Time() float64

func (*Context) TooltipOverrideCount

func (self *Context) TooltipOverrideCount() int16

func (*Context) TooltipPreviousWindow added in v1.1.0

func (self *Context) TooltipPreviousWindow() *Window

func (*Context) TreeNodeStack

func (self *Context) TreeNodeStack() vectors.Vector[TreeNodeStackData]

func (*Context) TypingSelectState

func (self *Context) TypingSelectState() TypingSelectState

func (*Context) ViewportCreatedCount

func (self *Context) ViewportCreatedCount() int32

func (*Context) ViewportFocusedStampCount

func (self *Context) ViewportFocusedStampCount() int32

func (*Context) WantCaptureKeyboardNextFrame

func (self *Context) WantCaptureKeyboardNextFrame() int32

func (*Context) WantCaptureMouseNextFrame

func (self *Context) WantCaptureMouseNextFrame() int32

func (*Context) WantTextInputNextFrame

func (self *Context) WantTextInputNextFrame() int32

func (*Context) WheelingAxisAvg

func (self *Context) WheelingAxisAvg() Vec2

func (*Context) WheelingWindow

func (self *Context) WheelingWindow() *Window

func (*Context) WheelingWindowRefMousePos

func (self *Context) WheelingWindowRefMousePos() Vec2

func (*Context) WheelingWindowReleaseTimer

func (self *Context) WheelingWindowReleaseTimer() float32

func (*Context) WheelingWindowScrolledFrame

func (self *Context) WheelingWindowScrolledFrame() int32

func (*Context) WheelingWindowStartFrame

func (self *Context) WheelingWindowStartFrame() int32

func (*Context) WheelingWindowWheelRemainder

func (self *Context) WheelingWindowWheelRemainder() Vec2

func (*Context) WindowResizeBorderExpectedRect

func (self *Context) WindowResizeBorderExpectedRect() Rect

func (*Context) WindowResizeRelativeMode

func (self *Context) WindowResizeRelativeMode() bool

func (*Context) WindowsActiveCount

func (self *Context) WindowsActiveCount() int32

func (*Context) WindowsById

func (self *Context) WindowsById() Storage

func (*Context) WindowsHoverPadding

func (self *Context) WindowsHoverPadding() Vec2

func (*Context) WithinEndChild

func (self *Context) WithinEndChild() bool

func (*Context) WithinFrameScope

func (self *Context) WithinFrameScope() bool

func (*Context) WithinFrameScopeWithImplicitWindow

func (self *Context) WithinFrameScopeWithImplicitWindow() bool

type ContextHook

type ContextHook struct {
	CData *C.ImGuiContextHook
}

func InternalNewContextHook

func InternalNewContextHook() *ContextHook

func NewContextHookFromC

func NewContextHookFromC[SRC any](cvalue SRC) *ContextHook

NewContextHookFromC creates ContextHook from its C pointer. SRC ~= *C.ImGuiContextHook

func NewEmptyContextHook added in v1.2.0

func NewEmptyContextHook() *ContextHook

NewEmptyContextHook creates ContextHook with its 0 value.

func (ContextHook) C

func (self ContextHook) C() (C.ImGuiContextHook, func())

C is like Handle but returns plain type instead of pointer.

func (*ContextHook) Callback added in v1.2.0

func (self *ContextHook) Callback() ContextHookCallback

func (*ContextHook) Destroy

func (self *ContextHook) Destroy()

func (*ContextHook) Handle

func (self *ContextHook) Handle() (result *C.ImGuiContextHook, fin func())

Handle returns C version of ContextHook and its finalizer func.

func (*ContextHook) HookId

func (self *ContextHook) HookId() ID

func (*ContextHook) Owner

func (self *ContextHook) Owner() ID

func (ContextHook) SetCallback added in v1.2.0

func (self ContextHook) SetCallback(v ContextHookCallback)

func (ContextHook) SetHookId

func (self ContextHook) SetHookId(v ID)

func (ContextHook) SetOwner

func (self ContextHook) SetOwner(v ID)

func (ContextHook) SetType

func (self ContextHook) SetType(v ContextHookType)

func (ContextHook) SetUserData

func (self ContextHook) SetUserData(v uintptr)

func (*ContextHook) Type

func (self *ContextHook) Type() ContextHookType

func (*ContextHook) UserData

func (self *ContextHook) UserData() uintptr

type ContextHookCallback added in v1.2.0

type ContextHookCallback func(ctx *Context, hook *ContextHook)

func NewContextHookCallbackFromC added in v1.2.0

func NewContextHookCallbackFromC(cvalue *C.ImGuiContextHookCallback) *ContextHookCallback

func (ContextHookCallback) C added in v1.2.0

type ContextHookType

type ContextHookType int32

original name: ImGuiContextHookType

const (
	ContextHookTypeNewFramePre    ContextHookType = 0
	ContextHookTypeNewFramePost   ContextHookType = 1
	ContextHookTypeEndFramePre    ContextHookType = 2
	ContextHookTypeEndFramePost   ContextHookType = 3
	ContextHookTypeRenderPre      ContextHookType = 4
	ContextHookTypeRenderPost     ContextHookType = 5
	ContextHookTypeShutdown       ContextHookType = 6
	ContextHookTypePendingRemoval ContextHookType = 7
)

type DataAuthority

type DataAuthority int32

Store the source authority (dock node vs window) of a field original name: ImGuiDataAuthority_

const (
	DataAuthorityAuto     DataAuthority = 0
	DataAuthorityDockNode DataAuthority = 1
	DataAuthorityWindow   DataAuthority = 2
)

type DataType

type DataType int32

A primary data type original name: ImGuiDataType_

const (
	// signed char / char (with sensible compilers)
	DataTypeS8 DataType = 0
	// unsigned char
	DataTypeU8 DataType = 1
	// short
	DataTypeS16 DataType = 2
	// unsigned short
	DataTypeU16 DataType = 3
	// int
	DataTypeS32 DataType = 4
	// unsigned int
	DataTypeU32 DataType = 5
	// long long / __int64
	DataTypeS64 DataType = 6
	// unsigned long long / unsigned __int64
	DataTypeU64 DataType = 7
	// float
	DataTypeFloat DataType = 8
	// double
	DataTypeDouble DataType = 9
	// bool (provided for user convenience, not supported by scalar widgets)
	DataTypeBool  DataType = 10
	DataTypeCOUNT DataType = 11
)

type DataTypeInfo

type DataTypeInfo struct {
	CData *C.ImGuiDataTypeInfo
}

func InternalDataTypeGetInfo

func InternalDataTypeGetInfo(data_type DataType) *DataTypeInfo

func NewDataTypeInfoFromC

func NewDataTypeInfoFromC[SRC any](cvalue SRC) *DataTypeInfo

NewDataTypeInfoFromC creates DataTypeInfo from its C pointer. SRC ~= *C.ImGuiDataTypeInfo

func NewEmptyDataTypeInfo added in v1.2.0

func NewEmptyDataTypeInfo() *DataTypeInfo

NewEmptyDataTypeInfo creates DataTypeInfo with its 0 value.

func (DataTypeInfo) C

func (self DataTypeInfo) C() (C.ImGuiDataTypeInfo, func())

C is like Handle but returns plain type instead of pointer.

func (*DataTypeInfo) Handle

func (self *DataTypeInfo) Handle() (result *C.ImGuiDataTypeInfo, fin func())

Handle returns C version of DataTypeInfo and its finalizer func.

func (*DataTypeInfo) Name

func (self *DataTypeInfo) Name() string

func (*DataTypeInfo) PrintFmt

func (self *DataTypeInfo) PrintFmt() string

func (*DataTypeInfo) ScanFmt

func (self *DataTypeInfo) ScanFmt() string

func (DataTypeInfo) SetName

func (self DataTypeInfo) SetName(v string)

func (DataTypeInfo) SetPrintFmt

func (self DataTypeInfo) SetPrintFmt(v string)

func (DataTypeInfo) SetScanFmt

func (self DataTypeInfo) SetScanFmt(v string)

func (DataTypeInfo) SetSize

func (self DataTypeInfo) SetSize(v uint64)

func (*DataTypeInfo) Size

func (self *DataTypeInfo) Size() uint64

type DataTypePrivate

type DataTypePrivate int32

Extend ImGuiDataType_ original name: ImGuiDataTypePrivate_

const (
	DataTypeString  DataTypePrivate = 12
	DataTypePointer DataTypePrivate = 13
	DataTypeID      DataTypePrivate = 14
)

type DataTypeStorage

type DataTypeStorage struct {
	CData *C.ImGuiDataTypeStorage
}

func NewDataTypeStorageFromC

func NewDataTypeStorageFromC[SRC any](cvalue SRC) *DataTypeStorage

NewDataTypeStorageFromC creates DataTypeStorage from its C pointer. SRC ~= *C.ImGuiDataTypeStorage

func NewEmptyDataTypeStorage added in v1.2.0

func NewEmptyDataTypeStorage() *DataTypeStorage

NewEmptyDataTypeStorage creates DataTypeStorage with its 0 value.

func (DataTypeStorage) C

func (self DataTypeStorage) C() (C.ImGuiDataTypeStorage, func())

C is like Handle but returns plain type instead of pointer.

func (*DataTypeStorage) Data

func (self *DataTypeStorage) Data() [8](byte)

func (*DataTypeStorage) Handle

func (self *DataTypeStorage) Handle() (result *C.ImGuiDataTypeStorage, fin func())

Handle returns C version of DataTypeStorage and its finalizer func.

func (DataTypeStorage) SetData

func (self DataTypeStorage) SetData(v *[8]byte)

type DataVarInfo

type DataVarInfo struct {
	CData *C.ImGuiDataVarInfo
}

func InternalStyleVarInfo

func InternalStyleVarInfo(idx StyleVar) *DataVarInfo

func NewDataVarInfoFromC

func NewDataVarInfoFromC[SRC any](cvalue SRC) *DataVarInfo

NewDataVarInfoFromC creates DataVarInfo from its C pointer. SRC ~= *C.ImGuiDataVarInfo

func NewEmptyDataVarInfo added in v1.2.0

func NewEmptyDataVarInfo() *DataVarInfo

NewEmptyDataVarInfo creates DataVarInfo with its 0 value.

func (DataVarInfo) C

func (self DataVarInfo) C() (C.ImGuiDataVarInfo, func())

C is like Handle but returns plain type instead of pointer.

func (*DataVarInfo) Count

func (self *DataVarInfo) Count() uint32

func (*DataVarInfo) Handle

func (self *DataVarInfo) Handle() (result *C.ImGuiDataVarInfo, fin func())

Handle returns C version of DataVarInfo and its finalizer func.

func (*DataVarInfo) InternalVarPtr

func (self *DataVarInfo) InternalVarPtr(parent uintptr) uintptr

func (*DataVarInfo) Offset

func (self *DataVarInfo) Offset() uint32

func (DataVarInfo) SetCount

func (self DataVarInfo) SetCount(v uint32)

func (DataVarInfo) SetOffset

func (self DataVarInfo) SetOffset(v uint32)

func (DataVarInfo) SetType

func (self DataVarInfo) SetType(v DataType)

func (*DataVarInfo) Type

func (self *DataVarInfo) Type() DataType

type DebugAllocEntry

type DebugAllocEntry struct {
	CData *C.ImGuiDebugAllocEntry
}

func NewDebugAllocEntryFromC

func NewDebugAllocEntryFromC[SRC any](cvalue SRC) *DebugAllocEntry

NewDebugAllocEntryFromC creates DebugAllocEntry from its C pointer. SRC ~= *C.ImGuiDebugAllocEntry

func NewEmptyDebugAllocEntry added in v1.2.0

func NewEmptyDebugAllocEntry() *DebugAllocEntry

NewEmptyDebugAllocEntry creates DebugAllocEntry with its 0 value.

func (*DebugAllocEntry) AllocCount

func (self *DebugAllocEntry) AllocCount() int16

func (DebugAllocEntry) C

func (self DebugAllocEntry) C() (C.ImGuiDebugAllocEntry, func())

C is like Handle but returns plain type instead of pointer.

func (*DebugAllocEntry) FrameCount

func (self *DebugAllocEntry) FrameCount() int32

func (*DebugAllocEntry) FreeCount

func (self *DebugAllocEntry) FreeCount() int16

func (*DebugAllocEntry) Handle

func (self *DebugAllocEntry) Handle() (result *C.ImGuiDebugAllocEntry, fin func())

Handle returns C version of DebugAllocEntry and its finalizer func.

func (DebugAllocEntry) SetAllocCount

func (self DebugAllocEntry) SetAllocCount(v int16)

func (DebugAllocEntry) SetFrameCount

func (self DebugAllocEntry) SetFrameCount(v int32)

func (DebugAllocEntry) SetFreeCount

func (self DebugAllocEntry) SetFreeCount(v int16)

type DebugAllocInfo

type DebugAllocInfo struct {
	CData *C.ImGuiDebugAllocInfo
}

func InternalNewDebugAllocInfo

func InternalNewDebugAllocInfo() *DebugAllocInfo

func NewDebugAllocInfoFromC

func NewDebugAllocInfoFromC[SRC any](cvalue SRC) *DebugAllocInfo

NewDebugAllocInfoFromC creates DebugAllocInfo from its C pointer. SRC ~= *C.ImGuiDebugAllocInfo

func NewEmptyDebugAllocInfo added in v1.2.0

func NewEmptyDebugAllocInfo() *DebugAllocInfo

NewEmptyDebugAllocInfo creates DebugAllocInfo with its 0 value.

func (DebugAllocInfo) C

func (self DebugAllocInfo) C() (C.ImGuiDebugAllocInfo, func())

C is like Handle but returns plain type instead of pointer.

func (*DebugAllocInfo) Destroy

func (self *DebugAllocInfo) Destroy()

func (*DebugAllocInfo) Handle

func (self *DebugAllocInfo) Handle() (result *C.ImGuiDebugAllocInfo, fin func())

Handle returns C version of DebugAllocInfo and its finalizer func.

func (*DebugAllocInfo) LastEntriesBuf

func (self *DebugAllocInfo) LastEntriesBuf() [6]DebugAllocEntry

func (*DebugAllocInfo) LastEntriesIdx

func (self *DebugAllocInfo) LastEntriesIdx() int16

func (DebugAllocInfo) SetLastEntriesBuf

func (self DebugAllocInfo) SetLastEntriesBuf(v *[6]DebugAllocEntry)

func (DebugAllocInfo) SetLastEntriesIdx

func (self DebugAllocInfo) SetLastEntriesIdx(v int16)

func (DebugAllocInfo) SetTotalAllocCount

func (self DebugAllocInfo) SetTotalAllocCount(v int32)

func (DebugAllocInfo) SetTotalFreeCount

func (self DebugAllocInfo) SetTotalFreeCount(v int32)

func (*DebugAllocInfo) TotalAllocCount

func (self *DebugAllocInfo) TotalAllocCount() int32

func (*DebugAllocInfo) TotalFreeCount

func (self *DebugAllocInfo) TotalFreeCount() int32

type DebugLogFlags

type DebugLogFlags int32

original name: ImGuiDebugLogFlags_

const (
	DebugLogFlagsNone DebugLogFlags = 0
	// Error submitted by IM_ASSERT_USER_ERROR()
	DebugLogFlagsEventError        DebugLogFlags = 1
	DebugLogFlagsEventActiveId     DebugLogFlags = 2
	DebugLogFlagsEventFocus        DebugLogFlags = 4
	DebugLogFlagsEventPopup        DebugLogFlags = 8
	DebugLogFlagsEventNav          DebugLogFlags = 16
	DebugLogFlagsEventClipper      DebugLogFlags = 32
	DebugLogFlagsEventSelection    DebugLogFlags = 64
	DebugLogFlagsEventIO           DebugLogFlags = 128
	DebugLogFlagsEventInputRouting DebugLogFlags = 256
	DebugLogFlagsEventDocking      DebugLogFlags = 512
	DebugLogFlagsEventViewport     DebugLogFlags = 1024
	DebugLogFlagsEventMask         DebugLogFlags = 2047
	// Also send output to TTY
	DebugLogFlagsOutputToTTY DebugLogFlags = 1048576
	// Also send output to Test Engine
	DebugLogFlagsOutputToTestEngine DebugLogFlags = 2097152
)

type Dir

type Dir int32

A cardinal direction original name: ImGuiDir

const (
	DirNone  Dir = -1
	DirLeft  Dir = 0
	DirRight Dir = 1
	DirUp    Dir = 2
	DirDown  Dir = 3
	DirCOUNT Dir = 4
)

type DockContext

type DockContext struct {
	CData *C.ImGuiDockContext
}

func InternalNewDockContext

func InternalNewDockContext() *DockContext

func NewDockContextFromC

func NewDockContextFromC[SRC any](cvalue SRC) *DockContext

NewDockContextFromC creates DockContext from its C pointer. SRC ~= *C.ImGuiDockContext

func NewEmptyDockContext added in v1.2.0

func NewEmptyDockContext() *DockContext

NewEmptyDockContext creates DockContext with its 0 value.

func (DockContext) C

func (self DockContext) C() (C.ImGuiDockContext, func())

C is like Handle but returns plain type instead of pointer.

func (*DockContext) Destroy

func (self *DockContext) Destroy()

func (*DockContext) Handle

func (self *DockContext) Handle() (result *C.ImGuiDockContext, fin func())

Handle returns C version of DockContext and its finalizer func.

func (*DockContext) Nodes

func (self *DockContext) Nodes() Storage

func (*DockContext) NodesSettings

func (self *DockContext) NodesSettings() vectors.Vector[DockNodeSettings]

func (*DockContext) Requests

func (self *DockContext) Requests() vectors.Vector[DockRequest]

func (DockContext) SetNodes

func (self DockContext) SetNodes(v Storage)

func (DockContext) SetNodesSettings

func (self DockContext) SetNodesSettings(v vectors.Vector[DockNodeSettings])

func (DockContext) SetRequests

func (self DockContext) SetRequests(v vectors.Vector[DockRequest])

func (DockContext) SetWantFullRebuild

func (self DockContext) SetWantFullRebuild(v bool)

func (*DockContext) WantFullRebuild

func (self *DockContext) WantFullRebuild() bool

type DockNode

type DockNode struct {
	CData *C.ImGuiDockNode
}

func InternalDockBuilderGetCentralNode

func InternalDockBuilderGetCentralNode(node_id ID) *DockNode

func InternalDockBuilderGetNode

func InternalDockBuilderGetNode(node_id ID) *DockNode

func InternalDockContextFindNodeByID

func InternalDockContextFindNodeByID(ctx *Context, id ID) *DockNode

func InternalDockNodeGetRootNode

func InternalDockNodeGetRootNode(node *DockNode) *DockNode

func InternalNewDockNode

func InternalNewDockNode(id ID) *DockNode

func InternalWindowDockNode

func InternalWindowDockNode() *DockNode

func NewDockNodeFromC

func NewDockNodeFromC[SRC any](cvalue SRC) *DockNode

NewDockNodeFromC creates DockNode from its C pointer. SRC ~= *C.ImGuiDockNode

func NewEmptyDockNode added in v1.2.0

func NewEmptyDockNode() *DockNode

NewEmptyDockNode creates DockNode with its 0 value.

func (*DockNode) AuthorityForPos

func (self *DockNode) AuthorityForPos() DataAuthority

func (*DockNode) AuthorityForSize

func (self *DockNode) AuthorityForSize() DataAuthority

func (*DockNode) AuthorityForViewport

func (self *DockNode) AuthorityForViewport() DataAuthority

func (DockNode) C

func (self DockNode) C() (C.ImGuiDockNode, func())

C is like Handle but returns plain type instead of pointer.

func (*DockNode) CentralNode

func (self *DockNode) CentralNode() *DockNode

func (*DockNode) ChildNodes

func (self *DockNode) ChildNodes() [2]*DockNode

func (*DockNode) CountNodeWithWindows

func (self *DockNode) CountNodeWithWindows() int32

func (*DockNode) Handle

func (self *DockNode) Handle() (result *C.ImGuiDockNode, fin func())

Handle returns C version of DockNode and its finalizer func.

func (*DockNode) HasCentralNodeChild

func (self *DockNode) HasCentralNodeChild() bool

func (*DockNode) HasCloseButton

func (self *DockNode) HasCloseButton() bool

func (*DockNode) HasWindowMenuButton

func (self *DockNode) HasWindowMenuButton() bool

func (*DockNode) HostWindow

func (self *DockNode) HostWindow() *Window

func (*DockNode) ID

func (self *DockNode) ID() ID

func (*DockNode) InternalDestroy

func (self *DockNode) InternalDestroy()

func (*DockNode) InternalIsCentralNode

func (self *DockNode) InternalIsCentralNode() bool

func (*DockNode) InternalIsDockSpace

func (self *DockNode) InternalIsDockSpace() bool

func (*DockNode) InternalIsEmpty

func (self *DockNode) InternalIsEmpty() bool

func (*DockNode) InternalIsFloatingNode

func (self *DockNode) InternalIsFloatingNode() bool

func (*DockNode) InternalIsHiddenTabBar

func (self *DockNode) InternalIsHiddenTabBar() bool

Hidden tab bar can be shown back by clicking the small triangle

func (*DockNode) InternalIsLeafNode

func (self *DockNode) InternalIsLeafNode() bool

func (*DockNode) InternalIsNoTabBar

func (self *DockNode) InternalIsNoTabBar() bool

Never show a tab bar

func (*DockNode) InternalIsRootNode

func (self *DockNode) InternalIsRootNode() bool

func (*DockNode) InternalIsSplitNode

func (self *DockNode) InternalIsSplitNode() bool

func (*DockNode) InternalRect

func (self *DockNode) InternalRect() Rect

func (*DockNode) InternalSetLocalFlags

func (self *DockNode) InternalSetLocalFlags(flags DockNodeFlags)

func (*DockNode) InternalUpdateMergedFlags

func (self *DockNode) InternalUpdateMergedFlags()

func (*DockNode) IsBgDrawnThisFrame

func (self *DockNode) IsBgDrawnThisFrame() bool

func (*DockNode) IsFocused

func (self *DockNode) IsFocused() bool

func (*DockNode) IsVisible

func (self *DockNode) IsVisible() bool

func (*DockNode) LastBgColor

func (self *DockNode) LastBgColor() uint32

func (*DockNode) LastFocusedNodeId

func (self *DockNode) LastFocusedNodeId() ID

func (*DockNode) LastFrameActive

func (self *DockNode) LastFrameActive() int32

func (*DockNode) LastFrameAlive

func (self *DockNode) LastFrameAlive() int32

func (*DockNode) LastFrameFocused

func (self *DockNode) LastFrameFocused() int32

func (*DockNode) LocalFlagsInWindows

func (self *DockNode) LocalFlagsInWindows() DockNodeFlags

func (*DockNode) MergedFlags

func (self *DockNode) MergedFlags() DockNodeFlags

func (*DockNode) OnlyNodeWithWindows

func (self *DockNode) OnlyNodeWithWindows() *DockNode

func (*DockNode) ParentNode

func (self *DockNode) ParentNode() *DockNode

func (*DockNode) Pos

func (self *DockNode) Pos() Vec2

func (*DockNode) RefViewportId

func (self *DockNode) RefViewportId() ID

func (*DockNode) SelectedTabId

func (self *DockNode) SelectedTabId() ID

func (DockNode) SetAuthorityForPos

func (self DockNode) SetAuthorityForPos(v DataAuthority)

func (DockNode) SetAuthorityForSize

func (self DockNode) SetAuthorityForSize(v DataAuthority)

func (DockNode) SetAuthorityForViewport

func (self DockNode) SetAuthorityForViewport(v DataAuthority)

func (DockNode) SetCentralNode

func (self DockNode) SetCentralNode(v *DockNode)

func (DockNode) SetChildNodes

func (self DockNode) SetChildNodes(v *[2]*DockNode)

func (DockNode) SetCountNodeWithWindows

func (self DockNode) SetCountNodeWithWindows(v int32)

func (DockNode) SetHasCentralNodeChild

func (self DockNode) SetHasCentralNodeChild(v bool)

func (DockNode) SetHasCloseButton

func (self DockNode) SetHasCloseButton(v bool)

func (DockNode) SetHasWindowMenuButton

func (self DockNode) SetHasWindowMenuButton(v bool)

func (DockNode) SetHostWindow

func (self DockNode) SetHostWindow(v *Window)

func (DockNode) SetID

func (self DockNode) SetID(v ID)

func (DockNode) SetIsBgDrawnThisFrame

func (self DockNode) SetIsBgDrawnThisFrame(v bool)

func (DockNode) SetIsFocused

func (self DockNode) SetIsFocused(v bool)

func (DockNode) SetIsVisible

func (self DockNode) SetIsVisible(v bool)

func (DockNode) SetLastBgColor

func (self DockNode) SetLastBgColor(v uint32)

func (DockNode) SetLastFocusedNodeId

func (self DockNode) SetLastFocusedNodeId(v ID)

func (DockNode) SetLastFrameActive

func (self DockNode) SetLastFrameActive(v int32)

func (DockNode) SetLastFrameAlive

func (self DockNode) SetLastFrameAlive(v int32)

func (DockNode) SetLastFrameFocused

func (self DockNode) SetLastFrameFocused(v int32)

func (DockNode) SetLocalFlagsInWindows

func (self DockNode) SetLocalFlagsInWindows(v DockNodeFlags)

func (DockNode) SetMergedFlags

func (self DockNode) SetMergedFlags(v DockNodeFlags)

func (DockNode) SetOnlyNodeWithWindows

func (self DockNode) SetOnlyNodeWithWindows(v *DockNode)

func (DockNode) SetParentNode

func (self DockNode) SetParentNode(v *DockNode)

func (DockNode) SetPos

func (self DockNode) SetPos(v Vec2)

func (DockNode) SetRefViewportId

func (self DockNode) SetRefViewportId(v ID)

func (DockNode) SetSelectedTabId

func (self DockNode) SetSelectedTabId(v ID)

func (DockNode) SetSharedFlags

func (self DockNode) SetSharedFlags(v DockNodeFlags)

func (DockNode) SetSize

func (self DockNode) SetSize(v Vec2)

func (DockNode) SetSizeRef

func (self DockNode) SetSizeRef(v Vec2)

func (DockNode) SetSplitAxis

func (self DockNode) SetSplitAxis(v Axis)

func (DockNode) SetState

func (self DockNode) SetState(v DockNodeState)

func (DockNode) SetTabBar

func (self DockNode) SetTabBar(v *TabBar)

func (DockNode) SetVisibleWindow

func (self DockNode) SetVisibleWindow(v *Window)

func (DockNode) SetWantCloseAll

func (self DockNode) SetWantCloseAll(v bool)

func (DockNode) SetWantCloseTabId

func (self DockNode) SetWantCloseTabId(v ID)

func (DockNode) SetWantHiddenTabBarToggle

func (self DockNode) SetWantHiddenTabBarToggle(v bool)

func (DockNode) SetWantHiddenTabBarUpdate

func (self DockNode) SetWantHiddenTabBarUpdate(v bool)

func (DockNode) SetWantLockSizeOnce

func (self DockNode) SetWantLockSizeOnce(v bool)

func (DockNode) SetWantMouseMove

func (self DockNode) SetWantMouseMove(v bool)

func (DockNode) SetWindowClass

func (self DockNode) SetWindowClass(v WindowClass)

func (*DockNode) SharedFlags

func (self *DockNode) SharedFlags() DockNodeFlags

func (*DockNode) Size

func (self *DockNode) Size() Vec2

func (*DockNode) SizeRef

func (self *DockNode) SizeRef() Vec2

func (*DockNode) SplitAxis

func (self *DockNode) SplitAxis() Axis

func (*DockNode) State

func (self *DockNode) State() DockNodeState

func (*DockNode) TabBar

func (self *DockNode) TabBar() *TabBar

func (*DockNode) VisibleWindow

func (self *DockNode) VisibleWindow() *Window

func (*DockNode) WantCloseAll

func (self *DockNode) WantCloseAll() bool

func (*DockNode) WantCloseTabId

func (self *DockNode) WantCloseTabId() ID

func (*DockNode) WantHiddenTabBarToggle

func (self *DockNode) WantHiddenTabBarToggle() bool

func (*DockNode) WantHiddenTabBarUpdate

func (self *DockNode) WantHiddenTabBarUpdate() bool

func (*DockNode) WantLockSizeOnce

func (self *DockNode) WantLockSizeOnce() bool

func (*DockNode) WantMouseMove

func (self *DockNode) WantMouseMove() bool

func (*DockNode) WindowClass

func (self *DockNode) WindowClass() WindowClass

type DockNodeFlags

type DockNodeFlags int32

Flags for ImGui::DockSpace(), shared/inherited by child nodes. (Some flags can be applied to individual nodes directly) FIXME-DOCK: Also see ImGuiDockNodeFlagsPrivate_ which may involve using the WIP and internal DockBuilder api. original name: ImGuiDockNodeFlags_

const (
	DockNodeFlagsNone DockNodeFlags = 0
	//       // Don't display the dockspace node but keep it alive. Windows docked into this dockspace node won't be undocked.
	DockNodeFlagsKeepAliveOnly DockNodeFlags = 1
	//       // Disable docking over the Central Node, which will be always kept empty.
	DockNodeFlagsNoDockingOverCentralNode DockNodeFlags = 4
	//       // Enable passthru dockspace: 1) DockSpace() will render a ImGuiCol_WindowBg background covering everything excepted the Central Node when empty. Meaning the host window should probably use SetNextWindowBgAlpha(0.0f) prior to Begin() when using this. 2) When Central Node is empty: let inputs pass-through + won't display a DockingEmptyBg background. See demo for details.
	DockNodeFlagsPassthruCentralNode DockNodeFlags = 8
	//       // Disable other windows/nodes from splitting this node.
	DockNodeFlagsNoDockingSplit DockNodeFlags = 16
	// Saved // Disable resizing node using the splitter/separators. Useful with programmatically setup dockspaces.
	DockNodeFlagsNoResize DockNodeFlags = 32
	//       // Tab bar will automatically hide when there is a single window in the dock node.
	DockNodeFlagsAutoHideTabBar DockNodeFlags = 64
	//       // Disable undocking this node.
	DockNodeFlagsNoUndocking DockNodeFlags = 128
)

type DockNodeFlagsPrivate

type DockNodeFlagsPrivate int32

Extend ImGuiDockNodeFlags_ original name: ImGuiDockNodeFlagsPrivate_

const (
	// Saved // A dockspace is a node that occupy space within an existing user window. Otherwise the node is floating and create its own window.
	DockNodeFlagsDockSpace DockNodeFlagsPrivate = 1024
	// Saved // The central node has 2 main properties: stay visible when empty, only use "remaining" spaces from its neighbor.
	DockNodeFlagsCentralNode DockNodeFlagsPrivate = 2048
	// Saved // Tab bar is completely unavailable. No triangle in the corner to enable it back.
	DockNodeFlagsNoTabBar DockNodeFlagsPrivate = 4096
	// Saved // Tab bar is hidden, with a triangle in the corner to show it again (NB: actual tab-bar instance may be destroyed as this is only used for single-window tab bar)
	DockNodeFlagsHiddenTabBar DockNodeFlagsPrivate = 8192
	// Saved // Disable window/docking menu (that one that appears instead of the collapse button)
	DockNodeFlagsNoWindowMenuButton DockNodeFlagsPrivate = 16384
	// Saved // Disable close button
	DockNodeFlagsNoCloseButton DockNodeFlagsPrivate = 32768
	//       //
	DockNodeFlagsNoResizeX DockNodeFlagsPrivate = 65536
	//       //
	DockNodeFlagsNoResizeY DockNodeFlagsPrivate = 131072
	//       // Any docked window will be automatically be focus-route chained (window->ParentWindowForFocusRoute set to this) so Shortcut() in this window can run when any docked window is focused.
	DockNodeFlagsDockedWindowsInFocusRoute DockNodeFlagsPrivate = 262144
	//       // Disable this node from splitting other windows/nodes.
	DockNodeFlagsNoDockingSplitOther DockNodeFlagsPrivate = 524288
	//       // Disable other windows/nodes from being docked over this node.
	DockNodeFlagsNoDockingOverMe DockNodeFlagsPrivate = 1048576
	//       // Disable this node from being docked over another window or non-empty node.
	DockNodeFlagsNoDockingOverOther DockNodeFlagsPrivate = 2097152
	//       // Disable this node from being docked over an empty node (e.g. DockSpace with no other windows)
	DockNodeFlagsNoDockingOverEmpty     DockNodeFlagsPrivate = 4194304
	DockNodeFlagsNoDocking              DockNodeFlagsPrivate = 7864336
	DockNodeFlagsSharedFlagsInheritMask DockNodeFlagsPrivate = -1
	DockNodeFlagsNoResizeFlagsMask      DockNodeFlagsPrivate = 196640
	DockNodeFlagsLocalFlagsTransferMask DockNodeFlagsPrivate = 260208
	DockNodeFlagsSavedFlagsMask         DockNodeFlagsPrivate = 261152
)

type DockNodeSettings

type DockNodeSettings struct {
	CData *C.ImGuiDockNodeSettings
}

func NewDockNodeSettingsFromC

func NewDockNodeSettingsFromC[SRC any](cvalue SRC) *DockNodeSettings

NewDockNodeSettingsFromC creates DockNodeSettings from its C pointer. SRC ~= *C.ImGuiDockNodeSettings

func (*DockNodeSettings) Handle

func (self *DockNodeSettings) Handle() (result *C.ImGuiDockNodeSettings, fin func())

Handle returns C version of DockNodeSettings and its finalizer func.

type DockNodeState

type DockNodeState int32

original name: ImGuiDockNodeState

const (
	DockNodeStateUnknown                                   DockNodeState = 0
	DockNodeStateHostWindowHiddenBecauseSingleWindow       DockNodeState = 1
	DockNodeStateHostWindowHiddenBecauseWindowsAreResizing DockNodeState = 2
	DockNodeStateHostWindowVisible                         DockNodeState = 3
)

type DockRequest

type DockRequest struct {
	CData *C.ImGuiDockRequest
}

func NewDockRequestFromC

func NewDockRequestFromC[SRC any](cvalue SRC) *DockRequest

NewDockRequestFromC creates DockRequest from its C pointer. SRC ~= *C.ImGuiDockRequest

func (*DockRequest) Handle

func (self *DockRequest) Handle() (result *C.ImGuiDockRequest, fin func())

Handle returns C version of DockRequest and its finalizer func.

type DragDropFlags

type DragDropFlags int32

Flags for ImGui::BeginDragDropSource(), ImGui::AcceptDragDropPayload() original name: ImGuiDragDropFlags_

const (
	DragDropFlagsNone DragDropFlags = 0
	// Disable preview tooltip. By default, a successful call to BeginDragDropSource opens a tooltip so you can display a preview or description of the source contents. This flag disables this behavior.
	DragDropFlagsSourceNoPreviewTooltip DragDropFlags = 1
	// By default, when dragging we clear data so that IsItemHovered() will return false, to avoid subsequent user code submitting tooltips. This flag disables this behavior so you can still call IsItemHovered() on the source item.
	DragDropFlagsSourceNoDisableHover DragDropFlags = 2
	// Disable the behavior that allows to open tree nodes and collapsing header by holding over them while dragging a source item.
	DragDropFlagsSourceNoHoldToOpenOthers DragDropFlags = 4
	// Allow items such as Text(), Image() that have no unique identifier to be used as drag source, by manufacturing a temporary identifier based on their window-relative position. This is extremely unusual within the dear imgui ecosystem and so we made it explicit.
	DragDropFlagsSourceAllowNullID DragDropFlags = 8
	// External source (from outside of dear imgui), won't attempt to read current item/window info. Will always return true. Only one Extern source can be active simultaneously.
	DragDropFlagsSourceExtern DragDropFlags = 16
	// Automatically expire the payload if the source cease to be submitted (otherwise payloads are persisting while being dragged)
	DragDropFlagsPayloadAutoExpire DragDropFlags = 32
	// Hint to specify that the payload may not be copied outside current dear imgui context.
	DragDropFlagsPayloadNoCrossContext DragDropFlags = 64
	// Hint to specify that the payload may not be copied outside current process.
	DragDropFlagsPayloadNoCrossProcess DragDropFlags = 128
	// AcceptDragDropPayload() will returns true even before the mouse button is released. You can then call IsDelivery() to test if the payload needs to be delivered.
	DragDropFlagsAcceptBeforeDelivery DragDropFlags = 1024
	// Do not draw the default highlight rectangle when hovering over target.
	DragDropFlagsAcceptNoDrawDefaultRect DragDropFlags = 2048
	// Request hiding the BeginDragDropSource tooltip from the BeginDragDropTarget site.
	DragDropFlagsAcceptNoPreviewTooltip DragDropFlags = 4096
	// For peeking ahead and inspecting the payload before delivery.
	DragDropFlagsAcceptPeekOnly DragDropFlags = 3072
)

type DrawCallback added in v1.2.0

type DrawCallback func(parent_list *DrawList, cmd *DrawCmd)

func NewDrawCallbackFromC added in v1.2.0

func NewDrawCallbackFromC(cvalue *C.ImDrawCallback) *DrawCallback

func (DrawCallback) C added in v1.2.0

func (c DrawCallback) C() (C.ImDrawCallback, func())

type DrawChannel

type DrawChannel struct {
	CData *C.ImDrawChannel
}

func NewDrawChannelFromC

func NewDrawChannelFromC[SRC any](cvalue SRC) *DrawChannel

NewDrawChannelFromC creates DrawChannel from its C pointer. SRC ~= *C.ImDrawChannel

func NewEmptyDrawChannel added in v1.2.0

func NewEmptyDrawChannel() *DrawChannel

NewEmptyDrawChannel creates DrawChannel with its 0 value.

func (DrawChannel) C

func (self DrawChannel) C() (C.ImDrawChannel, func())

C is like Handle but returns plain type instead of pointer.

func (*DrawChannel) CmdBuffer

func (self *DrawChannel) CmdBuffer() vectors.Vector[DrawCmd]

func (*DrawChannel) Handle

func (self *DrawChannel) Handle() (result *C.ImDrawChannel, fin func())

Handle returns C version of DrawChannel and its finalizer func.

func (*DrawChannel) IdxBuffer

func (self *DrawChannel) IdxBuffer() vectors.Vector[DrawIdx]

func (DrawChannel) SetCmdBuffer

func (self DrawChannel) SetCmdBuffer(v vectors.Vector[DrawCmd])

func (DrawChannel) SetIdxBuffer

func (self DrawChannel) SetIdxBuffer(v vectors.Vector[DrawIdx])

type DrawCmd

type DrawCmd struct {
	CData *C.ImDrawCmd
}

func NewDrawCmd

func NewDrawCmd() *DrawCmd

Also ensure our padding fields are zeroed

func NewDrawCmdFromC

func NewDrawCmdFromC[SRC any](cvalue SRC) *DrawCmd

NewDrawCmdFromC creates DrawCmd from its C pointer. SRC ~= *C.ImDrawCmd

func NewEmptyDrawCmd added in v1.2.0

func NewEmptyDrawCmd() *DrawCmd

NewEmptyDrawCmd creates DrawCmd with its 0 value.

func (DrawCmd) C

func (self DrawCmd) C() (C.ImDrawCmd, func())

C is like Handle but returns plain type instead of pointer.

func (DrawCmd) CallUserCallback

func (d DrawCmd) CallUserCallback(list DrawList)

func (*DrawCmd) ClipRect

func (self *DrawCmd) ClipRect() Vec4

func (*DrawCmd) Destroy

func (self *DrawCmd) Destroy()

func (*DrawCmd) ElemCount

func (self *DrawCmd) ElemCount() uint32

func (*DrawCmd) Handle

func (self *DrawCmd) Handle() (result *C.ImDrawCmd, fin func())

Handle returns C version of DrawCmd and its finalizer func.

func (DrawCmd) HasUserCallback

func (d DrawCmd) HasUserCallback() bool

func (*DrawCmd) IdxOffset

func (self *DrawCmd) IdxOffset() uint32

func (DrawCmd) SetClipRect

func (self DrawCmd) SetClipRect(v Vec4)

func (DrawCmd) SetElemCount

func (self DrawCmd) SetElemCount(v uint32)

func (DrawCmd) SetIdxOffset

func (self DrawCmd) SetIdxOffset(v uint32)

func (DrawCmd) SetTextureId

func (self DrawCmd) SetTextureId(v TextureID)

func (DrawCmd) SetUserCallback added in v1.2.0

func (self DrawCmd) SetUserCallback(v DrawCallback)

func (DrawCmd) SetUserCallbackData

func (self DrawCmd) SetUserCallbackData(v uintptr)

func (DrawCmd) SetUserCallbackDataOffset added in v1.1.0

func (self DrawCmd) SetUserCallbackDataOffset(v int32)

func (DrawCmd) SetUserCallbackDataSize added in v1.1.0

func (self DrawCmd) SetUserCallbackDataSize(v int32)

func (DrawCmd) SetVtxOffset

func (self DrawCmd) SetVtxOffset(v uint32)

func (*DrawCmd) TexID

func (self *DrawCmd) TexID() TextureID

func (*DrawCmd) TextureId

func (self *DrawCmd) TextureId() TextureID

func (*DrawCmd) UserCallback added in v1.2.0

func (self *DrawCmd) UserCallback() DrawCallback

func (*DrawCmd) UserCallbackData

func (self *DrawCmd) UserCallbackData() uintptr

func (*DrawCmd) UserCallbackDataOffset added in v1.1.0

func (self *DrawCmd) UserCallbackDataOffset() int32

func (*DrawCmd) UserCallbackDataSize added in v1.1.0

func (self *DrawCmd) UserCallbackDataSize() int32

func (*DrawCmd) VtxOffset

func (self *DrawCmd) VtxOffset() uint32

type DrawCmdHeader

type DrawCmdHeader struct {
	CData *C.ImDrawCmdHeader
}

func NewDrawCmdHeaderFromC

func NewDrawCmdHeaderFromC[SRC any](cvalue SRC) *DrawCmdHeader

NewDrawCmdHeaderFromC creates DrawCmdHeader from its C pointer. SRC ~= *C.ImDrawCmdHeader

func NewEmptyDrawCmdHeader added in v1.2.0

func NewEmptyDrawCmdHeader() *DrawCmdHeader

NewEmptyDrawCmdHeader creates DrawCmdHeader with its 0 value.

func (DrawCmdHeader) C

func (self DrawCmdHeader) C() (C.ImDrawCmdHeader, func())

C is like Handle but returns plain type instead of pointer.

func (*DrawCmdHeader) ClipRect

func (self *DrawCmdHeader) ClipRect() Vec4

func (*DrawCmdHeader) Handle

func (self *DrawCmdHeader) Handle() (result *C.ImDrawCmdHeader, fin func())

Handle returns C version of DrawCmdHeader and its finalizer func.

func (DrawCmdHeader) SetClipRect

func (self DrawCmdHeader) SetClipRect(v Vec4)

func (DrawCmdHeader) SetTextureId

func (self DrawCmdHeader) SetTextureId(v TextureID)

func (DrawCmdHeader) SetVtxOffset

func (self DrawCmdHeader) SetVtxOffset(v uint32)

func (*DrawCmdHeader) TextureId

func (self *DrawCmdHeader) TextureId() TextureID

func (*DrawCmdHeader) VtxOffset

func (self *DrawCmdHeader) VtxOffset() uint32

type DrawData

type DrawData struct {
	CData *C.ImDrawData
}

func CurrentDrawData

func CurrentDrawData() *DrawData

valid after Render() and until the next call to NewFrame(). this is what you have to render.

func NewDrawData

func NewDrawData() *DrawData

func NewDrawDataFromC

func NewDrawDataFromC[SRC any](cvalue SRC) *DrawData

NewDrawDataFromC creates DrawData from its C pointer. SRC ~= *C.ImDrawData

func NewEmptyDrawData added in v1.2.0

func NewEmptyDrawData() *DrawData

NewEmptyDrawData creates DrawData with its 0 value.

func (*DrawData) AddDrawList

func (self *DrawData) AddDrawList(draw_list *DrawList)

Helper to add an external draw list into an existing ImDrawData.

func (DrawData) C

func (self DrawData) C() (C.ImDrawData, func())

C is like Handle but returns plain type instead of pointer.

func (*DrawData) Clear

func (self *DrawData) Clear()

func (*DrawData) CmdListsCount

func (self *DrawData) CmdListsCount() int32

func (DrawData) CommandLists

func (d DrawData) CommandLists() []DrawList

Commands returns the list of draw commands. Typically 1 command = 1 GPU draw call, unless the command is a callback.

func (*DrawData) DeIndexAllBuffers

func (self *DrawData) DeIndexAllBuffers()

Helper to convert all buffers from indexed to non-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering!

func (*DrawData) Destroy

func (self *DrawData) Destroy()

func (*DrawData) DisplayPos

func (self *DrawData) DisplayPos() Vec2

func (*DrawData) DisplaySize

func (self *DrawData) DisplaySize() Vec2

func (*DrawData) FramebufferScale

func (self *DrawData) FramebufferScale() Vec2

func (*DrawData) Handle

func (self *DrawData) Handle() (result *C.ImDrawData, fin func())

Handle returns C version of DrawData and its finalizer func.

func (*DrawData) OwnerViewport

func (self *DrawData) OwnerViewport() *Viewport

func (*DrawData) ScaleClipRects

func (self *DrawData) ScaleClipRects(fb_scale Vec2)

Helper to scale the ClipRect field of each ImDrawCmd. Use if your final output buffer is at a different scale than Dear ImGui expects, or if there is a difference between your window resolution and framebuffer resolution.

func (DrawData) SetCmdListsCount

func (self DrawData) SetCmdListsCount(v int32)

func (DrawData) SetDisplayPos

func (self DrawData) SetDisplayPos(v Vec2)

func (DrawData) SetDisplaySize

func (self DrawData) SetDisplaySize(v Vec2)

func (DrawData) SetFramebufferScale

func (self DrawData) SetFramebufferScale(v Vec2)

func (DrawData) SetOwnerViewport

func (self DrawData) SetOwnerViewport(v *Viewport)

func (DrawData) SetTotalIdxCount

func (self DrawData) SetTotalIdxCount(v int32)

func (DrawData) SetTotalVtxCount

func (self DrawData) SetTotalVtxCount(v int32)

func (DrawData) SetValid

func (self DrawData) SetValid(v bool)

func (*DrawData) TotalIdxCount

func (self *DrawData) TotalIdxCount() int32

func (*DrawData) TotalVtxCount

func (self *DrawData) TotalVtxCount() int32

func (*DrawData) Valid

func (self *DrawData) Valid() bool

type DrawDataBuilder

type DrawDataBuilder struct {
	CData *C.ImDrawDataBuilder
}

func InternalNewDrawDataBuilder

func InternalNewDrawDataBuilder() *DrawDataBuilder

func NewDrawDataBuilderFromC

func NewDrawDataBuilderFromC[SRC any](cvalue SRC) *DrawDataBuilder

NewDrawDataBuilderFromC creates DrawDataBuilder from its C pointer. SRC ~= *C.ImDrawDataBuilder

func NewEmptyDrawDataBuilder added in v1.2.0

func NewEmptyDrawDataBuilder() *DrawDataBuilder

NewEmptyDrawDataBuilder creates DrawDataBuilder with its 0 value.

func (DrawDataBuilder) C

func (self DrawDataBuilder) C() (C.ImDrawDataBuilder, func())

C is like Handle but returns plain type instead of pointer.

func (*DrawDataBuilder) Destroy

func (self *DrawDataBuilder) Destroy()

func (*DrawDataBuilder) Handle

func (self *DrawDataBuilder) Handle() (result *C.ImDrawDataBuilder, fin func())

Handle returns C version of DrawDataBuilder and its finalizer func.

type DrawFlags

type DrawFlags int32

Flags for ImDrawList functions (Legacy: bit 0 must always correspond to ImDrawFlags_Closed to be backward compatible with old API using a bool. Bits 1..3 must be unused) original name: ImDrawFlags_

const (
	DrawFlagsNone DrawFlags = 0
	// PathStroke(), AddPolyline(): specify that shape should be closed (Important: this is always == 1 for legacy reason)
	DrawFlagsClosed DrawFlags = 1
	// AddRect(), AddRectFilled(), PathRect(): enable rounding top-left corner only (when rounding > 0.0f, we default to all corners). Was 0x01.
	DrawFlagsRoundCornersTopLeft DrawFlags = 16
	// AddRect(), AddRectFilled(), PathRect(): enable rounding top-right corner only (when rounding > 0.0f, we default to all corners). Was 0x02.
	DrawFlagsRoundCornersTopRight DrawFlags = 32
	// AddRect(), AddRectFilled(), PathRect(): enable rounding bottom-left corner only (when rounding > 0.0f, we default to all corners). Was 0x04.
	DrawFlagsRoundCornersBottomLeft DrawFlags = 64
	// AddRect(), AddRectFilled(), PathRect(): enable rounding bottom-right corner only (when rounding > 0.0f, we default to all corners). Wax 0x08.
	DrawFlagsRoundCornersBottomRight DrawFlags = 128
	// AddRect(), AddRectFilled(), PathRect(): disable rounding on all corners (when rounding > 0.0f). This is NOT zero, NOT an implicit flag!
	DrawFlagsRoundCornersNone   DrawFlags = 256
	DrawFlagsRoundCornersTop    DrawFlags = 48
	DrawFlagsRoundCornersBottom DrawFlags = 192
	DrawFlagsRoundCornersLeft   DrawFlags = 80
	DrawFlagsRoundCornersRight  DrawFlags = 160
	DrawFlagsRoundCornersAll    DrawFlags = 240
	// Default to ALL corners if none of the _RoundCornersXX flags are specified.
	DrawFlagsRoundCornersDefault DrawFlags = 240
	DrawFlagsRoundCornersMask    DrawFlags = 496
)

func InternalCalcRoundingFlagsForRectInRect

func InternalCalcRoundingFlagsForRectInRect(r_in, r_outer Rect, threshold float32) DrawFlags

type DrawIdx

type DrawIdx uint16

func NewDrawIdxFromC

func NewDrawIdxFromC[SRC any](cvalue SRC) *DrawIdx

NewDrawIdxFromC creates DrawIdx from its C pointer. SRC ~= *C.ImDrawIdx

func (DrawIdx) C

func (self DrawIdx) C() (C.ImDrawIdx, func())

C is like Handle but returns plain type instead of pointer.

func (*DrawIdx) Handle

func (selfSrc *DrawIdx) Handle() (result *C.ImDrawIdx, fin func())

Handle returns C version of DrawIdx and its finalizer func.

type DrawList

type DrawList struct {
	CData *C.ImDrawList
}

func BackgroundDrawList

func BackgroundDrawList() *DrawList

func BackgroundDrawListV

func BackgroundDrawListV(viewport *Viewport) *DrawList

get background draw list for the given viewport or viewport associated to the current window. this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents. BackgroundDrawListV parameter default value hint: viewport: NULL

func ForegroundDrawListViewportPtr

func ForegroundDrawListViewportPtr() *DrawList

func ForegroundDrawListViewportPtrV

func ForegroundDrawListViewportPtrV(viewport *Viewport) *DrawList

get foreground draw list for the given viewport or viewport associated to the current window. this draw list will be the top-most rendered one. Useful to quickly draw shapes/text over dear imgui contents. ForegroundDrawListViewportPtrV parameter default value hint: viewport: NULL

func InternalForegroundDrawListWindowPtr

func InternalForegroundDrawListWindowPtr(window *Window) *DrawList

func NewDrawList

func NewDrawList(shared_data *DrawListSharedData) *DrawList

func NewDrawListFromC

func NewDrawListFromC[SRC any](cvalue SRC) *DrawList

NewDrawListFromC creates DrawList from its C pointer. SRC ~= *C.ImDrawList

func NewEmptyDrawList added in v1.2.0

func NewEmptyDrawList() *DrawList

NewEmptyDrawList creates DrawList with its 0 value.

func WindowDrawList

func WindowDrawList() *DrawList

get draw list associated to the current window, to append your own drawing primitives

func (*DrawList) AddBezierCubic

func (self *DrawList) AddBezierCubic(p1, p2, p3, p4 Vec2, col uint32, thickness float32)

func (*DrawList) AddBezierCubicV

func (self *DrawList) AddBezierCubicV(p1, p2, p3, p4 Vec2, col uint32, thickness float32, num_segments int32)

Cubic Bezier (4 control points) AddBezierCubicV parameter default value hint: num_segments: 0

func (*DrawList) AddBezierQuadratic

func (self *DrawList) AddBezierQuadratic(p1, p2, p3 Vec2, col uint32, thickness float32)

func (*DrawList) AddBezierQuadraticV

func (self *DrawList) AddBezierQuadraticV(p1, p2, p3 Vec2, col uint32, thickness float32, num_segments int32)

Quadratic Bezier (3 control points) AddBezierQuadraticV parameter default value hint: num_segments: 0

func (*DrawList) AddCallback added in v1.2.0

func (self *DrawList) AddCallback(callback DrawCallback, userdata uintptr)

func (*DrawList) AddCallbackV added in v1.2.0

func (self *DrawList) AddCallbackV(callback DrawCallback, userdata uintptr, userdata_size uint64)

AddCallbackV parameter default value hint: userdata_size: 0

func (*DrawList) AddCircle

func (self *DrawList) AddCircle(center Vec2, radius float32, col uint32)

func (*DrawList) AddCircleFilled

func (self *DrawList) AddCircleFilled(center Vec2, radius float32, col uint32)

func (*DrawList) AddCircleFilledV

func (self *DrawList) AddCircleFilledV(center Vec2, radius float32, col uint32, num_segments int32)

AddCircleFilledV parameter default value hint: num_segments: 0

func (*DrawList) AddCircleV

func (self *DrawList) AddCircleV(center Vec2, radius float32, col uint32, num_segments int32, thickness float32)

AddCircleV parameter default value hint: num_segments: 0 thickness: 1.0f

func (*DrawList) AddConcavePolyFilled

func (self *DrawList) AddConcavePolyFilled(points *Vec2, num_points int32, col uint32)

func (*DrawList) AddConvexPolyFilled

func (self *DrawList) AddConvexPolyFilled(points *Vec2, num_points int32, col uint32)

func (*DrawList) AddDrawCmd

func (self *DrawList) AddDrawCmd()

This is useful if you need to forcefully create a new draw call (to allow for dependent rendering / blending). Otherwise primitives are merged into the same draw-call as much as possible

func (*DrawList) AddEllipse

func (self *DrawList) AddEllipse(center, radius Vec2, col uint32)

func (*DrawList) AddEllipseFilled

func (self *DrawList) AddEllipseFilled(center, radius Vec2, col uint32)

func (*DrawList) AddEllipseFilledV

func (self *DrawList) AddEllipseFilledV(center, radius Vec2, col uint32, rot float32, num_segments int32)

AddEllipseFilledV parameter default value hint: rot: 0.0f num_segments: 0

func (*DrawList) AddEllipseV

func (self *DrawList) AddEllipseV(center, radius Vec2, col uint32, rot float32, num_segments int32, thickness float32)

AddEllipseV parameter default value hint: rot: 0.0f num_segments: 0 thickness: 1.0f

func (*DrawList) AddImage

func (self *DrawList) AddImage(user_texture_id TextureID, p_min, p_max Vec2)

func (*DrawList) AddImageQuad

func (self *DrawList) AddImageQuad(user_texture_id TextureID, p1, p2, p3, p4 Vec2)

func (*DrawList) AddImageQuadV

func (self *DrawList) AddImageQuadV(user_texture_id TextureID, p1, p2, p3, p4, uv1, uv2, uv3, uv4 Vec2, col uint32)

AddImageQuadV parameter default value hint: uv1: ImVec2(0,0) uv2: ImVec2(1,0) uv3: ImVec2(1,1) uv4: ImVec2(0,1) col: 4294967295

func (*DrawList) AddImageRounded

func (self *DrawList) AddImageRounded(user_texture_id TextureID, p_min, p_max, uv_min, uv_max Vec2, col uint32, rounding float32)

func (*DrawList) AddImageRoundedV

func (self *DrawList) AddImageRoundedV(user_texture_id TextureID, p_min, p_max, uv_min, uv_max Vec2, col uint32, rounding float32, flags DrawFlags)

AddImageRoundedV parameter default value hint: flags: 0

func (*DrawList) AddImageV

func (self *DrawList) AddImageV(user_texture_id TextureID, p_min, p_max, uv_min, uv_max Vec2, col uint32)

AddImageV parameter default value hint: uv_min: ImVec2(0,0) uv_max: ImVec2(1,1) col: 4294967295

func (*DrawList) AddLine

func (self *DrawList) AddLine(p1, p2 Vec2, col uint32)

func (*DrawList) AddLineV

func (self *DrawList) AddLineV(p1, p2 Vec2, col uint32, thickness float32)

AddLineV parameter default value hint: thickness: 1.0f

func (*DrawList) AddNgon

func (self *DrawList) AddNgon(center Vec2, radius float32, col uint32, num_segments int32)

func (*DrawList) AddNgonFilled

func (self *DrawList) AddNgonFilled(center Vec2, radius float32, col uint32, num_segments int32)

func (*DrawList) AddNgonV

func (self *DrawList) AddNgonV(center Vec2, radius float32, col uint32, num_segments int32, thickness float32)

AddNgonV parameter default value hint: thickness: 1.0f

func (*DrawList) AddPolyline

func (self *DrawList) AddPolyline(points *Vec2, num_points int32, col uint32, flags DrawFlags, thickness float32)

func (*DrawList) AddQuad

func (self *DrawList) AddQuad(p1, p2, p3, p4 Vec2, col uint32)

func (*DrawList) AddQuadFilled

func (self *DrawList) AddQuadFilled(p1, p2, p3, p4 Vec2, col uint32)

func (*DrawList) AddQuadV

func (self *DrawList) AddQuadV(p1, p2, p3, p4 Vec2, col uint32, thickness float32)

AddQuadV parameter default value hint: thickness: 1.0f

func (*DrawList) AddRect

func (self *DrawList) AddRect(p_min, p_max Vec2, col uint32)

func (*DrawList) AddRectFilled

func (self *DrawList) AddRectFilled(p_min, p_max Vec2, col uint32)

func (*DrawList) AddRectFilledMultiColor

func (self *DrawList) AddRectFilledMultiColor(p_min, p_max Vec2, col_upr_left, col_upr_right, col_bot_right, col_bot_left uint32)

func (*DrawList) AddRectFilledV

func (self *DrawList) AddRectFilledV(p_min, p_max Vec2, col uint32, rounding float32, flags DrawFlags)

a: upper-left, b: lower-right (== upper-left + size) AddRectFilledV parameter default value hint: rounding: 0.0f flags: 0

func (*DrawList) AddRectV

func (self *DrawList) AddRectV(p_min, p_max Vec2, col uint32, rounding float32, flags DrawFlags, thickness float32)

a: upper-left, b: lower-right (== upper-left + size) AddRectV parameter default value hint: rounding: 0.0f flags: 0 thickness: 1.0f

func (*DrawList) AddTextFontPtr

func (self *DrawList) AddTextFontPtr(font *Font, font_size float32, pos Vec2, col uint32, text_begin string)

func (*DrawList) AddTextFontPtrV

func (self *DrawList) AddTextFontPtrV(font *Font, font_size float32, pos Vec2, col uint32, text_begin string, wrap_width float32, cpu_fine_clip_rect *Vec4)

AddTextFontPtrV parameter default value hint: wrap_width: 0.0f cpu_fine_clip_rect: NULL

func (*DrawList) AddTextVec2

func (self *DrawList) AddTextVec2(pos Vec2, col uint32, text_begin string)

func (*DrawList) AddTextVec2V

func (self *DrawList) AddTextVec2V(pos Vec2, col uint32, text_begin string)

AddTextVec2V parameter default value hint:

func (*DrawList) AddTriangle

func (self *DrawList) AddTriangle(p1, p2, p3 Vec2, col uint32)

func (*DrawList) AddTriangleFilled

func (self *DrawList) AddTriangleFilled(p1, p2, p3 Vec2, col uint32)

func (*DrawList) AddTriangleV

func (self *DrawList) AddTriangleV(p1, p2, p3 Vec2, col uint32, thickness float32)

AddTriangleV parameter default value hint: thickness: 1.0f

func (DrawList) C

func (self DrawList) C() (C.ImDrawList, func())

C is like Handle but returns plain type instead of pointer.

func (*DrawList) CalcCircleAutoSegmentCount

func (self *DrawList) CalcCircleAutoSegmentCount(radius float32) int32

func (*DrawList) CallbacksDataBuf added in v1.1.0

func (self *DrawList) CallbacksDataBuf() vectors.Vector[byte]

func (*DrawList) ChannelsMerge

func (self *DrawList) ChannelsMerge()

func (*DrawList) ChannelsSetCurrent

func (self *DrawList) ChannelsSetCurrent(n int32)

func (*DrawList) ChannelsSplit

func (self *DrawList) ChannelsSplit(count int32)

func (*DrawList) ClearFreeMemory

func (self *DrawList) ClearFreeMemory()

func (*DrawList) ClipRectMax

func (self *DrawList) ClipRectMax() Vec2

func (*DrawList) ClipRectMin

func (self *DrawList) ClipRectMin() Vec2

func (*DrawList) ClipRectStack added in v1.3.0

func (self *DrawList) ClipRectStack() vectors.Vector[Vec4]

func (*DrawList) CloneOutput

func (self *DrawList) CloneOutput() *DrawList

Create a clone of the CmdBuffer/IdxBuffer/VtxBuffer.

func (*DrawList) CmdBuffer

func (self *DrawList) CmdBuffer() vectors.Vector[DrawCmd]

func (*DrawList) CmdHeader

func (self *DrawList) CmdHeader() DrawCmdHeader

func (DrawList) Commands

func (d DrawList) Commands() []DrawCmd

func (*DrawList) Data

func (self *DrawList) Data() *DrawListSharedData

func (*DrawList) Destroy

func (self *DrawList) Destroy()

func (*DrawList) Flags

func (self *DrawList) Flags() DrawListFlags

func (*DrawList) FringeScale

func (self *DrawList) FringeScale() float32

func (DrawList) GetIndexBuffer

func (d DrawList) GetIndexBuffer() (unsafe.Pointer, int)

func (DrawList) GetVertexBuffer

func (d DrawList) GetVertexBuffer() (unsafe.Pointer, int)

func (*DrawList) Handle

func (self *DrawList) Handle() (result *C.ImDrawList, fin func())

Handle returns C version of DrawList and its finalizer func.

func (*DrawList) IdxBuffer

func (self *DrawList) IdxBuffer() vectors.Vector[DrawIdx]

func (*DrawList) IdxWritePtr

func (self *DrawList) IdxWritePtr() *DrawIdx

func (*DrawList) OnChangedClipRect

func (self *DrawList) OnChangedClipRect()

func (*DrawList) OnChangedTextureID

func (self *DrawList) OnChangedTextureID()

func (*DrawList) OnChangedVtxOffset

func (self *DrawList) OnChangedVtxOffset()

func (*DrawList) OwnerName

func (self *DrawList) OwnerName() string

func (*DrawList) PathArcTo

func (self *DrawList) PathArcTo(center Vec2, radius, a_min, a_max float32)

func (*DrawList) PathArcToFast

func (self *DrawList) PathArcToFast(center Vec2, radius float32, a_min_of_12, a_max_of_12 int32)

Use precomputed angles for a 12 steps circle

func (*DrawList) PathArcToFastEx

func (self *DrawList) PathArcToFastEx(center Vec2, radius float32, a_min_sample, a_max_sample, a_step int32)

func (*DrawList) PathArcToN

func (self *DrawList) PathArcToN(center Vec2, radius, a_min, a_max float32, num_segments int32)

func (*DrawList) PathArcToV

func (self *DrawList) PathArcToV(center Vec2, radius, a_min, a_max float32, num_segments int32)

PathArcToV parameter default value hint: num_segments: 0

func (*DrawList) PathBezierCubicCurveTo

func (self *DrawList) PathBezierCubicCurveTo(p2, p3, p4 Vec2)

func (*DrawList) PathBezierCubicCurveToV

func (self *DrawList) PathBezierCubicCurveToV(p2, p3, p4 Vec2, num_segments int32)

Cubic Bezier (4 control points) PathBezierCubicCurveToV parameter default value hint: num_segments: 0

func (*DrawList) PathBezierQuadraticCurveTo

func (self *DrawList) PathBezierQuadraticCurveTo(p2, p3 Vec2)

func (*DrawList) PathBezierQuadraticCurveToV

func (self *DrawList) PathBezierQuadraticCurveToV(p2, p3 Vec2, num_segments int32)

Quadratic Bezier (3 control points) PathBezierQuadraticCurveToV parameter default value hint: num_segments: 0

func (*DrawList) PathClear

func (self *DrawList) PathClear()

func (*DrawList) PathEllipticalArcTo

func (self *DrawList) PathEllipticalArcTo(center, radius Vec2, rot, a_min, a_max float32)

func (*DrawList) PathEllipticalArcToV

func (self *DrawList) PathEllipticalArcToV(center, radius Vec2, rot, a_min, a_max float32, num_segments int32)

Ellipse PathEllipticalArcToV parameter default value hint: num_segments: 0

func (*DrawList) PathFillConcave

func (self *DrawList) PathFillConcave(col uint32)

func (*DrawList) PathFillConvex

func (self *DrawList) PathFillConvex(col uint32)

func (*DrawList) PathLineTo

func (self *DrawList) PathLineTo(pos Vec2)

func (*DrawList) PathLineToMergeDuplicate

func (self *DrawList) PathLineToMergeDuplicate(pos Vec2)

func (*DrawList) PathRect

func (self *DrawList) PathRect(rect_min, rect_max Vec2)

func (*DrawList) PathRectV

func (self *DrawList) PathRectV(rect_min, rect_max Vec2, rounding float32, flags DrawFlags)

PathRectV parameter default value hint: rounding: 0.0f flags: 0

func (*DrawList) PathStroke

func (self *DrawList) PathStroke(col uint32)

func (*DrawList) PathStrokeV

func (self *DrawList) PathStrokeV(col uint32, flags DrawFlags, thickness float32)

PathStrokeV parameter default value hint: flags: 0 thickness: 1.0f

func (*DrawList) PopClipRect

func (self *DrawList) PopClipRect()

func (*DrawList) PopTextureID

func (self *DrawList) PopTextureID()

func (*DrawList) PopUnusedDrawCmd

func (self *DrawList) PopUnusedDrawCmd()

func (*DrawList) PrimQuadUV

func (self *DrawList) PrimQuadUV(a, b, c, d, uv_a, uv_b, uv_c, uv_d Vec2, col uint32)

func (*DrawList) PrimRect

func (self *DrawList) PrimRect(a, b Vec2, col uint32)

Axis aligned rectangle (composed of two triangles)

func (*DrawList) PrimRectUV

func (self *DrawList) PrimRectUV(a, b, uv_a, uv_b Vec2, col uint32)

func (*DrawList) PrimReserve

func (self *DrawList) PrimReserve(idx_count, vtx_count int32)

func (*DrawList) PrimUnreserve

func (self *DrawList) PrimUnreserve(idx_count, vtx_count int32)

func (*DrawList) PrimVtx

func (self *DrawList) PrimVtx(pos, uv Vec2, col uint32)

Write vertex with unique index

func (*DrawList) PrimWriteIdx

func (self *DrawList) PrimWriteIdx(idx DrawIdx)

func (*DrawList) PrimWriteVtx

func (self *DrawList) PrimWriteVtx(pos, uv Vec2, col uint32)

func (*DrawList) PushClipRect

func (self *DrawList) PushClipRect(clip_rect_min, clip_rect_max Vec2)

func (*DrawList) PushClipRectFullScreen

func (self *DrawList) PushClipRectFullScreen()

func (*DrawList) PushClipRectV

func (self *DrawList) PushClipRectV(clip_rect_min, clip_rect_max Vec2, intersect_with_current_clip_rect bool)

Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) PushClipRectV parameter default value hint: intersect_with_current_clip_rect: false

func (*DrawList) PushTextureID

func (self *DrawList) PushTextureID(texture_id TextureID)

func (*DrawList) ResetForNewFrame

func (self *DrawList) ResetForNewFrame()

func (DrawList) SetCallbacksDataBuf added in v1.1.0

func (self DrawList) SetCallbacksDataBuf(v vectors.Vector[byte])

func (DrawList) SetClipRectStack

func (self DrawList) SetClipRectStack(v vectors.Vector[Vec4])

func (DrawList) SetCmdBuffer

func (self DrawList) SetCmdBuffer(v vectors.Vector[DrawCmd])

func (DrawList) SetCmdHeader

func (self DrawList) SetCmdHeader(v DrawCmdHeader)

func (DrawList) SetData

func (self DrawList) SetData(v *DrawListSharedData)

func (DrawList) SetFlags

func (self DrawList) SetFlags(v DrawListFlags)

func (DrawList) SetFringeScale

func (self DrawList) SetFringeScale(v float32)

func (DrawList) SetIdxBuffer

func (self DrawList) SetIdxBuffer(v vectors.Vector[DrawIdx])

func (DrawList) SetIdxWritePtr

func (self DrawList) SetIdxWritePtr(v *DrawIdx)

func (DrawList) SetOwnerName

func (self DrawList) SetOwnerName(v string)

func (DrawList) SetPath

func (self DrawList) SetPath(v vectors.Vector[Vec2])

func (DrawList) SetSplitter

func (self DrawList) SetSplitter(v DrawListSplitter)

func (*DrawList) SetTextureID

func (self *DrawList) SetTextureID(texture_id TextureID)

func (DrawList) SetTextureIdStack

func (self DrawList) SetTextureIdStack(v vectors.Vector[TextureID])

func (DrawList) SetVtxBuffer

func (self DrawList) SetVtxBuffer(v vectors.Vector[DrawVert])

func (DrawList) SetVtxCurrentIdx

func (self DrawList) SetVtxCurrentIdx(v uint32)

func (DrawList) SetVtxWritePtr

func (self DrawList) SetVtxWritePtr(v *DrawVert)

func (*DrawList) Splitter

func (self *DrawList) Splitter() DrawListSplitter

func (*DrawList) TextureIdStack

func (self *DrawList) TextureIdStack() vectors.Vector[TextureID]

func (*DrawList) TryMergeDrawCmds

func (self *DrawList) TryMergeDrawCmds()

func (*DrawList) VtxBuffer

func (self *DrawList) VtxBuffer() vectors.Vector[DrawVert]

func (*DrawList) VtxCurrentIdx

func (self *DrawList) VtxCurrentIdx() uint32

func (*DrawList) VtxWritePtr

func (self *DrawList) VtxWritePtr() *DrawVert

type DrawListFlags

type DrawListFlags int32

Flags for ImDrawList instance. Those are set automatically by ImGui:: functions from ImGuiIO settings, and generally not manipulated directly. It is however possible to temporarily alter flags between calls to ImDrawList:: functions. original name: ImDrawListFlags_

const (
	DrawListFlagsNone DrawListFlags = 0
	// Enable anti-aliased lines/borders (*2 the number of triangles for 1.0f wide line or lines thin enough to be drawn using textures, otherwise *3 the number of triangles)
	DrawListFlagsAntiAliasedLines DrawListFlags = 1
	// Enable anti-aliased lines/borders using textures when possible. Require backend to render with bilinear filtering (NOT point/nearest filtering).
	DrawListFlagsAntiAliasedLinesUseTex DrawListFlags = 2
	// Enable anti-aliased edge around filled shapes (rounded rectangles, circles).
	DrawListFlagsAntiAliasedFill DrawListFlags = 4
	// Can emit 'VtxOffset > 0' to allow large meshes. Set when 'ImGuiBackendFlags_RendererHasVtxOffset' is enabled.
	DrawListFlagsAllowVtxOffset DrawListFlags = 8
)

type DrawListSharedData

type DrawListSharedData struct {
	CData *C.ImDrawListSharedData
}

func CurrentDrawListSharedData

func CurrentDrawListSharedData() *DrawListSharedData

you may use this when creating your own ImDrawList instances.

func InternalNewDrawListSharedData

func InternalNewDrawListSharedData() *DrawListSharedData

func NewDrawListSharedDataFromC

func NewDrawListSharedDataFromC[SRC any](cvalue SRC) *DrawListSharedData

NewDrawListSharedDataFromC creates DrawListSharedData from its C pointer. SRC ~= *C.ImDrawListSharedData

func NewEmptyDrawListSharedData added in v1.2.0

func NewEmptyDrawListSharedData() *DrawListSharedData

NewEmptyDrawListSharedData creates DrawListSharedData with its 0 value.

func (*DrawListSharedData) ArcFastRadiusCutoff

func (self *DrawListSharedData) ArcFastRadiusCutoff() float32

func (*DrawListSharedData) ArcFastVtx

func (self *DrawListSharedData) ArcFastVtx() [48]Vec2

func (DrawListSharedData) C

func (self DrawListSharedData) C() (C.ImDrawListSharedData, func())

C is like Handle but returns plain type instead of pointer.

func (*DrawListSharedData) CircleSegmentCounts

func (self *DrawListSharedData) CircleSegmentCounts() [64](byte)

func (*DrawListSharedData) CircleSegmentMaxError

func (self *DrawListSharedData) CircleSegmentMaxError() float32

func (*DrawListSharedData) ClipRectFullscreen

func (self *DrawListSharedData) ClipRectFullscreen() Vec4

func (*DrawListSharedData) CurveTessellationTol

func (self *DrawListSharedData) CurveTessellationTol() float32

func (*DrawListSharedData) Destroy

func (self *DrawListSharedData) Destroy()

func (*DrawListSharedData) Font

func (self *DrawListSharedData) Font() *Font

func (*DrawListSharedData) FontScale

func (self *DrawListSharedData) FontScale() float32

func (*DrawListSharedData) FontSize

func (self *DrawListSharedData) FontSize() float32

func (*DrawListSharedData) Handle

func (self *DrawListSharedData) Handle() (result *C.ImDrawListSharedData, fin func())

Handle returns C version of DrawListSharedData and its finalizer func.

func (*DrawListSharedData) InitialFlags

func (self *DrawListSharedData) InitialFlags() DrawListFlags

func (*DrawListSharedData) InternalSetCircleTessellationMaxError

func (self *DrawListSharedData) InternalSetCircleTessellationMaxError(max_error float32)

func (DrawListSharedData) SetArcFastRadiusCutoff

func (self DrawListSharedData) SetArcFastRadiusCutoff(v float32)

func (DrawListSharedData) SetArcFastVtx

func (self DrawListSharedData) SetArcFastVtx(v *[48]Vec2)

func (DrawListSharedData) SetCircleSegmentCounts

func (self DrawListSharedData) SetCircleSegmentCounts(v *[64]byte)

func (DrawListSharedData) SetCircleSegmentMaxError

func (self DrawListSharedData) SetCircleSegmentMaxError(v float32)

func (DrawListSharedData) SetClipRectFullscreen

func (self DrawListSharedData) SetClipRectFullscreen(v Vec4)

func (DrawListSharedData) SetCurveTessellationTol

func (self DrawListSharedData) SetCurveTessellationTol(v float32)

func (DrawListSharedData) SetFont

func (self DrawListSharedData) SetFont(v *Font)

func (DrawListSharedData) SetFontScale

func (self DrawListSharedData) SetFontScale(v float32)

func (DrawListSharedData) SetFontSize

func (self DrawListSharedData) SetFontSize(v float32)

func (DrawListSharedData) SetInitialFlags

func (self DrawListSharedData) SetInitialFlags(v DrawListFlags)

func (DrawListSharedData) SetTempBuffer

func (self DrawListSharedData) SetTempBuffer(v vectors.Vector[Vec2])

func (DrawListSharedData) SetTexUvLines

func (self DrawListSharedData) SetTexUvLines(v *Vec4)

func (DrawListSharedData) SetTexUvWhitePixel

func (self DrawListSharedData) SetTexUvWhitePixel(v Vec2)

func (*DrawListSharedData) TexUvLines

func (self *DrawListSharedData) TexUvLines() *Vec4

func (*DrawListSharedData) TexUvWhitePixel

func (self *DrawListSharedData) TexUvWhitePixel() Vec2

type DrawListSplitter

type DrawListSplitter struct {
	CData *C.ImDrawListSplitter
}

func NewDrawListSplitter

func NewDrawListSplitter() *DrawListSplitter

func NewDrawListSplitterFromC

func NewDrawListSplitterFromC[SRC any](cvalue SRC) *DrawListSplitter

NewDrawListSplitterFromC creates DrawListSplitter from its C pointer. SRC ~= *C.ImDrawListSplitter

func NewEmptyDrawListSplitter added in v1.2.0

func NewEmptyDrawListSplitter() *DrawListSplitter

NewEmptyDrawListSplitter creates DrawListSplitter with its 0 value.

func (DrawListSplitter) C

func (self DrawListSplitter) C() (C.ImDrawListSplitter, func())

C is like Handle but returns plain type instead of pointer.

func (*DrawListSplitter) Channels

func (self *DrawListSplitter) Channels() vectors.Vector[DrawChannel]

func (*DrawListSplitter) Clear

func (self *DrawListSplitter) Clear()

Do not clear Channels[] so our allocations are reused next frame

func (*DrawListSplitter) ClearFreeMemory

func (self *DrawListSplitter) ClearFreeMemory()

func (*DrawListSplitter) Count

func (self *DrawListSplitter) Count() int32

func (*DrawListSplitter) Current

func (self *DrawListSplitter) Current() int32

func (*DrawListSplitter) Destroy

func (self *DrawListSplitter) Destroy()

func (*DrawListSplitter) Handle

func (self *DrawListSplitter) Handle() (result *C.ImDrawListSplitter, fin func())

Handle returns C version of DrawListSplitter and its finalizer func.

func (*DrawListSplitter) Merge

func (self *DrawListSplitter) Merge(draw_list *DrawList)

func (DrawListSplitter) SetChannels

func (self DrawListSplitter) SetChannels(v vectors.Vector[DrawChannel])

func (DrawListSplitter) SetCount

func (self DrawListSplitter) SetCount(v int32)

func (DrawListSplitter) SetCurrent

func (self DrawListSplitter) SetCurrent(v int32)

func (*DrawListSplitter) SetCurrentChannel

func (self *DrawListSplitter) SetCurrentChannel(draw_list *DrawList, channel_idx int32)

func (*DrawListSplitter) Split

func (self *DrawListSplitter) Split(draw_list *DrawList, count int32)

type DrawVert

type DrawVert struct {
	CData *C.ImDrawVert
}

func NewDrawVertFromC

func NewDrawVertFromC[SRC any](cvalue SRC) *DrawVert

NewDrawVertFromC creates DrawVert from its C pointer. SRC ~= *C.ImDrawVert

func NewEmptyDrawVert added in v1.2.0

func NewEmptyDrawVert() *DrawVert

NewEmptyDrawVert creates DrawVert with its 0 value.

func (DrawVert) C

func (self DrawVert) C() (C.ImDrawVert, func())

C is like Handle but returns plain type instead of pointer.

func (*DrawVert) Col

func (self *DrawVert) Col() uint32

func (*DrawVert) Handle

func (self *DrawVert) Handle() (result *C.ImDrawVert, fin func())

Handle returns C version of DrawVert and its finalizer func.

func (*DrawVert) Pos

func (self *DrawVert) Pos() Vec2

func (DrawVert) SetCol

func (self DrawVert) SetCol(v uint32)

func (DrawVert) SetPos

func (self DrawVert) SetPos(v Vec2)

func (DrawVert) SetUv

func (self DrawVert) SetUv(v Vec2)

func (*DrawVert) Uv

func (self *DrawVert) Uv() Vec2

type ErrorCallback added in v1.2.0

type ErrorCallback func(ctx *Context, user_data unsafe.Pointer, msg string)

func NewErrorCallbackFromC added in v1.2.0

func NewErrorCallbackFromC(cvalue *C.ImGuiErrorCallback) *ErrorCallback

func (ErrorCallback) C added in v1.2.0

func (c ErrorCallback) C() (C.ImGuiErrorCallback, func())

type ErrorRecoveryState added in v1.1.0

type ErrorRecoveryState struct {
	CData *C.ImGuiErrorRecoveryState
}

func InternalNewErrorRecoveryState added in v1.1.0

func InternalNewErrorRecoveryState() *ErrorRecoveryState

func NewEmptyErrorRecoveryState added in v1.2.0

func NewEmptyErrorRecoveryState() *ErrorRecoveryState

NewEmptyErrorRecoveryState creates ErrorRecoveryState with its 0 value.

func NewErrorRecoveryStateFromC added in v1.1.0

func NewErrorRecoveryStateFromC[SRC any](cvalue SRC) *ErrorRecoveryState

NewErrorRecoveryStateFromC creates ErrorRecoveryState from its C pointer. SRC ~= *C.ImGuiErrorRecoveryState

func (ErrorRecoveryState) C added in v1.1.0

func (self ErrorRecoveryState) C() (C.ImGuiErrorRecoveryState, func())

C is like Handle but returns plain type instead of pointer.

func (*ErrorRecoveryState) Destroy added in v1.1.0

func (self *ErrorRecoveryState) Destroy()

func (*ErrorRecoveryState) Handle added in v1.1.0

func (self *ErrorRecoveryState) Handle() (result *C.ImGuiErrorRecoveryState, fin func())

Handle returns C version of ErrorRecoveryState and its finalizer func.

func (ErrorRecoveryState) SetSizeOfBeginPopupStack added in v1.1.0

func (self ErrorRecoveryState) SetSizeOfBeginPopupStack(v int16)

func (ErrorRecoveryState) SetSizeOfColorStack added in v1.1.0

func (self ErrorRecoveryState) SetSizeOfColorStack(v int16)

func (ErrorRecoveryState) SetSizeOfDisabledStack added in v1.1.0

func (self ErrorRecoveryState) SetSizeOfDisabledStack(v int16)

func (ErrorRecoveryState) SetSizeOfFocusScopeStack added in v1.1.0

func (self ErrorRecoveryState) SetSizeOfFocusScopeStack(v int16)

func (ErrorRecoveryState) SetSizeOfFontStack added in v1.1.0

func (self ErrorRecoveryState) SetSizeOfFontStack(v int16)

func (ErrorRecoveryState) SetSizeOfGroupStack added in v1.1.0

func (self ErrorRecoveryState) SetSizeOfGroupStack(v int16)

func (ErrorRecoveryState) SetSizeOfIDStack added in v1.1.0

func (self ErrorRecoveryState) SetSizeOfIDStack(v int16)

func (ErrorRecoveryState) SetSizeOfItemFlagsStack added in v1.1.0

func (self ErrorRecoveryState) SetSizeOfItemFlagsStack(v int16)

func (ErrorRecoveryState) SetSizeOfStyleVarStack added in v1.1.0

func (self ErrorRecoveryState) SetSizeOfStyleVarStack(v int16)

func (ErrorRecoveryState) SetSizeOfTreeStack added in v1.1.0

func (self ErrorRecoveryState) SetSizeOfTreeStack(v int16)

func (ErrorRecoveryState) SetSizeOfWindowStack added in v1.1.0

func (self ErrorRecoveryState) SetSizeOfWindowStack(v int16)

func (*ErrorRecoveryState) SizeOfBeginPopupStack added in v1.1.0

func (self *ErrorRecoveryState) SizeOfBeginPopupStack() int16

func (*ErrorRecoveryState) SizeOfColorStack added in v1.1.0

func (self *ErrorRecoveryState) SizeOfColorStack() int16

func (*ErrorRecoveryState) SizeOfDisabledStack added in v1.1.0

func (self *ErrorRecoveryState) SizeOfDisabledStack() int16

func (*ErrorRecoveryState) SizeOfFocusScopeStack added in v1.1.0

func (self *ErrorRecoveryState) SizeOfFocusScopeStack() int16

func (*ErrorRecoveryState) SizeOfFontStack added in v1.1.0

func (self *ErrorRecoveryState) SizeOfFontStack() int16

func (*ErrorRecoveryState) SizeOfGroupStack added in v1.1.0

func (self *ErrorRecoveryState) SizeOfGroupStack() int16

func (*ErrorRecoveryState) SizeOfIDStack added in v1.1.0

func (self *ErrorRecoveryState) SizeOfIDStack() int16

func (*ErrorRecoveryState) SizeOfItemFlagsStack added in v1.1.0

func (self *ErrorRecoveryState) SizeOfItemFlagsStack() int16

func (*ErrorRecoveryState) SizeOfStyleVarStack added in v1.1.0

func (self *ErrorRecoveryState) SizeOfStyleVarStack() int16

func (*ErrorRecoveryState) SizeOfTreeStack added in v1.1.0

func (self *ErrorRecoveryState) SizeOfTreeStack() int16

func (*ErrorRecoveryState) SizeOfWindowStack added in v1.1.0

func (self *ErrorRecoveryState) SizeOfWindowStack() int16

type FocusRequestFlags

type FocusRequestFlags int32

Flags for FocusWindow(). This is not called ImGuiFocusFlags to avoid confusion with public-facing ImGuiFocusedFlags. FIXME: Once we finishing replacing more uses of GetTopMostPopupModal()+IsWindowWithinBeginStackOf() and FindBlockingModal() with this, we may want to change the flag to be opt-out instead of opt-in. original name: ImGuiFocusRequestFlags_

const (
	FocusRequestFlagsNone FocusRequestFlags = 0
	// Find last focused child (if any) and focus it instead.
	FocusRequestFlagsRestoreFocusedChild FocusRequestFlags = 1
	// Do not set focus if the window is below a modal.
	FocusRequestFlagsUnlessBelowModal FocusRequestFlags = 2
)

type FocusScopeData

type FocusScopeData struct {
	CData *C.ImGuiFocusScopeData
}

func NewEmptyFocusScopeData added in v1.2.0

func NewEmptyFocusScopeData() *FocusScopeData

NewEmptyFocusScopeData creates FocusScopeData with its 0 value.

func NewFocusScopeDataFromC

func NewFocusScopeDataFromC[SRC any](cvalue SRC) *FocusScopeData

NewFocusScopeDataFromC creates FocusScopeData from its C pointer. SRC ~= *C.ImGuiFocusScopeData

func (FocusScopeData) C

func (self FocusScopeData) C() (C.ImGuiFocusScopeData, func())

C is like Handle but returns plain type instead of pointer.

func (*FocusScopeData) Handle

func (self *FocusScopeData) Handle() (result *C.ImGuiFocusScopeData, fin func())

Handle returns C version of FocusScopeData and its finalizer func.

func (*FocusScopeData) ID

func (self *FocusScopeData) ID() ID

func (FocusScopeData) SetID

func (self FocusScopeData) SetID(v ID)

func (FocusScopeData) SetWindowID

func (self FocusScopeData) SetWindowID(v ID)

func (*FocusScopeData) WindowID

func (self *FocusScopeData) WindowID() ID

type FocusedFlags

type FocusedFlags int32

Flags for ImGui::IsWindowFocused() original name: ImGuiFocusedFlags_

const (
	FocusedFlagsNone FocusedFlags = 0
	// Return true if any children of the window is focused
	FocusedFlagsChildWindows FocusedFlags = 1
	// Test from root window (top most parent of the current hierarchy)
	FocusedFlagsRootWindow FocusedFlags = 2
	// Return true if any window is focused. Important: If you are trying to tell how to dispatch your low-level inputs, do NOT use this. Use 'io.WantCaptureMouse' instead! Please read the FAQ!
	FocusedFlagsAnyWindow FocusedFlags = 4
	// Do not consider popup hierarchy (do not treat popup emitter as parent of popup) (when used with _ChildWindows or _RootWindow)
	FocusedFlagsNoPopupHierarchy FocusedFlags = 8
	// Consider docking hierarchy (treat dockspace host as parent of docked window) (when used with _ChildWindows or _RootWindow)
	FocusedFlagsDockHierarchy       FocusedFlags = 16
	FocusedFlagsRootAndChildWindows FocusedFlags = 3
)

type Font

type Font struct {
	CData *C.ImFont
}

func CurrentFont

func CurrentFont() *Font

get current font

func InternalDefaultFont

func InternalDefaultFont() *Font

func NewEmptyFont added in v1.2.0

func NewEmptyFont() *Font

NewEmptyFont creates Font with its 0 value.

func NewFont

func NewFont() *Font

func NewFontFromC

func NewFontFromC[SRC any](cvalue SRC) *Font

NewFontFromC creates Font from its C pointer. SRC ~= *C.ImFont

func (*Font) AddGlyph

func (self *Font) AddGlyph(src_cfg *FontConfig, c Wchar, x0, y0, x1, y1, u0, v0, u1, v1, advance_x float32)

func (*Font) AddRemapChar

func (self *Font) AddRemapChar(dst, src Wchar)

func (*Font) AddRemapCharV

func (self *Font) AddRemapCharV(dst, src Wchar, overwrite_dst bool)

Makes 'dst' character/glyph points to 'src' character/glyph. Currently needs to be called AFTER fonts have been built. AddRemapCharV parameter default value hint: overwrite_dst: true

func (*Font) Ascent

func (self *Font) Ascent() float32

func (*Font) BuildLookupTable

func (self *Font) BuildLookupTable()

func (Font) C

func (self Font) C() (C.ImFont, func())

C is like Handle but returns plain type instead of pointer.

func (*Font) CalcTextSizeA

func (self *Font) CalcTextSizeA(size, max_width, wrap_width float32, text_begin string) Vec2

func (*Font) CalcTextSizeAV

func (self *Font) CalcTextSizeAV(size, max_width, wrap_width float32, text_begin string, remaining []string) Vec2

utf8 CalcTextSizeAV parameter default value hint: remaining: NULL

func (*Font) CalcWordWrapPositionA

func (self *Font) CalcWordWrapPositionA(scale float32, text string, wrap_width float32) string

func (*Font) CharAdvance

func (self *Font) CharAdvance(c Wchar) float32

func (*Font) ClearOutputData

func (self *Font) ClearOutputData()

func (*Font) ConfigData

func (self *Font) ConfigData() *FontConfig

func (*Font) ConfigDataCount

func (self *Font) ConfigDataCount() int16

func (*Font) ContainerAtlas

func (self *Font) ContainerAtlas() *FontAtlas

func (*Font) DebugName

func (self *Font) DebugName() string

func (*Font) Descent

func (self *Font) Descent() float32

func (*Font) Destroy

func (self *Font) Destroy()

func (*Font) DirtyLookupTables

func (self *Font) DirtyLookupTables() bool

func (*Font) EllipsisChar

func (self *Font) EllipsisChar() Wchar

func (*Font) EllipsisCharCount

func (self *Font) EllipsisCharCount() int16

func (*Font) EllipsisCharStep

func (self *Font) EllipsisCharStep() float32

func (*Font) EllipsisWidth

func (self *Font) EllipsisWidth() float32

func (*Font) FallbackAdvanceX

func (self *Font) FallbackAdvanceX() float32

func (*Font) FallbackChar

func (self *Font) FallbackChar() Wchar

func (*Font) FallbackGlyph

func (self *Font) FallbackGlyph() *FontGlyph

func (*Font) FindGlyph

func (self *Font) FindGlyph(c Wchar) *FontGlyph

func (*Font) FindGlyphNoFallback

func (self *Font) FindGlyphNoFallback(c Wchar) *FontGlyph

func (*Font) FontSize

func (self *Font) FontSize() float32

func (*Font) Glyphs

func (self *Font) Glyphs() vectors.Vector[FontGlyph]

func (*Font) GrowIndex

func (self *Font) GrowIndex(new_size int32)

func (*Font) Handle

func (self *Font) Handle() (result *C.ImFont, fin func())

Handle returns C version of Font and its finalizer func.

func (*Font) IndexAdvanceX

func (self *Font) IndexAdvanceX() vectors.Vector[float32]

func (*Font) IndexLookup

func (self *Font) IndexLookup() vectors.Vector[(Wchar)]

func (*Font) IsGlyphRangeUnused

func (self *Font) IsGlyphRangeUnused(c_begin, c_last uint32) bool

func (*Font) IsLoaded

func (self *Font) IsLoaded() bool

func (*Font) MetricsTotalSurface

func (self *Font) MetricsTotalSurface() int32

func (*Font) RenderChar

func (self *Font) RenderChar(draw_list *DrawList, size float32, pos Vec2, col uint32, c Wchar)

func (*Font) RenderText

func (self *Font) RenderText(draw_list *DrawList, size float32, pos Vec2, col uint32, clip_rect Vec4, text_begin string)

func (*Font) RenderTextV

func (self *Font) RenderTextV(draw_list *DrawList, size float32, pos Vec2, col uint32, clip_rect Vec4, text_begin string, wrap_width float32, cpu_fine_clip bool)

RenderTextV parameter default value hint: wrap_width: 0.0f cpu_fine_clip: false

func (*Font) Scale

func (self *Font) Scale() float32

func (Font) SetAscent

func (self Font) SetAscent(v float32)

func (Font) SetConfigData

func (self Font) SetConfigData(v *FontConfig)

func (Font) SetConfigDataCount

func (self Font) SetConfigDataCount(v int16)

func (Font) SetContainerAtlas

func (self Font) SetContainerAtlas(v *FontAtlas)

func (Font) SetDescent

func (self Font) SetDescent(v float32)

func (Font) SetDirtyLookupTables

func (self Font) SetDirtyLookupTables(v bool)

func (Font) SetEllipsisChar

func (self Font) SetEllipsisChar(v Wchar)

func (Font) SetEllipsisCharCount

func (self Font) SetEllipsisCharCount(v int16)

func (Font) SetEllipsisCharStep

func (self Font) SetEllipsisCharStep(v float32)

func (Font) SetEllipsisWidth

func (self Font) SetEllipsisWidth(v float32)

func (Font) SetFallbackAdvanceX

func (self Font) SetFallbackAdvanceX(v float32)

func (Font) SetFallbackChar

func (self Font) SetFallbackChar(v Wchar)

func (Font) SetFallbackGlyph

func (self Font) SetFallbackGlyph(v *FontGlyph)

func (Font) SetFontSize

func (self Font) SetFontSize(v float32)

func (*Font) SetGlyphVisible

func (self *Font) SetGlyphVisible(c Wchar, visible bool)

func (Font) SetGlyphs

func (self Font) SetGlyphs(v vectors.Vector[FontGlyph])

func (Font) SetIndexAdvanceX

func (self Font) SetIndexAdvanceX(v vectors.Vector[float32])

func (Font) SetIndexLookup

func (self Font) SetIndexLookup(v vectors.Vector[Wchar])

func (Font) SetMetricsTotalSurface

func (self Font) SetMetricsTotalSurface(v int32)

func (Font) SetScale

func (self Font) SetScale(v float32)

func (Font) SetUsed4kPagesMap

func (self Font) SetUsed4kPagesMap(v *[34]byte)

func (*Font) Used4kPagesMap

func (self *Font) Used4kPagesMap() [34](byte)

type FontAtlas

type FontAtlas struct {
	CData *C.ImFontAtlas
}

func NewEmptyFontAtlas added in v1.2.0

func NewEmptyFontAtlas() *FontAtlas

NewEmptyFontAtlas creates FontAtlas with its 0 value.

func NewFontAtlas

func NewFontAtlas() *FontAtlas

func NewFontAtlasFromC

func NewFontAtlasFromC[SRC any](cvalue SRC) *FontAtlas

NewFontAtlasFromC creates FontAtlas from its C pointer. SRC ~= *C.ImFontAtlas

func (*FontAtlas) AddCustomRectFontGlyph

func (self *FontAtlas) AddCustomRectFontGlyph(font *Font, id Wchar, width, height int32, advance_x float32) int32

func (*FontAtlas) AddCustomRectFontGlyphV

func (self *FontAtlas) AddCustomRectFontGlyphV(font *Font, id Wchar, width, height int32, advance_x float32, offset Vec2) int32

AddCustomRectFontGlyphV parameter default value hint: offset: ImVec2(0,0)

func (*FontAtlas) AddCustomRectRegular

func (self *FontAtlas) AddCustomRectRegular(width, height int32) int32

func (*FontAtlas) AddFont

func (self *FontAtlas) AddFont(font_cfg *FontConfig) *Font

func (*FontAtlas) AddFontDefault

func (self *FontAtlas) AddFontDefault() *Font

func (*FontAtlas) AddFontDefaultV

func (self *FontAtlas) AddFontDefaultV(font_cfg *FontConfig) *Font

AddFontDefaultV parameter default value hint: font_cfg: NULL

func (*FontAtlas) AddFontFromFileTTF

func (self *FontAtlas) AddFontFromFileTTF(filename string, size_pixels float32) *Font

func (*FontAtlas) AddFontFromFileTTFV

func (self *FontAtlas) AddFontFromFileTTFV(filename string, size_pixels float32, font_cfg *FontConfig, glyph_ranges *Wchar) *Font

AddFontFromFileTTFV parameter default value hint: font_cfg: NULL glyph_ranges: NULL

func (*FontAtlas) AddFontFromMemoryCompressedBase85TTF

func (self *FontAtlas) AddFontFromMemoryCompressedBase85TTF(compressed_font_data_base85 string, size_pixels float32) *Font

func (*FontAtlas) AddFontFromMemoryCompressedBase85TTFV

func (self *FontAtlas) AddFontFromMemoryCompressedBase85TTFV(compressed_font_data_base85 string, size_pixels float32, font_cfg *FontConfig, glyph_ranges *Wchar) *Font

'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. AddFontFromMemoryCompressedBase85TTFV parameter default value hint: font_cfg: NULL glyph_ranges: NULL

func (*FontAtlas) AddFontFromMemoryCompressedTTF

func (self *FontAtlas) AddFontFromMemoryCompressedTTF(compressed_font_data uintptr, compressed_font_data_size int32, size_pixels float32) *Font

func (*FontAtlas) AddFontFromMemoryCompressedTTFV

func (self *FontAtlas) AddFontFromMemoryCompressedTTFV(compressed_font_data uintptr, compressed_font_data_size int32, size_pixels float32, font_cfg *FontConfig, glyph_ranges *Wchar) *Font

'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. AddFontFromMemoryCompressedTTFV parameter default value hint: font_cfg: NULL glyph_ranges: NULL

func (*FontAtlas) AddFontFromMemoryTTF

func (self *FontAtlas) AddFontFromMemoryTTF(font_data uintptr, font_data_size int32, size_pixels float32) *Font

func (*FontAtlas) AddFontFromMemoryTTFV

func (self *FontAtlas) AddFontFromMemoryTTFV(font_data uintptr, font_data_size int32, size_pixels float32, font_cfg *FontConfig, glyph_ranges *Wchar) *Font

Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. AddFontFromMemoryTTFV parameter default value hint: font_cfg: NULL glyph_ranges: NULL

func (*FontAtlas) Build

func (self *FontAtlas) Build() bool

Build pixels data. This is called automatically for you by the GetTexData*** functions.

func (FontAtlas) C

func (self FontAtlas) C() (C.ImFontAtlas, func())

C is like Handle but returns plain type instead of pointer.

func (*FontAtlas) CalcCustomRectUV

func (self *FontAtlas) CalcCustomRectUV(rect *FontAtlasCustomRect, out_uv_min, out_uv_max *Vec2)

func (*FontAtlas) Clear

func (self *FontAtlas) Clear()

Clear all input and output.

func (*FontAtlas) ClearFonts

func (self *FontAtlas) ClearFonts()

Clear output font data (glyphs storage, UV coordinates).

func (*FontAtlas) ClearInputData

func (self *FontAtlas) ClearInputData()

Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges, etc.) = all the data used to build the texture and fonts.

func (*FontAtlas) ClearTexData

func (self *FontAtlas) ClearTexData()

Clear output texture data (CPU side). Saves RAM once the texture has been copied to graphics memory.

func (*FontAtlas) ConfigData

func (self *FontAtlas) ConfigData() vectors.Vector[FontConfig]

func (*FontAtlas) CustomRectByIndex

func (self *FontAtlas) CustomRectByIndex(index int32) *FontAtlasCustomRect

func (*FontAtlas) CustomRects

func (self *FontAtlas) CustomRects() vectors.Vector[FontAtlasCustomRect]

func (*FontAtlas) Destroy

func (self *FontAtlas) Destroy()

func (*FontAtlas) Flags

func (self *FontAtlas) Flags() FontAtlasFlags

func (*FontAtlas) FontBuilderFlags

func (self *FontAtlas) FontBuilderFlags() uint32

func (*FontAtlas) FontBuilderIO

func (self *FontAtlas) FontBuilderIO() *FontBuilderIO

func (FontAtlas) FontCount

func (fa FontAtlas) FontCount() int

func (FontAtlas) GetTextureDataAsRGBA32

func (self FontAtlas) GetTextureDataAsRGBA32() (pixels unsafe.Pointer, width int32, height int32, outBytesPerPixel int32)

func (*FontAtlas) GlyphRangesChineseFull

func (self *FontAtlas) GlyphRangesChineseFull() *Wchar

Default + Half-Width + Japanese Hiragana/Katakana + full set of about 21000 CJK Unified Ideographs

func (*FontAtlas) GlyphRangesChineseSimplifiedCommon

func (self *FontAtlas) GlyphRangesChineseSimplifiedCommon() *Wchar

Default + Half-Width + Japanese Hiragana/Katakana + set of 2500 CJK Unified Ideographs for common simplified Chinese

func (*FontAtlas) GlyphRangesCyrillic

func (self *FontAtlas) GlyphRangesCyrillic() *Wchar

Default + about 400 Cyrillic characters

func (*FontAtlas) GlyphRangesDefault

func (self *FontAtlas) GlyphRangesDefault() *Wchar

Basic Latin, Extended Latin

func (*FontAtlas) GlyphRangesGreek

func (self *FontAtlas) GlyphRangesGreek() *Wchar

Default + Greek and Coptic

func (*FontAtlas) GlyphRangesJapanese

func (self *FontAtlas) GlyphRangesJapanese() *Wchar

Default + Hiragana, Katakana, Half-Width, Selection of 2999 Ideographs

func (*FontAtlas) GlyphRangesKorean

func (self *FontAtlas) GlyphRangesKorean() *Wchar

Default + Korean characters

func (*FontAtlas) GlyphRangesThai

func (self *FontAtlas) GlyphRangesThai() *Wchar

Default + Thai characters

func (*FontAtlas) GlyphRangesVietnamese

func (self *FontAtlas) GlyphRangesVietnamese() *Wchar

Default + Vietnamese characters

func (*FontAtlas) Handle

func (self *FontAtlas) Handle() (result *C.ImFontAtlas, fin func())

Handle returns C version of FontAtlas and its finalizer func.

func (*FontAtlas) IsBuilt

func (self *FontAtlas) IsBuilt() bool

Bit ambiguous: used to detect when user didn't build texture but effectively we should check TexID != 0 except that would be backend dependent...

func (*FontAtlas) Locked

func (self *FontAtlas) Locked() bool

func (*FontAtlas) MouseCursorTexData

func (self *FontAtlas) MouseCursorTexData(cursor MouseCursor, out_offset, out_size *Vec2, out_uv_border, out_uv_fill [2]*Vec2) bool

func (*FontAtlas) PackIdLines

func (self *FontAtlas) PackIdLines() int32

func (*FontAtlas) PackIdMouseCursors

func (self *FontAtlas) PackIdMouseCursors() int32

func (FontAtlas) SetConfigData

func (self FontAtlas) SetConfigData(v vectors.Vector[FontConfig])

func (FontAtlas) SetCustomRects

func (self FontAtlas) SetCustomRects(v vectors.Vector[FontAtlasCustomRect])

func (FontAtlas) SetFlags

func (self FontAtlas) SetFlags(v FontAtlasFlags)

func (FontAtlas) SetFontBuilderFlags

func (self FontAtlas) SetFontBuilderFlags(v uint32)

func (FontAtlas) SetFontBuilderIO

func (self FontAtlas) SetFontBuilderIO(v *FontBuilderIO)

func (FontAtlas) SetLocked

func (self FontAtlas) SetLocked(v bool)

func (FontAtlas) SetPackIdLines

func (self FontAtlas) SetPackIdLines(v int32)

func (FontAtlas) SetPackIdMouseCursors

func (self FontAtlas) SetPackIdMouseCursors(v int32)

func (FontAtlas) SetTexDesiredWidth

func (self FontAtlas) SetTexDesiredWidth(v int32)

func (FontAtlas) SetTexGlyphPadding

func (self FontAtlas) SetTexGlyphPadding(v int32)

func (FontAtlas) SetTexHeight

func (self FontAtlas) SetTexHeight(v int32)

func (*FontAtlas) SetTexID

func (self *FontAtlas) SetTexID(id TextureID)

func (FontAtlas) SetTexPixelsAlpha8

func (self FontAtlas) SetTexPixelsAlpha8(v *uint)

func (FontAtlas) SetTexPixelsRGBA32

func (self FontAtlas) SetTexPixelsRGBA32(v *uint32)

func (FontAtlas) SetTexPixelsUseColors

func (self FontAtlas) SetTexPixelsUseColors(v bool)

func (FontAtlas) SetTexReady

func (self FontAtlas) SetTexReady(v bool)

func (FontAtlas) SetTexUvLines

func (self FontAtlas) SetTexUvLines(v *[64]Vec4)

func (FontAtlas) SetTexUvScale

func (self FontAtlas) SetTexUvScale(v Vec2)

func (FontAtlas) SetTexUvWhitePixel

func (self FontAtlas) SetTexUvWhitePixel(v Vec2)

func (FontAtlas) SetTexWidth

func (self FontAtlas) SetTexWidth(v int32)

func (FontAtlas) SetUserData

func (self FontAtlas) SetUserData(v uintptr)

func (*FontAtlas) TexDesiredWidth

func (self *FontAtlas) TexDesiredWidth() int32

func (*FontAtlas) TexGlyphPadding

func (self *FontAtlas) TexGlyphPadding() int32

func (*FontAtlas) TexHeight

func (self *FontAtlas) TexHeight() int32

func (*FontAtlas) TexPixelsAlpha8

func (self *FontAtlas) TexPixelsAlpha8() *uint

func (*FontAtlas) TexPixelsRGBA32

func (self *FontAtlas) TexPixelsRGBA32() *uint32

func (*FontAtlas) TexPixelsUseColors

func (self *FontAtlas) TexPixelsUseColors() bool

func (*FontAtlas) TexReady

func (self *FontAtlas) TexReady() bool

func (*FontAtlas) TexUvLines

func (self *FontAtlas) TexUvLines() [64]Vec4

func (*FontAtlas) TexUvScale

func (self *FontAtlas) TexUvScale() Vec2

func (*FontAtlas) TexUvWhitePixel

func (self *FontAtlas) TexUvWhitePixel() Vec2

func (*FontAtlas) TexWidth

func (self *FontAtlas) TexWidth() int32

func (FontAtlas) TextureDataAsAlpha8

func (self FontAtlas) TextureDataAsAlpha8() (pixels unsafe.Pointer, width int32, height int32, outBytesPerPixel int32)

func (*FontAtlas) UserData

func (self *FontAtlas) UserData() uintptr

type FontAtlasCustomRect

type FontAtlasCustomRect struct {
	CData *C.ImFontAtlasCustomRect
}

func NewEmptyFontAtlasCustomRect added in v1.2.0

func NewEmptyFontAtlasCustomRect() *FontAtlasCustomRect

NewEmptyFontAtlasCustomRect creates FontAtlasCustomRect with its 0 value.

func NewFontAtlasCustomRect

func NewFontAtlasCustomRect() *FontAtlasCustomRect

func NewFontAtlasCustomRectFromC

func NewFontAtlasCustomRectFromC[SRC any](cvalue SRC) *FontAtlasCustomRect

NewFontAtlasCustomRectFromC creates FontAtlasCustomRect from its C pointer. SRC ~= *C.ImFontAtlasCustomRect

func (FontAtlasCustomRect) C

func (self FontAtlasCustomRect) C() (C.ImFontAtlasCustomRect, func())

C is like Handle but returns plain type instead of pointer.

func (*FontAtlasCustomRect) Destroy

func (self *FontAtlasCustomRect) Destroy()

func (*FontAtlasCustomRect) Font

func (self *FontAtlasCustomRect) Font() *Font

func (*FontAtlasCustomRect) GlyphAdvanceX

func (self *FontAtlasCustomRect) GlyphAdvanceX() float32

func (*FontAtlasCustomRect) GlyphID

func (self *FontAtlasCustomRect) GlyphID() uint32

func (*FontAtlasCustomRect) GlyphOffset

func (self *FontAtlasCustomRect) GlyphOffset() Vec2

func (*FontAtlasCustomRect) Handle

func (self *FontAtlasCustomRect) Handle() (result *C.ImFontAtlasCustomRect, fin func())

Handle returns C version of FontAtlasCustomRect and its finalizer func.

func (*FontAtlasCustomRect) Height

func (self *FontAtlasCustomRect) Height() uint16

func (*FontAtlasCustomRect) IsPacked

func (self *FontAtlasCustomRect) IsPacked() bool

func (FontAtlasCustomRect) SetFont

func (self FontAtlasCustomRect) SetFont(v *Font)

func (FontAtlasCustomRect) SetGlyphAdvanceX

func (self FontAtlasCustomRect) SetGlyphAdvanceX(v float32)

func (FontAtlasCustomRect) SetGlyphID

func (self FontAtlasCustomRect) SetGlyphID(v uint32)

func (FontAtlasCustomRect) SetGlyphOffset

func (self FontAtlasCustomRect) SetGlyphOffset(v Vec2)

func (FontAtlasCustomRect) SetHeight

func (self FontAtlasCustomRect) SetHeight(v uint16)

func (FontAtlasCustomRect) SetWidth

func (self FontAtlasCustomRect) SetWidth(v uint16)

func (FontAtlasCustomRect) SetX

func (self FontAtlasCustomRect) SetX(v uint16)

func (FontAtlasCustomRect) SetY

func (self FontAtlasCustomRect) SetY(v uint16)

func (*FontAtlasCustomRect) Width

func (self *FontAtlasCustomRect) Width() uint16

func (*FontAtlasCustomRect) X

func (self *FontAtlasCustomRect) X() uint16

func (*FontAtlasCustomRect) Y

func (self *FontAtlasCustomRect) Y() uint16

type FontAtlasFlags

type FontAtlasFlags int32

Flags for ImFontAtlas build original name: ImFontAtlasFlags_

const (
	FontAtlasFlagsNone FontAtlasFlags = 0
	// Don't round the height to next power of two
	FontAtlasFlagsNoPowerOfTwoHeight FontAtlasFlags = 1
	// Don't build software mouse cursors into the atlas (save a little texture memory)
	FontAtlasFlagsNoMouseCursors FontAtlasFlags = 2
	// Don't build thick line textures into the atlas (save a little texture memory, allow support for point/nearest filtering). The AntiAliasedLinesUseTex features uses them, otherwise they will be rendered using polygons (more expensive for CPU/GPU).
	FontAtlasFlagsNoBakedLines FontAtlasFlags = 4
)

type FontBuilderIO

type FontBuilderIO struct {
	CData *C.ImFontBuilderIO
}

func InternalImFontAtlasGetBuilderForStbTruetype

func InternalImFontAtlasGetBuilderForStbTruetype() *FontBuilderIO

func NewEmptyFontBuilderIO added in v1.2.0

func NewEmptyFontBuilderIO() *FontBuilderIO

NewEmptyFontBuilderIO creates FontBuilderIO with its 0 value.

func NewFontBuilderIOFromC

func NewFontBuilderIOFromC[SRC any](cvalue SRC) *FontBuilderIO

NewFontBuilderIOFromC creates FontBuilderIO from its C pointer. SRC ~= *C.ImFontBuilderIO

func (FontBuilderIO) C

func (self FontBuilderIO) C() (C.ImFontBuilderIO, func())

C is like Handle but returns plain type instead of pointer.

func (*FontBuilderIO) Handle

func (self *FontBuilderIO) Handle() (result *C.ImFontBuilderIO, fin func())

Handle returns C version of FontBuilderIO and its finalizer func.

type FontConfig

type FontConfig struct {
	CData *C.ImFontConfig
}

func NewEmptyFontConfig added in v1.2.0

func NewEmptyFontConfig() *FontConfig

NewEmptyFontConfig creates FontConfig with its 0 value.

func NewFontConfig

func NewFontConfig() *FontConfig

func NewFontConfigFromC

func NewFontConfigFromC[SRC any](cvalue SRC) *FontConfig

NewFontConfigFromC creates FontConfig from its C pointer. SRC ~= *C.ImFontConfig

func (FontConfig) C

func (self FontConfig) C() (C.ImFontConfig, func())

C is like Handle but returns plain type instead of pointer.

func (*FontConfig) Destroy

func (self *FontConfig) Destroy()

func (*FontConfig) DstFont

func (self *FontConfig) DstFont() *Font

func (*FontConfig) EllipsisChar

func (self *FontConfig) EllipsisChar() Wchar

func (*FontConfig) FontBuilderFlags

func (self *FontConfig) FontBuilderFlags() uint32

func (*FontConfig) FontData

func (self *FontConfig) FontData() uintptr

func (*FontConfig) FontDataOwnedByAtlas

func (self *FontConfig) FontDataOwnedByAtlas() bool

func (*FontConfig) FontDataSize

func (self *FontConfig) FontDataSize() int32

func (*FontConfig) FontNo

func (self *FontConfig) FontNo() int32

func (*FontConfig) GlyphExtraSpacing

func (self *FontConfig) GlyphExtraSpacing() Vec2

func (*FontConfig) GlyphMaxAdvanceX

func (self *FontConfig) GlyphMaxAdvanceX() float32

func (*FontConfig) GlyphMinAdvanceX

func (self *FontConfig) GlyphMinAdvanceX() float32

func (*FontConfig) GlyphOffset

func (self *FontConfig) GlyphOffset() Vec2

func (*FontConfig) GlyphRanges

func (self *FontConfig) GlyphRanges() *Wchar

func (*FontConfig) Handle

func (self *FontConfig) Handle() (result *C.ImFontConfig, fin func())

Handle returns C version of FontConfig and its finalizer func.

func (*FontConfig) MergeMode

func (self *FontConfig) MergeMode() bool

func (*FontConfig) Name

func (self *FontConfig) Name() [40]rune

func (*FontConfig) OversampleH

func (self *FontConfig) OversampleH() int32

func (*FontConfig) OversampleV

func (self *FontConfig) OversampleV() int32

func (*FontConfig) PixelSnapH

func (self *FontConfig) PixelSnapH() bool

func (*FontConfig) RasterizerDensity

func (self *FontConfig) RasterizerDensity() float32

func (*FontConfig) RasterizerMultiply

func (self *FontConfig) RasterizerMultiply() float32

func (FontConfig) SetDstFont

func (self FontConfig) SetDstFont(v *Font)

func (FontConfig) SetEllipsisChar

func (self FontConfig) SetEllipsisChar(v Wchar)

func (FontConfig) SetFontBuilderFlags

func (self FontConfig) SetFontBuilderFlags(v uint32)

func (FontConfig) SetFontData

func (self FontConfig) SetFontData(v uintptr)

func (FontConfig) SetFontDataOwnedByAtlas

func (self FontConfig) SetFontDataOwnedByAtlas(v bool)

func (FontConfig) SetFontDataSize

func (self FontConfig) SetFontDataSize(v int32)

func (FontConfig) SetFontNo

func (self FontConfig) SetFontNo(v int32)

func (FontConfig) SetGlyphExtraSpacing

func (self FontConfig) SetGlyphExtraSpacing(v Vec2)

func (FontConfig) SetGlyphMaxAdvanceX

func (self FontConfig) SetGlyphMaxAdvanceX(v float32)

func (FontConfig) SetGlyphMinAdvanceX

func (self FontConfig) SetGlyphMinAdvanceX(v float32)

func (FontConfig) SetGlyphOffset

func (self FontConfig) SetGlyphOffset(v Vec2)

func (FontConfig) SetGlyphRanges

func (self FontConfig) SetGlyphRanges(v *Wchar)

func (FontConfig) SetMergeMode

func (self FontConfig) SetMergeMode(v bool)

func (FontConfig) SetName

func (self FontConfig) SetName(v *[40]rune)

func (FontConfig) SetOversampleH

func (self FontConfig) SetOversampleH(v int32)

func (FontConfig) SetOversampleV

func (self FontConfig) SetOversampleV(v int32)

func (FontConfig) SetPixelSnapH

func (self FontConfig) SetPixelSnapH(v bool)

func (FontConfig) SetRasterizerDensity

func (self FontConfig) SetRasterizerDensity(v float32)

func (FontConfig) SetRasterizerMultiply

func (self FontConfig) SetRasterizerMultiply(v float32)

func (FontConfig) SetSizePixels

func (self FontConfig) SetSizePixels(v float32)

func (*FontConfig) SizePixels

func (self *FontConfig) SizePixels() float32

type FontGlyph

type FontGlyph struct {
	CData *C.ImFontGlyph
}

func NewEmptyFontGlyph added in v1.2.0

func NewEmptyFontGlyph() *FontGlyph

NewEmptyFontGlyph creates FontGlyph with its 0 value.

func NewFontGlyphFromC

func NewFontGlyphFromC[SRC any](cvalue SRC) *FontGlyph

NewFontGlyphFromC creates FontGlyph from its C pointer. SRC ~= *C.ImFontGlyph

func (*FontGlyph) AdvanceX

func (self *FontGlyph) AdvanceX() float32

func (FontGlyph) C

func (self FontGlyph) C() (C.ImFontGlyph, func())

C is like Handle but returns plain type instead of pointer.

func (*FontGlyph) Codepoint

func (self *FontGlyph) Codepoint() uint32

func (*FontGlyph) Colored

func (self *FontGlyph) Colored() uint32

func (*FontGlyph) Handle

func (self *FontGlyph) Handle() (result *C.ImFontGlyph, fin func())

Handle returns C version of FontGlyph and its finalizer func.

func (FontGlyph) SetAdvanceX

func (self FontGlyph) SetAdvanceX(v float32)

func (FontGlyph) SetCodepoint

func (self FontGlyph) SetCodepoint(v uint32)

func (FontGlyph) SetColored

func (self FontGlyph) SetColored(v uint32)

func (FontGlyph) SetU0

func (self FontGlyph) SetU0(v float32)

func (FontGlyph) SetU1

func (self FontGlyph) SetU1(v float32)

func (FontGlyph) SetV0

func (self FontGlyph) SetV0(v float32)

func (FontGlyph) SetV1

func (self FontGlyph) SetV1(v float32)

func (FontGlyph) SetVisible

func (self FontGlyph) SetVisible(v uint32)

func (FontGlyph) SetX0

func (self FontGlyph) SetX0(v float32)

func (FontGlyph) SetX1

func (self FontGlyph) SetX1(v float32)

func (FontGlyph) SetY0

func (self FontGlyph) SetY0(v float32)

func (FontGlyph) SetY1

func (self FontGlyph) SetY1(v float32)

func (*FontGlyph) U0

func (self *FontGlyph) U0() float32

func (*FontGlyph) U1

func (self *FontGlyph) U1() float32

func (*FontGlyph) V0

func (self *FontGlyph) V0() float32

func (*FontGlyph) V1

func (self *FontGlyph) V1() float32

func (*FontGlyph) Visible

func (self *FontGlyph) Visible() uint32

func (*FontGlyph) X0

func (self *FontGlyph) X0() float32

func (*FontGlyph) X1

func (self *FontGlyph) X1() float32

func (*FontGlyph) Y0

func (self *FontGlyph) Y0() float32

func (*FontGlyph) Y1

func (self *FontGlyph) Y1() float32

type FontGlyphRangesBuilder

type FontGlyphRangesBuilder struct {
	CData *C.ImFontGlyphRangesBuilder
}

func NewEmptyFontGlyphRangesBuilder added in v1.2.0

func NewEmptyFontGlyphRangesBuilder() *FontGlyphRangesBuilder

NewEmptyFontGlyphRangesBuilder creates FontGlyphRangesBuilder with its 0 value.

func NewFontGlyphRangesBuilder

func NewFontGlyphRangesBuilder() *FontGlyphRangesBuilder

func NewFontGlyphRangesBuilderFromC

func NewFontGlyphRangesBuilderFromC[SRC any](cvalue SRC) *FontGlyphRangesBuilder

NewFontGlyphRangesBuilderFromC creates FontGlyphRangesBuilder from its C pointer. SRC ~= *C.ImFontGlyphRangesBuilder

func (*FontGlyphRangesBuilder) AddChar

func (self *FontGlyphRangesBuilder) AddChar(c Wchar)

Add character

func (*FontGlyphRangesBuilder) AddRanges

func (self *FontGlyphRangesBuilder) AddRanges(ranges *Wchar)

Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of ASCII/Latin+Ext

func (*FontGlyphRangesBuilder) AddText

func (self *FontGlyphRangesBuilder) AddText(text string)

func (*FontGlyphRangesBuilder) AddTextV

func (self *FontGlyphRangesBuilder) AddTextV(text string)

Add string (each character of the UTF-8 string are added) AddTextV parameter default value hint:

func (*FontGlyphRangesBuilder) Bit

func (self *FontGlyphRangesBuilder) Bit(n uint64) bool

Get bit n in the array

func (FontGlyphRangesBuilder) BuildRanges

func (fa FontGlyphRangesBuilder) BuildRanges(ranges GlyphRange)

func (FontGlyphRangesBuilder) C

C is like Handle but returns plain type instead of pointer.

func (*FontGlyphRangesBuilder) Clear

func (self *FontGlyphRangesBuilder) Clear()

func (*FontGlyphRangesBuilder) Destroy

func (self *FontGlyphRangesBuilder) Destroy()

func (*FontGlyphRangesBuilder) Handle

func (self *FontGlyphRangesBuilder) Handle() (result *C.ImFontGlyphRangesBuilder, fin func())

Handle returns C version of FontGlyphRangesBuilder and its finalizer func.

func (*FontGlyphRangesBuilder) SetBit

func (self *FontGlyphRangesBuilder) SetBit(n uint64)

Set bit n in the array

func (FontGlyphRangesBuilder) SetUsedChars

func (self FontGlyphRangesBuilder) SetUsedChars(v vectors.Vector[uint32])

func (*FontGlyphRangesBuilder) UsedChars

func (self *FontGlyphRangesBuilder) UsedChars() vectors.Vector[uint32]

type GlyphRange

type GlyphRange uintptr

func NewGlyphRange

func NewGlyphRange() GlyphRange

func (GlyphRange) Data

func (gr GlyphRange) Data() *Wchar

func (GlyphRange) Destroy

func (gr GlyphRange) Destroy()

func (GlyphRange) Handle

func (gr GlyphRange) Handle() *C.ImVector_ImWchar

type GroupData

type GroupData struct {
	CData *C.ImGuiGroupData
}

func NewEmptyGroupData added in v1.2.0

func NewEmptyGroupData() *GroupData

NewEmptyGroupData creates GroupData with its 0 value.

func NewGroupDataFromC

func NewGroupDataFromC[SRC any](cvalue SRC) *GroupData

NewGroupDataFromC creates GroupData from its C pointer. SRC ~= *C.ImGuiGroupData

func (*GroupData) BackupActiveIdIsAlive

func (self *GroupData) BackupActiveIdIsAlive() ID

func (*GroupData) BackupActiveIdPreviousFrameIsAlive

func (self *GroupData) BackupActiveIdPreviousFrameIsAlive() bool

func (*GroupData) BackupCurrLineSize

func (self *GroupData) BackupCurrLineSize() Vec2

func (*GroupData) BackupCurrLineTextBaseOffset

func (self *GroupData) BackupCurrLineTextBaseOffset() float32

func (*GroupData) BackupCursorMaxPos

func (self *GroupData) BackupCursorMaxPos() Vec2

func (*GroupData) BackupCursorPos

func (self *GroupData) BackupCursorPos() Vec2

func (*GroupData) BackupCursorPosPrevLine

func (self *GroupData) BackupCursorPosPrevLine() Vec2

func (*GroupData) BackupGroupOffset

func (self *GroupData) BackupGroupOffset() Vec1

func (*GroupData) BackupHoveredIdIsAlive

func (self *GroupData) BackupHoveredIdIsAlive() bool

func (*GroupData) BackupIndent

func (self *GroupData) BackupIndent() Vec1

func (*GroupData) BackupIsSameLine

func (self *GroupData) BackupIsSameLine() bool

func (GroupData) C

func (self GroupData) C() (C.ImGuiGroupData, func())

C is like Handle but returns plain type instead of pointer.

func (*GroupData) EmitItem

func (self *GroupData) EmitItem() bool

func (*GroupData) Handle

func (self *GroupData) Handle() (result *C.ImGuiGroupData, fin func())

Handle returns C version of GroupData and its finalizer func.

func (GroupData) SetBackupActiveIdIsAlive

func (self GroupData) SetBackupActiveIdIsAlive(v ID)

func (GroupData) SetBackupActiveIdPreviousFrameIsAlive

func (self GroupData) SetBackupActiveIdPreviousFrameIsAlive(v bool)

func (GroupData) SetBackupCurrLineSize

func (self GroupData) SetBackupCurrLineSize(v Vec2)

func (GroupData) SetBackupCurrLineTextBaseOffset

func (self GroupData) SetBackupCurrLineTextBaseOffset(v float32)

func (GroupData) SetBackupCursorMaxPos

func (self GroupData) SetBackupCursorMaxPos(v Vec2)

func (GroupData) SetBackupCursorPos

func (self GroupData) SetBackupCursorPos(v Vec2)

func (GroupData) SetBackupCursorPosPrevLine

func (self GroupData) SetBackupCursorPosPrevLine(v Vec2)

func (GroupData) SetBackupGroupOffset

func (self GroupData) SetBackupGroupOffset(v Vec1)

func (GroupData) SetBackupHoveredIdIsAlive

func (self GroupData) SetBackupHoveredIdIsAlive(v bool)

func (GroupData) SetBackupIndent

func (self GroupData) SetBackupIndent(v Vec1)

func (GroupData) SetBackupIsSameLine

func (self GroupData) SetBackupIsSameLine(v bool)

func (GroupData) SetEmitItem

func (self GroupData) SetEmitItem(v bool)

func (GroupData) SetWindowID

func (self GroupData) SetWindowID(v ID)

func (*GroupData) WindowID

func (self *GroupData) WindowID() ID

type HoveredFlags

type HoveredFlags int32

Flags for ImGui::IsItemHovered(), ImGui::IsWindowHovered() Note: if you are trying to check whether your mouse should be dispatched to Dear ImGui or to your app, you should use 'io.WantCaptureMouse' instead! Please read the FAQ! Note: windows with the ImGuiWindowFlags_NoInputs flag are ignored by IsWindowHovered() calls. original name: ImGuiHoveredFlags_

const (
	// Return true if directly over the item/window, not obstructed by another window, not obstructed by an active popup or modal blocking inputs under them.
	HoveredFlagsNone HoveredFlags = 0
	// IsWindowHovered() only: Return true if any children of the window is hovered
	HoveredFlagsChildWindows HoveredFlags = 1
	// IsWindowHovered() only: Test from root window (top most parent of the current hierarchy)
	HoveredFlagsRootWindow HoveredFlags = 2
	// IsWindowHovered() only: Return true if any window is hovered
	HoveredFlagsAnyWindow HoveredFlags = 4
	// IsWindowHovered() only: Do not consider popup hierarchy (do not treat popup emitter as parent of popup) (when used with _ChildWindows or _RootWindow)
	HoveredFlagsNoPopupHierarchy HoveredFlags = 8
	// IsWindowHovered() only: Consider docking hierarchy (treat dockspace host as parent of docked window) (when used with _ChildWindows or _RootWindow)
	HoveredFlagsDockHierarchy HoveredFlags = 16
	// Return true even if a popup window is normally blocking access to this item/window
	HoveredFlagsAllowWhenBlockedByPopup HoveredFlags = 32
	// Return true even if an active item is blocking access to this item/window. Useful for Drag and Drop patterns.
	HoveredFlagsAllowWhenBlockedByActiveItem HoveredFlags = 128
	// IsItemHovered() only: Return true even if the item uses AllowOverlap mode and is overlapped by another hoverable item.
	HoveredFlagsAllowWhenOverlappedByItem HoveredFlags = 256
	// IsItemHovered() only: Return true even if the position is obstructed or overlapped by another window.
	HoveredFlagsAllowWhenOverlappedByWindow HoveredFlags = 512
	// IsItemHovered() only: Return true even if the item is disabled
	HoveredFlagsAllowWhenDisabled HoveredFlags = 1024
	// IsItemHovered() only: Disable using keyboard/gamepad navigation state when active, always query mouse
	HoveredFlagsNoNavOverride       HoveredFlags = 2048
	HoveredFlagsAllowWhenOverlapped HoveredFlags = 768
	HoveredFlagsRectOnly            HoveredFlags = 928
	HoveredFlagsRootAndChildWindows HoveredFlags = 3
	// Shortcut for standard flags when using IsItemHovered() + SetTooltip() sequence.
	HoveredFlagsForTooltip HoveredFlags = 4096
	// Require mouse to be stationary for style.HoverStationaryDelay (~0.15 sec) _at least one time_. After this, can move on same item/window. Using the stationary test tends to reduces the need for a long delay.
	HoveredFlagsStationary HoveredFlags = 8192
	// IsItemHovered() only: Return true immediately (default). As this is the default you generally ignore this.
	HoveredFlagsDelayNone HoveredFlags = 16384
	// IsItemHovered() only: Return true after style.HoverDelayShort elapsed (~0.15 sec) (shared between items) + requires mouse to be stationary for style.HoverStationaryDelay (once per item).
	HoveredFlagsDelayShort HoveredFlags = 32768
	// IsItemHovered() only: Return true after style.HoverDelayNormal elapsed (~0.40 sec) (shared between items) + requires mouse to be stationary for style.HoverStationaryDelay (once per item).
	HoveredFlagsDelayNormal HoveredFlags = 65536
	// IsItemHovered() only: Disable shared delay system where moving from one item to the next keeps the previous timer for a short time (standard for tooltips with long delays)
	HoveredFlagsNoSharedDelay HoveredFlags = 131072
)

type HoveredFlagsPrivate

type HoveredFlagsPrivate int32

Extend ImGuiHoveredFlags_ original name: ImGuiHoveredFlagsPrivate_

const (
	HoveredFlagsDelayMask                     HoveredFlagsPrivate = 245760
	HoveredFlagsAllowedMaskForIsWindowHovered HoveredFlagsPrivate = 12479
	HoveredFlagsAllowedMaskForIsItemHovered   HoveredFlagsPrivate = 262048
)

type ID

type ID uint32

func DockSpace

func DockSpace(dockspace_id ID) ID

func DockSpaceOverViewport

func DockSpaceOverViewport() ID

func DockSpaceOverViewportV

func DockSpaceOverViewportV(dockspace_id ID, viewport *Viewport, flags DockNodeFlags, window_class *WindowClass) ID

DockSpaceOverViewportV parameter default value hint: dockspace_id: 0 viewport: NULL flags: 0 window_class: NULL

func DockSpaceV

func DockSpaceV(dockspace_id ID, size Vec2, flags DockNodeFlags, window_class *WindowClass) ID

DockSpaceV parameter default value hint: size: ImVec2(0,0) flags: 0 window_class: NULL

func IDInt

func IDInt(int_id int32) ID

func IDPtr

func IDPtr(ptr_id uintptr) ID

func IDStr

func IDStr(str_id string) ID

calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself

func IDStrStr

func IDStrStr(str_id_begin, str_id_end string) ID

func InternalActiveID

func InternalActiveID() ID

func InternalAddContextHook

func InternalAddContextHook(context *Context, hook *ContextHook) ID

func InternalColumnsID

func InternalColumnsID(str_id string, count int32) ID

func InternalCurrentFocusScope

func InternalCurrentFocusScope() ID

Focus scope we are outputting into, set by PushFocusScope()

func InternalDockBuilderAddNode

func InternalDockBuilderAddNode() ID

func InternalDockBuilderAddNodeV

func InternalDockBuilderAddNodeV(node_id ID, flags DockNodeFlags) ID

InternalDockBuilderAddNodeV parameter default value hint: node_id: 0 flags: 0

func InternalDockBuilderSplitNode

func InternalDockBuilderSplitNode(node_id ID, split_dir Dir, size_ratio_for_node_at_dir float32, out_id_at_dir, out_id_at_opposite_dir *ID) ID

Create 2 child nodes in this parent node.

func InternalDockContextGenNodeID

func InternalDockContextGenNodeID(ctx *Context) ID

func InternalDockNodeGetWindowMenuButtonId

func InternalDockNodeGetWindowMenuButtonId(node *DockNode) ID

func InternalFocusID

func InternalFocusID() ID

func InternalHoveredID

func InternalHoveredID() ID

func InternalIDWithSeedInt

func InternalIDWithSeedInt(n int32, seed ID) ID

func InternalIDWithSeedStr

func InternalIDWithSeedStr(str_id_begin, str_id_end string, seed ID) ID

func InternalImHashData

func InternalImHashData(data uintptr, data_size uint64) ID

func InternalImHashDataV

func InternalImHashDataV(data uintptr, data_size uint64, seed ID) ID

InternalImHashDataV parameter default value hint: seed: 0

func InternalImHashStr

func InternalImHashStr(data string) ID

func InternalImHashStrV

func InternalImHashStrV(data string, data_size uint64, seed ID) ID

InternalImHashStrV parameter default value hint: data_size: 0 seed: 0

func InternalKeyOwner

func InternalKeyOwner(key Key) ID

func InternalTableGetColumnResizeID

func InternalTableGetColumnResizeID(table *Table, column_n int32) ID

func InternalTableGetColumnResizeIDV

func InternalTableGetColumnResizeIDV(table *Table, column_n, instance_no int32) ID

InternalTableGetColumnResizeIDV parameter default value hint: instance_no: 0

func InternalTableGetInstanceID

func InternalTableGetInstanceID(table *Table, instance_no int32) ID

func InternalWindowResizeBorderID

func InternalWindowResizeBorderID(window *Window, dir Dir) ID

func InternalWindowResizeCornerID

func InternalWindowResizeCornerID(window *Window, n int32) ID

0..3: corners

func InternalWindowScrollbarID

func InternalWindowScrollbarID(window *Window, axis Axis) ID

func ItemID

func ItemID() ID

get ID of last item (~~ often same ImGui::GetID(label) beforehand)

func NewIDFromC

func NewIDFromC[SRC any](cvalue SRC) *ID

NewIDFromC creates ID from its C pointer. SRC ~= *C.ImGuiID

func WindowDockID

func WindowDockID() ID

func (ID) C

func (self ID) C() (C.ImGuiID, func())

C is like Handle but returns plain type instead of pointer.

func (*ID) Handle

func (selfSrc *ID) Handle() (result *C.ImGuiID, fin func())

Handle returns C version of ID and its finalizer func.

type IDStackTool

type IDStackTool struct {
	CData *C.ImGuiIDStackTool
}

func InternalNewIDStackTool

func InternalNewIDStackTool() *IDStackTool

func NewEmptyIDStackTool added in v1.2.0

func NewEmptyIDStackTool() *IDStackTool

NewEmptyIDStackTool creates IDStackTool with its 0 value.

func NewIDStackToolFromC

func NewIDStackToolFromC[SRC any](cvalue SRC) *IDStackTool

NewIDStackToolFromC creates IDStackTool from its C pointer. SRC ~= *C.ImGuiIDStackTool

func (IDStackTool) C

func (self IDStackTool) C() (C.ImGuiIDStackTool, func())

C is like Handle but returns plain type instead of pointer.

func (*IDStackTool) CopyToClipboardLastTime

func (self *IDStackTool) CopyToClipboardLastTime() float32

func (*IDStackTool) CopyToClipboardOnCtrlC

func (self *IDStackTool) CopyToClipboardOnCtrlC() bool

func (*IDStackTool) Destroy

func (self *IDStackTool) Destroy()

func (*IDStackTool) Handle

func (self *IDStackTool) Handle() (result *C.ImGuiIDStackTool, fin func())

Handle returns C version of IDStackTool and its finalizer func.

func (*IDStackTool) LastActiveFrame

func (self *IDStackTool) LastActiveFrame() int32

func (*IDStackTool) QueryId

func (self *IDStackTool) QueryId() ID

func (*IDStackTool) Results

func (self *IDStackTool) Results() vectors.Vector[StackLevelInfo]

func (IDStackTool) SetCopyToClipboardLastTime

func (self IDStackTool) SetCopyToClipboardLastTime(v float32)

func (IDStackTool) SetCopyToClipboardOnCtrlC

func (self IDStackTool) SetCopyToClipboardOnCtrlC(v bool)

func (IDStackTool) SetLastActiveFrame

func (self IDStackTool) SetLastActiveFrame(v int32)

func (IDStackTool) SetQueryId

func (self IDStackTool) SetQueryId(v ID)

func (IDStackTool) SetResults

func (self IDStackTool) SetResults(v vectors.Vector[StackLevelInfo])

func (IDStackTool) SetStackLevel

func (self IDStackTool) SetStackLevel(v int32)

func (*IDStackTool) StackLevel

func (self *IDStackTool) StackLevel() int32

type IO

type IO struct {
	CData *C.ImGuiIO
}

func CurrentIO

func CurrentIO() *IO

access the ImGuiIO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags)

func InternalIOEx added in v1.1.0

func InternalIOEx(ctx *Context) *IO

func NewEmptyIO added in v1.2.0

func NewEmptyIO() *IO

NewEmptyIO creates IO with its 0 value.

func NewIO

func NewIO() *IO

func NewIOFromC

func NewIOFromC[SRC any](cvalue SRC) *IO

NewIOFromC creates IO from its C pointer. SRC ~= *C.ImGuiIO

func (*IO) AddFocusEvent

func (self *IO) AddFocusEvent(focused bool)

Queue a gain/loss of focus for the application (generally based on OS/platform focus of your window)

func (*IO) AddInputCharacter

func (self *IO) AddInputCharacter(c uint32)

Queue a new character input

func (*IO) AddInputCharacterUTF16

func (self *IO) AddInputCharacterUTF16(c uint16)

Queue a new character input from a UTF-16 character, it can be a surrogate

func (*IO) AddInputCharactersUTF8

func (self *IO) AddInputCharactersUTF8(str string)

Queue a new characters input from a UTF-8 string

func (*IO) AddKeyAnalogEvent

func (self *IO) AddKeyAnalogEvent(key Key, down bool, v float32)

Queue a new key down/up event for analog values (e.g. ImGuiKey_Gamepad_ values). Dead-zones should be handled by the backend.

func (*IO) AddKeyEvent

func (self *IO) AddKeyEvent(key Key, down bool)

Queue a new key down/up event. Key should be "translated" (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character)

func (*IO) AddMouseButtonEvent

func (self *IO) AddMouseButtonEvent(button int32, down bool)

Queue a mouse button change

func (*IO) AddMousePosEvent

func (self *IO) AddMousePosEvent(x, y float32)

Queue a mouse position update. Use -FLT_MAX,-FLT_MAX to signify no mouse (e.g. app not focused and not hovered)

func (*IO) AddMouseSourceEvent

func (self *IO) AddMouseSourceEvent(source MouseSource)

Queue a mouse source change (Mouse/TouchScreen/Pen)

func (*IO) AddMouseViewportEvent

func (self *IO) AddMouseViewportEvent(id ID)

Queue a mouse hovered viewport. Requires backend to set ImGuiBackendFlags_HasMouseHoveredViewport to call this (for multi-viewport support).

func (IO) AddMouseWheelDelta

func (io IO) AddMouseWheelDelta(horizontal, vertical float32)

func (*IO) AddMouseWheelEvent

func (self *IO) AddMouseWheelEvent(wheel_x, wheel_y float32)

Queue a mouse wheel update. wheel_y<0: scroll down, wheel_y>0: scroll up, wheel_x<0: scroll right, wheel_x>0: scroll left.

func (*IO) AppFocusLost

func (self *IO) AppFocusLost() bool

func (*IO) BackendFlags

func (self *IO) BackendFlags() BackendFlags

func (*IO) BackendLanguageUserData

func (self *IO) BackendLanguageUserData() uintptr

func (*IO) BackendPlatformName

func (self *IO) BackendPlatformName() string

func (*IO) BackendPlatformUserData

func (self *IO) BackendPlatformUserData() uintptr

func (*IO) BackendRendererName

func (self *IO) BackendRendererName() string

func (*IO) BackendRendererUserData

func (self *IO) BackendRendererUserData() uintptr

func (*IO) BackendUsingLegacyKeyArrays

func (self *IO) BackendUsingLegacyKeyArrays() int

func (*IO) BackendUsingLegacyNavInputArray

func (self *IO) BackendUsingLegacyNavInputArray() bool

func (IO) C

func (self IO) C() (C.ImGuiIO, func())

C is like Handle but returns plain type instead of pointer.

func (*IO) ClearEventsQueue

func (self *IO) ClearEventsQueue()

Clear all incoming events.

func (*IO) ClearInputKeys

func (self *IO) ClearInputKeys()

Clear current keyboard/gamepad state + current frame text input buffer. Equivalent to releasing all keys/buttons.

func (*IO) ClearInputMouse

func (self *IO) ClearInputMouse()

Clear current mouse state.

func (*IO) ConfigDebugBeginReturnValueLoop

func (self *IO) ConfigDebugBeginReturnValueLoop() bool

func (*IO) ConfigDebugBeginReturnValueOnce

func (self *IO) ConfigDebugBeginReturnValueOnce() bool

func (*IO) ConfigDebugHighlightIdConflicts

func (self *IO) ConfigDebugHighlightIdConflicts() bool

func (*IO) ConfigDebugIgnoreFocusLoss

func (self *IO) ConfigDebugIgnoreFocusLoss() bool

func (*IO) ConfigDebugIniSettings

func (self *IO) ConfigDebugIniSettings() bool

func (*IO) ConfigDebugIsDebuggerPresent

func (self *IO) ConfigDebugIsDebuggerPresent() bool

func (*IO) ConfigDockingAlwaysTabBar

func (self *IO) ConfigDockingAlwaysTabBar() bool

func (*IO) ConfigDockingNoSplit

func (self *IO) ConfigDockingNoSplit() bool

func (*IO) ConfigDockingTransparentPayload

func (self *IO) ConfigDockingTransparentPayload() bool

func (*IO) ConfigDockingWithShift

func (self *IO) ConfigDockingWithShift() bool

func (*IO) ConfigDragClickToInputText

func (self *IO) ConfigDragClickToInputText() bool

func (*IO) ConfigErrorRecovery added in v1.1.0

func (self *IO) ConfigErrorRecovery() bool

func (*IO) ConfigErrorRecoveryEnableAssert added in v1.1.0

func (self *IO) ConfigErrorRecoveryEnableAssert() bool

func (*IO) ConfigErrorRecoveryEnableDebugLog added in v1.1.0

func (self *IO) ConfigErrorRecoveryEnableDebugLog() bool

func (*IO) ConfigErrorRecoveryEnableTooltip added in v1.1.0

func (self *IO) ConfigErrorRecoveryEnableTooltip() bool

func (*IO) ConfigFlags

func (self *IO) ConfigFlags() ConfigFlags
func (self *IO) ConfigInputTextCursorBlink() bool

func (*IO) ConfigInputTextEnterKeepActive

func (self *IO) ConfigInputTextEnterKeepActive() bool

func (*IO) ConfigInputTrickleEventQueue

func (self *IO) ConfigInputTrickleEventQueue() bool

func (*IO) ConfigMacOSXBehaviors

func (self *IO) ConfigMacOSXBehaviors() bool

func (*IO) ConfigMemoryCompactTimer

func (self *IO) ConfigMemoryCompactTimer() float32

func (*IO) ConfigNavCaptureKeyboard added in v1.1.0

func (self *IO) ConfigNavCaptureKeyboard() bool

func (*IO) ConfigNavCursorVisibleAlways added in v1.1.0

func (self *IO) ConfigNavCursorVisibleAlways() bool

func (*IO) ConfigNavCursorVisibleAuto added in v1.1.0

func (self *IO) ConfigNavCursorVisibleAuto() bool

func (*IO) ConfigNavEscapeClearFocusItem added in v1.1.0

func (self *IO) ConfigNavEscapeClearFocusItem() bool

func (*IO) ConfigNavEscapeClearFocusWindow added in v1.1.0

func (self *IO) ConfigNavEscapeClearFocusWindow() bool

func (*IO) ConfigNavMoveSetMousePos added in v1.1.0

func (self *IO) ConfigNavMoveSetMousePos() bool

func (*IO) ConfigNavSwapGamepadButtons

func (self *IO) ConfigNavSwapGamepadButtons() bool

func (*IO) ConfigScrollbarScrollByPage added in v1.1.0

func (self *IO) ConfigScrollbarScrollByPage() bool

func (*IO) ConfigViewportsNoAutoMerge

func (self *IO) ConfigViewportsNoAutoMerge() bool

func (*IO) ConfigViewportsNoDecoration

func (self *IO) ConfigViewportsNoDecoration() bool

func (*IO) ConfigViewportsNoDefaultParent

func (self *IO) ConfigViewportsNoDefaultParent() bool

func (*IO) ConfigViewportsNoTaskBarIcon

func (self *IO) ConfigViewportsNoTaskBarIcon() bool

func (*IO) ConfigWindowsMoveFromTitleBarOnly

func (self *IO) ConfigWindowsMoveFromTitleBarOnly() bool

func (*IO) ConfigWindowsResizeFromEdges

func (self *IO) ConfigWindowsResizeFromEdges() bool

func (*IO) Ctx

func (self *IO) Ctx() *Context

func (*IO) DeltaTime

func (self *IO) DeltaTime() float32

func (*IO) Destroy

func (self *IO) Destroy()

func (*IO) DisplayFramebufferScale

func (self *IO) DisplayFramebufferScale() Vec2

func (*IO) DisplaySize

func (self *IO) DisplaySize() Vec2

func (*IO) FontAllowUserScaling

func (self *IO) FontAllowUserScaling() bool

func (*IO) FontDefault

func (self *IO) FontDefault() *Font

func (*IO) FontGlobalScale

func (self *IO) FontGlobalScale() float32

func (*IO) Fonts

func (self *IO) Fonts() *FontAtlas

func (*IO) Framerate

func (self *IO) Framerate() float32

func (*IO) Handle

func (self *IO) Handle() (result *C.ImGuiIO, fin func())

Handle returns C version of IO and its finalizer func.

func (*IO) IniFilename

func (self *IO) IniFilename() string

func (*IO) IniSavingRate

func (self *IO) IniSavingRate() float32

func (*IO) InputQueueCharacters

func (self *IO) InputQueueCharacters() vectors.Vector[(Wchar)]

func (*IO) InputQueueSurrogate

func (self *IO) InputQueueSurrogate() uint16

func (*IO) KeyAlt

func (self *IO) KeyAlt() bool

func (*IO) KeyCtrl

func (self *IO) KeyCtrl() bool

func (*IO) KeyMods

func (self *IO) KeyMods() KeyChord

func (*IO) KeyRepeatDelay

func (self *IO) KeyRepeatDelay() float32

func (*IO) KeyRepeatRate

func (self *IO) KeyRepeatRate() float32

func (*IO) KeyShift

func (self *IO) KeyShift() bool

func (*IO) KeySuper

func (self *IO) KeySuper() bool

func (*IO) KeysData

func (self *IO) KeysData() [154]KeyData

func (*IO) LogFilename

func (self *IO) LogFilename() string

func (*IO) MetricsActiveWindows

func (self *IO) MetricsActiveWindows() int32

func (*IO) MetricsRenderIndices

func (self *IO) MetricsRenderIndices() int32

func (*IO) MetricsRenderVertices

func (self *IO) MetricsRenderVertices() int32

func (*IO) MetricsRenderWindows

func (self *IO) MetricsRenderWindows() int32

func (*IO) MouseClicked

func (self *IO) MouseClicked() [5]bool

func (*IO) MouseClickedCount

func (self *IO) MouseClickedCount() [5](uint16)

func (*IO) MouseClickedLastCount

func (self *IO) MouseClickedLastCount() [5](uint16)

func (*IO) MouseClickedPos

func (self *IO) MouseClickedPos() [5]Vec2

func (*IO) MouseClickedTime

func (self *IO) MouseClickedTime() [5]float64

func (*IO) MouseCtrlLeftAsRightClick

func (self *IO) MouseCtrlLeftAsRightClick() bool

func (*IO) MouseDelta

func (self *IO) MouseDelta() Vec2

func (*IO) MouseDoubleClickMaxDist

func (self *IO) MouseDoubleClickMaxDist() float32

func (*IO) MouseDoubleClickTime

func (self *IO) MouseDoubleClickTime() float32

func (*IO) MouseDoubleClicked

func (self *IO) MouseDoubleClicked() [5]bool

func (*IO) MouseDown

func (self *IO) MouseDown() [5]bool

func (*IO) MouseDownDuration

func (self *IO) MouseDownDuration() [5]float32

func (*IO) MouseDownDurationPrev

func (self *IO) MouseDownDurationPrev() [5]float32

func (*IO) MouseDownOwned

func (self *IO) MouseDownOwned() [5]bool

func (*IO) MouseDownOwnedUnlessPopupClose

func (self *IO) MouseDownOwnedUnlessPopupClose() [5]bool

func (*IO) MouseDragMaxDistanceAbs

func (self *IO) MouseDragMaxDistanceAbs() [5]Vec2

func (*IO) MouseDragMaxDistanceSqr

func (self *IO) MouseDragMaxDistanceSqr() [5]float32

func (*IO) MouseDragThreshold

func (self *IO) MouseDragThreshold() float32

func (*IO) MouseDrawCursor

func (self *IO) MouseDrawCursor() bool

func (*IO) MouseHoveredViewport

func (self *IO) MouseHoveredViewport() ID

func (*IO) MousePos

func (self *IO) MousePos() Vec2

func (*IO) MousePosPrev

func (self *IO) MousePosPrev() Vec2

func (*IO) MouseReleased

func (self *IO) MouseReleased() [5]bool

func (*IO) MouseSource

func (self *IO) MouseSource() MouseSource

func (*IO) MouseWheel

func (self *IO) MouseWheel() float32

func (*IO) MouseWheelH

func (self *IO) MouseWheelH() float32

func (*IO) MouseWheelRequestAxisSwap

func (self *IO) MouseWheelRequestAxisSwap() bool

func (*IO) NavActive

func (self *IO) NavActive() bool

func (*IO) NavVisible

func (self *IO) NavVisible() bool

func (*IO) PenPressure

func (self *IO) PenPressure() float32

func (*IO) SetAppAcceptingEvents

func (self *IO) SetAppAcceptingEvents(accepting_events bool)

Set master flag for accepting key/mouse/text events (default to true). Useful if you have native dialog boxes that are interrupting your application loop/refresh, and you want to disable events being queued while your app is frozen.

func (IO) SetAppFocusLost

func (self IO) SetAppFocusLost(v bool)

func (IO) SetBackendFlags

func (self IO) SetBackendFlags(v BackendFlags)

func (IO) SetBackendLanguageUserData

func (self IO) SetBackendLanguageUserData(v uintptr)

func (IO) SetBackendPlatformName

func (self IO) SetBackendPlatformName(v string)

func (IO) SetBackendPlatformUserData

func (self IO) SetBackendPlatformUserData(v uintptr)

func (IO) SetBackendRendererName

func (self IO) SetBackendRendererName(v string)

func (IO) SetBackendRendererUserData

func (self IO) SetBackendRendererUserData(v uintptr)

func (IO) SetBackendUsingLegacyKeyArrays

func (self IO) SetBackendUsingLegacyKeyArrays(v int)

func (IO) SetBackendUsingLegacyNavInputArray

func (self IO) SetBackendUsingLegacyNavInputArray(v bool)

func (IO) SetConfigDebugBeginReturnValueLoop

func (self IO) SetConfigDebugBeginReturnValueLoop(v bool)

func (IO) SetConfigDebugBeginReturnValueOnce

func (self IO) SetConfigDebugBeginReturnValueOnce(v bool)

func (IO) SetConfigDebugHighlightIdConflicts

func (self IO) SetConfigDebugHighlightIdConflicts(v bool)

func (IO) SetConfigDebugIgnoreFocusLoss

func (self IO) SetConfigDebugIgnoreFocusLoss(v bool)

func (IO) SetConfigDebugIniSettings

func (self IO) SetConfigDebugIniSettings(v bool)

func (IO) SetConfigDebugIsDebuggerPresent

func (self IO) SetConfigDebugIsDebuggerPresent(v bool)

func (IO) SetConfigDockingAlwaysTabBar

func (self IO) SetConfigDockingAlwaysTabBar(v bool)

func (IO) SetConfigDockingNoSplit

func (self IO) SetConfigDockingNoSplit(v bool)

func (IO) SetConfigDockingTransparentPayload

func (self IO) SetConfigDockingTransparentPayload(v bool)

func (IO) SetConfigDockingWithShift

func (self IO) SetConfigDockingWithShift(v bool)

func (IO) SetConfigDragClickToInputText

func (self IO) SetConfigDragClickToInputText(v bool)

func (IO) SetConfigErrorRecovery added in v1.1.0

func (self IO) SetConfigErrorRecovery(v bool)

func (IO) SetConfigErrorRecoveryEnableAssert added in v1.1.0

func (self IO) SetConfigErrorRecoveryEnableAssert(v bool)

func (IO) SetConfigErrorRecoveryEnableDebugLog added in v1.1.0

func (self IO) SetConfigErrorRecoveryEnableDebugLog(v bool)

func (IO) SetConfigErrorRecoveryEnableTooltip added in v1.1.0

func (self IO) SetConfigErrorRecoveryEnableTooltip(v bool)

func (IO) SetConfigFlags

func (self IO) SetConfigFlags(v ConfigFlags)
func (self IO) SetConfigInputTextCursorBlink(v bool)

func (IO) SetConfigInputTextEnterKeepActive

func (self IO) SetConfigInputTextEnterKeepActive(v bool)

func (IO) SetConfigInputTrickleEventQueue

func (self IO) SetConfigInputTrickleEventQueue(v bool)

func (IO) SetConfigMacOSXBehaviors

func (self IO) SetConfigMacOSXBehaviors(v bool)

func (IO) SetConfigMemoryCompactTimer

func (self IO) SetConfigMemoryCompactTimer(v float32)

func (IO) SetConfigNavCaptureKeyboard added in v1.1.0

func (self IO) SetConfigNavCaptureKeyboard(v bool)

func (IO) SetConfigNavCursorVisibleAlways added in v1.1.0

func (self IO) SetConfigNavCursorVisibleAlways(v bool)

func (IO) SetConfigNavCursorVisibleAuto added in v1.1.0

func (self IO) SetConfigNavCursorVisibleAuto(v bool)

func (IO) SetConfigNavEscapeClearFocusItem added in v1.1.0

func (self IO) SetConfigNavEscapeClearFocusItem(v bool)

func (IO) SetConfigNavEscapeClearFocusWindow added in v1.1.0

func (self IO) SetConfigNavEscapeClearFocusWindow(v bool)

func (IO) SetConfigNavMoveSetMousePos added in v1.1.0

func (self IO) SetConfigNavMoveSetMousePos(v bool)

func (IO) SetConfigNavSwapGamepadButtons

func (self IO) SetConfigNavSwapGamepadButtons(v bool)

func (IO) SetConfigScrollbarScrollByPage added in v1.1.0

func (self IO) SetConfigScrollbarScrollByPage(v bool)

func (IO) SetConfigViewportsNoAutoMerge

func (self IO) SetConfigViewportsNoAutoMerge(v bool)

func (IO) SetConfigViewportsNoDecoration

func (self IO) SetConfigViewportsNoDecoration(v bool)

func (IO) SetConfigViewportsNoDefaultParent

func (self IO) SetConfigViewportsNoDefaultParent(v bool)

func (IO) SetConfigViewportsNoTaskBarIcon

func (self IO) SetConfigViewportsNoTaskBarIcon(v bool)

func (IO) SetConfigWindowsMoveFromTitleBarOnly

func (self IO) SetConfigWindowsMoveFromTitleBarOnly(v bool)

func (IO) SetConfigWindowsResizeFromEdges

func (self IO) SetConfigWindowsResizeFromEdges(v bool)

func (IO) SetCtx

func (self IO) SetCtx(v *Context)

func (IO) SetDeltaTime

func (self IO) SetDeltaTime(v float32)

func (IO) SetDisplayFramebufferScale

func (self IO) SetDisplayFramebufferScale(v Vec2)

func (IO) SetDisplaySize

func (self IO) SetDisplaySize(v Vec2)

func (IO) SetFontAllowUserScaling

func (self IO) SetFontAllowUserScaling(v bool)

func (IO) SetFontDefault

func (self IO) SetFontDefault(v *Font)

func (IO) SetFontGlobalScale

func (self IO) SetFontGlobalScale(v float32)

func (IO) SetFonts

func (self IO) SetFonts(v *FontAtlas)

func (IO) SetFramerate

func (self IO) SetFramerate(v float32)

func (IO) SetIniFilename

func (self IO) SetIniFilename(v string)

func (IO) SetIniSavingRate

func (self IO) SetIniSavingRate(v float32)

func (IO) SetInputQueueCharacters

func (self IO) SetInputQueueCharacters(v vectors.Vector[Wchar])

func (IO) SetInputQueueSurrogate

func (self IO) SetInputQueueSurrogate(v uint16)

func (IO) SetKeyAlt

func (self IO) SetKeyAlt(v bool)

func (IO) SetKeyCtrl

func (self IO) SetKeyCtrl(v bool)

func (*IO) SetKeyEventNativeData

func (self *IO) SetKeyEventNativeData(key Key, native_keycode, native_scancode int32)

func (*IO) SetKeyEventNativeDataV

func (self *IO) SetKeyEventNativeDataV(key Key, native_keycode, native_scancode, native_legacy_index int32)

[Optional] Specify index for legacy <1.87 IsKeyXXX() functions with native indices + specify native keycode, scancode. SetKeyEventNativeDataV parameter default value hint: native_legacy_index: -1

func (IO) SetKeyMods

func (self IO) SetKeyMods(v KeyChord)

func (IO) SetKeyRepeatDelay

func (self IO) SetKeyRepeatDelay(v float32)

func (IO) SetKeyRepeatRate

func (self IO) SetKeyRepeatRate(v float32)

func (IO) SetKeyShift

func (self IO) SetKeyShift(v bool)

func (IO) SetKeySuper

func (self IO) SetKeySuper(v bool)

func (IO) SetKeysData

func (self IO) SetKeysData(v *[154]KeyData)

func (IO) SetLogFilename

func (self IO) SetLogFilename(v string)

func (IO) SetMetricsActiveWindows

func (self IO) SetMetricsActiveWindows(v int32)

func (IO) SetMetricsRenderIndices

func (self IO) SetMetricsRenderIndices(v int32)

func (IO) SetMetricsRenderVertices

func (self IO) SetMetricsRenderVertices(v int32)

func (IO) SetMetricsRenderWindows

func (self IO) SetMetricsRenderWindows(v int32)

func (IO) SetMouseButtonDown

func (io IO) SetMouseButtonDown(i int, down bool)

func (IO) SetMouseClicked

func (self IO) SetMouseClicked(v *[5]bool)

func (IO) SetMouseClickedCount

func (self IO) SetMouseClickedCount(v *[5]uint16)

func (IO) SetMouseClickedLastCount

func (self IO) SetMouseClickedLastCount(v *[5]uint16)

func (IO) SetMouseClickedPos

func (self IO) SetMouseClickedPos(v *[5]Vec2)

func (IO) SetMouseClickedTime

func (self IO) SetMouseClickedTime(v *[5]float64)

func (IO) SetMouseCtrlLeftAsRightClick

func (self IO) SetMouseCtrlLeftAsRightClick(v bool)

func (IO) SetMouseDelta

func (self IO) SetMouseDelta(v Vec2)

func (IO) SetMouseDoubleClickMaxDist

func (self IO) SetMouseDoubleClickMaxDist(v float32)

func (IO) SetMouseDoubleClickTime

func (self IO) SetMouseDoubleClickTime(v float32)

func (IO) SetMouseDoubleClicked

func (self IO) SetMouseDoubleClicked(v *[5]bool)

func (IO) SetMouseDown

func (self IO) SetMouseDown(v *[5]bool)

func (IO) SetMouseDownDuration

func (self IO) SetMouseDownDuration(v *[5]float32)

func (IO) SetMouseDownDurationPrev

func (self IO) SetMouseDownDurationPrev(v *[5]float32)

func (IO) SetMouseDownOwned

func (self IO) SetMouseDownOwned(v *[5]bool)

func (IO) SetMouseDownOwnedUnlessPopupClose

func (self IO) SetMouseDownOwnedUnlessPopupClose(v *[5]bool)

func (IO) SetMouseDragMaxDistanceAbs

func (self IO) SetMouseDragMaxDistanceAbs(v *[5]Vec2)

func (IO) SetMouseDragMaxDistanceSqr

func (self IO) SetMouseDragMaxDistanceSqr(v *[5]float32)

func (IO) SetMouseDragThreshold

func (self IO) SetMouseDragThreshold(v float32)

func (IO) SetMouseDrawCursor

func (self IO) SetMouseDrawCursor(v bool)

func (IO) SetMouseHoveredViewport

func (self IO) SetMouseHoveredViewport(v ID)

func (IO) SetMousePos

func (self IO) SetMousePos(v Vec2)

func (IO) SetMousePosPrev

func (self IO) SetMousePosPrev(v Vec2)

func (IO) SetMouseReleased

func (self IO) SetMouseReleased(v *[5]bool)

func (IO) SetMouseSource

func (self IO) SetMouseSource(v MouseSource)

func (IO) SetMouseWheel

func (self IO) SetMouseWheel(v float32)

func (IO) SetMouseWheelH

func (self IO) SetMouseWheelH(v float32)

func (IO) SetMouseWheelRequestAxisSwap

func (self IO) SetMouseWheelRequestAxisSwap(v bool)

func (IO) SetNavActive

func (self IO) SetNavActive(v bool)

func (IO) SetNavVisible

func (self IO) SetNavVisible(v bool)

func (IO) SetPenPressure

func (self IO) SetPenPressure(v float32)

func (IO) SetUserData

func (self IO) SetUserData(v uintptr)

func (IO) SetWantCaptureKeyboard

func (self IO) SetWantCaptureKeyboard(v bool)

func (IO) SetWantCaptureMouse

func (self IO) SetWantCaptureMouse(v bool)

func (IO) SetWantCaptureMouseUnlessPopupClose

func (self IO) SetWantCaptureMouseUnlessPopupClose(v bool)

func (IO) SetWantSaveIniSettings

func (self IO) SetWantSaveIniSettings(v bool)

func (IO) SetWantSetMousePos

func (self IO) SetWantSetMousePos(v bool)

func (IO) SetWantTextInput

func (self IO) SetWantTextInput(v bool)

func (*IO) UserData

func (self *IO) UserData() uintptr

func (*IO) WantCaptureKeyboard

func (self *IO) WantCaptureKeyboard() bool

func (*IO) WantCaptureMouse

func (self *IO) WantCaptureMouse() bool

func (*IO) WantCaptureMouseUnlessPopupClose

func (self *IO) WantCaptureMouseUnlessPopupClose() bool

func (*IO) WantSaveIniSettings

func (self *IO) WantSaveIniSettings() bool

func (*IO) WantSetMousePos

func (self *IO) WantSetMousePos() bool

func (*IO) WantTextInput

func (self *IO) WantTextInput() bool

type InputEvent

type InputEvent struct {
	CData *C.ImGuiInputEvent
}

func InternalNewInputEvent

func InternalNewInputEvent() *InputEvent

func NewEmptyInputEvent added in v1.2.0

func NewEmptyInputEvent() *InputEvent

NewEmptyInputEvent creates InputEvent with its 0 value.

func NewInputEventFromC

func NewInputEventFromC[SRC any](cvalue SRC) *InputEvent

NewInputEventFromC creates InputEvent from its C pointer. SRC ~= *C.ImGuiInputEvent

func (*InputEvent) AddedByTestEngine

func (self *InputEvent) AddedByTestEngine() bool

func (InputEvent) C

func (self InputEvent) C() (C.ImGuiInputEvent, func())

C is like Handle but returns plain type instead of pointer.

func (*InputEvent) Destroy

func (self *InputEvent) Destroy()

func (*InputEvent) EventId

func (self *InputEvent) EventId() uint32

func (*InputEvent) Handle

func (self *InputEvent) Handle() (result *C.ImGuiInputEvent, fin func())

Handle returns C version of InputEvent and its finalizer func.

func (InputEvent) SetAddedByTestEngine

func (self InputEvent) SetAddedByTestEngine(v bool)

func (InputEvent) SetEventId

func (self InputEvent) SetEventId(v uint32)

func (InputEvent) SetSource

func (self InputEvent) SetSource(v InputSource)

func (InputEvent) SetType

func (self InputEvent) SetType(v InputEventType)

func (*InputEvent) Source

func (self *InputEvent) Source() InputSource

func (*InputEvent) Type

func (self *InputEvent) Type() InputEventType

type InputEventAppFocused

type InputEventAppFocused struct {
	CData *C.ImGuiInputEventAppFocused
}

func NewEmptyInputEventAppFocused added in v1.2.0

func NewEmptyInputEventAppFocused() *InputEventAppFocused

NewEmptyInputEventAppFocused creates InputEventAppFocused with its 0 value.

func NewInputEventAppFocusedFromC

func NewInputEventAppFocusedFromC[SRC any](cvalue SRC) *InputEventAppFocused

NewInputEventAppFocusedFromC creates InputEventAppFocused from its C pointer. SRC ~= *C.ImGuiInputEventAppFocused

func (InputEventAppFocused) C

C is like Handle but returns plain type instead of pointer.

func (*InputEventAppFocused) Focused

func (self *InputEventAppFocused) Focused() bool

func (*InputEventAppFocused) Handle

func (self *InputEventAppFocused) Handle() (result *C.ImGuiInputEventAppFocused, fin func())

Handle returns C version of InputEventAppFocused and its finalizer func.

func (InputEventAppFocused) SetFocused

func (self InputEventAppFocused) SetFocused(v bool)

type InputEventKey

type InputEventKey struct {
	CData *C.ImGuiInputEventKey
}

func NewEmptyInputEventKey added in v1.2.0

func NewEmptyInputEventKey() *InputEventKey

NewEmptyInputEventKey creates InputEventKey with its 0 value.

func NewInputEventKeyFromC

func NewInputEventKeyFromC[SRC any](cvalue SRC) *InputEventKey

NewInputEventKeyFromC creates InputEventKey from its C pointer. SRC ~= *C.ImGuiInputEventKey

func (*InputEventKey) AnalogValue

func (self *InputEventKey) AnalogValue() float32

func (InputEventKey) C

func (self InputEventKey) C() (C.ImGuiInputEventKey, func())

C is like Handle but returns plain type instead of pointer.

func (*InputEventKey) Down

func (self *InputEventKey) Down() bool

func (*InputEventKey) Handle

func (self *InputEventKey) Handle() (result *C.ImGuiInputEventKey, fin func())

Handle returns C version of InputEventKey and its finalizer func.

func (*InputEventKey) Key

func (self *InputEventKey) Key() Key

func (InputEventKey) SetAnalogValue

func (self InputEventKey) SetAnalogValue(v float32)

func (InputEventKey) SetDown

func (self InputEventKey) SetDown(v bool)

func (InputEventKey) SetKey

func (self InputEventKey) SetKey(v Key)

type InputEventMouseButton

type InputEventMouseButton struct {
	CData *C.ImGuiInputEventMouseButton
}

func NewEmptyInputEventMouseButton added in v1.2.0

func NewEmptyInputEventMouseButton() *InputEventMouseButton

NewEmptyInputEventMouseButton creates InputEventMouseButton with its 0 value.

func NewInputEventMouseButtonFromC

func NewInputEventMouseButtonFromC[SRC any](cvalue SRC) *InputEventMouseButton

NewInputEventMouseButtonFromC creates InputEventMouseButton from its C pointer. SRC ~= *C.ImGuiInputEventMouseButton

func (*InputEventMouseButton) Button

func (self *InputEventMouseButton) Button() int32

func (InputEventMouseButton) C

C is like Handle but returns plain type instead of pointer.

func (*InputEventMouseButton) Down

func (self *InputEventMouseButton) Down() bool

func (*InputEventMouseButton) Handle

func (self *InputEventMouseButton) Handle() (result *C.ImGuiInputEventMouseButton, fin func())

Handle returns C version of InputEventMouseButton and its finalizer func.

func (*InputEventMouseButton) MouseSource

func (self *InputEventMouseButton) MouseSource() MouseSource

func (InputEventMouseButton) SetButton

func (self InputEventMouseButton) SetButton(v int32)

func (InputEventMouseButton) SetDown

func (self InputEventMouseButton) SetDown(v bool)

func (InputEventMouseButton) SetMouseSource

func (self InputEventMouseButton) SetMouseSource(v MouseSource)

type InputEventMousePos

type InputEventMousePos struct {
	CData *C.ImGuiInputEventMousePos
}

func NewEmptyInputEventMousePos added in v1.2.0

func NewEmptyInputEventMousePos() *InputEventMousePos

NewEmptyInputEventMousePos creates InputEventMousePos with its 0 value.

func NewInputEventMousePosFromC

func NewInputEventMousePosFromC[SRC any](cvalue SRC) *InputEventMousePos

NewInputEventMousePosFromC creates InputEventMousePos from its C pointer. SRC ~= *C.ImGuiInputEventMousePos

func (InputEventMousePos) C

func (self InputEventMousePos) C() (C.ImGuiInputEventMousePos, func())

C is like Handle but returns plain type instead of pointer.

func (*InputEventMousePos) Handle

func (self *InputEventMousePos) Handle() (result *C.ImGuiInputEventMousePos, fin func())

Handle returns C version of InputEventMousePos and its finalizer func.

func (*InputEventMousePos) MouseSource

func (self *InputEventMousePos) MouseSource() MouseSource

func (*InputEventMousePos) PosX

func (self *InputEventMousePos) PosX() float32

func (*InputEventMousePos) PosY

func (self *InputEventMousePos) PosY() float32

func (InputEventMousePos) SetMouseSource

func (self InputEventMousePos) SetMouseSource(v MouseSource)

func (InputEventMousePos) SetPosX

func (self InputEventMousePos) SetPosX(v float32)

func (InputEventMousePos) SetPosY

func (self InputEventMousePos) SetPosY(v float32)

type InputEventMouseViewport

type InputEventMouseViewport struct {
	CData *C.ImGuiInputEventMouseViewport
}

func NewEmptyInputEventMouseViewport added in v1.2.0

func NewEmptyInputEventMouseViewport() *InputEventMouseViewport

NewEmptyInputEventMouseViewport creates InputEventMouseViewport with its 0 value.

func NewInputEventMouseViewportFromC

func NewInputEventMouseViewportFromC[SRC any](cvalue SRC) *InputEventMouseViewport

NewInputEventMouseViewportFromC creates InputEventMouseViewport from its C pointer. SRC ~= *C.ImGuiInputEventMouseViewport

func (InputEventMouseViewport) C

C is like Handle but returns plain type instead of pointer.

func (*InputEventMouseViewport) Handle

func (self *InputEventMouseViewport) Handle() (result *C.ImGuiInputEventMouseViewport, fin func())

Handle returns C version of InputEventMouseViewport and its finalizer func.

func (*InputEventMouseViewport) HoveredViewportID

func (self *InputEventMouseViewport) HoveredViewportID() ID

func (InputEventMouseViewport) SetHoveredViewportID

func (self InputEventMouseViewport) SetHoveredViewportID(v ID)

type InputEventMouseWheel

type InputEventMouseWheel struct {
	CData *C.ImGuiInputEventMouseWheel
}

func NewEmptyInputEventMouseWheel added in v1.2.0

func NewEmptyInputEventMouseWheel() *InputEventMouseWheel

NewEmptyInputEventMouseWheel creates InputEventMouseWheel with its 0 value.

func NewInputEventMouseWheelFromC

func NewInputEventMouseWheelFromC[SRC any](cvalue SRC) *InputEventMouseWheel

NewInputEventMouseWheelFromC creates InputEventMouseWheel from its C pointer. SRC ~= *C.ImGuiInputEventMouseWheel

func (InputEventMouseWheel) C

C is like Handle but returns plain type instead of pointer.

func (*InputEventMouseWheel) Handle

func (self *InputEventMouseWheel) Handle() (result *C.ImGuiInputEventMouseWheel, fin func())

Handle returns C version of InputEventMouseWheel and its finalizer func.

func (*InputEventMouseWheel) MouseSource

func (self *InputEventMouseWheel) MouseSource() MouseSource

func (InputEventMouseWheel) SetMouseSource

func (self InputEventMouseWheel) SetMouseSource(v MouseSource)

func (InputEventMouseWheel) SetWheelX

func (self InputEventMouseWheel) SetWheelX(v float32)

func (InputEventMouseWheel) SetWheelY

func (self InputEventMouseWheel) SetWheelY(v float32)

func (*InputEventMouseWheel) WheelX

func (self *InputEventMouseWheel) WheelX() float32

func (*InputEventMouseWheel) WheelY

func (self *InputEventMouseWheel) WheelY() float32

type InputEventText

type InputEventText struct {
	CData *C.ImGuiInputEventText
}

func NewEmptyInputEventText added in v1.2.0

func NewEmptyInputEventText() *InputEventText

NewEmptyInputEventText creates InputEventText with its 0 value.

func NewInputEventTextFromC

func NewInputEventTextFromC[SRC any](cvalue SRC) *InputEventText

NewInputEventTextFromC creates InputEventText from its C pointer. SRC ~= *C.ImGuiInputEventText

func (InputEventText) C

func (self InputEventText) C() (C.ImGuiInputEventText, func())

C is like Handle but returns plain type instead of pointer.

func (*InputEventText) Char

func (self *InputEventText) Char() uint32

func (*InputEventText) Handle

func (self *InputEventText) Handle() (result *C.ImGuiInputEventText, fin func())

Handle returns C version of InputEventText and its finalizer func.

func (InputEventText) SetChar

func (self InputEventText) SetChar(v uint32)

type InputEventType

type InputEventType int32

[Internal] Key ranges [Internal] Named shortcuts for Navigation original name: ImGuiInputEventType

const (
	InputEventTypeNone          InputEventType = 0
	InputEventTypeMousePos      InputEventType = 1
	InputEventTypeMouseWheel    InputEventType = 2
	InputEventTypeMouseButton   InputEventType = 3
	InputEventTypeMouseViewport InputEventType = 4
	InputEventTypeKey           InputEventType = 5
	InputEventTypeText          InputEventType = 6
	InputEventTypeFocus         InputEventType = 7
	InputEventTypeCOUNT         InputEventType = 8
)

type InputFlags

type InputFlags int32

Flags for Shortcut(), SetNextItemShortcut(), (and for upcoming extended versions of IsKeyPressed(), IsMouseClicked(), Shortcut(), SetKeyOwner(), SetItemKeyOwner() that are still in imgui_internal.h) Don't mistake with ImGuiInputTextFlags! (which is for ImGui::InputText() function) original name: ImGuiInputFlags_

const (
	InputFlagsNone InputFlags = 0
	// Enable repeat. Return true on successive repeats. Default for legacy IsKeyPressed(). NOT Default for legacy IsMouseClicked(). MUST BE == 1.
	InputFlagsRepeat InputFlags = 1
	// Route to active item only.
	InputFlagsRouteActive InputFlags = 1024
	// Route to windows in the focus stack (DEFAULT). Deep-most focused window takes inputs. Active item takes inputs over deep-most focused window.
	InputFlagsRouteFocused InputFlags = 2048
	// Global route (unless a focused window or active item registered the route).
	InputFlagsRouteGlobal InputFlags = 4096
	// Do not register route, poll keys directly.
	InputFlagsRouteAlways InputFlags = 8192
	// Option: global route: higher priority than focused route (unless active item in focused route).
	InputFlagsRouteOverFocused InputFlags = 16384
	// Option: global route: higher priority than active item. Unlikely you need to use that: will interfere with every active items, e.g. CTRL+A registered by InputText will be overridden by this. May not be fully honored as user/internal code is likely to always assume they can access keys when active.
	InputFlagsRouteOverActive InputFlags = 32768
	// Option: global route: will not be applied if underlying background/void is focused (== no Dear ImGui windows are focused). Useful for overlay applications.
	InputFlagsRouteUnlessBgFocused InputFlags = 65536
	// Option: route evaluated from the point of view of root window rather than current window.
	InputFlagsRouteFromRootWindow InputFlags = 131072
	// Automatically display a tooltip when hovering item [BETA] Unsure of right api (opt-in/opt-out)
	InputFlagsTooltip InputFlags = 262144
)

type InputFlagsPrivate

type InputFlagsPrivate int32

Extend ImGuiInputFlags_ Flags for extended versions of IsKeyPressed(), IsMouseClicked(), Shortcut(), SetKeyOwner(), SetItemKeyOwner() Don't mistake with ImGuiInputTextFlags! (which is for ImGui::InputText() function) original name: ImGuiInputFlagsPrivate_

const (
	// Repeat rate: Regular (default)
	InputFlagsRepeatRateDefault InputFlagsPrivate = 2
	// Repeat rate: Fast
	InputFlagsRepeatRateNavMove InputFlagsPrivate = 4
	// Repeat rate: Faster
	InputFlagsRepeatRateNavTweak InputFlagsPrivate = 8
	// Stop repeating when released (default for all functions except Shortcut). This only exists to allow overriding Shortcut() default behavior.
	InputFlagsRepeatUntilRelease InputFlagsPrivate = 16
	// Stop repeating when released OR if keyboard mods are changed (default for Shortcut)
	InputFlagsRepeatUntilKeyModsChange InputFlagsPrivate = 32
	// Stop repeating when released OR if keyboard mods are leaving the None state. Allows going from Mod+Key to Key by releasing Mod.
	InputFlagsRepeatUntilKeyModsChangeFromNone InputFlagsPrivate = 64
	// Stop repeating when released OR if any other keyboard key is pressed during the repeat
	InputFlagsRepeatUntilOtherKeyPress InputFlagsPrivate = 128
	// Further accesses to key data will require EXPLICIT owner ID (ImGuiKeyOwner_Any/0 will NOT accepted for polling). Cleared at end of frame.
	InputFlagsLockThisFrame InputFlagsPrivate = 1048576
	// Further accesses to key data will require EXPLICIT owner ID (ImGuiKeyOwner_Any/0 will NOT accepted for polling). Cleared when the key is released or at end of each frame if key is released.
	InputFlagsLockUntilRelease InputFlagsPrivate = 2097152
	// Only set if item is hovered (default to both)
	InputFlagsCondHovered InputFlagsPrivate = 4194304
	// Only set if item is active (default to both)
	InputFlagsCondActive                     InputFlagsPrivate = 8388608
	InputFlagsCondDefault                    InputFlagsPrivate = 12582912
	InputFlagsRepeatRateMask                 InputFlagsPrivate = 14
	InputFlagsRepeatUntilMask                InputFlagsPrivate = 240
	InputFlagsRepeatMask                     InputFlagsPrivate = 255
	InputFlagsCondMask                       InputFlagsPrivate = 12582912
	InputFlagsRouteTypeMask                  InputFlagsPrivate = 15360
	InputFlagsRouteOptionsMask               InputFlagsPrivate = 245760
	InputFlagsSupportedByIsKeyPressed        InputFlagsPrivate = 255
	InputFlagsSupportedByIsMouseClicked      InputFlagsPrivate = 1
	InputFlagsSupportedByShortcut            InputFlagsPrivate = 261375
	InputFlagsSupportedBySetNextItemShortcut InputFlagsPrivate = 523519
	InputFlagsSupportedBySetKeyOwner         InputFlagsPrivate = 3145728
	InputFlagsSupportedBySetItemKeyOwner     InputFlagsPrivate = 15728640
)

type InputSource

type InputSource int32

original name: ImGuiInputSource

const (
	InputSourceNone InputSource = 0
	// Note: may be Mouse or TouchScreen or Pen. See io.MouseSource to distinguish them.
	InputSourceMouse    InputSource = 1
	InputSourceKeyboard InputSource = 2
	InputSourceGamepad  InputSource = 3
	InputSourceCOUNT    InputSource = 4
)

type InputTextCallback

type InputTextCallback func(data InputTextCallbackData) int

type InputTextCallbackData

type InputTextCallbackData struct {
	CData *C.ImGuiInputTextCallbackData
}

func NewEmptyInputTextCallbackData added in v1.2.0

func NewEmptyInputTextCallbackData() *InputTextCallbackData

NewEmptyInputTextCallbackData creates InputTextCallbackData with its 0 value.

func NewInputTextCallbackData

func NewInputTextCallbackData() *InputTextCallbackData

func NewInputTextCallbackDataFromC

func NewInputTextCallbackDataFromC[SRC any](cvalue SRC) *InputTextCallbackData

NewInputTextCallbackDataFromC creates InputTextCallbackData from its C pointer. SRC ~= *C.ImGuiInputTextCallbackData

func (*InputTextCallbackData) Buf

func (self *InputTextCallbackData) Buf() string

func (*InputTextCallbackData) BufDirty

func (self *InputTextCallbackData) BufDirty() bool

func (*InputTextCallbackData) BufSize

func (self *InputTextCallbackData) BufSize() int32

func (*InputTextCallbackData) BufTextLen

func (self *InputTextCallbackData) BufTextLen() int32

func (InputTextCallbackData) C

C is like Handle but returns plain type instead of pointer.

func (*InputTextCallbackData) ClearSelection

func (self *InputTextCallbackData) ClearSelection()

func (*InputTextCallbackData) Ctx

func (self *InputTextCallbackData) Ctx() *Context

func (*InputTextCallbackData) CursorPos

func (self *InputTextCallbackData) CursorPos() int32

func (*InputTextCallbackData) DeleteChars

func (self *InputTextCallbackData) DeleteChars(pos, bytes_count int32)

func (*InputTextCallbackData) Destroy

func (self *InputTextCallbackData) Destroy()

func (*InputTextCallbackData) EventChar

func (self *InputTextCallbackData) EventChar() Wchar

func (*InputTextCallbackData) EventFlag

func (self *InputTextCallbackData) EventFlag() InputTextFlags

func (*InputTextCallbackData) EventKey

func (self *InputTextCallbackData) EventKey() Key

func (*InputTextCallbackData) Flags

func (self *InputTextCallbackData) Flags() InputTextFlags

func (*InputTextCallbackData) Handle

func (self *InputTextCallbackData) Handle() (result *C.ImGuiInputTextCallbackData, fin func())

Handle returns C version of InputTextCallbackData and its finalizer func.

func (*InputTextCallbackData) HasSelection

func (self *InputTextCallbackData) HasSelection() bool

func (*InputTextCallbackData) InsertChars

func (self *InputTextCallbackData) InsertChars(pos int32, text string)

func (*InputTextCallbackData) InsertCharsV

func (self *InputTextCallbackData) InsertCharsV(pos int32, text string)

InsertCharsV parameter default value hint:

func (*InputTextCallbackData) SelectAll

func (self *InputTextCallbackData) SelectAll()

func (*InputTextCallbackData) SelectionEnd

func (self *InputTextCallbackData) SelectionEnd() int32

func (*InputTextCallbackData) SelectionStart

func (self *InputTextCallbackData) SelectionStart() int32

func (InputTextCallbackData) SetBuf

func (self InputTextCallbackData) SetBuf(v string)

func (InputTextCallbackData) SetBufDirty

func (self InputTextCallbackData) SetBufDirty(v bool)

func (InputTextCallbackData) SetBufSize

func (self InputTextCallbackData) SetBufSize(v int32)

func (InputTextCallbackData) SetBufTextLen

func (self InputTextCallbackData) SetBufTextLen(v int32)

func (InputTextCallbackData) SetCtx

func (self InputTextCallbackData) SetCtx(v *Context)

func (InputTextCallbackData) SetCursorPos

func (self InputTextCallbackData) SetCursorPos(v int32)

func (InputTextCallbackData) SetEventChar

func (self InputTextCallbackData) SetEventChar(v Wchar)

func (InputTextCallbackData) SetEventFlag

func (self InputTextCallbackData) SetEventFlag(v InputTextFlags)

func (InputTextCallbackData) SetEventKey

func (self InputTextCallbackData) SetEventKey(v Key)

func (InputTextCallbackData) SetFlags

func (self InputTextCallbackData) SetFlags(v InputTextFlags)

func (InputTextCallbackData) SetSelectionEnd

func (self InputTextCallbackData) SetSelectionEnd(v int32)

func (InputTextCallbackData) SetSelectionStart

func (self InputTextCallbackData) SetSelectionStart(v int32)

func (InputTextCallbackData) SetUserData

func (self InputTextCallbackData) SetUserData(v uintptr)

func (*InputTextCallbackData) UserData

func (self *InputTextCallbackData) UserData() uintptr

type InputTextDeactivateData

type InputTextDeactivateData struct {
	CData *C.ImGuiInputTextDeactivateData
}

func NewInputTextDeactivateDataFromC

func NewInputTextDeactivateDataFromC[SRC any](cvalue SRC) *InputTextDeactivateData

NewInputTextDeactivateDataFromC creates InputTextDeactivateData from its C pointer. SRC ~= *C.ImGuiInputTextDeactivateData

func (*InputTextDeactivateData) Handle

func (self *InputTextDeactivateData) Handle() (result *C.ImGuiInputTextDeactivateData, fin func())

Handle returns C version of InputTextDeactivateData and its finalizer func.

type InputTextDeactivatedState

type InputTextDeactivatedState struct {
	CData *C.ImGuiInputTextDeactivatedState
}

func InternalNewInputTextDeactivatedState

func InternalNewInputTextDeactivatedState() *InputTextDeactivatedState

func NewEmptyInputTextDeactivatedState added in v1.2.0

func NewEmptyInputTextDeactivatedState() *InputTextDeactivatedState

NewEmptyInputTextDeactivatedState creates InputTextDeactivatedState with its 0 value.

func NewInputTextDeactivatedStateFromC

func NewInputTextDeactivatedStateFromC[SRC any](cvalue SRC) *InputTextDeactivatedState

NewInputTextDeactivatedStateFromC creates InputTextDeactivatedState from its C pointer. SRC ~= *C.ImGuiInputTextDeactivatedState

func (InputTextDeactivatedState) C

C is like Handle but returns plain type instead of pointer.

func (*InputTextDeactivatedState) Destroy

func (self *InputTextDeactivatedState) Destroy()

func (*InputTextDeactivatedState) Handle

func (self *InputTextDeactivatedState) Handle() (result *C.ImGuiInputTextDeactivatedState, fin func())

Handle returns C version of InputTextDeactivatedState and its finalizer func.

func (*InputTextDeactivatedState) ID

func (self *InputTextDeactivatedState) ID() ID

func (*InputTextDeactivatedState) InternalClearFreeMemory

func (self *InputTextDeactivatedState) InternalClearFreeMemory()

func (InputTextDeactivatedState) SetID

func (self InputTextDeactivatedState) SetID(v ID)

func (InputTextDeactivatedState) SetTextA

func (self InputTextDeactivatedState) SetTextA(v vectors.Vector[int8])

func (*InputTextDeactivatedState) TextA

type InputTextFlags

type InputTextFlags int32

Flags for ImGui::InputText() (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigInputTextCursorBlink and io.ConfigInputTextEnterKeepActive) original name: ImGuiInputTextFlags_

const (
	InputTextFlagsNone InputTextFlags = 0
	// Allow 0123456789.+-*/
	InputTextFlagsCharsDecimal InputTextFlags = 1
	// Allow 0123456789ABCDEFabcdef
	InputTextFlagsCharsHexadecimal InputTextFlags = 2
	// Allow 0123456789.+-*/eE (Scientific notation input)
	InputTextFlagsCharsScientific InputTextFlags = 4
	// Turn a..z into A..Z
	InputTextFlagsCharsUppercase InputTextFlags = 8
	// Filter out spaces, tabs
	InputTextFlagsCharsNoBlank InputTextFlags = 16
	// Pressing TAB input a '\t' character into the text field
	InputTextFlagsAllowTabInput InputTextFlags = 32
	// Return 'true' when Enter is pressed (as opposed to every time the value was modified). Consider using IsItemDeactivatedAfterEdit() instead!
	InputTextFlagsEnterReturnsTrue InputTextFlags = 64
	// Escape key clears content if not empty, and deactivate otherwise (contrast to default behavior of Escape to revert)
	InputTextFlagsEscapeClearsAll InputTextFlags = 128
	// In multi-line mode, validate with Enter, add new line with Ctrl+Enter (default is opposite: validate with Ctrl+Enter, add line with Enter).
	InputTextFlagsCtrlEnterForNewLine InputTextFlags = 256
	// Read-only mode
	InputTextFlagsReadOnly InputTextFlags = 512
	// Password mode, display all characters as '*', disable copy
	InputTextFlagsPassword InputTextFlags = 1024
	// Overwrite mode
	InputTextFlagsAlwaysOverwrite InputTextFlags = 2048
	// Select entire text when first taking mouse focus
	InputTextFlagsAutoSelectAll InputTextFlags = 4096
	// InputFloat(), InputInt(), InputScalar() etc. only: parse empty string as zero value.
	InputTextFlagsParseEmptyRefVal InputTextFlags = 8192
	// InputFloat(), InputInt(), InputScalar() etc. only: when value is zero, do not display it. Generally used with ImGuiInputTextFlags_ParseEmptyRefVal.
	InputTextFlagsDisplayEmptyRefVal InputTextFlags = 16384
	// Disable following the cursor horizontally
	InputTextFlagsNoHorizontalScroll InputTextFlags = 32768
	// Disable undo/redo. Note that input text owns the text data while active, if you want to provide your own undo/redo stack you need e.g. to call ClearActiveID().
	InputTextFlagsNoUndoRedo InputTextFlags = 65536
	// Callback on pressing TAB (for completion handling)
	InputTextFlagsCallbackCompletion InputTextFlags = 131072
	// Callback on pressing Up/Down arrows (for history handling)
	InputTextFlagsCallbackHistory InputTextFlags = 262144
	// Callback on each iteration. User code may query cursor position, modify text buffer.
	InputTextFlagsCallbackAlways InputTextFlags = 524288
	// Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard.
	InputTextFlagsCallbackCharFilter InputTextFlags = 1048576
	// Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. Notify when the string wants to be resized (for string types which hold a cache of their Size). You will be provided a new BufSize in the callback and NEED to honor it. (see misc/cpp/imgui_stdlib.h for an example of using this)
	InputTextFlagsCallbackResize InputTextFlags = 2097152
	// Callback on any edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active)
	InputTextFlagsCallbackEdit InputTextFlags = 4194304
)

type InputTextFlagsPrivate

type InputTextFlagsPrivate int32

Extend ImGuiInputTextFlags_ original name: ImGuiInputTextFlagsPrivate_

const (
	// For internal use by InputTextMultiline()
	InputTextFlagsMultiline InputTextFlagsPrivate = 67108864
	// For internal use by TempInputText(), will skip calling ItemAdd(). Require bounding-box to strictly match.
	InputTextFlagsMergedItem InputTextFlagsPrivate = 134217728
	// For internal use by InputScalar() and TempInputScalar()
	InputTextFlagsLocalizeDecimalPoint InputTextFlagsPrivate = 268435456
)

type InputTextState

type InputTextState struct {
	CData *C.ImGuiInputTextState
}

func InternalInputTextState

func InternalInputTextState(id ID) *InputTextState

Get input text state if active

func InternalNewInputTextState

func InternalNewInputTextState() *InputTextState

func NewEmptyInputTextState added in v1.2.0

func NewEmptyInputTextState() *InputTextState

NewEmptyInputTextState creates InputTextState with its 0 value.

func NewInputTextStateFromC

func NewInputTextStateFromC[SRC any](cvalue SRC) *InputTextState

NewInputTextStateFromC creates InputTextState from its C pointer. SRC ~= *C.ImGuiInputTextState

func (*InputTextState) BufCapacityA

func (self *InputTextState) BufCapacityA() int32

func (InputTextState) C

func (self InputTextState) C() (C.ImGuiInputTextState, func())

C is like Handle but returns plain type instead of pointer.

func (*InputTextState) CallbackTextBackup

func (self *InputTextState) CallbackTextBackup() vectors.Vector[int8]

func (*InputTextState) Ctx

func (self *InputTextState) Ctx() *Context

func (*InputTextState) CurLenA

func (self *InputTextState) CurLenA() int32

func (*InputTextState) CursorAnim

func (self *InputTextState) CursorAnim() float32

func (*InputTextState) CursorFollow

func (self *InputTextState) CursorFollow() bool

func (*InputTextState) Edited

func (self *InputTextState) Edited() bool

func (*InputTextState) Flags

func (self *InputTextState) Flags() InputTextFlags

func (*InputTextState) Handle

func (self *InputTextState) Handle() (result *C.ImGuiInputTextState, fin func())

Handle returns C version of InputTextState and its finalizer func.

func (*InputTextState) ID

func (self *InputTextState) ID() ID

func (*InputTextState) InitialTextA

func (self *InputTextState) InitialTextA() vectors.Vector[int8]

func (*InputTextState) InternalClearFreeMemory

func (self *InputTextState) InternalClearFreeMemory()

func (*InputTextState) InternalClearSelection

func (self *InputTextState) InternalClearSelection()

func (*InputTextState) InternalClearText

func (self *InputTextState) InternalClearText()

func (*InputTextState) InternalCursorAnimReset

func (self *InputTextState) InternalCursorAnimReset()

func (*InputTextState) InternalCursorClamp

func (self *InputTextState) InternalCursorClamp()

func (*InputTextState) InternalCursorPos

func (self *InputTextState) InternalCursorPos() int32

func (*InputTextState) InternalDestroy

func (self *InputTextState) InternalDestroy()

func (*InputTextState) InternalHasSelection

func (self *InputTextState) InternalHasSelection() bool

func (*InputTextState) InternalOnCharPressed

func (self *InputTextState) InternalOnCharPressed(c uint32)

func (*InputTextState) InternalOnKeyPressed

func (self *InputTextState) InternalOnKeyPressed(key int32)

Cannot be inline because we call in code in stb_textedit.h implementation

func (*InputTextState) InternalReloadUserBufAndKeepSelection

func (self *InputTextState) InternalReloadUserBufAndKeepSelection()

func (*InputTextState) InternalReloadUserBufAndMoveToEnd

func (self *InputTextState) InternalReloadUserBufAndMoveToEnd()

func (*InputTextState) InternalReloadUserBufAndSelectAll

func (self *InputTextState) InternalReloadUserBufAndSelectAll()

func (*InputTextState) InternalSelectAll

func (self *InputTextState) InternalSelectAll()

func (*InputTextState) InternalSelectionEnd

func (self *InputTextState) InternalSelectionEnd() int32

func (*InputTextState) InternalSelectionStart

func (self *InputTextState) InternalSelectionStart() int32

func (*InputTextState) ReloadSelectionEnd

func (self *InputTextState) ReloadSelectionEnd() int32

func (*InputTextState) ReloadSelectionStart

func (self *InputTextState) ReloadSelectionStart() int32

func (*InputTextState) ReloadUserBuf

func (self *InputTextState) ReloadUserBuf() bool

func (*InputTextState) Scroll

func (self *InputTextState) Scroll() Vec2

func (*InputTextState) SelectedAllMouseLock

func (self *InputTextState) SelectedAllMouseLock() bool

func (InputTextState) SetBufCapacityA

func (self InputTextState) SetBufCapacityA(v int32)

func (InputTextState) SetCallbackTextBackup

func (self InputTextState) SetCallbackTextBackup(v vectors.Vector[int8])

func (InputTextState) SetCtx

func (self InputTextState) SetCtx(v *Context)

func (InputTextState) SetCurLenA

func (self InputTextState) SetCurLenA(v int32)

func (InputTextState) SetCursorAnim

func (self InputTextState) SetCursorAnim(v float32)

func (InputTextState) SetCursorFollow

func (self InputTextState) SetCursorFollow(v bool)

func (InputTextState) SetEdited

func (self InputTextState) SetEdited(v bool)

func (InputTextState) SetFlags

func (self InputTextState) SetFlags(v InputTextFlags)

func (InputTextState) SetID

func (self InputTextState) SetID(v ID)

func (InputTextState) SetInitialTextA

func (self InputTextState) SetInitialTextA(v vectors.Vector[int8])

func (InputTextState) SetReloadSelectionEnd

func (self InputTextState) SetReloadSelectionEnd(v int32)

func (InputTextState) SetReloadSelectionStart

func (self InputTextState) SetReloadSelectionStart(v int32)

func (InputTextState) SetReloadUserBuf

func (self InputTextState) SetReloadUserBuf(v bool)

func (InputTextState) SetScroll

func (self InputTextState) SetScroll(v Vec2)

func (InputTextState) SetSelectedAllMouseLock

func (self InputTextState) SetSelectedAllMouseLock(v bool)

func (InputTextState) SetTextA

func (self InputTextState) SetTextA(v vectors.Vector[int8])

func (*InputTextState) TextA

func (self *InputTextState) TextA() vectors.Vector[int8]

type ItemFlags

type ItemFlags int32

Flags for ImGui::PushItemFlag() (Those are shared by all items) original name: ImGuiItemFlags_

const (
	// (Default)
	ItemFlagsNone ItemFlags = 0
	// false    // Disable keyboard tabbing. This is a "lighter" version of ImGuiItemFlags_NoNav.
	ItemFlagsNoTabStop ItemFlags = 1
	// false    // Disable any form of focusing (keyboard/gamepad directional navigation and SetKeyboardFocusHere() calls).
	ItemFlagsNoNav ItemFlags = 2
	// false    // Disable item being a candidate for default focus (e.g. used by title bar items).
	ItemFlagsNoNavDefaultFocus ItemFlags = 4
	// false    // Any button-like behavior will have repeat mode enabled (based on io.KeyRepeatDelay and io.KeyRepeatRate values). Note that you can also call IsItemActive() after any button to tell if it is being held.
	ItemFlagsButtonRepeat ItemFlags = 8
	// true     // MenuItem()/Selectable() automatically close their parent popup window.
	ItemFlagsAutoClosePopups ItemFlags = 16
	// false    // Allow submitting an item with the same identifier as an item already submitted this frame without triggering a warning tooltip if io.ConfigDebugHighlightIdConflicts is set.
	ItemFlagsAllowDuplicateId ItemFlags = 32
)

func InternalItemFlags

func InternalItemFlags() ItemFlags

type ItemFlagsPrivate

type ItemFlagsPrivate int32

Extend ImGuiItemFlags - input: PushItemFlag() manipulates g.CurrentItemFlags, g.NextItemData.ItemFlags, ItemAdd() calls may add extra flags too. - output: stored in g.LastItemData.ItemFlags original name: ImGuiItemFlagsPrivate_

const (
	// false     // Disable interactions (DOES NOT affect visuals. DO NOT mix direct use of this with BeginDisabled(). See BeginDisabled()/EndDisabled() for full disable feature, and github #211).
	ItemFlagsDisabled ItemFlagsPrivate = 1024
	// false     // [ALPHA] Allow hovering interactions but underlying value is not changed.
	ItemFlagsReadOnly ItemFlagsPrivate = 2048
	// false     // [BETA] Represent a mixed/indeterminate value, generally multi-selection where values differ. Currently only supported by Checkbox() (later should support all sorts of widgets)
	ItemFlagsMixedValue ItemFlagsPrivate = 4096
	// false     // Disable hoverable check in ItemHoverable()
	ItemFlagsNoWindowHoverableCheck ItemFlagsPrivate = 8192
	// false     // Allow being overlapped by another widget. Not-hovered to Hovered transition deferred by a frame.
	ItemFlagsAllowOverlap ItemFlagsPrivate = 16384
	// false     // Nav keyboard/gamepad mode doesn't disable hover highlight (behave as if NavHighlightItemUnderNav==false).
	ItemFlagsNoNavDisableMouseHover ItemFlagsPrivate = 32768
	// false     // Skip calling MarkItemEdited()
	ItemFlagsNoMarkEdited ItemFlagsPrivate = 65536
	// false     // [WIP] Auto-activate input mode when tab focused. Currently only used and supported by a few items before it becomes a generic feature.
	ItemFlagsInputable ItemFlagsPrivate = 1048576
	// false     // Set by SetNextItemSelectionUserData()
	ItemFlagsHasSelectionUserData ItemFlagsPrivate = 2097152
	// false     // Set by SetNextItemSelectionUserData()
	ItemFlagsIsMultiSelect ItemFlagsPrivate = 4194304
	// Please don't change, use PushItemFlag() instead.
	ItemFlagsDefault ItemFlagsPrivate = 16
)

type ItemStatusFlags

type ItemStatusFlags int32

Status flags for an already submitted item - output: stored in g.LastItemData.StatusFlags original name: ImGuiItemStatusFlags_

const (
	ItemStatusFlagsNone ItemStatusFlags = 0
	// Mouse position is within item rectangle (does NOT mean that the window is in correct z-order and can be hovered!, this is only one part of the most-common IsItemHovered test)
	ItemStatusFlagsHoveredRect ItemStatusFlags = 1
	// g.LastItemData.DisplayRect is valid
	ItemStatusFlagsHasDisplayRect ItemStatusFlags = 2
	// Value exposed by item was edited in the current frame (should match the bool return value of most widgets)
	ItemStatusFlagsEdited ItemStatusFlags = 4
	// Set when Selectable(), TreeNode() reports toggling a selection. We can't report "Selected", only state changes, in order to easily handle clipping with less issues.
	ItemStatusFlagsToggledSelection ItemStatusFlags = 8
	// Set when TreeNode() reports toggling their open state.
	ItemStatusFlagsToggledOpen ItemStatusFlags = 16
	// Set if the widget/group is able to provide data for the ImGuiItemStatusFlags_Deactivated flag.
	ItemStatusFlagsHasDeactivated ItemStatusFlags = 32
	// Only valid if ImGuiItemStatusFlags_HasDeactivated is set.
	ItemStatusFlagsDeactivated ItemStatusFlags = 64
	// Override the HoveredWindow test to allow cross-window hover testing.
	ItemStatusFlagsHoveredWindow ItemStatusFlags = 128
	// [WIP] Set when item is overlapping the current clipping rectangle (Used internally. Please don't use yet: API/system will change as we refactor Itemadd()).
	ItemStatusFlagsVisible ItemStatusFlags = 256
	// g.LastItemData.ClipRect is valid.
	ItemStatusFlagsHasClipRect ItemStatusFlags = 512
	// g.LastItemData.Shortcut valid. Set by SetNextItemShortcut() -> ItemAdd().
	ItemStatusFlagsHasShortcut ItemStatusFlags = 1024
)

func InternalItemStatusFlags

func InternalItemStatusFlags() ItemStatusFlags

type Key

type Key int32

A key identifier (ImGuiKey_XXX or ImGuiMod_XXX value): can represent Keyboard, Mouse and Gamepad values. All our named keys are >= 512. Keys value 0 to 511 are left unused as legacy native/opaque key values (< 1.87). Since >= 1.89 we increased typing (went from int to enum), some legacy code may need a cast to ImGuiKey. Read details about the 1.87 and 1.89 transition : https://github.com/ocornut/imgui/issues/4921 Note that "Keys" related to physical keys and are not the same concept as input "Characters", the later are submitted via io.AddInputCharacter(). The keyboard key enum values are named after the keys on a standard US keyboard, and on other keyboard types the keys reported may not match the keycaps. original name: ImGuiKey

const (
	KeyNone Key = 0
	// == ImGuiKey_NamedKey_BEGIN
	KeyTab        Key = 512
	KeyLeftArrow  Key = 513
	KeyRightArrow Key = 514
	KeyUpArrow    Key = 515
	KeyDownArrow  Key = 516
	KeyPageUp     Key = 517
	KeyPageDown   Key = 518
	KeyHome       Key = 519
	KeyEnd        Key = 520
	KeyInsert     Key = 521
	KeyDelete     Key = 522
	KeyBackspace  Key = 523
	KeySpace      Key = 524
	KeyEnter      Key = 525
	KeyEscape     Key = 526
	KeyLeftCtrl   Key = 527
	KeyLeftShift  Key = 528
	KeyLeftAlt    Key = 529
	KeyLeftSuper  Key = 530
	KeyRightCtrl  Key = 531
	KeyRightShift Key = 532
	KeyRightAlt   Key = 533
	KeyRightSuper Key = 534
	KeyMenu       Key = 535
	Key0          Key = 536
	Key1          Key = 537
	Key2          Key = 538
	Key3          Key = 539
	Key4          Key = 540
	Key5          Key = 541
	Key6          Key = 542
	Key7          Key = 543
	Key8          Key = 544
	Key9          Key = 545
	KeyA          Key = 546
	KeyB          Key = 547
	KeyC          Key = 548
	KeyD          Key = 549
	KeyE          Key = 550
	KeyF          Key = 551
	KeyG          Key = 552
	KeyH          Key = 553
	KeyI          Key = 554
	KeyJ          Key = 555
	KeyK          Key = 556
	KeyL          Key = 557
	KeyM          Key = 558
	KeyN          Key = 559
	KeyO          Key = 560
	KeyP          Key = 561
	KeyQ          Key = 562
	KeyR          Key = 563
	KeyS          Key = 564
	KeyT          Key = 565
	KeyU          Key = 566
	KeyV          Key = 567
	KeyW          Key = 568
	KeyX          Key = 569
	KeyY          Key = 570
	KeyZ          Key = 571
	KeyF1         Key = 572
	KeyF2         Key = 573
	KeyF3         Key = 574
	KeyF4         Key = 575
	KeyF5         Key = 576
	KeyF6         Key = 577
	KeyF7         Key = 578
	KeyF8         Key = 579
	KeyF9         Key = 580
	KeyF10        Key = 581
	KeyF11        Key = 582
	KeyF12        Key = 583
	KeyF13        Key = 584
	KeyF14        Key = 585
	KeyF15        Key = 586
	KeyF16        Key = 587
	KeyF17        Key = 588
	KeyF18        Key = 589
	KeyF19        Key = 590
	KeyF20        Key = 591
	KeyF21        Key = 592
	KeyF22        Key = 593
	KeyF23        Key = 594
	KeyF24        Key = 595
	// '
	KeyApostrophe Key = 596
	// ,
	KeyComma Key = 597
	// -
	KeyMinus Key = 598
	// .
	KeyPeriod Key = 599
	// /
	KeySlash Key = 600
	// ;
	KeySemicolon Key = 601
	// =
	KeyEqual Key = 602
	// [
	KeyLeftBracket Key = 603
	// \ (this text inhibit multiline comment caused by backslash)
	KeyBackslash Key = 604
	// ]
	KeyRightBracket Key = 605
	// `
	KeyGraveAccent    Key = 606
	KeyCapsLock       Key = 607
	KeyScrollLock     Key = 608
	KeyNumLock        Key = 609
	KeyPrintScreen    Key = 610
	KeyPause          Key = 611
	KeyKeypad0        Key = 612
	KeyKeypad1        Key = 613
	KeyKeypad2        Key = 614
	KeyKeypad3        Key = 615
	KeyKeypad4        Key = 616
	KeyKeypad5        Key = 617
	KeyKeypad6        Key = 618
	KeyKeypad7        Key = 619
	KeyKeypad8        Key = 620
	KeyKeypad9        Key = 621
	KeyKeypadDecimal  Key = 622
	KeyKeypadDivide   Key = 623
	KeyKeypadMultiply Key = 624
	KeyKeypadSubtract Key = 625
	KeyKeypadAdd      Key = 626
	KeyKeypadEnter    Key = 627
	KeyKeypadEqual    Key = 628
	// Available on some keyboard/mouses. Often referred as "Browser Back"
	KeyAppBack    Key = 629
	KeyAppForward Key = 630
	// Menu (Xbox)      + (Switch)   Start/Options (PS)
	KeyGamepadStart Key = 631
	// View (Xbox)      - (Switch)   Share (PS)
	KeyGamepadBack Key = 632
	// X (Xbox)         Y (Switch)   Square (PS)        // Tap: Toggle Menu. Hold: Windowing mode (Focus/Move/Resize windows)
	KeyGamepadFaceLeft Key = 633
	// B (Xbox)         A (Switch)   Circle (PS)        // Cancel / Close / Exit
	KeyGamepadFaceRight Key = 634
	// Y (Xbox)         X (Switch)   Triangle (PS)      // Text Input / On-screen Keyboard
	KeyGamepadFaceUp Key = 635
	// A (Xbox)         B (Switch)   Cross (PS)         // Activate / Open / Toggle / Tweak
	KeyGamepadFaceDown Key = 636
	// D-pad Left                                       // Move / Tweak / Resize Window (in Windowing mode)
	KeyGamepadDpadLeft Key = 637
	// D-pad Right                                      // Move / Tweak / Resize Window (in Windowing mode)
	KeyGamepadDpadRight Key = 638
	// D-pad Up                                         // Move / Tweak / Resize Window (in Windowing mode)
	KeyGamepadDpadUp Key = 639
	// D-pad Down                                       // Move / Tweak / Resize Window (in Windowing mode)
	KeyGamepadDpadDown Key = 640
	// L Bumper (Xbox)  L (Switch)   L1 (PS)            // Tweak Slower / Focus Previous (in Windowing mode)
	KeyGamepadL1 Key = 641
	// R Bumper (Xbox)  R (Switch)   R1 (PS)            // Tweak Faster / Focus Next (in Windowing mode)
	KeyGamepadR1 Key = 642
	// L Trig. (Xbox)   ZL (Switch)  L2 (PS) [Analog]
	KeyGamepadL2 Key = 643
	// R Trig. (Xbox)   ZR (Switch)  R2 (PS) [Analog]
	KeyGamepadR2 Key = 644
	// L Stick (Xbox)   L3 (Switch)  L3 (PS)
	KeyGamepadL3 Key = 645
	// R Stick (Xbox)   R3 (Switch)  R3 (PS)
	KeyGamepadR3 Key = 646
	// [Analog]                                         // Move Window (in Windowing mode)
	KeyGamepadLStickLeft Key = 647
	// [Analog]                                         // Move Window (in Windowing mode)
	KeyGamepadLStickRight Key = 648
	// [Analog]                                         // Move Window (in Windowing mode)
	KeyGamepadLStickUp Key = 649
	// [Analog]                                         // Move Window (in Windowing mode)
	KeyGamepadLStickDown Key = 650
	// [Analog]
	KeyGamepadRStickLeft Key = 651
	// [Analog]
	KeyGamepadRStickRight Key = 652
	// [Analog]
	KeyGamepadRStickUp Key = 653
	// [Analog]
	KeyGamepadRStickDown   Key = 654
	KeyMouseLeft           Key = 655
	KeyMouseRight          Key = 656
	KeyMouseMiddle         Key = 657
	KeyMouseX1             Key = 658
	KeyMouseX2             Key = 659
	KeyMouseWheelX         Key = 660
	KeyMouseWheelY         Key = 661
	KeyReservedForModCtrl  Key = 662
	KeyReservedForModShift Key = 663
	KeyReservedForModAlt   Key = 664
	KeyReservedForModSuper Key = 665
	KeyCOUNT               Key = 666
	ModNone                Key = 0
	// Ctrl (non-macOS), Cmd (macOS)
	ModCtrl Key = 4096
	// Shift
	ModShift Key = 8192
	// Option/Menu
	ModAlt Key = 16384
	// Windows/Super (non-macOS), Ctrl (macOS)
	ModSuper Key = 32768
	// 4-bits
	ModMask          Key = 61440
	KeyNamedKeyBEGIN Key = 512
	KeyNamedKeyEND   Key = 666
	KeyNamedKeyCOUNT Key = 154
	// Size of KeysData[]: only hold named keys
	KeyKeysDataSIZE Key = 154
	// Accesses to io.KeysData[] must use (key - ImGuiKey_KeysData_OFFSET) index.
	KeyKeysDataOFFSET Key = 512
)

func InternalConvertSingleModFlagToKey

func InternalConvertSingleModFlagToKey(key Key) Key

func InternalMouseButtonToKey

func InternalMouseButtonToKey(button MouseButton) Key

type KeyChord

type KeyChord int32

func InternalFixupKeyChord

func InternalFixupKeyChord(key_chord KeyChord) KeyChord

func NewKeyChordFromC

func NewKeyChordFromC[SRC any](cvalue SRC) *KeyChord

NewKeyChordFromC creates KeyChord from its C pointer. SRC ~= *C.ImGuiKeyChord

func (KeyChord) C

func (self KeyChord) C() (C.ImGuiKeyChord, func())

C is like Handle but returns plain type instead of pointer.

func (*KeyChord) Handle

func (selfSrc *KeyChord) Handle() (result *C.ImGuiKeyChord, fin func())

Handle returns C version of KeyChord and its finalizer func.

type KeyData

type KeyData struct {
	CData *C.ImGuiKeyData
}

func InternalKeyDataContextPtr

func InternalKeyDataContextPtr(ctx *Context, key Key) *KeyData

func InternalKeyDataKey

func InternalKeyDataKey(key Key) *KeyData

func NewEmptyKeyData added in v1.2.0

func NewEmptyKeyData() *KeyData

NewEmptyKeyData creates KeyData with its 0 value.

func NewKeyDataFromC

func NewKeyDataFromC[SRC any](cvalue SRC) *KeyData

NewKeyDataFromC creates KeyData from its C pointer. SRC ~= *C.ImGuiKeyData

func (*KeyData) AnalogValue

func (self *KeyData) AnalogValue() float32

func (KeyData) C

func (self KeyData) C() (C.ImGuiKeyData, func())

C is like Handle but returns plain type instead of pointer.

func (*KeyData) Down

func (self *KeyData) Down() bool

func (*KeyData) DownDuration

func (self *KeyData) DownDuration() float32

func (*KeyData) DownDurationPrev

func (self *KeyData) DownDurationPrev() float32

func (*KeyData) Handle

func (self *KeyData) Handle() (result *C.ImGuiKeyData, fin func())

Handle returns C version of KeyData and its finalizer func.

func (KeyData) SetAnalogValue

func (self KeyData) SetAnalogValue(v float32)

func (KeyData) SetDown

func (self KeyData) SetDown(v bool)

func (KeyData) SetDownDuration

func (self KeyData) SetDownDuration(v float32)

func (KeyData) SetDownDurationPrev

func (self KeyData) SetDownDurationPrev(v float32)

type KeyOwnerData

type KeyOwnerData struct {
	CData *C.ImGuiKeyOwnerData
}

func InternalKeyOwnerData

func InternalKeyOwnerData(ctx *Context, key Key) *KeyOwnerData

func InternalNewKeyOwnerData

func InternalNewKeyOwnerData() *KeyOwnerData

func NewEmptyKeyOwnerData added in v1.2.0

func NewEmptyKeyOwnerData() *KeyOwnerData

NewEmptyKeyOwnerData creates KeyOwnerData with its 0 value.

func NewKeyOwnerDataFromC

func NewKeyOwnerDataFromC[SRC any](cvalue SRC) *KeyOwnerData

NewKeyOwnerDataFromC creates KeyOwnerData from its C pointer. SRC ~= *C.ImGuiKeyOwnerData

func (KeyOwnerData) C

func (self KeyOwnerData) C() (C.ImGuiKeyOwnerData, func())

C is like Handle but returns plain type instead of pointer.

func (*KeyOwnerData) Destroy

func (self *KeyOwnerData) Destroy()

func (*KeyOwnerData) Handle

func (self *KeyOwnerData) Handle() (result *C.ImGuiKeyOwnerData, fin func())

Handle returns C version of KeyOwnerData and its finalizer func.

func (*KeyOwnerData) LockThisFrame

func (self *KeyOwnerData) LockThisFrame() bool

func (*KeyOwnerData) LockUntilRelease

func (self *KeyOwnerData) LockUntilRelease() bool

func (*KeyOwnerData) OwnerCurr

func (self *KeyOwnerData) OwnerCurr() ID

func (*KeyOwnerData) OwnerNext

func (self *KeyOwnerData) OwnerNext() ID

func (KeyOwnerData) SetLockThisFrame

func (self KeyOwnerData) SetLockThisFrame(v bool)

func (KeyOwnerData) SetLockUntilRelease

func (self KeyOwnerData) SetLockUntilRelease(v bool)

func (KeyOwnerData) SetOwnerCurr

func (self KeyOwnerData) SetOwnerCurr(v ID)

func (KeyOwnerData) SetOwnerNext

func (self KeyOwnerData) SetOwnerNext(v ID)

type KeyRoutingData

type KeyRoutingData struct {
	CData *C.ImGuiKeyRoutingData
}

func InternalNewKeyRoutingData

func InternalNewKeyRoutingData() *KeyRoutingData

func InternalShortcutRoutingData

func InternalShortcutRoutingData(key_chord KeyChord) *KeyRoutingData

func NewEmptyKeyRoutingData added in v1.2.0

func NewEmptyKeyRoutingData() *KeyRoutingData

NewEmptyKeyRoutingData creates KeyRoutingData with its 0 value.

func NewKeyRoutingDataFromC

func NewKeyRoutingDataFromC[SRC any](cvalue SRC) *KeyRoutingData

NewKeyRoutingDataFromC creates KeyRoutingData from its C pointer. SRC ~= *C.ImGuiKeyRoutingData

func (KeyRoutingData) C

func (self KeyRoutingData) C() (C.ImGuiKeyRoutingData, func())

C is like Handle but returns plain type instead of pointer.

func (*KeyRoutingData) Destroy

func (self *KeyRoutingData) Destroy()

func (*KeyRoutingData) Handle

func (self *KeyRoutingData) Handle() (result *C.ImGuiKeyRoutingData, fin func())

Handle returns C version of KeyRoutingData and its finalizer func.

func (*KeyRoutingData) Mods

func (self *KeyRoutingData) Mods() uint16

func (*KeyRoutingData) NextEntryIndex

func (self *KeyRoutingData) NextEntryIndex() KeyRoutingIndex

func (*KeyRoutingData) RoutingCurr

func (self *KeyRoutingData) RoutingCurr() ID

func (*KeyRoutingData) RoutingCurrScore

func (self *KeyRoutingData) RoutingCurrScore() byte

func (*KeyRoutingData) RoutingNext

func (self *KeyRoutingData) RoutingNext() ID

func (*KeyRoutingData) RoutingNextScore

func (self *KeyRoutingData) RoutingNextScore() byte

func (KeyRoutingData) SetMods

func (self KeyRoutingData) SetMods(v uint16)

func (KeyRoutingData) SetNextEntryIndex

func (self KeyRoutingData) SetNextEntryIndex(v KeyRoutingIndex)

func (KeyRoutingData) SetRoutingCurr

func (self KeyRoutingData) SetRoutingCurr(v ID)

func (KeyRoutingData) SetRoutingCurrScore

func (self KeyRoutingData) SetRoutingCurrScore(v byte)

func (KeyRoutingData) SetRoutingNext

func (self KeyRoutingData) SetRoutingNext(v ID)

func (KeyRoutingData) SetRoutingNextScore

func (self KeyRoutingData) SetRoutingNextScore(v byte)

type KeyRoutingIndex

type KeyRoutingIndex int16

func NewKeyRoutingIndexFromC

func NewKeyRoutingIndexFromC[SRC any](cvalue SRC) *KeyRoutingIndex

NewKeyRoutingIndexFromC creates KeyRoutingIndex from its C pointer. SRC ~= *C.ImGuiKeyRoutingIndex

func (KeyRoutingIndex) C

func (self KeyRoutingIndex) C() (C.ImGuiKeyRoutingIndex, func())

C is like Handle but returns plain type instead of pointer.

func (*KeyRoutingIndex) Handle

func (selfSrc *KeyRoutingIndex) Handle() (result *C.ImGuiKeyRoutingIndex, fin func())

Handle returns C version of KeyRoutingIndex and its finalizer func.

type KeyRoutingTable

type KeyRoutingTable struct {
	CData *C.ImGuiKeyRoutingTable
}

func InternalNewKeyRoutingTable

func InternalNewKeyRoutingTable() *KeyRoutingTable

func NewEmptyKeyRoutingTable added in v1.2.0

func NewEmptyKeyRoutingTable() *KeyRoutingTable

NewEmptyKeyRoutingTable creates KeyRoutingTable with its 0 value.

func NewKeyRoutingTableFromC

func NewKeyRoutingTableFromC[SRC any](cvalue SRC) *KeyRoutingTable

NewKeyRoutingTableFromC creates KeyRoutingTable from its C pointer. SRC ~= *C.ImGuiKeyRoutingTable

func (KeyRoutingTable) C

func (self KeyRoutingTable) C() (C.ImGuiKeyRoutingTable, func())

C is like Handle but returns plain type instead of pointer.

func (*KeyRoutingTable) Destroy

func (self *KeyRoutingTable) Destroy()

func (*KeyRoutingTable) Entries

func (self *KeyRoutingTable) Entries() vectors.Vector[KeyRoutingData]

func (*KeyRoutingTable) EntriesNext

func (self *KeyRoutingTable) EntriesNext() vectors.Vector[KeyRoutingData]

func (*KeyRoutingTable) Handle

func (self *KeyRoutingTable) Handle() (result *C.ImGuiKeyRoutingTable, fin func())

Handle returns C version of KeyRoutingTable and its finalizer func.

func (*KeyRoutingTable) Index

func (self *KeyRoutingTable) Index() [154]KeyRoutingIndex

func (*KeyRoutingTable) InternalClear

func (self *KeyRoutingTable) InternalClear()

func (KeyRoutingTable) SetEntries

func (self KeyRoutingTable) SetEntries(v vectors.Vector[KeyRoutingData])

func (KeyRoutingTable) SetEntriesNext

func (self KeyRoutingTable) SetEntriesNext(v vectors.Vector[KeyRoutingData])

func (KeyRoutingTable) SetIndex

func (self KeyRoutingTable) SetIndex(v *[154]KeyRoutingIndex)

type LastItemData

type LastItemData struct {
	CData *C.ImGuiLastItemData
}

func InternalNewLastItemData

func InternalNewLastItemData() *LastItemData

func NewEmptyLastItemData added in v1.2.0

func NewEmptyLastItemData() *LastItemData

NewEmptyLastItemData creates LastItemData with its 0 value.

func NewLastItemDataFromC

func NewLastItemDataFromC[SRC any](cvalue SRC) *LastItemData

NewLastItemDataFromC creates LastItemData from its C pointer. SRC ~= *C.ImGuiLastItemData

func (LastItemData) C

func (self LastItemData) C() (C.ImGuiLastItemData, func())

C is like Handle but returns plain type instead of pointer.

func (*LastItemData) ClipRect

func (self *LastItemData) ClipRect() Rect

func (*LastItemData) Destroy

func (self *LastItemData) Destroy()

func (*LastItemData) DisplayRect

func (self *LastItemData) DisplayRect() Rect

func (*LastItemData) Handle

func (self *LastItemData) Handle() (result *C.ImGuiLastItemData, fin func())

Handle returns C version of LastItemData and its finalizer func.

func (*LastItemData) ID

func (self *LastItemData) ID() ID

func (*LastItemData) ItemFlags added in v1.1.0

func (self *LastItemData) ItemFlags() ItemFlags

func (*LastItemData) NavRect

func (self *LastItemData) NavRect() Rect

func (*LastItemData) Rect

func (self *LastItemData) Rect() Rect

func (LastItemData) SetClipRect

func (self LastItemData) SetClipRect(v Rect)

func (LastItemData) SetDisplayRect

func (self LastItemData) SetDisplayRect(v Rect)

func (LastItemData) SetID

func (self LastItemData) SetID(v ID)

func (LastItemData) SetItemFlags added in v1.1.0

func (self LastItemData) SetItemFlags(v ItemFlags)

func (LastItemData) SetNavRect

func (self LastItemData) SetNavRect(v Rect)

func (LastItemData) SetRect

func (self LastItemData) SetRect(v Rect)

func (LastItemData) SetShortcut

func (self LastItemData) SetShortcut(v KeyChord)

func (LastItemData) SetStatusFlags

func (self LastItemData) SetStatusFlags(v ItemStatusFlags)

func (*LastItemData) Shortcut

func (self *LastItemData) Shortcut() KeyChord

func (*LastItemData) StatusFlags

func (self *LastItemData) StatusFlags() ItemStatusFlags

type LayoutType

type LayoutType int32

FIXME: this is in development, not exposed/functional as a generic feature yet. Horizontal/Vertical enums are fixed to 0/1 so they may be used to index ImVec2 original name: ImGuiLayoutType_

const (
	LayoutTypeHorizontal LayoutType = 0
	LayoutTypeVertical   LayoutType = 1
)

type ListClipper

type ListClipper struct {
	CData *C.ImGuiListClipper
}

func NewEmptyListClipper added in v1.2.0

func NewEmptyListClipper() *ListClipper

NewEmptyListClipper creates ListClipper with its 0 value.

func NewListClipper

func NewListClipper() *ListClipper

func NewListClipperFromC

func NewListClipperFromC[SRC any](cvalue SRC) *ListClipper

NewListClipperFromC creates ListClipper from its C pointer. SRC ~= *C.ImGuiListClipper

func (*ListClipper) Begin

func (self *ListClipper) Begin(items_count int32)

func (*ListClipper) BeginV

func (self *ListClipper) BeginV(items_count int32, items_height float32)

BeginV parameter default value hint: items_height: -1.0f

func (ListClipper) C

func (self ListClipper) C() (C.ImGuiListClipper, func())

C is like Handle but returns plain type instead of pointer.

func (*ListClipper) Ctx

func (self *ListClipper) Ctx() *Context

func (*ListClipper) Destroy

func (self *ListClipper) Destroy()

func (*ListClipper) DisplayEnd

func (self *ListClipper) DisplayEnd() int32

func (*ListClipper) DisplayStart

func (self *ListClipper) DisplayStart() int32

func (*ListClipper) End

func (self *ListClipper) End()

Automatically called on the last call of Step() that returns false.

func (*ListClipper) Handle

func (self *ListClipper) Handle() (result *C.ImGuiListClipper, fin func())

Handle returns C version of ListClipper and its finalizer func.

func (*ListClipper) IncludeItemByIndex

func (self *ListClipper) IncludeItemByIndex(item_index int32)

func (*ListClipper) IncludeItemsByIndex

func (self *ListClipper) IncludeItemsByIndex(item_begin, item_end int32)

item_end is exclusive e.g. use (42, 42+1) to make item 42 never clipped.

func (*ListClipper) ItemsCount

func (self *ListClipper) ItemsCount() int32

func (*ListClipper) ItemsHeight

func (self *ListClipper) ItemsHeight() float32

func (*ListClipper) SeekCursorForItem

func (self *ListClipper) SeekCursorForItem(item_index int32)

func (ListClipper) SetCtx

func (self ListClipper) SetCtx(v *Context)

func (ListClipper) SetDisplayEnd

func (self ListClipper) SetDisplayEnd(v int32)

func (ListClipper) SetDisplayStart

func (self ListClipper) SetDisplayStart(v int32)

func (ListClipper) SetItemsCount

func (self ListClipper) SetItemsCount(v int32)

func (ListClipper) SetItemsHeight

func (self ListClipper) SetItemsHeight(v float32)

func (ListClipper) SetStartPosY

func (self ListClipper) SetStartPosY(v float32)

func (ListClipper) SetStartSeekOffsetY

func (self ListClipper) SetStartSeekOffsetY(v float64)

func (ListClipper) SetTempData

func (self ListClipper) SetTempData(v uintptr)

func (*ListClipper) StartPosY

func (self *ListClipper) StartPosY() float32

func (*ListClipper) StartSeekOffsetY

func (self *ListClipper) StartSeekOffsetY() float64

func (*ListClipper) Step

func (self *ListClipper) Step() bool

Call until it returns false. The DisplayStart/DisplayEnd fields will be set and you can process/draw those items.

func (*ListClipper) TempData

func (self *ListClipper) TempData() uintptr

type ListClipperData

type ListClipperData struct {
	CData *C.ImGuiListClipperData
}

func InternalNewListClipperData

func InternalNewListClipperData() *ListClipperData

func NewEmptyListClipperData added in v1.2.0

func NewEmptyListClipperData() *ListClipperData

NewEmptyListClipperData creates ListClipperData with its 0 value.

func NewListClipperDataFromC

func NewListClipperDataFromC[SRC any](cvalue SRC) *ListClipperData

NewListClipperDataFromC creates ListClipperData from its C pointer. SRC ~= *C.ImGuiListClipperData

func (ListClipperData) C

func (self ListClipperData) C() (C.ImGuiListClipperData, func())

C is like Handle but returns plain type instead of pointer.

func (*ListClipperData) Destroy

func (self *ListClipperData) Destroy()

func (*ListClipperData) Handle

func (self *ListClipperData) Handle() (result *C.ImGuiListClipperData, fin func())

Handle returns C version of ListClipperData and its finalizer func.

func (*ListClipperData) InternalReset

func (self *ListClipperData) InternalReset(clipper *ListClipper)

func (*ListClipperData) ItemsFrozen

func (self *ListClipperData) ItemsFrozen() int32

func (*ListClipperData) ListClipper

func (self *ListClipperData) ListClipper() *ListClipper

func (*ListClipperData) LossynessOffset

func (self *ListClipperData) LossynessOffset() float32

func (*ListClipperData) Ranges

func (ListClipperData) SetItemsFrozen

func (self ListClipperData) SetItemsFrozen(v int32)

func (ListClipperData) SetListClipper

func (self ListClipperData) SetListClipper(v *ListClipper)

func (ListClipperData) SetLossynessOffset

func (self ListClipperData) SetLossynessOffset(v float32)

func (ListClipperData) SetRanges

func (self ListClipperData) SetRanges(v vectors.Vector[ListClipperRange])

func (ListClipperData) SetStepNo

func (self ListClipperData) SetStepNo(v int32)

func (*ListClipperData) StepNo

func (self *ListClipperData) StepNo() int32

type ListClipperRange

type ListClipperRange struct {
	CData *C.ImGuiListClipperRange
}

func InternalListClipperRangeFromIndices

func InternalListClipperRangeFromIndices(min, max int32) ListClipperRange

func InternalListClipperRangeFromPositions

func InternalListClipperRangeFromPositions(y1, y2 float32, off_min, off_max int32) ListClipperRange

func NewEmptyListClipperRange added in v1.2.0

func NewEmptyListClipperRange() *ListClipperRange

NewEmptyListClipperRange creates ListClipperRange with its 0 value.

func NewListClipperRangeFromC

func NewListClipperRangeFromC[SRC any](cvalue SRC) *ListClipperRange

NewListClipperRangeFromC creates ListClipperRange from its C pointer. SRC ~= *C.ImGuiListClipperRange

func (ListClipperRange) C

func (self ListClipperRange) C() (C.ImGuiListClipperRange, func())

C is like Handle but returns plain type instead of pointer.

func (*ListClipperRange) Handle

func (self *ListClipperRange) Handle() (result *C.ImGuiListClipperRange, fin func())

Handle returns C version of ListClipperRange and its finalizer func.

func (*ListClipperRange) Max

func (self *ListClipperRange) Max() int32

func (*ListClipperRange) Min

func (self *ListClipperRange) Min() int32

func (*ListClipperRange) PosToIndexConvert

func (self *ListClipperRange) PosToIndexConvert() bool

func (*ListClipperRange) PosToIndexOffsetMax

func (self *ListClipperRange) PosToIndexOffsetMax() int

func (*ListClipperRange) PosToIndexOffsetMin

func (self *ListClipperRange) PosToIndexOffsetMin() int

func (ListClipperRange) SetMax

func (self ListClipperRange) SetMax(v int32)

func (ListClipperRange) SetMin

func (self ListClipperRange) SetMin(v int32)

func (ListClipperRange) SetPosToIndexConvert

func (self ListClipperRange) SetPosToIndexConvert(v bool)

func (ListClipperRange) SetPosToIndexOffsetMax

func (self ListClipperRange) SetPosToIndexOffsetMax(v int)

func (ListClipperRange) SetPosToIndexOffsetMin

func (self ListClipperRange) SetPosToIndexOffsetMin(v int)

type LocEntry

type LocEntry struct {
	CData *C.ImGuiLocEntry
}

func NewEmptyLocEntry added in v1.2.0

func NewEmptyLocEntry() *LocEntry

NewEmptyLocEntry creates LocEntry with its 0 value.

func NewLocEntryFromC

func NewLocEntryFromC[SRC any](cvalue SRC) *LocEntry

NewLocEntryFromC creates LocEntry from its C pointer. SRC ~= *C.ImGuiLocEntry

func (LocEntry) C

func (self LocEntry) C() (C.ImGuiLocEntry, func())

C is like Handle but returns plain type instead of pointer.

func (*LocEntry) Handle

func (self *LocEntry) Handle() (result *C.ImGuiLocEntry, fin func())

Handle returns C version of LocEntry and its finalizer func.

func (*LocEntry) Key

func (self *LocEntry) Key() LocKey

func (LocEntry) SetKey

func (self LocEntry) SetKey(v LocKey)

func (LocEntry) SetText

func (self LocEntry) SetText(v string)

func (*LocEntry) Text

func (self *LocEntry) Text() string

type LocKey

type LocKey int32

This is experimental and not officially supported, it'll probably fall short of features, if/when it does we may backtrack. original name: ImGuiLocKey

const (
	LocKeyVersionStr                    LocKey = 0
	LocKeyTableSizeOne                  LocKey = 1
	LocKeyTableSizeAllFit               LocKey = 2
	LocKeyTableSizeAllDefault           LocKey = 3
	LocKeyTableResetOrder               LocKey = 4
	LocKeyWindowingMainMenuBar          LocKey = 5
	LocKeyWindowingPopup                LocKey = 6
	LocKeyWindowingUntitled             LocKey = 7
	LocKeyOpenLinks                     LocKey = 8
	LocKeyCopyLink                      LocKey = 9
	LocKeyDockingHideTabBar             LocKey = 10
	LocKeyDockingHoldShiftToDock        LocKey = 11
	LocKeyDockingDragToUndockOrMoveNode LocKey = 12
	LocKeyCOUNT                         LocKey = 13
)

type LogType

type LogType int32

original name: ImGuiLogType

const (
	LogTypeNone      LogType = 0
	LogTypeTTY       LogType = 1
	LogTypeFile      LogType = 2
	LogTypeBuffer    LogType = 3
	LogTypeClipboard LogType = 4
)

type MemAllocFunc added in v1.2.0

type MemAllocFunc func(sz uint64, user_data unsafe.Pointer) unsafe.Pointer

func NewMemAllocFuncFromC added in v1.2.0

func NewMemAllocFuncFromC(cvalue *C.ImGuiMemAllocFunc) *MemAllocFunc

func (MemAllocFunc) C added in v1.2.0

func (c MemAllocFunc) C() (C.ImGuiMemAllocFunc, func())

type MemFreeFunc added in v1.2.0

type MemFreeFunc func(ptr, user_data unsafe.Pointer)

func NewMemFreeFuncFromC added in v1.2.0

func NewMemFreeFuncFromC(cvalue *C.ImGuiMemFreeFunc) *MemFreeFunc

func (MemFreeFunc) C added in v1.2.0

func (c MemFreeFunc) C() (C.ImGuiMemFreeFunc, func())
type MenuColumns struct {
	CData *C.ImGuiMenuColumns
}

func InternalNewMenuColumns

func InternalNewMenuColumns() *MenuColumns

func NewEmptyMenuColumns added in v1.2.0

func NewEmptyMenuColumns() *MenuColumns

NewEmptyMenuColumns creates MenuColumns with its 0 value.

func NewMenuColumnsFromC

func NewMenuColumnsFromC[SRC any](cvalue SRC) *MenuColumns

NewMenuColumnsFromC creates MenuColumns from its C pointer. SRC ~= *C.ImGuiMenuColumns

func (self MenuColumns) C() (C.ImGuiMenuColumns, func())

C is like Handle but returns plain type instead of pointer.

func (self *MenuColumns) Destroy()
func (self *MenuColumns) Handle() (result *C.ImGuiMenuColumns, fin func())

Handle returns C version of MenuColumns and its finalizer func.

func (self *MenuColumns) InternalCalcNextTotalWidth(update_offsets bool)
func (self *MenuColumns) InternalDeclColumns(w_icon, w_label, w_shortcut, w_mark float32) float32
func (self *MenuColumns) InternalUpdate(spacing float32, window_reappearing bool)
func (self *MenuColumns) NextTotalWidth() uint32
func (self *MenuColumns) OffsetIcon() uint16
func (self *MenuColumns) OffsetLabel() uint16
func (self *MenuColumns) OffsetMark() uint16
func (self *MenuColumns) OffsetShortcut() uint16
func (self MenuColumns) SetNextTotalWidth(v uint32)
func (self MenuColumns) SetOffsetIcon(v uint16)
func (self MenuColumns) SetOffsetLabel(v uint16)
func (self MenuColumns) SetOffsetMark(v uint16)
func (self MenuColumns) SetOffsetShortcut(v uint16)
func (self MenuColumns) SetSpacing(v uint16)
func (self MenuColumns) SetTotalWidth(v uint32)
func (self MenuColumns) SetWidths(v *[4]uint16)
func (self *MenuColumns) Spacing() uint16
func (self *MenuColumns) TotalWidth() uint32
func (self *MenuColumns) Widths() [4](uint16)

type MetricsConfig

type MetricsConfig struct {
	CData *C.ImGuiMetricsConfig
}

func NewEmptyMetricsConfig added in v1.2.0

func NewEmptyMetricsConfig() *MetricsConfig

NewEmptyMetricsConfig creates MetricsConfig with its 0 value.

func NewMetricsConfigFromC

func NewMetricsConfigFromC[SRC any](cvalue SRC) *MetricsConfig

NewMetricsConfigFromC creates MetricsConfig from its C pointer. SRC ~= *C.ImGuiMetricsConfig

func (MetricsConfig) C

func (self MetricsConfig) C() (C.ImGuiMetricsConfig, func())

C is like Handle but returns plain type instead of pointer.

func (*MetricsConfig) Handle

func (self *MetricsConfig) Handle() (result *C.ImGuiMetricsConfig, fin func())

Handle returns C version of MetricsConfig and its finalizer func.

func (*MetricsConfig) HighlightMonitorIdx

func (self *MetricsConfig) HighlightMonitorIdx() int32

func (*MetricsConfig) HighlightViewportID

func (self *MetricsConfig) HighlightViewportID() ID

func (MetricsConfig) SetHighlightMonitorIdx

func (self MetricsConfig) SetHighlightMonitorIdx(v int32)

func (MetricsConfig) SetHighlightViewportID

func (self MetricsConfig) SetHighlightViewportID(v ID)

func (MetricsConfig) SetShowAtlasTintedWithTextColor

func (self MetricsConfig) SetShowAtlasTintedWithTextColor(v bool)

func (MetricsConfig) SetShowDebugLog

func (self MetricsConfig) SetShowDebugLog(v bool)

func (MetricsConfig) SetShowDockingNodes

func (self MetricsConfig) SetShowDockingNodes(v bool)

func (MetricsConfig) SetShowDrawCmdBoundingBoxes

func (self MetricsConfig) SetShowDrawCmdBoundingBoxes(v bool)

func (MetricsConfig) SetShowDrawCmdMesh

func (self MetricsConfig) SetShowDrawCmdMesh(v bool)

func (MetricsConfig) SetShowIDStackTool

func (self MetricsConfig) SetShowIDStackTool(v bool)

func (MetricsConfig) SetShowTablesRects

func (self MetricsConfig) SetShowTablesRects(v bool)

func (MetricsConfig) SetShowTablesRectsType

func (self MetricsConfig) SetShowTablesRectsType(v int32)

func (MetricsConfig) SetShowTextEncodingViewer

func (self MetricsConfig) SetShowTextEncodingViewer(v bool)

func (MetricsConfig) SetShowWindowsBeginOrder

func (self MetricsConfig) SetShowWindowsBeginOrder(v bool)

func (MetricsConfig) SetShowWindowsRects

func (self MetricsConfig) SetShowWindowsRects(v bool)

func (MetricsConfig) SetShowWindowsRectsType

func (self MetricsConfig) SetShowWindowsRectsType(v int32)

func (*MetricsConfig) ShowAtlasTintedWithTextColor

func (self *MetricsConfig) ShowAtlasTintedWithTextColor() bool

func (*MetricsConfig) ShowDebugLog

func (self *MetricsConfig) ShowDebugLog() bool

func (*MetricsConfig) ShowDockingNodes

func (self *MetricsConfig) ShowDockingNodes() bool

func (*MetricsConfig) ShowDrawCmdBoundingBoxes

func (self *MetricsConfig) ShowDrawCmdBoundingBoxes() bool

func (*MetricsConfig) ShowDrawCmdMesh

func (self *MetricsConfig) ShowDrawCmdMesh() bool

func (*MetricsConfig) ShowIDStackTool

func (self *MetricsConfig) ShowIDStackTool() bool

func (*MetricsConfig) ShowTablesRects

func (self *MetricsConfig) ShowTablesRects() bool

func (*MetricsConfig) ShowTablesRectsType

func (self *MetricsConfig) ShowTablesRectsType() int32

func (*MetricsConfig) ShowTextEncodingViewer

func (self *MetricsConfig) ShowTextEncodingViewer() bool

func (*MetricsConfig) ShowWindowsBeginOrder

func (self *MetricsConfig) ShowWindowsBeginOrder() bool

func (*MetricsConfig) ShowWindowsRects

func (self *MetricsConfig) ShowWindowsRects() bool

func (*MetricsConfig) ShowWindowsRectsType

func (self *MetricsConfig) ShowWindowsRectsType() int32

type MouseButton

type MouseButton int32

Identify a mouse button. Those values are guaranteed to be stable and we frequently use 0/1 directly. Named enums provided for convenience. original name: ImGuiMouseButton_

const (
	MouseButtonLeft   MouseButton = 0
	MouseButtonRight  MouseButton = 1
	MouseButtonMiddle MouseButton = 2
	MouseButtonCOUNT  MouseButton = 5
)

type MouseCursor

type MouseCursor int32

Enumeration for GetMouseCursor() User code may request backend to display given cursor by calling SetMouseCursor(), which is why we have some cursors that are marked unused here original name: ImGuiMouseCursor_

const (
	MouseCursorNone  MouseCursor = -1
	MouseCursorArrow MouseCursor = 0
	// When hovering over InputText, etc.
	MouseCursorTextInput MouseCursor = 1
	// (Unused by Dear ImGui functions)
	MouseCursorResizeAll MouseCursor = 2
	// When hovering over a horizontal border
	MouseCursorResizeNS MouseCursor = 3
	// When hovering over a vertical border or a column
	MouseCursorResizeEW MouseCursor = 4
	// When hovering over the bottom-left corner of a window
	MouseCursorResizeNESW MouseCursor = 5
	// When hovering over the bottom-right corner of a window
	MouseCursorResizeNWSE MouseCursor = 6
	// (Unused by Dear ImGui functions. Use for e.g. hyperlinks)
	MouseCursorHand MouseCursor = 7
	// When hovering something with disallowed interaction. Usually a crossed circle.
	MouseCursorNotAllowed MouseCursor = 8
	MouseCursorCOUNT      MouseCursor = 9
)

func CurrentMouseCursor

func CurrentMouseCursor() MouseCursor

get desired mouse cursor shape. Important: reset in ImGui::NewFrame(), this is updated during the frame. valid before Render(). If you use software rendering by setting io.MouseDrawCursor ImGui will render those for you

type MouseSource

type MouseSource int32

Enumeration for AddMouseSourceEvent() actual source of Mouse Input data. Historically we use "Mouse" terminology everywhere to indicate pointer data, e.g. MousePos, IsMousePressed(), io.AddMousePosEvent() But that "Mouse" data can come from different source which occasionally may be useful for application to know about. You can submit a change of pointer type using io.AddMouseSourceEvent(). original name: ImGuiMouseSource

const (
	// Input is coming from an actual mouse.
	MouseSourceMouse MouseSource = 0
	// Input is coming from a touch screen (no hovering prior to initial press, less precise initial press aiming, dual-axis wheeling possible).
	MouseSourceTouchScreen MouseSource = 1
	// Input is coming from a pressure/magnetic pen (often used in conjunction with high-sampling rates).
	MouseSourcePen   MouseSource = 2
	MouseSourceCOUNT MouseSource = 3
)

type MultiSelectFlags

type MultiSelectFlags int32

Flags for BeginMultiSelect() original name: ImGuiMultiSelectFlags_

const (
	MultiSelectFlagsNone MultiSelectFlags = 0
	// Disable selecting more than one item. This is available to allow single-selection code to share same code/logic if desired. It essentially disables the main purpose of BeginMultiSelect() tho!
	MultiSelectFlagsSingleSelect MultiSelectFlags = 1
	// Disable CTRL+A shortcut to select all.
	MultiSelectFlagsNoSelectAll MultiSelectFlags = 2
	// Disable Shift+selection mouse/keyboard support (useful for unordered 2D selection). With BoxSelect is also ensure contiguous SetRange requests are not combined into one. This allows not handling interpolation in SetRange requests.
	MultiSelectFlagsNoRangeSelect MultiSelectFlags = 4
	// Disable selecting items when navigating (useful for e.g. supporting range-select in a list of checkboxes).
	MultiSelectFlagsNoAutoSelect MultiSelectFlags = 8
	// Disable clearing selection when navigating or selecting another one (generally used with ImGuiMultiSelectFlags_NoAutoSelect. useful for e.g. supporting range-select in a list of checkboxes).
	MultiSelectFlagsNoAutoClear MultiSelectFlags = 16
	// Disable clearing selection when clicking/selecting an already selected item.
	MultiSelectFlagsNoAutoClearOnReselect MultiSelectFlags = 32
	// Enable box-selection with same width and same x pos items (e.g. full row Selectable()). Box-selection works better with little bit of spacing between items hit-box in order to be able to aim at empty space.
	MultiSelectFlagsBoxSelect1d MultiSelectFlags = 64
	// Enable box-selection with varying width or varying x pos items support (e.g. different width labels, or 2D layout/grid). This is slower: alters clipping logic so that e.g. horizontal movements will update selection of normally clipped items.
	MultiSelectFlagsBoxSelect2d MultiSelectFlags = 128
	// Disable scrolling when box-selecting near edges of scope.
	MultiSelectFlagsBoxSelectNoScroll MultiSelectFlags = 256
	// Clear selection when pressing Escape while scope is focused.
	MultiSelectFlagsClearOnEscape MultiSelectFlags = 512
	// Clear selection when clicking on empty location within scope.
	MultiSelectFlagsClearOnClickVoid MultiSelectFlags = 1024
	// Scope for _BoxSelect and _ClearOnClickVoid is whole window (Default). Use if BeginMultiSelect() covers a whole window or used a single time in same window.
	MultiSelectFlagsScopeWindow MultiSelectFlags = 2048
	// Scope for _BoxSelect and _ClearOnClickVoid is rectangle encompassing BeginMultiSelect()/EndMultiSelect(). Use if BeginMultiSelect() is called multiple times in same window.
	MultiSelectFlagsScopeRect MultiSelectFlags = 4096
	// Apply selection on mouse down when clicking on unselected item. (Default)
	MultiSelectFlagsSelectOnClick MultiSelectFlags = 8192
	// Apply selection on mouse release when clicking an unselected item. Allow dragging an unselected item without altering selection.
	MultiSelectFlagsSelectOnClickRelease MultiSelectFlags = 16384
	// [Temporary] Enable navigation wrapping on X axis. Provided as a convenience because we don't have a design for the general Nav API for this yet. When the more general feature be public we may obsolete this flag in favor of new one.
	MultiSelectFlagsNavWrapX MultiSelectFlags = 65536
)

type MultiSelectIO

type MultiSelectIO struct {
	CData *C.ImGuiMultiSelectIO
}

func BeginMultiSelect

func BeginMultiSelect(flags MultiSelectFlags) *MultiSelectIO

func BeginMultiSelectV

func BeginMultiSelectV(flags MultiSelectFlags, selection_size, items_count int32) *MultiSelectIO

BeginMultiSelectV parameter default value hint: selection_size: -1 items_count: -1

func EndMultiSelect

func EndMultiSelect() *MultiSelectIO

func NewEmptyMultiSelectIO added in v1.2.0

func NewEmptyMultiSelectIO() *MultiSelectIO

NewEmptyMultiSelectIO creates MultiSelectIO with its 0 value.

func NewMultiSelectIOFromC

func NewMultiSelectIOFromC[SRC any](cvalue SRC) *MultiSelectIO

NewMultiSelectIOFromC creates MultiSelectIO from its C pointer. SRC ~= *C.ImGuiMultiSelectIO

func (MultiSelectIO) C

func (self MultiSelectIO) C() (C.ImGuiMultiSelectIO, func())

C is like Handle but returns plain type instead of pointer.

func (*MultiSelectIO) Handle

func (self *MultiSelectIO) Handle() (result *C.ImGuiMultiSelectIO, fin func())

Handle returns C version of MultiSelectIO and its finalizer func.

func (*MultiSelectIO) ItemsCount

func (self *MultiSelectIO) ItemsCount() int32

func (*MultiSelectIO) NavIdItem

func (self *MultiSelectIO) NavIdItem() SelectionUserData

func (*MultiSelectIO) NavIdSelected

func (self *MultiSelectIO) NavIdSelected() bool

func (*MultiSelectIO) RangeSrcItem

func (self *MultiSelectIO) RangeSrcItem() SelectionUserData

func (*MultiSelectIO) RangeSrcReset

func (self *MultiSelectIO) RangeSrcReset() bool

func (*MultiSelectIO) Requests

func (self *MultiSelectIO) Requests() vectors.Vector[SelectionRequest]

func (MultiSelectIO) SetItemsCount

func (self MultiSelectIO) SetItemsCount(v int32)

func (MultiSelectIO) SetNavIdItem

func (self MultiSelectIO) SetNavIdItem(v SelectionUserData)

func (MultiSelectIO) SetNavIdSelected

func (self MultiSelectIO) SetNavIdSelected(v bool)

func (MultiSelectIO) SetRangeSrcItem

func (self MultiSelectIO) SetRangeSrcItem(v SelectionUserData)

func (MultiSelectIO) SetRangeSrcReset

func (self MultiSelectIO) SetRangeSrcReset(v bool)

func (MultiSelectIO) SetRequests

func (self MultiSelectIO) SetRequests(v vectors.Vector[SelectionRequest])

type MultiSelectState

type MultiSelectState struct {
	CData *C.ImGuiMultiSelectState
}

func InternalMultiSelectState

func InternalMultiSelectState(id ID) *MultiSelectState

func InternalNewMultiSelectState

func InternalNewMultiSelectState() *MultiSelectState

func NewEmptyMultiSelectState added in v1.2.0

func NewEmptyMultiSelectState() *MultiSelectState

NewEmptyMultiSelectState creates MultiSelectState with its 0 value.

func NewMultiSelectStateFromC

func NewMultiSelectStateFromC[SRC any](cvalue SRC) *MultiSelectState

NewMultiSelectStateFromC creates MultiSelectState from its C pointer. SRC ~= *C.ImGuiMultiSelectState

func (MultiSelectState) C

func (self MultiSelectState) C() (C.ImGuiMultiSelectState, func())

C is like Handle but returns plain type instead of pointer.

func (*MultiSelectState) Destroy

func (self *MultiSelectState) Destroy()

func (*MultiSelectState) Handle

func (self *MultiSelectState) Handle() (result *C.ImGuiMultiSelectState, fin func())

Handle returns C version of MultiSelectState and its finalizer func.

func (*MultiSelectState) ID

func (self *MultiSelectState) ID() ID

func (*MultiSelectState) LastFrameActive

func (self *MultiSelectState) LastFrameActive() int32

func (*MultiSelectState) LastSelectionSize

func (self *MultiSelectState) LastSelectionSize() int32

func (*MultiSelectState) NavIdItem

func (self *MultiSelectState) NavIdItem() SelectionUserData

func (*MultiSelectState) NavIdSelected

func (self *MultiSelectState) NavIdSelected() int

func (*MultiSelectState) RangeSelected

func (self *MultiSelectState) RangeSelected() int

func (*MultiSelectState) RangeSrcItem

func (self *MultiSelectState) RangeSrcItem() SelectionUserData

func (MultiSelectState) SetID

func (self MultiSelectState) SetID(v ID)

func (MultiSelectState) SetLastFrameActive

func (self MultiSelectState) SetLastFrameActive(v int32)

func (MultiSelectState) SetLastSelectionSize

func (self MultiSelectState) SetLastSelectionSize(v int32)

func (MultiSelectState) SetNavIdItem

func (self MultiSelectState) SetNavIdItem(v SelectionUserData)

func (MultiSelectState) SetNavIdSelected

func (self MultiSelectState) SetNavIdSelected(v int)

func (MultiSelectState) SetRangeSelected

func (self MultiSelectState) SetRangeSelected(v int)

func (MultiSelectState) SetRangeSrcItem

func (self MultiSelectState) SetRangeSrcItem(v SelectionUserData)

func (MultiSelectState) SetWindow

func (self MultiSelectState) SetWindow(v *Window)

func (*MultiSelectState) Window

func (self *MultiSelectState) Window() *Window

type MultiSelectTempData

type MultiSelectTempData struct {
	CData *C.ImGuiMultiSelectTempData
}

func InternalNewMultiSelectTempData

func InternalNewMultiSelectTempData() *MultiSelectTempData

func NewEmptyMultiSelectTempData added in v1.2.0

func NewEmptyMultiSelectTempData() *MultiSelectTempData

NewEmptyMultiSelectTempData creates MultiSelectTempData with its 0 value.

func NewMultiSelectTempDataFromC

func NewMultiSelectTempDataFromC[SRC any](cvalue SRC) *MultiSelectTempData

NewMultiSelectTempDataFromC creates MultiSelectTempData from its C pointer. SRC ~= *C.ImGuiMultiSelectTempData

func (*MultiSelectTempData) BackupCursorMaxPos

func (self *MultiSelectTempData) BackupCursorMaxPos() Vec2

func (*MultiSelectTempData) BoxSelectId

func (self *MultiSelectTempData) BoxSelectId() ID

func (MultiSelectTempData) C

func (self MultiSelectTempData) C() (C.ImGuiMultiSelectTempData, func())

C is like Handle but returns plain type instead of pointer.

func (*MultiSelectTempData) Destroy

func (self *MultiSelectTempData) Destroy()

func (*MultiSelectTempData) Flags

func (self *MultiSelectTempData) Flags() MultiSelectFlags

func (*MultiSelectTempData) FocusScopeId

func (self *MultiSelectTempData) FocusScopeId() ID

func (*MultiSelectTempData) Handle

func (self *MultiSelectTempData) Handle() (result *C.ImGuiMultiSelectTempData, fin func())

Handle returns C version of MultiSelectTempData and its finalizer func.

func (*MultiSelectTempData) IO

func (*MultiSelectTempData) InternalClear

func (self *MultiSelectTempData) InternalClear()

Zero-clear except IO as we preserve IO.Requests[] buffer allocation.

func (*MultiSelectTempData) InternalClearIO

func (self *MultiSelectTempData) InternalClearIO()

func (*MultiSelectTempData) IsEndIO

func (self *MultiSelectTempData) IsEndIO() bool

func (*MultiSelectTempData) IsFocused

func (self *MultiSelectTempData) IsFocused() bool

func (*MultiSelectTempData) IsKeyboardSetRange

func (self *MultiSelectTempData) IsKeyboardSetRange() bool

func (*MultiSelectTempData) KeyMods

func (self *MultiSelectTempData) KeyMods() KeyChord

func (*MultiSelectTempData) LastSubmittedItem

func (self *MultiSelectTempData) LastSubmittedItem() SelectionUserData

func (*MultiSelectTempData) LoopRequestSetAll

func (self *MultiSelectTempData) LoopRequestSetAll() int

func (*MultiSelectTempData) NavIdPassedBy

func (self *MultiSelectTempData) NavIdPassedBy() bool

func (*MultiSelectTempData) RangeDstPassedBy

func (self *MultiSelectTempData) RangeDstPassedBy() bool

func (*MultiSelectTempData) RangeSrcPassedBy

func (self *MultiSelectTempData) RangeSrcPassedBy() bool

func (*MultiSelectTempData) ScopeRectMin

func (self *MultiSelectTempData) ScopeRectMin() Vec2

func (MultiSelectTempData) SetBackupCursorMaxPos

func (self MultiSelectTempData) SetBackupCursorMaxPos(v Vec2)

func (MultiSelectTempData) SetBoxSelectId

func (self MultiSelectTempData) SetBoxSelectId(v ID)

func (MultiSelectTempData) SetFlags

func (self MultiSelectTempData) SetFlags(v MultiSelectFlags)

func (MultiSelectTempData) SetFocusScopeId

func (self MultiSelectTempData) SetFocusScopeId(v ID)

func (MultiSelectTempData) SetIO

func (self MultiSelectTempData) SetIO(v MultiSelectIO)

func (MultiSelectTempData) SetIsEndIO

func (self MultiSelectTempData) SetIsEndIO(v bool)

func (MultiSelectTempData) SetIsFocused

func (self MultiSelectTempData) SetIsFocused(v bool)

func (MultiSelectTempData) SetIsKeyboardSetRange

func (self MultiSelectTempData) SetIsKeyboardSetRange(v bool)

func (MultiSelectTempData) SetKeyMods

func (self MultiSelectTempData) SetKeyMods(v KeyChord)

func (MultiSelectTempData) SetLastSubmittedItem

func (self MultiSelectTempData) SetLastSubmittedItem(v SelectionUserData)

func (MultiSelectTempData) SetLoopRequestSetAll

func (self MultiSelectTempData) SetLoopRequestSetAll(v int)

func (MultiSelectTempData) SetNavIdPassedBy

func (self MultiSelectTempData) SetNavIdPassedBy(v bool)

func (MultiSelectTempData) SetRangeDstPassedBy

func (self MultiSelectTempData) SetRangeDstPassedBy(v bool)

func (MultiSelectTempData) SetRangeSrcPassedBy

func (self MultiSelectTempData) SetRangeSrcPassedBy(v bool)

func (MultiSelectTempData) SetScopeRectMin

func (self MultiSelectTempData) SetScopeRectMin(v Vec2)

func (MultiSelectTempData) SetStorage

func (self MultiSelectTempData) SetStorage(v *MultiSelectState)

func (*MultiSelectTempData) Storage

func (self *MultiSelectTempData) Storage() *MultiSelectState
type NavItemData struct {
	CData *C.ImGuiNavItemData
}

func InternalNewNavItemData

func InternalNewNavItemData() *NavItemData

func NewEmptyNavItemData added in v1.2.0

func NewEmptyNavItemData() *NavItemData

NewEmptyNavItemData creates NavItemData with its 0 value.

func NewNavItemDataFromC

func NewNavItemDataFromC[SRC any](cvalue SRC) *NavItemData

NewNavItemDataFromC creates NavItemData from its C pointer. SRC ~= *C.ImGuiNavItemData

func (self NavItemData) C() (C.ImGuiNavItemData, func())

C is like Handle but returns plain type instead of pointer.

func (self *NavItemData) Destroy()
func (self *NavItemData) DistAxial() float32
func (self *NavItemData) DistBox() float32
func (self *NavItemData) DistCenter() float32
func (self *NavItemData) FocusScopeId() ID
func (self *NavItemData) Handle() (result *C.ImGuiNavItemData, fin func())

Handle returns C version of NavItemData and its finalizer func.

func (self *NavItemData) ID() ID
func (self *NavItemData) InternalClear()
func (self *NavItemData) ItemFlags() ItemFlags
func (self *NavItemData) RectRel() Rect
func (self *NavItemData) SelectionUserData() SelectionUserData
func (self NavItemData) SetDistAxial(v float32)
func (self NavItemData) SetDistBox(v float32)
func (self NavItemData) SetDistCenter(v float32)
func (self NavItemData) SetFocusScopeId(v ID)
func (self NavItemData) SetID(v ID)
func (self NavItemData) SetItemFlags(v ItemFlags)
func (self NavItemData) SetRectRel(v Rect)
func (self NavItemData) SetSelectionUserData(v SelectionUserData)
func (self NavItemData) SetWindow(v *Window)
func (self *NavItemData) Window() *Window
type NavLayer int32

original name: ImGuiNavLayer

const (
	// Main scrolling layer
	NavLayerMain NavLayer = 0
	// Menu layer (access with Alt)
	NavLayerMenu  NavLayer = 1
	NavLayerCOUNT NavLayer = 2
)
type NavMoveFlags int32

original name: ImGuiNavMoveFlags_

const (
	NavMoveFlagsNone NavMoveFlags = 0
	// On failed request, restart from opposite side
	NavMoveFlagsLoopX NavMoveFlags = 1
	NavMoveFlagsLoopY NavMoveFlags = 2
	// On failed request, request from opposite side one line down (when NavDir==right) or one line up (when NavDir==left)
	NavMoveFlagsWrapX NavMoveFlags = 4
	// This is not super useful but provided for completeness
	NavMoveFlagsWrapY    NavMoveFlags = 8
	NavMoveFlagsWrapMask NavMoveFlags = 15
	// Allow scoring and considering the current NavId as a move target candidate. This is used when the move source is offset (e.g. pressing PageDown actually needs to send a Up move request, if we are pressing PageDown from the bottom-most item we need to stay in place)
	NavMoveFlagsAllowCurrentNavId NavMoveFlags = 16
	// Store alternate result in NavMoveResultLocalVisible that only comprise elements that are already fully visible (used by PageUp/PageDown)
	NavMoveFlagsAlsoScoreVisibleSet NavMoveFlags = 32
	// Force scrolling to min/max (used by Home/End) // FIXME-NAV: Aim to remove or reword, probably unnecessary
	NavMoveFlagsScrollToEdgeY NavMoveFlags = 64
	NavMoveFlagsForwarded     NavMoveFlags = 128
	// Dummy scoring for debug purpose, don't apply result
	NavMoveFlagsDebugNoResult NavMoveFlags = 256
	// Requests from focus API can land/focus/activate items even if they are marked with _NoTabStop (see NavProcessItemForTabbingRequest() for details)
	NavMoveFlagsFocusApi NavMoveFlags = 512
	// == Focus + Activate if item is Inputable + DontChangeNavHighlight
	NavMoveFlagsIsTabbing NavMoveFlags = 1024
	// Identify a PageDown/PageUp request.
	NavMoveFlagsIsPageMove NavMoveFlags = 2048
	// Activate/select target item.
	NavMoveFlagsActivate NavMoveFlags = 4096
	// Don't trigger selection by not setting g.NavJustMovedTo
	NavMoveFlagsNoSelect NavMoveFlags = 8192
	// Do not alter the nav cursor visible state
	NavMoveFlagsNoSetNavCursorVisible NavMoveFlags = 16384
	// (Experimental) Do not clear active id when applying move result
	NavMoveFlagsNoClearActiveId NavMoveFlags = 32768
)
type NavRenderCursorFlags int32

original name: ImGuiNavRenderCursorFlags_

const (
	NavRenderCursorFlagsNone NavRenderCursorFlags = 0
	// Compact highlight, no padding/distance from focused item
	NavRenderCursorFlagsCompact NavRenderCursorFlags = 2
	// Draw rectangular highlight if (g.NavId == id) even when g.NavCursorVisible == false, aka even when using the mouse.
	NavRenderCursorFlagsAlwaysDraw NavRenderCursorFlags = 4
	NavRenderCursorFlagsNoRounding NavRenderCursorFlags = 8
)

type NextItemData

type NextItemData struct {
	CData *C.ImGuiNextItemData
}

func InternalNewNextItemData

func InternalNewNextItemData() *NextItemData

func NewEmptyNextItemData added in v1.2.0

func NewEmptyNextItemData() *NextItemData

NewEmptyNextItemData creates NextItemData with its 0 value.

func NewNextItemDataFromC

func NewNextItemDataFromC[SRC any](cvalue SRC) *NextItemData

NewNextItemDataFromC creates NextItemData from its C pointer. SRC ~= *C.ImGuiNextItemData

func (NextItemData) C

func (self NextItemData) C() (C.ImGuiNextItemData, func())

C is like Handle but returns plain type instead of pointer.

func (*NextItemData) Destroy

func (self *NextItemData) Destroy()

func (*NextItemData) FocusScopeId

func (self *NextItemData) FocusScopeId() ID

func (*NextItemData) Handle

func (self *NextItemData) Handle() (result *C.ImGuiNextItemData, fin func())

Handle returns C version of NextItemData and its finalizer func.

func (*NextItemData) HasFlags added in v1.1.0

func (self *NextItemData) HasFlags() NextItemDataFlags

func (*NextItemData) InternalClearFlags

func (self *NextItemData) InternalClearFlags()

Also cleared manually by ItemAdd()!

func (*NextItemData) ItemFlags

func (self *NextItemData) ItemFlags() ItemFlags

func (*NextItemData) OpenCond

func (self *NextItemData) OpenCond() byte

func (*NextItemData) OpenVal

func (self *NextItemData) OpenVal() bool

func (*NextItemData) RefVal

func (self *NextItemData) RefVal() DataTypeStorage

func (*NextItemData) SelectionUserData

func (self *NextItemData) SelectionUserData() SelectionUserData

func (NextItemData) SetFocusScopeId

func (self NextItemData) SetFocusScopeId(v ID)

func (NextItemData) SetHasFlags added in v1.1.0

func (self NextItemData) SetHasFlags(v NextItemDataFlags)

func (NextItemData) SetItemFlags

func (self NextItemData) SetItemFlags(v ItemFlags)

func (NextItemData) SetOpenCond

func (self NextItemData) SetOpenCond(v byte)

func (NextItemData) SetOpenVal

func (self NextItemData) SetOpenVal(v bool)

func (NextItemData) SetRefVal

func (self NextItemData) SetRefVal(v DataTypeStorage)

func (NextItemData) SetSelectionUserData

func (self NextItemData) SetSelectionUserData(v SelectionUserData)

func (NextItemData) SetShortcut

func (self NextItemData) SetShortcut(v KeyChord)

func (NextItemData) SetShortcutFlags

func (self NextItemData) SetShortcutFlags(v InputFlags)

func (NextItemData) SetStorageId

func (self NextItemData) SetStorageId(v ID)

func (NextItemData) SetWidth

func (self NextItemData) SetWidth(v float32)

func (*NextItemData) Shortcut

func (self *NextItemData) Shortcut() KeyChord

func (*NextItemData) ShortcutFlags

func (self *NextItemData) ShortcutFlags() InputFlags

func (*NextItemData) StorageId

func (self *NextItemData) StorageId() ID

func (*NextItemData) Width

func (self *NextItemData) Width() float32

type NextItemDataFlags

type NextItemDataFlags int32

original name: ImGuiNextItemDataFlags_

const (
	NextItemDataFlagsNone         NextItemDataFlags = 0
	NextItemDataFlagsHasWidth     NextItemDataFlags = 1
	NextItemDataFlagsHasOpen      NextItemDataFlags = 2
	NextItemDataFlagsHasShortcut  NextItemDataFlags = 4
	NextItemDataFlagsHasRefVal    NextItemDataFlags = 8
	NextItemDataFlagsHasStorageID NextItemDataFlags = 16
)

type NextWindowData

type NextWindowData struct {
	CData *C.ImGuiNextWindowData
}

func InternalNewNextWindowData

func InternalNewNextWindowData() *NextWindowData

func NewEmptyNextWindowData added in v1.2.0

func NewEmptyNextWindowData() *NextWindowData

NewEmptyNextWindowData creates NextWindowData with its 0 value.

func NewNextWindowDataFromC

func NewNextWindowDataFromC[SRC any](cvalue SRC) *NextWindowData

NewNextWindowDataFromC creates NextWindowData from its C pointer. SRC ~= *C.ImGuiNextWindowData

func (*NextWindowData) BgAlphaVal

func (self *NextWindowData) BgAlphaVal() float32

func (NextWindowData) C

func (self NextWindowData) C() (C.ImGuiNextWindowData, func())

C is like Handle but returns plain type instead of pointer.

func (*NextWindowData) ChildFlags

func (self *NextWindowData) ChildFlags() ChildFlags

func (*NextWindowData) CollapsedCond

func (self *NextWindowData) CollapsedCond() Cond

func (*NextWindowData) CollapsedVal

func (self *NextWindowData) CollapsedVal() bool

func (*NextWindowData) ContentSizeVal

func (self *NextWindowData) ContentSizeVal() Vec2

func (*NextWindowData) Destroy

func (self *NextWindowData) Destroy()

func (*NextWindowData) DockCond

func (self *NextWindowData) DockCond() Cond

func (*NextWindowData) DockId

func (self *NextWindowData) DockId() ID

func (*NextWindowData) Flags

func (self *NextWindowData) Flags() NextWindowDataFlags

func (*NextWindowData) Handle

func (self *NextWindowData) Handle() (result *C.ImGuiNextWindowData, fin func())

Handle returns C version of NextWindowData and its finalizer func.

func (*NextWindowData) InternalClearFlags

func (self *NextWindowData) InternalClearFlags()

func (*NextWindowData) MenuBarOffsetMinVal

func (self *NextWindowData) MenuBarOffsetMinVal() Vec2

func (*NextWindowData) PosCond

func (self *NextWindowData) PosCond() Cond

func (*NextWindowData) PosPivotVal

func (self *NextWindowData) PosPivotVal() Vec2

func (*NextWindowData) PosUndock

func (self *NextWindowData) PosUndock() bool

func (*NextWindowData) PosVal

func (self *NextWindowData) PosVal() Vec2

func (*NextWindowData) RefreshFlagsVal

func (self *NextWindowData) RefreshFlagsVal() WindowRefreshFlags

func (*NextWindowData) ScrollVal

func (self *NextWindowData) ScrollVal() Vec2

func (NextWindowData) SetBgAlphaVal

func (self NextWindowData) SetBgAlphaVal(v float32)

func (NextWindowData) SetChildFlags

func (self NextWindowData) SetChildFlags(v ChildFlags)

func (NextWindowData) SetCollapsedCond

func (self NextWindowData) SetCollapsedCond(v Cond)

func (NextWindowData) SetCollapsedVal

func (self NextWindowData) SetCollapsedVal(v bool)

func (NextWindowData) SetContentSizeVal

func (self NextWindowData) SetContentSizeVal(v Vec2)

func (NextWindowData) SetDockCond

func (self NextWindowData) SetDockCond(v Cond)

func (NextWindowData) SetDockId

func (self NextWindowData) SetDockId(v ID)

func (NextWindowData) SetFlags

func (self NextWindowData) SetFlags(v NextWindowDataFlags)

func (NextWindowData) SetMenuBarOffsetMinVal

func (self NextWindowData) SetMenuBarOffsetMinVal(v Vec2)

func (NextWindowData) SetPosCond

func (self NextWindowData) SetPosCond(v Cond)

func (NextWindowData) SetPosPivotVal

func (self NextWindowData) SetPosPivotVal(v Vec2)

func (NextWindowData) SetPosUndock

func (self NextWindowData) SetPosUndock(v bool)

func (NextWindowData) SetPosVal

func (self NextWindowData) SetPosVal(v Vec2)

func (NextWindowData) SetRefreshFlagsVal

func (self NextWindowData) SetRefreshFlagsVal(v WindowRefreshFlags)

func (NextWindowData) SetScrollVal

func (self NextWindowData) SetScrollVal(v Vec2)

func (NextWindowData) SetSizeCallback added in v1.2.0

func (self NextWindowData) SetSizeCallback(v SizeCallback)

func (NextWindowData) SetSizeCallbackUserData

func (self NextWindowData) SetSizeCallbackUserData(v uintptr)

func (NextWindowData) SetSizeCond

func (self NextWindowData) SetSizeCond(v Cond)

func (NextWindowData) SetSizeConstraintRect

func (self NextWindowData) SetSizeConstraintRect(v Rect)

func (NextWindowData) SetSizeVal

func (self NextWindowData) SetSizeVal(v Vec2)

func (NextWindowData) SetViewportId

func (self NextWindowData) SetViewportId(v ID)

func (NextWindowData) SetWindowClass

func (self NextWindowData) SetWindowClass(v WindowClass)

func (*NextWindowData) SizeCallback added in v1.2.0

func (self *NextWindowData) SizeCallback() SizeCallback

func (*NextWindowData) SizeCallbackUserData

func (self *NextWindowData) SizeCallbackUserData() uintptr

func (*NextWindowData) SizeCond

func (self *NextWindowData) SizeCond() Cond

func (*NextWindowData) SizeConstraintRect

func (self *NextWindowData) SizeConstraintRect() Rect

func (*NextWindowData) SizeVal

func (self *NextWindowData) SizeVal() Vec2

func (*NextWindowData) ViewportId

func (self *NextWindowData) ViewportId() ID

func (*NextWindowData) WindowClass

func (self *NextWindowData) WindowClass() WindowClass

type NextWindowDataFlags

type NextWindowDataFlags int32

original name: ImGuiNextWindowDataFlags_

const (
	NextWindowDataFlagsNone              NextWindowDataFlags = 0
	NextWindowDataFlagsHasPos            NextWindowDataFlags = 1
	NextWindowDataFlagsHasSize           NextWindowDataFlags = 2
	NextWindowDataFlagsHasContentSize    NextWindowDataFlags = 4
	NextWindowDataFlagsHasCollapsed      NextWindowDataFlags = 8
	NextWindowDataFlagsHasSizeConstraint NextWindowDataFlags = 16
	NextWindowDataFlagsHasFocus          NextWindowDataFlags = 32
	NextWindowDataFlagsHasBgAlpha        NextWindowDataFlags = 64
	NextWindowDataFlagsHasScroll         NextWindowDataFlags = 128
	NextWindowDataFlagsHasChildFlags     NextWindowDataFlags = 256
	NextWindowDataFlagsHasRefreshPolicy  NextWindowDataFlags = 512
	NextWindowDataFlagsHasViewport       NextWindowDataFlags = 1024
	NextWindowDataFlagsHasDock           NextWindowDataFlags = 2048
	NextWindowDataFlagsHasWindowClass    NextWindowDataFlags = 4096
)

type OldColumnData

type OldColumnData struct {
	CData *C.ImGuiOldColumnData
}

func InternalNewOldColumnData

func InternalNewOldColumnData() *OldColumnData

func NewEmptyOldColumnData added in v1.2.0

func NewEmptyOldColumnData() *OldColumnData

NewEmptyOldColumnData creates OldColumnData with its 0 value.

func NewOldColumnDataFromC

func NewOldColumnDataFromC[SRC any](cvalue SRC) *OldColumnData

NewOldColumnDataFromC creates OldColumnData from its C pointer. SRC ~= *C.ImGuiOldColumnData

func (OldColumnData) C

func (self OldColumnData) C() (C.ImGuiOldColumnData, func())

C is like Handle but returns plain type instead of pointer.

func (*OldColumnData) ClipRect

func (self *OldColumnData) ClipRect() Rect

func (*OldColumnData) Destroy

func (self *OldColumnData) Destroy()

func (*OldColumnData) Flags

func (self *OldColumnData) Flags() OldColumnFlags

func (*OldColumnData) Handle

func (self *OldColumnData) Handle() (result *C.ImGuiOldColumnData, fin func())

Handle returns C version of OldColumnData and its finalizer func.

func (*OldColumnData) OffsetNorm

func (self *OldColumnData) OffsetNorm() float32

func (*OldColumnData) OffsetNormBeforeResize

func (self *OldColumnData) OffsetNormBeforeResize() float32

func (OldColumnData) SetClipRect

func (self OldColumnData) SetClipRect(v Rect)

func (OldColumnData) SetFlags

func (self OldColumnData) SetFlags(v OldColumnFlags)

func (OldColumnData) SetOffsetNorm

func (self OldColumnData) SetOffsetNorm(v float32)

func (OldColumnData) SetOffsetNormBeforeResize

func (self OldColumnData) SetOffsetNormBeforeResize(v float32)

type OldColumnFlags

type OldColumnFlags int32

Flags for internal's BeginColumns(). This is an obsolete API. Prefer using BeginTable() nowadays! original name: ImGuiOldColumnFlags_

const (
	OldColumnFlagsNone OldColumnFlags = 0
	// Disable column dividers
	OldColumnFlagsNoBorder OldColumnFlags = 1
	// Disable resizing columns when clicking on the dividers
	OldColumnFlagsNoResize OldColumnFlags = 2
	// Disable column width preservation when adjusting columns
	OldColumnFlagsNoPreserveWidths OldColumnFlags = 4
	// Disable forcing columns to fit within window
	OldColumnFlagsNoForceWithinWindow OldColumnFlags = 8
	// Restore pre-1.51 behavior of extending the parent window contents size but _without affecting the columns width at all_. Will eventually remove.
	OldColumnFlagsGrowParentContentsSize OldColumnFlags = 16
)

type OldColumns

type OldColumns struct {
	CData *C.ImGuiOldColumns
}

func InternalFindOrCreateColumns

func InternalFindOrCreateColumns(window *Window, id ID) *OldColumns

func InternalNewOldColumns

func InternalNewOldColumns() *OldColumns

func NewEmptyOldColumns added in v1.2.0

func NewEmptyOldColumns() *OldColumns

NewEmptyOldColumns creates OldColumns with its 0 value.

func NewOldColumnsFromC

func NewOldColumnsFromC[SRC any](cvalue SRC) *OldColumns

NewOldColumnsFromC creates OldColumns from its C pointer. SRC ~= *C.ImGuiOldColumns

func (OldColumns) C

func (self OldColumns) C() (C.ImGuiOldColumns, func())

C is like Handle but returns plain type instead of pointer.

func (*OldColumns) Columns

func (self *OldColumns) Columns() vectors.Vector[OldColumnData]

func (*OldColumns) Count

func (self *OldColumns) Count() int32

func (*OldColumns) Current

func (self *OldColumns) Current() int32

func (*OldColumns) Destroy

func (self *OldColumns) Destroy()

func (*OldColumns) Flags

func (self *OldColumns) Flags() OldColumnFlags

func (*OldColumns) Handle

func (self *OldColumns) Handle() (result *C.ImGuiOldColumns, fin func())

Handle returns C version of OldColumns and its finalizer func.

func (*OldColumns) HostBackupClipRect

func (self *OldColumns) HostBackupClipRect() Rect

func (*OldColumns) HostBackupParentWorkRect

func (self *OldColumns) HostBackupParentWorkRect() Rect

func (*OldColumns) HostCursorMaxPosX

func (self *OldColumns) HostCursorMaxPosX() float32

func (*OldColumns) HostCursorPosY

func (self *OldColumns) HostCursorPosY() float32

func (*OldColumns) HostInitialClipRect

func (self *OldColumns) HostInitialClipRect() Rect

func (*OldColumns) ID

func (self *OldColumns) ID() ID

func (*OldColumns) IsBeingResized

func (self *OldColumns) IsBeingResized() bool

func (*OldColumns) IsFirstFrame

func (self *OldColumns) IsFirstFrame() bool

func (*OldColumns) LineMaxY

func (self *OldColumns) LineMaxY() float32

func (*OldColumns) LineMinY

func (self *OldColumns) LineMinY() float32

func (*OldColumns) OffMaxX

func (self *OldColumns) OffMaxX() float32

func (*OldColumns) OffMinX

func (self *OldColumns) OffMinX() float32

func (OldColumns) SetColumns

func (self OldColumns) SetColumns(v vectors.Vector[OldColumnData])

func (OldColumns) SetCount

func (self OldColumns) SetCount(v int32)

func (OldColumns) SetCurrent

func (self OldColumns) SetCurrent(v int32)

func (OldColumns) SetFlags

func (self OldColumns) SetFlags(v OldColumnFlags)

func (OldColumns) SetHostBackupClipRect

func (self OldColumns) SetHostBackupClipRect(v Rect)

func (OldColumns) SetHostBackupParentWorkRect

func (self OldColumns) SetHostBackupParentWorkRect(v Rect)

func (OldColumns) SetHostCursorMaxPosX

func (self OldColumns) SetHostCursorMaxPosX(v float32)

func (OldColumns) SetHostCursorPosY

func (self OldColumns) SetHostCursorPosY(v float32)

func (OldColumns) SetHostInitialClipRect

func (self OldColumns) SetHostInitialClipRect(v Rect)

func (OldColumns) SetID

func (self OldColumns) SetID(v ID)

func (OldColumns) SetIsBeingResized

func (self OldColumns) SetIsBeingResized(v bool)

func (OldColumns) SetIsFirstFrame

func (self OldColumns) SetIsFirstFrame(v bool)

func (OldColumns) SetLineMaxY

func (self OldColumns) SetLineMaxY(v float32)

func (OldColumns) SetLineMinY

func (self OldColumns) SetLineMinY(v float32)

func (OldColumns) SetOffMaxX

func (self OldColumns) SetOffMaxX(v float32)

func (OldColumns) SetOffMinX

func (self OldColumns) SetOffMinX(v float32)

func (OldColumns) SetSplitter

func (self OldColumns) SetSplitter(v DrawListSplitter)

func (*OldColumns) Splitter

func (self *OldColumns) Splitter() DrawListSplitter

type OnceUponAFrame

type OnceUponAFrame struct {
	CData *C.ImGuiOnceUponAFrame
}

func NewEmptyOnceUponAFrame added in v1.2.0

func NewEmptyOnceUponAFrame() *OnceUponAFrame

NewEmptyOnceUponAFrame creates OnceUponAFrame with its 0 value.

func NewOnceUponAFrame

func NewOnceUponAFrame() *OnceUponAFrame

func NewOnceUponAFrameFromC

func NewOnceUponAFrameFromC[SRC any](cvalue SRC) *OnceUponAFrame

NewOnceUponAFrameFromC creates OnceUponAFrame from its C pointer. SRC ~= *C.ImGuiOnceUponAFrame

func (OnceUponAFrame) C

func (self OnceUponAFrame) C() (C.ImGuiOnceUponAFrame, func())

C is like Handle but returns plain type instead of pointer.

func (*OnceUponAFrame) Destroy

func (self *OnceUponAFrame) Destroy()

func (*OnceUponAFrame) Handle

func (self *OnceUponAFrame) Handle() (result *C.ImGuiOnceUponAFrame, fin func())

Handle returns C version of OnceUponAFrame and its finalizer func.

func (*OnceUponAFrame) RefFrame

func (self *OnceUponAFrame) RefFrame() int32

func (OnceUponAFrame) SetRefFrame

func (self OnceUponAFrame) SetRefFrame(v int32)

type Payload

type Payload struct {
	CData *C.ImGuiPayload
}

func AcceptDragDropPayload

func AcceptDragDropPayload(typeArg string) *Payload

func AcceptDragDropPayloadV

func AcceptDragDropPayloadV(typeArg string, flags DragDropFlags) *Payload

accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released. AcceptDragDropPayloadV parameter default value hint: flags: 0

func DragDropPayload

func DragDropPayload() *Payload

peek directly into the current payload from anywhere. returns NULL when drag and drop is finished or inactive. use ImGuiPayload::IsDataType() to test for the payload type.

func NewEmptyPayload added in v1.2.0

func NewEmptyPayload() *Payload

NewEmptyPayload creates Payload with its 0 value.

func NewPayload

func NewPayload() *Payload

func NewPayloadFromC

func NewPayloadFromC[SRC any](cvalue SRC) *Payload

NewPayloadFromC creates Payload from its C pointer. SRC ~= *C.ImGuiPayload

func (Payload) C

func (self Payload) C() (C.ImGuiPayload, func())

C is like Handle but returns plain type instead of pointer.

func (*Payload) Clear

func (self *Payload) Clear()

func (*Payload) Data

func (self *Payload) Data() uintptr

func (*Payload) DataFrameCount

func (self *Payload) DataFrameCount() int32

func (*Payload) DataSize

func (self *Payload) DataSize() int32

func (*Payload) DataType

func (self *Payload) DataType() [33]rune

func (*Payload) Delivery

func (self *Payload) Delivery() bool

func (*Payload) Destroy

func (self *Payload) Destroy()

func (*Payload) Handle

func (self *Payload) Handle() (result *C.ImGuiPayload, fin func())

Handle returns C version of Payload and its finalizer func.

func (*Payload) IsDataType

func (self *Payload) IsDataType(typeArg string) bool

func (*Payload) IsDelivery

func (self *Payload) IsDelivery() bool

func (*Payload) IsPreview

func (self *Payload) IsPreview() bool

func (*Payload) Preview

func (self *Payload) Preview() bool

func (Payload) SetData

func (self Payload) SetData(v uintptr)

func (Payload) SetDataFrameCount

func (self Payload) SetDataFrameCount(v int32)

func (Payload) SetDataSize

func (self Payload) SetDataSize(v int32)

func (Payload) SetDataType

func (self Payload) SetDataType(v *[33]rune)

func (Payload) SetDelivery

func (self Payload) SetDelivery(v bool)

func (Payload) SetPreview

func (self Payload) SetPreview(v bool)

func (Payload) SetSourceId

func (self Payload) SetSourceId(v ID)

func (Payload) SetSourceParentId

func (self Payload) SetSourceParentId(v ID)

func (*Payload) SourceId

func (self *Payload) SourceId() ID

func (*Payload) SourceParentId

func (self *Payload) SourceParentId() ID

type PlatformIO

type PlatformIO struct {
	CData *C.ImGuiPlatformIO
}

func CurrentPlatformIO

func CurrentPlatformIO() *PlatformIO

access the ImGuiPlatformIO structure (mostly hooks/functions to connect to platform/renderer and OS Clipboard, IME etc.)

func NewEmptyPlatformIO added in v1.2.0

func NewEmptyPlatformIO() *PlatformIO

NewEmptyPlatformIO creates PlatformIO with its 0 value.

func NewPlatformIO

func NewPlatformIO() *PlatformIO

func NewPlatformIOFromC

func NewPlatformIOFromC[SRC any](cvalue SRC) *PlatformIO

NewPlatformIOFromC creates PlatformIO from its C pointer. SRC ~= *C.ImGuiPlatformIO

func (PlatformIO) C

func (self PlatformIO) C() (C.ImGuiPlatformIO, func())

C is like Handle but returns plain type instead of pointer.

func (*PlatformIO) Destroy

func (self *PlatformIO) Destroy()

func (*PlatformIO) Handle

func (self *PlatformIO) Handle() (result *C.ImGuiPlatformIO, fin func())

Handle returns C version of PlatformIO and its finalizer func.

func (*PlatformIO) Monitors

func (self *PlatformIO) Monitors() vectors.Vector[PlatformMonitor]

func (*PlatformIO) PlatformClipboardUserData

func (self *PlatformIO) PlatformClipboardUserData() uintptr

func (*PlatformIO) PlatformImeUserData

func (self *PlatformIO) PlatformImeUserData() uintptr

func (*PlatformIO) PlatformLocaleDecimalPoint

func (self *PlatformIO) PlatformLocaleDecimalPoint() Wchar

func (*PlatformIO) PlatformOpenInShellUserData

func (self *PlatformIO) PlatformOpenInShellUserData() uintptr

func (*PlatformIO) RendererRenderState added in v1.1.0

func (self *PlatformIO) RendererRenderState() uintptr

func (PlatformIO) SetClipboardHandler

func (io PlatformIO) SetClipboardHandler(handler ClipboardHandler)

func (PlatformIO) SetMonitors

func (self PlatformIO) SetMonitors(v vectors.Vector[PlatformMonitor])

func (PlatformIO) SetPlatformClipboardUserData

func (self PlatformIO) SetPlatformClipboardUserData(v uintptr)

func (PlatformIO) SetPlatformImeUserData

func (self PlatformIO) SetPlatformImeUserData(v uintptr)

func (PlatformIO) SetPlatformLocaleDecimalPoint

func (self PlatformIO) SetPlatformLocaleDecimalPoint(v Wchar)

func (PlatformIO) SetPlatformOpenInShellUserData

func (self PlatformIO) SetPlatformOpenInShellUserData(v uintptr)

func (PlatformIO) SetRendererRenderState added in v1.1.0

func (self PlatformIO) SetRendererRenderState(v uintptr)

type PlatformImeData

type PlatformImeData struct {
	CData *C.ImGuiPlatformImeData
}

func NewEmptyPlatformImeData added in v1.2.0

func NewEmptyPlatformImeData() *PlatformImeData

NewEmptyPlatformImeData creates PlatformImeData with its 0 value.

func NewPlatformImeData

func NewPlatformImeData() *PlatformImeData

func NewPlatformImeDataFromC

func NewPlatformImeDataFromC[SRC any](cvalue SRC) *PlatformImeData

NewPlatformImeDataFromC creates PlatformImeData from its C pointer. SRC ~= *C.ImGuiPlatformImeData

func (PlatformImeData) C

func (self PlatformImeData) C() (C.ImGuiPlatformImeData, func())

C is like Handle but returns plain type instead of pointer.

func (*PlatformImeData) Destroy

func (self *PlatformImeData) Destroy()

func (*PlatformImeData) Handle

func (self *PlatformImeData) Handle() (result *C.ImGuiPlatformImeData, fin func())

Handle returns C version of PlatformImeData and its finalizer func.

func (*PlatformImeData) InputLineHeight

func (self *PlatformImeData) InputLineHeight() float32

func (*PlatformImeData) InputPos

func (self *PlatformImeData) InputPos() Vec2

func (PlatformImeData) SetInputLineHeight

func (self PlatformImeData) SetInputLineHeight(v float32)

func (PlatformImeData) SetInputPos

func (self PlatformImeData) SetInputPos(v Vec2)

func (PlatformImeData) SetWantVisible

func (self PlatformImeData) SetWantVisible(v bool)

func (*PlatformImeData) WantVisible

func (self *PlatformImeData) WantVisible() bool

type PlatformMonitor

type PlatformMonitor struct {
	CData *C.ImGuiPlatformMonitor
}

func InternalViewportPlatformMonitor

func InternalViewportPlatformMonitor(viewport *Viewport) *PlatformMonitor

func NewEmptyPlatformMonitor added in v1.2.0

func NewEmptyPlatformMonitor() *PlatformMonitor

NewEmptyPlatformMonitor creates PlatformMonitor with its 0 value.

func NewPlatformMonitor

func NewPlatformMonitor() *PlatformMonitor

func NewPlatformMonitorFromC

func NewPlatformMonitorFromC[SRC any](cvalue SRC) *PlatformMonitor

NewPlatformMonitorFromC creates PlatformMonitor from its C pointer. SRC ~= *C.ImGuiPlatformMonitor

func (PlatformMonitor) C

func (self PlatformMonitor) C() (C.ImGuiPlatformMonitor, func())

C is like Handle but returns plain type instead of pointer.

func (*PlatformMonitor) Destroy

func (self *PlatformMonitor) Destroy()

func (*PlatformMonitor) DpiScale

func (self *PlatformMonitor) DpiScale() float32

func (*PlatformMonitor) Handle

func (self *PlatformMonitor) Handle() (result *C.ImGuiPlatformMonitor, fin func())

Handle returns C version of PlatformMonitor and its finalizer func.

func (*PlatformMonitor) MainPos

func (self *PlatformMonitor) MainPos() Vec2

func (*PlatformMonitor) MainSize

func (self *PlatformMonitor) MainSize() Vec2

func (*PlatformMonitor) PlatformHandle

func (self *PlatformMonitor) PlatformHandle() uintptr

func (PlatformMonitor) SetDpiScale

func (self PlatformMonitor) SetDpiScale(v float32)

func (PlatformMonitor) SetMainPos

func (self PlatformMonitor) SetMainPos(v Vec2)

func (PlatformMonitor) SetMainSize

func (self PlatformMonitor) SetMainSize(v Vec2)

func (PlatformMonitor) SetPlatformHandle

func (self PlatformMonitor) SetPlatformHandle(v uintptr)

func (PlatformMonitor) SetWorkPos

func (self PlatformMonitor) SetWorkPos(v Vec2)

func (PlatformMonitor) SetWorkSize

func (self PlatformMonitor) SetWorkSize(v Vec2)

func (*PlatformMonitor) WorkPos

func (self *PlatformMonitor) WorkPos() Vec2

func (*PlatformMonitor) WorkSize

func (self *PlatformMonitor) WorkSize() Vec2

type PlotType

type PlotType int32

original name: ImGuiPlotType

const (
	PlotTypeLines     PlotType = 0
	PlotTypeHistogram PlotType = 1
)

type PoolIdx

type PoolIdx int32

func NewPoolIdxFromC

func NewPoolIdxFromC[SRC any](cvalue SRC) *PoolIdx

NewPoolIdxFromC creates PoolIdx from its C pointer. SRC ~= *C.ImPoolIdx

func (PoolIdx) C

func (self PoolIdx) C() (C.ImPoolIdx, func())

C is like Handle but returns plain type instead of pointer.

func (*PoolIdx) Handle

func (selfSrc *PoolIdx) Handle() (result *C.ImPoolIdx, fin func())

Handle returns C version of PoolIdx and its finalizer func.

type PopupData

type PopupData struct {
	CData *C.ImGuiPopupData
}

func InternalNewPopupData

func InternalNewPopupData() *PopupData

func NewEmptyPopupData added in v1.2.0

func NewEmptyPopupData() *PopupData

NewEmptyPopupData creates PopupData with its 0 value.

func NewPopupDataFromC

func NewPopupDataFromC[SRC any](cvalue SRC) *PopupData

NewPopupDataFromC creates PopupData from its C pointer. SRC ~= *C.ImGuiPopupData

func (PopupData) C

func (self PopupData) C() (C.ImGuiPopupData, func())

C is like Handle but returns plain type instead of pointer.

func (*PopupData) Destroy

func (self *PopupData) Destroy()

func (*PopupData) Handle

func (self *PopupData) Handle() (result *C.ImGuiPopupData, fin func())

Handle returns C version of PopupData and its finalizer func.

func (*PopupData) OpenFrameCount

func (self *PopupData) OpenFrameCount() int32

func (*PopupData) OpenMousePos

func (self *PopupData) OpenMousePos() Vec2

func (*PopupData) OpenParentId

func (self *PopupData) OpenParentId() ID

func (*PopupData) OpenPopupPos

func (self *PopupData) OpenPopupPos() Vec2

func (*PopupData) ParentNavLayer

func (self *PopupData) ParentNavLayer() int32

func (*PopupData) PopupId

func (self *PopupData) PopupId() ID

func (*PopupData) RestoreNavWindow

func (self *PopupData) RestoreNavWindow() *Window

func (PopupData) SetOpenFrameCount

func (self PopupData) SetOpenFrameCount(v int32)

func (PopupData) SetOpenMousePos

func (self PopupData) SetOpenMousePos(v Vec2)

func (PopupData) SetOpenParentId

func (self PopupData) SetOpenParentId(v ID)

func (PopupData) SetOpenPopupPos

func (self PopupData) SetOpenPopupPos(v Vec2)

func (PopupData) SetParentNavLayer

func (self PopupData) SetParentNavLayer(v int32)

func (PopupData) SetPopupId

func (self PopupData) SetPopupId(v ID)

func (PopupData) SetRestoreNavWindow

func (self PopupData) SetRestoreNavWindow(v *Window)

func (PopupData) SetWindow

func (self PopupData) SetWindow(v *Window)

func (*PopupData) Window

func (self *PopupData) Window() *Window

type PopupFlags

type PopupFlags int32

Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions.

  • To be backward compatible with older API which took an 'int mouse_button = 1' argument instead of 'ImGuiPopupFlags flags', we need to treat small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags. It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags.
  • For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0. IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly.
  • Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later).

original name: ImGuiPopupFlags_

const (
	PopupFlagsNone PopupFlags = 0
	// For BeginPopupContext*(): open on Left Mouse release. Guaranteed to always be == 0 (same as ImGuiMouseButton_Left)
	PopupFlagsMouseButtonLeft PopupFlags = 0
	// For BeginPopupContext*(): open on Right Mouse release. Guaranteed to always be == 1 (same as ImGuiMouseButton_Right)
	PopupFlagsMouseButtonRight PopupFlags = 1
	// For BeginPopupContext*(): open on Middle Mouse release. Guaranteed to always be == 2 (same as ImGuiMouseButton_Middle)
	PopupFlagsMouseButtonMiddle  PopupFlags = 2
	PopupFlagsMouseButtonMask    PopupFlags = 31
	PopupFlagsMouseButtonDefault PopupFlags = 1
	// For OpenPopup*(), BeginPopupContext*(): don't reopen same popup if already open (won't reposition, won't reinitialize navigation)
	PopupFlagsNoReopen PopupFlags = 32
	// For OpenPopup*(), BeginPopupContext*(): don't open if there's already a popup at the same level of the popup stack
	PopupFlagsNoOpenOverExistingPopup PopupFlags = 128
	// For BeginPopupContextWindow(): don't return true when hovering items, only when hovering empty space
	PopupFlagsNoOpenOverItems PopupFlags = 256
	// For IsPopupOpen(): ignore the ImGuiID parameter and test for any popup.
	PopupFlagsAnyPopupId PopupFlags = 1024
	// For IsPopupOpen(): search/test at any level of the popup stack (default test in the current level)
	PopupFlagsAnyPopupLevel PopupFlags = 2048
	PopupFlagsAnyPopup      PopupFlags = 3072
)

type PopupPositionPolicy

type PopupPositionPolicy int32

original name: ImGuiPopupPositionPolicy

const (
	PopupPositionPolicyDefault  PopupPositionPolicy = 0
	PopupPositionPolicyComboBox PopupPositionPolicy = 1
	PopupPositionPolicyTooltip  PopupPositionPolicy = 2
)

type PtrOrIndex

type PtrOrIndex struct {
	CData *C.ImGuiPtrOrIndex
}

func InternalNewPtrOrIndexInt

func InternalNewPtrOrIndexInt(index int32) *PtrOrIndex

func InternalNewPtrOrIndexPtr

func InternalNewPtrOrIndexPtr(ptr uintptr) *PtrOrIndex

func NewEmptyPtrOrIndex added in v1.2.0

func NewEmptyPtrOrIndex() *PtrOrIndex

NewEmptyPtrOrIndex creates PtrOrIndex with its 0 value.

func NewPtrOrIndexFromC

func NewPtrOrIndexFromC[SRC any](cvalue SRC) *PtrOrIndex

NewPtrOrIndexFromC creates PtrOrIndex from its C pointer. SRC ~= *C.ImGuiPtrOrIndex

func (PtrOrIndex) C

func (self PtrOrIndex) C() (C.ImGuiPtrOrIndex, func())

C is like Handle but returns plain type instead of pointer.

func (*PtrOrIndex) Destroy

func (self *PtrOrIndex) Destroy()

func (*PtrOrIndex) Handle

func (self *PtrOrIndex) Handle() (result *C.ImGuiPtrOrIndex, fin func())

Handle returns C version of PtrOrIndex and its finalizer func.

func (*PtrOrIndex) Index

func (self *PtrOrIndex) Index() int32

func (*PtrOrIndex) Ptr

func (self *PtrOrIndex) Ptr() uintptr

func (PtrOrIndex) SetIndex

func (self PtrOrIndex) SetIndex(v int32)

func (PtrOrIndex) SetPtr

func (self PtrOrIndex) SetPtr(v uintptr)

type Rect

type Rect struct {
	Min Vec2
	Max Vec2
}

func InternalPopupAllowedExtentRect

func InternalPopupAllowedExtentRect(window *Window) Rect

func InternalTableGetCellBgRect

func InternalTableGetCellBgRect(table *Table, column_n int32) Rect

func InternalWindowRectAbsToRel

func InternalWindowRectAbsToRel(window *Window, r Rect) Rect

func InternalWindowRectRelToAbs

func InternalWindowRectRelToAbs(window *Window, r Rect) Rect

func InternalWindowScrollbarRect

func InternalWindowScrollbarRect(window *Window, axis Axis) Rect

func (*Rect) Destroy

func (self *Rect) Destroy()

func (*Rect) FromC

func (i *Rect) FromC(rectAny unsafe.Pointer) *Rect

rectAny is ~C.ImRect and will be force coerted!

func (*Rect) InternalAddRect

func (self *Rect) InternalAddRect(r Rect)

func (*Rect) InternalAddVec2

func (self *Rect) InternalAddVec2(p Vec2)

func (*Rect) InternalArea

func (self *Rect) InternalArea() float32

func (*Rect) InternalBL

func (self *Rect) InternalBL() Vec2

Bottom-left

func (*Rect) InternalBR

func (self *Rect) InternalBR() Vec2

Bottom-right

func (*Rect) InternalCenter

func (self *Rect) InternalCenter() Vec2

func (*Rect) InternalClipWith

func (self *Rect) InternalClipWith(r Rect)

Simple version, may lead to an inverted rectangle, which is fine for Contains/Overlaps test but not for display.

func (*Rect) InternalClipWithFull

func (self *Rect) InternalClipWithFull(r Rect)

Full version, ensure both points are fully clipped.

func (*Rect) InternalContainsRect

func (self *Rect) InternalContainsRect(r Rect) bool

func (*Rect) InternalContainsVec2

func (self *Rect) InternalContainsVec2(p Vec2) bool

func (*Rect) InternalContainsWithPad

func (self *Rect) InternalContainsWithPad(p, pad Vec2) bool

func (*Rect) InternalExpandFloat

func (self *Rect) InternalExpandFloat(amount float32)

func (*Rect) InternalExpandVec2

func (self *Rect) InternalExpandVec2(amount Vec2)

func (*Rect) InternalFloor

func (self *Rect) InternalFloor()

func (*Rect) InternalHeight

func (self *Rect) InternalHeight() float32

func (*Rect) InternalIsInverted

func (self *Rect) InternalIsInverted() bool

func (*Rect) InternalOverlaps

func (self *Rect) InternalOverlaps(r Rect) bool

func (*Rect) InternalSize

func (self *Rect) InternalSize() Vec2

func (*Rect) InternalTL

func (self *Rect) InternalTL() Vec2

Top-left

func (*Rect) InternalTR

func (self *Rect) InternalTR() Vec2

Top-right

func (*Rect) InternalToVec4

func (self *Rect) InternalToVec4() Vec4

func (*Rect) InternalTranslate

func (self *Rect) InternalTranslate(d Vec2)

func (*Rect) InternalTranslateX

func (self *Rect) InternalTranslateX(dx float32)

func (*Rect) InternalTranslateY

func (self *Rect) InternalTranslateY(dy float32)

func (*Rect) InternalWidth

func (self *Rect) InternalWidth() float32

func (*Rect) ToC

func (r *Rect) ToC() C.ImRect

type STBTexteditState

type STBTexteditState struct {
	CData *C.STB_TexteditState
}

func NewSTBTexteditStateFromC

func NewSTBTexteditStateFromC[SRC any](cvalue SRC) *STBTexteditState

NewSTBTexteditStateFromC creates STBTexteditState from its C pointer. SRC ~= *C.STB_TexteditState

func (*STBTexteditState) Handle

func (self *STBTexteditState) Handle() (result *C.STB_TexteditState, fin func())

Handle returns C version of STBTexteditState and its finalizer func.

type ScrollFlags

type ScrollFlags int32

Early work-in-progress API for ScrollToItem() original name: ImGuiScrollFlags_

const (
	ScrollFlagsNone ScrollFlags = 0
	// If item is not visible: scroll as little as possible on X axis to bring item back into view [default for X axis]
	ScrollFlagsKeepVisibleEdgeX ScrollFlags = 1
	// If item is not visible: scroll as little as possible on Y axis to bring item back into view [default for Y axis for windows that are already visible]
	ScrollFlagsKeepVisibleEdgeY ScrollFlags = 2
	// If item is not visible: scroll to make the item centered on X axis [rarely used]
	ScrollFlagsKeepVisibleCenterX ScrollFlags = 4
	// If item is not visible: scroll to make the item centered on Y axis
	ScrollFlagsKeepVisibleCenterY ScrollFlags = 8
	// Always center the result item on X axis [rarely used]
	ScrollFlagsAlwaysCenterX ScrollFlags = 16
	// Always center the result item on Y axis [default for Y axis for appearing window)
	ScrollFlagsAlwaysCenterY ScrollFlags = 32
	// Disable forwarding scrolling to parent window if required to keep item/rect visible (only scroll window the function was applied to).
	ScrollFlagsNoScrollParent ScrollFlags = 64
	ScrollFlagsMaskX          ScrollFlags = 21
	ScrollFlagsMaskY          ScrollFlags = 42
)

type SelectableFlags

type SelectableFlags int32

Flags for ImGui::Selectable() original name: ImGuiSelectableFlags_

const (
	SelectableFlagsNone SelectableFlags = 0
	// Clicking this doesn't close parent popup window (overrides ImGuiItemFlags_AutoClosePopups)
	SelectableFlagsNoAutoClosePopups SelectableFlags = 1
	// Frame will span all columns of its container table (text will still fit in current column)
	SelectableFlagsSpanAllColumns SelectableFlags = 2
	// Generate press events on double clicks too
	SelectableFlagsAllowDoubleClick SelectableFlags = 4
	// Cannot be selected, display grayed out text
	SelectableFlagsDisabled SelectableFlags = 8
	// (WIP) Hit testing to allow subsequent widgets to overlap this one
	SelectableFlagsAllowOverlap SelectableFlags = 16
	// Make the item be displayed as if it is hovered
	SelectableFlagsHighlight SelectableFlags = 32
)

type SelectableFlagsPrivate

type SelectableFlagsPrivate int32

Extend ImGuiSelectableFlags_ original name: ImGuiSelectableFlagsPrivate_

const (
	SelectableFlagsNoHoldingActiveID SelectableFlagsPrivate = 1048576
	// (WIP) Auto-select when moved into. This is not exposed in public API as to handle multi-select and modifiers we will need user to explicitly control focus scope. May be replaced with a BeginSelection() API.
	SelectableFlagsSelectOnNav SelectableFlagsPrivate = 2097152
	// Override button behavior to react on Click (default is Click+Release)
	SelectableFlagsSelectOnClick SelectableFlagsPrivate = 4194304
	// Override button behavior to react on Release (default is Click+Release)
	SelectableFlagsSelectOnRelease SelectableFlagsPrivate = 8388608
	// Span all avail width even if we declared less for layout purpose. FIXME: We may be able to remove this (added in 6251d379, 2bcafc86 for menus)
	SelectableFlagsSpanAvailWidth SelectableFlagsPrivate = 16777216
	// Set Nav/Focus ID on mouse hover (used by MenuItem)
	SelectableFlagsSetNavIdOnHover SelectableFlagsPrivate = 33554432
	// Disable padding each side with ItemSpacing * 0.5f
	SelectableFlagsNoPadWithHalfSpacing SelectableFlagsPrivate = 67108864
	// Don't set key/input owner on the initial click (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!)
	SelectableFlagsNoSetKeyOwner SelectableFlagsPrivate = 134217728
)

type SelectionBasicStorage

type SelectionBasicStorage struct {
	CData *C.ImGuiSelectionBasicStorage
}

func NewEmptySelectionBasicStorage added in v1.2.0

func NewEmptySelectionBasicStorage() *SelectionBasicStorage

NewEmptySelectionBasicStorage creates SelectionBasicStorage with its 0 value.

func NewSelectionBasicStorage

func NewSelectionBasicStorage() *SelectionBasicStorage

func NewSelectionBasicStorageFromC

func NewSelectionBasicStorageFromC[SRC any](cvalue SRC) *SelectionBasicStorage

NewSelectionBasicStorageFromC creates SelectionBasicStorage from its C pointer. SRC ~= *C.ImGuiSelectionBasicStorage

func (*SelectionBasicStorage) ApplyRequests

func (self *SelectionBasicStorage) ApplyRequests(ms_io *MultiSelectIO)

Apply selection requests coming from BeginMultiSelect() and EndMultiSelect() functions. It uses 'items_count' passed to BeginMultiSelect()

func (SelectionBasicStorage) C

C is like Handle but returns plain type instead of pointer.

func (*SelectionBasicStorage) Clear

func (self *SelectionBasicStorage) Clear()

Clear selection

func (*SelectionBasicStorage) Contains

func (self *SelectionBasicStorage) Contains(id ID) bool

Query if an item id is in selection.

func (*SelectionBasicStorage) Destroy

func (self *SelectionBasicStorage) Destroy()

func (*SelectionBasicStorage) Handle

func (self *SelectionBasicStorage) Handle() (result *C.ImGuiSelectionBasicStorage, fin func())

Handle returns C version of SelectionBasicStorage and its finalizer func.

func (*SelectionBasicStorage) PreserveOrder

func (self *SelectionBasicStorage) PreserveOrder() bool

func (*SelectionBasicStorage) SelectionOrder

func (self *SelectionBasicStorage) SelectionOrder() int32

func (*SelectionBasicStorage) SetItemSelected

func (self *SelectionBasicStorage) SetItemSelected(id ID, selected bool)

Add/remove an item from selection (generally done by ApplyRequests() function)

func (SelectionBasicStorage) SetPreserveOrder

func (self SelectionBasicStorage) SetPreserveOrder(v bool)

func (SelectionBasicStorage) SetSelectionOrder

func (self SelectionBasicStorage) SetSelectionOrder(v int32)

func (SelectionBasicStorage) SetSize

func (self SelectionBasicStorage) SetSize(v int32)

func (SelectionBasicStorage) SetStorage

func (self SelectionBasicStorage) SetStorage(v Storage)

func (SelectionBasicStorage) SetUserData

func (self SelectionBasicStorage) SetUserData(v uintptr)

func (*SelectionBasicStorage) Size

func (self *SelectionBasicStorage) Size() int32

func (*SelectionBasicStorage) Storage

func (self *SelectionBasicStorage) Storage() Storage

func (*SelectionBasicStorage) StorageIdFromIndex

func (self *SelectionBasicStorage) StorageIdFromIndex(idx int32) ID

Convert index to item id based on provided adapter.

func (*SelectionBasicStorage) Swap

Swap two selections

func (*SelectionBasicStorage) UserData

func (self *SelectionBasicStorage) UserData() uintptr

type SelectionExternalStorage

type SelectionExternalStorage struct {
	CData *C.ImGuiSelectionExternalStorage
}

func NewEmptySelectionExternalStorage added in v1.2.0

func NewEmptySelectionExternalStorage() *SelectionExternalStorage

NewEmptySelectionExternalStorage creates SelectionExternalStorage with its 0 value.

func NewSelectionExternalStorage

func NewSelectionExternalStorage() *SelectionExternalStorage

func NewSelectionExternalStorageFromC

func NewSelectionExternalStorageFromC[SRC any](cvalue SRC) *SelectionExternalStorage

NewSelectionExternalStorageFromC creates SelectionExternalStorage from its C pointer. SRC ~= *C.ImGuiSelectionExternalStorage

func (*SelectionExternalStorage) ApplyRequests

func (self *SelectionExternalStorage) ApplyRequests(ms_io *MultiSelectIO)

Apply selection requests by using AdapterSetItemSelected() calls

func (SelectionExternalStorage) C

C is like Handle but returns plain type instead of pointer.

func (*SelectionExternalStorage) Destroy

func (self *SelectionExternalStorage) Destroy()

func (*SelectionExternalStorage) Handle

func (self *SelectionExternalStorage) Handle() (result *C.ImGuiSelectionExternalStorage, fin func())

Handle returns C version of SelectionExternalStorage and its finalizer func.

func (SelectionExternalStorage) SetUserData

func (self SelectionExternalStorage) SetUserData(v uintptr)

func (*SelectionExternalStorage) UserData

func (self *SelectionExternalStorage) UserData() uintptr

type SelectionRequest

type SelectionRequest struct {
	CData *C.ImGuiSelectionRequest
}

func NewEmptySelectionRequest added in v1.2.0

func NewEmptySelectionRequest() *SelectionRequest

NewEmptySelectionRequest creates SelectionRequest with its 0 value.

func NewSelectionRequestFromC

func NewSelectionRequestFromC[SRC any](cvalue SRC) *SelectionRequest

NewSelectionRequestFromC creates SelectionRequest from its C pointer. SRC ~= *C.ImGuiSelectionRequest

func (SelectionRequest) C

func (self SelectionRequest) C() (C.ImGuiSelectionRequest, func())

C is like Handle but returns plain type instead of pointer.

func (*SelectionRequest) Handle

func (self *SelectionRequest) Handle() (result *C.ImGuiSelectionRequest, fin func())

Handle returns C version of SelectionRequest and its finalizer func.

func (*SelectionRequest) RangeDirection

func (self *SelectionRequest) RangeDirection() int

func (*SelectionRequest) RangeFirstItem

func (self *SelectionRequest) RangeFirstItem() SelectionUserData

func (*SelectionRequest) RangeLastItem

func (self *SelectionRequest) RangeLastItem() SelectionUserData

func (*SelectionRequest) Selected

func (self *SelectionRequest) Selected() bool

func (SelectionRequest) SetRangeDirection

func (self SelectionRequest) SetRangeDirection(v int)

func (SelectionRequest) SetRangeFirstItem

func (self SelectionRequest) SetRangeFirstItem(v SelectionUserData)

func (SelectionRequest) SetRangeLastItem

func (self SelectionRequest) SetRangeLastItem(v SelectionUserData)

func (SelectionRequest) SetSelected

func (self SelectionRequest) SetSelected(v bool)

func (SelectionRequest) SetType

func (self SelectionRequest) SetType(v SelectionRequestType)

func (*SelectionRequest) Type

type SelectionRequestType

type SelectionRequestType int32

Selection request type original name: ImGuiSelectionRequestType

const (
	SelectionRequestTypeNone SelectionRequestType = 0
	// Request app to clear selection (if Selected==false) or select all items (if Selected==true). We cannot set RangeFirstItem/RangeLastItem as its contents is entirely up to user (not necessarily an index)
	SelectionRequestTypeSetAll SelectionRequestType = 1
	// Request app to select/unselect [RangeFirstItem..RangeLastItem] items (inclusive) based on value of Selected. Only EndMultiSelect() request this, app code can read after BeginMultiSelect() and it will always be false.
	SelectionRequestTypeSetRange SelectionRequestType = 2
)

type SelectionUserData

type SelectionUserData int64

func NewSelectionUserDataFromC

func NewSelectionUserDataFromC[SRC any](cvalue SRC) *SelectionUserData

NewSelectionUserDataFromC creates SelectionUserData from its C pointer. SRC ~= *C.ImGuiSelectionUserData

func (SelectionUserData) C

func (self SelectionUserData) C() (C.ImGuiSelectionUserData, func())

C is like Handle but returns plain type instead of pointer.

func (*SelectionUserData) Handle

func (selfSrc *SelectionUserData) Handle() (result *C.ImGuiSelectionUserData, fin func())

Handle returns C version of SelectionUserData and its finalizer func.

type SeparatorFlags

type SeparatorFlags int32

original name: ImGuiSeparatorFlags_

const (
	SeparatorFlagsNone SeparatorFlags = 0
	// Axis default to current layout type, so generally Horizontal unless e.g. in a menu bar
	SeparatorFlagsHorizontal SeparatorFlags = 1
	SeparatorFlagsVertical   SeparatorFlags = 2
	// Make separator cover all columns of a legacy Columns() set.
	SeparatorFlagsSpanAllColumns SeparatorFlags = 4
)

type SettingsHandler

type SettingsHandler struct {
	CData *C.ImGuiSettingsHandler
}

func InternalFindSettingsHandler

func InternalFindSettingsHandler(type_name string) *SettingsHandler

func InternalNewSettingsHandler

func InternalNewSettingsHandler() *SettingsHandler

func NewEmptySettingsHandler added in v1.2.0

func NewEmptySettingsHandler() *SettingsHandler

NewEmptySettingsHandler creates SettingsHandler with its 0 value.

func NewSettingsHandlerFromC

func NewSettingsHandlerFromC[SRC any](cvalue SRC) *SettingsHandler

NewSettingsHandlerFromC creates SettingsHandler from its C pointer. SRC ~= *C.ImGuiSettingsHandler

func (SettingsHandler) C

func (self SettingsHandler) C() (C.ImGuiSettingsHandler, func())

C is like Handle but returns plain type instead of pointer.

func (*SettingsHandler) Destroy

func (self *SettingsHandler) Destroy()

func (*SettingsHandler) Handle

func (self *SettingsHandler) Handle() (result *C.ImGuiSettingsHandler, fin func())

Handle returns C version of SettingsHandler and its finalizer func.

func (SettingsHandler) SetTypeHash

func (self SettingsHandler) SetTypeHash(v ID)

func (SettingsHandler) SetTypeName

func (self SettingsHandler) SetTypeName(v string)

func (SettingsHandler) SetUserData

func (self SettingsHandler) SetUserData(v uintptr)

func (*SettingsHandler) TypeHash

func (self *SettingsHandler) TypeHash() ID

func (*SettingsHandler) TypeName

func (self *SettingsHandler) TypeName() string

func (*SettingsHandler) UserData

func (self *SettingsHandler) UserData() uintptr

type ShrinkWidthItem

type ShrinkWidthItem struct {
	CData *C.ImGuiShrinkWidthItem
}

func NewEmptyShrinkWidthItem added in v1.2.0

func NewEmptyShrinkWidthItem() *ShrinkWidthItem

NewEmptyShrinkWidthItem creates ShrinkWidthItem with its 0 value.

func NewShrinkWidthItemFromC

func NewShrinkWidthItemFromC[SRC any](cvalue SRC) *ShrinkWidthItem

NewShrinkWidthItemFromC creates ShrinkWidthItem from its C pointer. SRC ~= *C.ImGuiShrinkWidthItem

func (ShrinkWidthItem) C

func (self ShrinkWidthItem) C() (C.ImGuiShrinkWidthItem, func())

C is like Handle but returns plain type instead of pointer.

func (*ShrinkWidthItem) Handle

func (self *ShrinkWidthItem) Handle() (result *C.ImGuiShrinkWidthItem, fin func())

Handle returns C version of ShrinkWidthItem and its finalizer func.

func (*ShrinkWidthItem) Index

func (self *ShrinkWidthItem) Index() int32

func (*ShrinkWidthItem) InitialWidth

func (self *ShrinkWidthItem) InitialWidth() float32

func (ShrinkWidthItem) SetIndex

func (self ShrinkWidthItem) SetIndex(v int32)

func (ShrinkWidthItem) SetInitialWidth

func (self ShrinkWidthItem) SetInitialWidth(v float32)

func (ShrinkWidthItem) SetWidth

func (self ShrinkWidthItem) SetWidth(v float32)

func (*ShrinkWidthItem) Width

func (self *ShrinkWidthItem) Width() float32

type SizeCallback added in v1.2.0

type SizeCallback func(data *SizeCallbackData)

func NewSizeCallbackFromC added in v1.2.0

func NewSizeCallbackFromC(cvalue *C.ImGuiSizeCallback) *SizeCallback

func (SizeCallback) C added in v1.2.0

func (c SizeCallback) C() (C.ImGuiSizeCallback, func())

type SizeCallbackData

type SizeCallbackData struct {
	CData *C.ImGuiSizeCallbackData
}

func NewEmptySizeCallbackData added in v1.2.0

func NewEmptySizeCallbackData() *SizeCallbackData

NewEmptySizeCallbackData creates SizeCallbackData with its 0 value.

func NewSizeCallbackDataFromC

func NewSizeCallbackDataFromC[SRC any](cvalue SRC) *SizeCallbackData

NewSizeCallbackDataFromC creates SizeCallbackData from its C pointer. SRC ~= *C.ImGuiSizeCallbackData

func (SizeCallbackData) C

func (self SizeCallbackData) C() (C.ImGuiSizeCallbackData, func())

C is like Handle but returns plain type instead of pointer.

func (*SizeCallbackData) CurrentSize

func (self *SizeCallbackData) CurrentSize() Vec2

func (*SizeCallbackData) DesiredSize

func (self *SizeCallbackData) DesiredSize() Vec2

func (*SizeCallbackData) Handle

func (self *SizeCallbackData) Handle() (result *C.ImGuiSizeCallbackData, fin func())

Handle returns C version of SizeCallbackData and its finalizer func.

func (*SizeCallbackData) Pos

func (self *SizeCallbackData) Pos() Vec2

func (SizeCallbackData) SetCurrentSize

func (self SizeCallbackData) SetCurrentSize(v Vec2)

func (SizeCallbackData) SetDesiredSize

func (self SizeCallbackData) SetDesiredSize(v Vec2)

func (SizeCallbackData) SetPos

func (self SizeCallbackData) SetPos(v Vec2)

func (SizeCallbackData) SetUserData

func (self SizeCallbackData) SetUserData(v uintptr)

func (*SizeCallbackData) UserData

func (self *SizeCallbackData) UserData() uintptr

type SliderFlags

type SliderFlags int32

Flags for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc. We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them. (Those are per-item flags. There is shared behavior flag too: ImGuiIO: io.ConfigDragClickToInputText) original name: ImGuiSliderFlags_

const (
	SliderFlagsNone SliderFlags = 0
	// Make the widget logarithmic (linear otherwise). Consider using ImGuiSliderFlags_NoRoundToFormat with this if using a format-string with small amount of digits.
	SliderFlagsLogarithmic SliderFlags = 32
	// Disable rounding underlying value to match precision of the display format string (e.g. %.3f values are rounded to those 3 digits).
	SliderFlagsNoRoundToFormat SliderFlags = 64
	// Disable CTRL+Click or Enter key allowing to input text directly into the widget.
	SliderFlagsNoInput SliderFlags = 128
	// Enable wrapping around from max to min and from min to max. Only supported by DragXXX() functions for now.
	SliderFlagsWrapAround SliderFlags = 256
	// Clamp value to min/max bounds when input manually with CTRL+Click. By default CTRL+Click allows going out of bounds.
	SliderFlagsClampOnInput SliderFlags = 512
	// Clamp even if min==max==0.0f. Otherwise due to legacy reason DragXXX functions don't clamp with those values. When your clamping limits are dynamic you almost always want to use it.
	SliderFlagsClampZeroRange SliderFlags = 1024
	SliderFlagsAlwaysClamp    SliderFlags = 1536
	// [Internal] We treat using those bits as being potentially a 'float power' argument from the previous API that has got miscast to this enum, and will trigger an assert if needed.
	SliderFlagsInvalidMask SliderFlags = 1879048207
)

type SliderFlagsPrivate

type SliderFlagsPrivate int32

Extend ImGuiSliderFlags_ original name: ImGuiSliderFlagsPrivate_

const (
	// Should this slider be orientated vertically?
	SliderFlagsVertical SliderFlagsPrivate = 1048576
	// Consider using g.NextItemData.ItemFlags |= ImGuiItemFlags_ReadOnly instead.
	SliderFlagsReadOnly SliderFlagsPrivate = 2097152
)

type SortDirection

type SortDirection int32

A sorting direction original name: ImGuiSortDirection

const (
	SortDirectionNone SortDirection = 0
	// Ascending = 0->9, A->Z etc.
	SortDirectionAscending SortDirection = 1
	// Descending = 9->0, Z->A etc.
	SortDirectionDescending SortDirection = 2
)

func InternalTableGetColumnNextSortDirection

func InternalTableGetColumnNextSortDirection(column *TableColumn) SortDirection

type StackLevelInfo

type StackLevelInfo struct {
	CData *C.ImGuiStackLevelInfo
}

func InternalNewStackLevelInfo

func InternalNewStackLevelInfo() *StackLevelInfo

func NewEmptyStackLevelInfo added in v1.2.0

func NewEmptyStackLevelInfo() *StackLevelInfo

NewEmptyStackLevelInfo creates StackLevelInfo with its 0 value.

func NewStackLevelInfoFromC

func NewStackLevelInfoFromC[SRC any](cvalue SRC) *StackLevelInfo

NewStackLevelInfoFromC creates StackLevelInfo from its C pointer. SRC ~= *C.ImGuiStackLevelInfo

func (StackLevelInfo) C

func (self StackLevelInfo) C() (C.ImGuiStackLevelInfo, func())

C is like Handle but returns plain type instead of pointer.

func (*StackLevelInfo) DataType

func (self *StackLevelInfo) DataType() DataType

func (*StackLevelInfo) Desc

func (self *StackLevelInfo) Desc() [57]rune

func (*StackLevelInfo) Destroy

func (self *StackLevelInfo) Destroy()

func (*StackLevelInfo) Handle

func (self *StackLevelInfo) Handle() (result *C.ImGuiStackLevelInfo, fin func())

Handle returns C version of StackLevelInfo and its finalizer func.

func (*StackLevelInfo) ID

func (self *StackLevelInfo) ID() ID

func (*StackLevelInfo) QueryFrameCount

func (self *StackLevelInfo) QueryFrameCount() int

func (*StackLevelInfo) QuerySuccess

func (self *StackLevelInfo) QuerySuccess() bool

func (StackLevelInfo) SetDataType

func (self StackLevelInfo) SetDataType(v DataType)

func (StackLevelInfo) SetDesc

func (self StackLevelInfo) SetDesc(v *[57]rune)

func (StackLevelInfo) SetID

func (self StackLevelInfo) SetID(v ID)

func (StackLevelInfo) SetQueryFrameCount

func (self StackLevelInfo) SetQueryFrameCount(v int)

func (StackLevelInfo) SetQuerySuccess

func (self StackLevelInfo) SetQuerySuccess(v bool)

type Storage

type Storage struct {
	CData *C.ImGuiStorage
}

func NewEmptyStorage added in v1.2.0

func NewEmptyStorage() *Storage

NewEmptyStorage creates Storage with its 0 value.

func NewStorageFromC

func NewStorageFromC[SRC any](cvalue SRC) *Storage

NewStorageFromC creates Storage from its C pointer. SRC ~= *C.ImGuiStorage

func StateStorage

func StateStorage() *Storage

func (*Storage) Bool

func (self *Storage) Bool(key ID) bool

func (*Storage) BoolRef

func (self *Storage) BoolRef(key ID) *bool

func (*Storage) BoolRefV

func (self *Storage) BoolRefV(key ID, default_val bool) *bool

BoolRefV parameter default value hint: default_val: false

func (*Storage) BoolV

func (self *Storage) BoolV(key ID, default_val bool) bool

BoolV parameter default value hint: default_val: false

func (*Storage) BuildSortByKey

func (self *Storage) BuildSortByKey()

func (Storage) C

func (self Storage) C() (C.ImGuiStorage, func())

C is like Handle but returns plain type instead of pointer.

func (*Storage) Clear

func (self *Storage) Clear()

func (*Storage) Data

func (self *Storage) Data() vectors.Vector[StoragePair]

func (*Storage) Float

func (self *Storage) Float(key ID) float32

func (*Storage) FloatRef

func (self *Storage) FloatRef(key ID) *float32

func (*Storage) FloatRefV

func (self *Storage) FloatRefV(key ID, default_val float32) *float32

FloatRefV parameter default value hint: default_val: 0.0f

func (*Storage) FloatV

func (self *Storage) FloatV(key ID, default_val float32) float32

FloatV parameter default value hint: default_val: 0.0f

func (*Storage) Handle

func (self *Storage) Handle() (result *C.ImGuiStorage, fin func())

Handle returns C version of Storage and its finalizer func.

func (*Storage) Int

func (self *Storage) Int(key ID) int32

func (*Storage) IntRef

func (self *Storage) IntRef(key ID) *int32

func (*Storage) IntRefV

func (self *Storage) IntRefV(key ID, default_val int32) *int32

IntRefV parameter default value hint: default_val: 0

func (*Storage) IntV

func (self *Storage) IntV(key ID, default_val int32) int32

IntV parameter default value hint: default_val: 0

func (*Storage) SetAllInt

func (self *Storage) SetAllInt(val int32)

func (*Storage) SetBool

func (self *Storage) SetBool(key ID, val bool)

func (Storage) SetData

func (self Storage) SetData(v vectors.Vector[StoragePair])

func (*Storage) SetFloat

func (self *Storage) SetFloat(key ID, val float32)

func (*Storage) SetInt

func (self *Storage) SetInt(key ID, val int32)

func (*Storage) SetVoidPtr

func (self *Storage) SetVoidPtr(key ID, val uintptr)

func (*Storage) VoidPtr

func (self *Storage) VoidPtr(key ID) uintptr

default_val is NULL

type StoragePair

type StoragePair struct {
	CData *C.ImGuiStoragePair
}

func InternalImLowerBound

func InternalImLowerBound(in_begin, in_end *StoragePair, key ID) *StoragePair

func NewEmptyStoragePair added in v1.2.0

func NewEmptyStoragePair() *StoragePair

NewEmptyStoragePair creates StoragePair with its 0 value.

func NewStoragePairFloat

func NewStoragePairFloat(_key ID, _val float32) *StoragePair

func NewStoragePairFromC

func NewStoragePairFromC[SRC any](cvalue SRC) *StoragePair

NewStoragePairFromC creates StoragePair from its C pointer. SRC ~= *C.ImGuiStoragePair

func NewStoragePairInt

func NewStoragePairInt(_key ID, _val int32) *StoragePair

func NewStoragePairPtr

func NewStoragePairPtr(_key ID, _val uintptr) *StoragePair

func (StoragePair) C

func (self StoragePair) C() (C.ImGuiStoragePair, func())

C is like Handle but returns plain type instead of pointer.

func (*StoragePair) Destroy

func (self *StoragePair) Destroy()

func (*StoragePair) Handle

func (self *StoragePair) Handle() (result *C.ImGuiStoragePair, fin func())

Handle returns C version of StoragePair and its finalizer func.

func (*StoragePair) Key

func (self *StoragePair) Key() ID

func (StoragePair) SetKey

func (self StoragePair) SetKey(v ID)

type Style

type Style struct {
	CData *C.ImGuiStyle
}

func CurrentStyle

func CurrentStyle() *Style

access the Style structure (colors, sizes). Always use PushStyleColor(), PushStyleVar() to modify style mid-frame!

func NewEmptyStyle added in v1.2.0

func NewEmptyStyle() *Style

NewEmptyStyle creates Style with its 0 value.

func NewStyle

func NewStyle() *Style

func NewStyleFromC

func NewStyleFromC[SRC any](cvalue SRC) *Style

NewStyleFromC creates Style from its C pointer. SRC ~= *C.ImGuiStyle

func (*Style) Alpha

func (self *Style) Alpha() float32

func (*Style) AntiAliasedFill

func (self *Style) AntiAliasedFill() bool

func (*Style) AntiAliasedLines

func (self *Style) AntiAliasedLines() bool

func (*Style) AntiAliasedLinesUseTex

func (self *Style) AntiAliasedLinesUseTex() bool

func (*Style) ButtonTextAlign

func (self *Style) ButtonTextAlign() Vec2

func (Style) C

func (self Style) C() (C.ImGuiStyle, func())

C is like Handle but returns plain type instead of pointer.

func (*Style) CellPadding

func (self *Style) CellPadding() Vec2

func (*Style) ChildBorderSize

func (self *Style) ChildBorderSize() float32

func (*Style) ChildRounding

func (self *Style) ChildRounding() float32

func (*Style) CircleTessellationMaxError

func (self *Style) CircleTessellationMaxError() float32

func (*Style) ColorButtonPosition

func (self *Style) ColorButtonPosition() Dir

func (*Style) Colors

func (self *Style) Colors() [58]Vec4

func (*Style) ColumnsMinSpacing

func (self *Style) ColumnsMinSpacing() float32

func (*Style) CurveTessellationTol

func (self *Style) CurveTessellationTol() float32

func (*Style) Destroy

func (self *Style) Destroy()

func (*Style) DisabledAlpha

func (self *Style) DisabledAlpha() float32

func (*Style) DisplaySafeAreaPadding

func (self *Style) DisplaySafeAreaPadding() Vec2

func (*Style) DisplayWindowPadding

func (self *Style) DisplayWindowPadding() Vec2

func (*Style) DockingSeparatorSize

func (self *Style) DockingSeparatorSize() float32

func (*Style) FrameBorderSize

func (self *Style) FrameBorderSize() float32

func (*Style) FramePadding

func (self *Style) FramePadding() Vec2

func (*Style) FrameRounding

func (self *Style) FrameRounding() float32

func (*Style) GrabMinSize

func (self *Style) GrabMinSize() float32

func (*Style) GrabRounding

func (self *Style) GrabRounding() float32

func (*Style) Handle

func (self *Style) Handle() (result *C.ImGuiStyle, fin func())

Handle returns C version of Style and its finalizer func.

func (*Style) HoverDelayNormal

func (self *Style) HoverDelayNormal() float32

func (*Style) HoverDelayShort

func (self *Style) HoverDelayShort() float32

func (*Style) HoverFlagsForTooltipMouse

func (self *Style) HoverFlagsForTooltipMouse() HoveredFlags

func (*Style) HoverFlagsForTooltipNav

func (self *Style) HoverFlagsForTooltipNav() HoveredFlags

func (*Style) HoverStationaryDelay

func (self *Style) HoverStationaryDelay() float32

func (*Style) IndentSpacing

func (self *Style) IndentSpacing() float32

func (*Style) ItemInnerSpacing

func (self *Style) ItemInnerSpacing() Vec2

func (*Style) ItemSpacing

func (self *Style) ItemSpacing() Vec2

func (*Style) LogSliderDeadzone

func (self *Style) LogSliderDeadzone() float32

func (*Style) MouseCursorScale

func (self *Style) MouseCursorScale() float32

func (*Style) PopupBorderSize

func (self *Style) PopupBorderSize() float32

func (*Style) PopupRounding

func (self *Style) PopupRounding() float32

func (*Style) ScaleAllSizes

func (self *Style) ScaleAllSizes(scale_factor float32)

func (*Style) ScrollbarRounding

func (self *Style) ScrollbarRounding() float32

func (*Style) ScrollbarSize

func (self *Style) ScrollbarSize() float32

func (*Style) SelectableTextAlign

func (self *Style) SelectableTextAlign() Vec2

func (*Style) SeparatorTextAlign

func (self *Style) SeparatorTextAlign() Vec2

func (*Style) SeparatorTextBorderSize

func (self *Style) SeparatorTextBorderSize() float32

func (*Style) SeparatorTextPadding

func (self *Style) SeparatorTextPadding() Vec2

func (Style) SetAlpha

func (self Style) SetAlpha(v float32)

func (Style) SetAntiAliasedFill

func (self Style) SetAntiAliasedFill(v bool)

func (Style) SetAntiAliasedLines

func (self Style) SetAntiAliasedLines(v bool)

func (Style) SetAntiAliasedLinesUseTex

func (self Style) SetAntiAliasedLinesUseTex(v bool)

func (Style) SetButtonTextAlign

func (self Style) SetButtonTextAlign(v Vec2)

func (Style) SetCellPadding

func (self Style) SetCellPadding(v Vec2)

func (Style) SetChildBorderSize

func (self Style) SetChildBorderSize(v float32)

func (Style) SetChildRounding

func (self Style) SetChildRounding(v float32)

func (Style) SetCircleTessellationMaxError

func (self Style) SetCircleTessellationMaxError(v float32)

func (Style) SetColorButtonPosition

func (self Style) SetColorButtonPosition(v Dir)

func (Style) SetColors

func (self Style) SetColors(v *[58]Vec4)

func (Style) SetColumnsMinSpacing

func (self Style) SetColumnsMinSpacing(v float32)

func (Style) SetCurveTessellationTol

func (self Style) SetCurveTessellationTol(v float32)

func (Style) SetDisabledAlpha

func (self Style) SetDisabledAlpha(v float32)

func (Style) SetDisplaySafeAreaPadding

func (self Style) SetDisplaySafeAreaPadding(v Vec2)

func (Style) SetDisplayWindowPadding

func (self Style) SetDisplayWindowPadding(v Vec2)

func (Style) SetDockingSeparatorSize

func (self Style) SetDockingSeparatorSize(v float32)

func (Style) SetFrameBorderSize

func (self Style) SetFrameBorderSize(v float32)

func (Style) SetFramePadding

func (self Style) SetFramePadding(v Vec2)

func (Style) SetFrameRounding

func (self Style) SetFrameRounding(v float32)

func (Style) SetGrabMinSize

func (self Style) SetGrabMinSize(v float32)

func (Style) SetGrabRounding

func (self Style) SetGrabRounding(v float32)

func (Style) SetHoverDelayNormal

func (self Style) SetHoverDelayNormal(v float32)

func (Style) SetHoverDelayShort

func (self Style) SetHoverDelayShort(v float32)

func (Style) SetHoverFlagsForTooltipMouse

func (self Style) SetHoverFlagsForTooltipMouse(v HoveredFlags)

func (Style) SetHoverFlagsForTooltipNav

func (self Style) SetHoverFlagsForTooltipNav(v HoveredFlags)

func (Style) SetHoverStationaryDelay

func (self Style) SetHoverStationaryDelay(v float32)

func (Style) SetIndentSpacing

func (self Style) SetIndentSpacing(v float32)

func (Style) SetItemInnerSpacing

func (self Style) SetItemInnerSpacing(v Vec2)

func (Style) SetItemSpacing

func (self Style) SetItemSpacing(v Vec2)

func (Style) SetLogSliderDeadzone

func (self Style) SetLogSliderDeadzone(v float32)

func (Style) SetMouseCursorScale

func (self Style) SetMouseCursorScale(v float32)

func (Style) SetPopupBorderSize

func (self Style) SetPopupBorderSize(v float32)

func (Style) SetPopupRounding

func (self Style) SetPopupRounding(v float32)

func (Style) SetScrollbarRounding

func (self Style) SetScrollbarRounding(v float32)

func (Style) SetScrollbarSize

func (self Style) SetScrollbarSize(v float32)

func (Style) SetSelectableTextAlign

func (self Style) SetSelectableTextAlign(v Vec2)

func (Style) SetSeparatorTextAlign

func (self Style) SetSeparatorTextAlign(v Vec2)

func (Style) SetSeparatorTextBorderSize

func (self Style) SetSeparatorTextBorderSize(v float32)

func (Style) SetSeparatorTextPadding

func (self Style) SetSeparatorTextPadding(v Vec2)

func (Style) SetTabBarBorderSize

func (self Style) SetTabBarBorderSize(v float32)

func (Style) SetTabBarOverlineSize

func (self Style) SetTabBarOverlineSize(v float32)

func (Style) SetTabBorderSize

func (self Style) SetTabBorderSize(v float32)

func (Style) SetTabMinWidthForCloseButton

func (self Style) SetTabMinWidthForCloseButton(v float32)

func (Style) SetTabRounding

func (self Style) SetTabRounding(v float32)

func (Style) SetTableAngledHeadersAngle

func (self Style) SetTableAngledHeadersAngle(v float32)

func (Style) SetTableAngledHeadersTextAlign

func (self Style) SetTableAngledHeadersTextAlign(v Vec2)

func (Style) SetTouchExtraPadding

func (self Style) SetTouchExtraPadding(v Vec2)

func (Style) SetWindowBorderSize

func (self Style) SetWindowBorderSize(v float32)

func (Style) SetWindowMenuButtonPosition

func (self Style) SetWindowMenuButtonPosition(v Dir)

func (Style) SetWindowMinSize

func (self Style) SetWindowMinSize(v Vec2)

func (Style) SetWindowPadding

func (self Style) SetWindowPadding(v Vec2)

func (Style) SetWindowRounding

func (self Style) SetWindowRounding(v float32)

func (Style) SetWindowTitleAlign

func (self Style) SetWindowTitleAlign(v Vec2)

func (*Style) TabBarBorderSize

func (self *Style) TabBarBorderSize() float32

func (*Style) TabBarOverlineSize

func (self *Style) TabBarOverlineSize() float32

func (*Style) TabBorderSize

func (self *Style) TabBorderSize() float32

func (*Style) TabMinWidthForCloseButton

func (self *Style) TabMinWidthForCloseButton() float32

func (*Style) TabRounding

func (self *Style) TabRounding() float32

func (*Style) TableAngledHeadersAngle

func (self *Style) TableAngledHeadersAngle() float32

func (*Style) TableAngledHeadersTextAlign

func (self *Style) TableAngledHeadersTextAlign() Vec2

func (*Style) TouchExtraPadding

func (self *Style) TouchExtraPadding() Vec2

func (*Style) WindowBorderSize

func (self *Style) WindowBorderSize() float32

func (*Style) WindowMenuButtonPosition

func (self *Style) WindowMenuButtonPosition() Dir

func (*Style) WindowMinSize

func (self *Style) WindowMinSize() Vec2

func (*Style) WindowPadding

func (self *Style) WindowPadding() Vec2

func (*Style) WindowRounding

func (self *Style) WindowRounding() float32

func (*Style) WindowTitleAlign

func (self *Style) WindowTitleAlign() Vec2

type StyleMod

type StyleMod struct {
	CData *C.ImGuiStyleMod
}

func InternalNewStyleModFloat

func InternalNewStyleModFloat(idx StyleVar, v float32) *StyleMod

func InternalNewStyleModInt

func InternalNewStyleModInt(idx StyleVar, v int32) *StyleMod

func InternalNewStyleModVec2

func InternalNewStyleModVec2(idx StyleVar, v Vec2) *StyleMod

func NewEmptyStyleMod added in v1.2.0

func NewEmptyStyleMod() *StyleMod

NewEmptyStyleMod creates StyleMod with its 0 value.

func NewStyleModFromC

func NewStyleModFromC[SRC any](cvalue SRC) *StyleMod

NewStyleModFromC creates StyleMod from its C pointer. SRC ~= *C.ImGuiStyleMod

func (StyleMod) C

func (self StyleMod) C() (C.ImGuiStyleMod, func())

C is like Handle but returns plain type instead of pointer.

func (*StyleMod) Destroy

func (self *StyleMod) Destroy()

func (*StyleMod) Handle

func (self *StyleMod) Handle() (result *C.ImGuiStyleMod, fin func())

Handle returns C version of StyleMod and its finalizer func.

func (StyleMod) SetVarIdx

func (self StyleMod) SetVarIdx(v StyleVar)

func (*StyleMod) VarIdx

func (self *StyleMod) VarIdx() StyleVar

type StyleVar

type StyleVar int32

Enumeration for PushStyleVar() / PopStyleVar() to temporarily modify the ImGuiStyle structure.

  • The enum only refers to fields of ImGuiStyle which makes sense to be pushed/popped inside UI code. During initialization or between frames, feel free to just poke into ImGuiStyle directly.
  • Tip: Use your programming IDE navigation facilities on the names in the _second column_ below to find the actual members and their description.
  • In Visual Studio: CTRL+comma ("Edit.GoToAll") can follow symbols inside comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot.
  • In Visual Studio w/ Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols inside comments.
  • In VS Code, CLion, etc.: CTRL+click can follow symbols inside comments.
  • When changing this enum, you need to update the associated internal table GStyleVarInfo[] accordingly. This is where we link enum values to members offset/type.

original name: ImGuiStyleVar_

const (
	// float     Alpha
	StyleVarAlpha StyleVar = 0
	// float     DisabledAlpha
	StyleVarDisabledAlpha StyleVar = 1
	// ImVec2    WindowPadding
	StyleVarWindowPadding StyleVar = 2
	// float     WindowRounding
	StyleVarWindowRounding StyleVar = 3
	// float     WindowBorderSize
	StyleVarWindowBorderSize StyleVar = 4
	// ImVec2    WindowMinSize
	StyleVarWindowMinSize StyleVar = 5
	// ImVec2    WindowTitleAlign
	StyleVarWindowTitleAlign StyleVar = 6
	// float     ChildRounding
	StyleVarChildRounding StyleVar = 7
	// float     ChildBorderSize
	StyleVarChildBorderSize StyleVar = 8
	// float     PopupRounding
	StyleVarPopupRounding StyleVar = 9
	// float     PopupBorderSize
	StyleVarPopupBorderSize StyleVar = 10
	// ImVec2    FramePadding
	StyleVarFramePadding StyleVar = 11
	// float     FrameRounding
	StyleVarFrameRounding StyleVar = 12
	// float     FrameBorderSize
	StyleVarFrameBorderSize StyleVar = 13
	// ImVec2    ItemSpacing
	StyleVarItemSpacing StyleVar = 14
	// ImVec2    ItemInnerSpacing
	StyleVarItemInnerSpacing StyleVar = 15
	// float     IndentSpacing
	StyleVarIndentSpacing StyleVar = 16
	// ImVec2    CellPadding
	StyleVarCellPadding StyleVar = 17
	// float     ScrollbarSize
	StyleVarScrollbarSize StyleVar = 18
	// float     ScrollbarRounding
	StyleVarScrollbarRounding StyleVar = 19
	// float     GrabMinSize
	StyleVarGrabMinSize StyleVar = 20
	// float     GrabRounding
	StyleVarGrabRounding StyleVar = 21
	// float     TabRounding
	StyleVarTabRounding StyleVar = 22
	// float     TabBorderSize
	StyleVarTabBorderSize StyleVar = 23
	// float     TabBarBorderSize
	StyleVarTabBarBorderSize StyleVar = 24
	// float     TabBarOverlineSize
	StyleVarTabBarOverlineSize StyleVar = 25
	// float     TableAngledHeadersAngle
	StyleVarTableAngledHeadersAngle StyleVar = 26
	// ImVec2  TableAngledHeadersTextAlign
	StyleVarTableAngledHeadersTextAlign StyleVar = 27
	// ImVec2    ButtonTextAlign
	StyleVarButtonTextAlign StyleVar = 28
	// ImVec2    SelectableTextAlign
	StyleVarSelectableTextAlign StyleVar = 29
	// float     SeparatorTextBorderSize
	StyleVarSeparatorTextBorderSize StyleVar = 30
	// ImVec2    SeparatorTextAlign
	StyleVarSeparatorTextAlign StyleVar = 31
	// ImVec2    SeparatorTextPadding
	StyleVarSeparatorTextPadding StyleVar = 32
	// float     DockingSeparatorSize
	StyleVarDockingSeparatorSize StyleVar = 33
	StyleVarCOUNT                StyleVar = 34
)

type TabBar

type TabBar struct {
	CData *C.ImGuiTabBar
}

func InternalCurrentTabBar

func InternalCurrentTabBar() *TabBar

func InternalNewTabBar

func InternalNewTabBar() *TabBar

func NewEmptyTabBar added in v1.2.0

func NewEmptyTabBar() *TabBar

NewEmptyTabBar creates TabBar with its 0 value.

func NewTabBarFromC

func NewTabBarFromC[SRC any](cvalue SRC) *TabBar

NewTabBarFromC creates TabBar from its C pointer. SRC ~= *C.ImGuiTabBar

func (*TabBar) BackupCursorPos

func (self *TabBar) BackupCursorPos() Vec2

func (*TabBar) BarRect

func (self *TabBar) BarRect() Rect

func (*TabBar) BeginCount

func (self *TabBar) BeginCount() int

func (TabBar) C

func (self TabBar) C() (C.ImGuiTabBar, func())

C is like Handle but returns plain type instead of pointer.

func (*TabBar) CurrFrameVisible

func (self *TabBar) CurrFrameVisible() int32

func (*TabBar) CurrTabsContentsHeight

func (self *TabBar) CurrTabsContentsHeight() float32

func (*TabBar) Destroy

func (self *TabBar) Destroy()

func (*TabBar) Flags

func (self *TabBar) Flags() TabBarFlags

func (*TabBar) FramePadding

func (self *TabBar) FramePadding() Vec2

func (*TabBar) Handle

func (self *TabBar) Handle() (result *C.ImGuiTabBar, fin func())

Handle returns C version of TabBar and its finalizer func.

func (*TabBar) ID

func (self *TabBar) ID() ID

func (*TabBar) ItemSpacingY

func (self *TabBar) ItemSpacingY() float32

func (*TabBar) LastTabItemIdx

func (self *TabBar) LastTabItemIdx() int16

func (*TabBar) NextSelectedTabId

func (self *TabBar) NextSelectedTabId() ID

func (*TabBar) PrevFrameVisible

func (self *TabBar) PrevFrameVisible() int32

func (*TabBar) PrevTabsContentsHeight

func (self *TabBar) PrevTabsContentsHeight() float32

func (*TabBar) ReorderRequestOffset

func (self *TabBar) ReorderRequestOffset() int16

func (*TabBar) ReorderRequestTabId

func (self *TabBar) ReorderRequestTabId() ID

func (*TabBar) ScrollingAnim

func (self *TabBar) ScrollingAnim() float32

func (*TabBar) ScrollingRectMaxX

func (self *TabBar) ScrollingRectMaxX() float32

func (*TabBar) ScrollingRectMinX

func (self *TabBar) ScrollingRectMinX() float32

func (*TabBar) ScrollingSpeed

func (self *TabBar) ScrollingSpeed() float32

func (*TabBar) ScrollingTarget

func (self *TabBar) ScrollingTarget() float32

func (*TabBar) ScrollingTargetDistToVisibility

func (self *TabBar) ScrollingTargetDistToVisibility() float32

func (*TabBar) SelectedTabId

func (self *TabBar) SelectedTabId() ID

func (*TabBar) SeparatorMaxX

func (self *TabBar) SeparatorMaxX() float32

func (*TabBar) SeparatorMinX

func (self *TabBar) SeparatorMinX() float32

func (TabBar) SetBackupCursorPos

func (self TabBar) SetBackupCursorPos(v Vec2)

func (TabBar) SetBarRect

func (self TabBar) SetBarRect(v Rect)

func (TabBar) SetBeginCount

func (self TabBar) SetBeginCount(v int)

func (TabBar) SetCurrFrameVisible

func (self TabBar) SetCurrFrameVisible(v int32)

func (TabBar) SetCurrTabsContentsHeight

func (self TabBar) SetCurrTabsContentsHeight(v float32)

func (TabBar) SetFlags

func (self TabBar) SetFlags(v TabBarFlags)

func (TabBar) SetFramePadding

func (self TabBar) SetFramePadding(v Vec2)

func (TabBar) SetID

func (self TabBar) SetID(v ID)

func (TabBar) SetItemSpacingY

func (self TabBar) SetItemSpacingY(v float32)

func (TabBar) SetLastTabItemIdx

func (self TabBar) SetLastTabItemIdx(v int16)

func (TabBar) SetNextSelectedTabId

func (self TabBar) SetNextSelectedTabId(v ID)

func (TabBar) SetPrevFrameVisible

func (self TabBar) SetPrevFrameVisible(v int32)

func (TabBar) SetPrevTabsContentsHeight

func (self TabBar) SetPrevTabsContentsHeight(v float32)

func (TabBar) SetReorderRequestOffset

func (self TabBar) SetReorderRequestOffset(v int16)

func (TabBar) SetReorderRequestTabId

func (self TabBar) SetReorderRequestTabId(v ID)

func (TabBar) SetScrollingAnim

func (self TabBar) SetScrollingAnim(v float32)

func (TabBar) SetScrollingRectMaxX

func (self TabBar) SetScrollingRectMaxX(v float32)

func (TabBar) SetScrollingRectMinX

func (self TabBar) SetScrollingRectMinX(v float32)

func (TabBar) SetScrollingSpeed

func (self TabBar) SetScrollingSpeed(v float32)

func (TabBar) SetScrollingTarget

func (self TabBar) SetScrollingTarget(v float32)

func (TabBar) SetScrollingTargetDistToVisibility

func (self TabBar) SetScrollingTargetDistToVisibility(v float32)

func (TabBar) SetSelectedTabId

func (self TabBar) SetSelectedTabId(v ID)

func (TabBar) SetSeparatorMaxX

func (self TabBar) SetSeparatorMaxX(v float32)

func (TabBar) SetSeparatorMinX

func (self TabBar) SetSeparatorMinX(v float32)

func (TabBar) SetTabs

func (self TabBar) SetTabs(v vectors.Vector[TabItem])

func (TabBar) SetTabsActiveCount

func (self TabBar) SetTabsActiveCount(v int16)

func (TabBar) SetTabsAddedNew

func (self TabBar) SetTabsAddedNew(v bool)

func (TabBar) SetTabsNames

func (self TabBar) SetTabsNames(v TextBuffer)

func (TabBar) SetVisibleTabId

func (self TabBar) SetVisibleTabId(v ID)

func (TabBar) SetVisibleTabWasSubmitted

func (self TabBar) SetVisibleTabWasSubmitted(v bool)

func (TabBar) SetWantLayout

func (self TabBar) SetWantLayout(v bool)

func (TabBar) SetWidthAllTabs

func (self TabBar) SetWidthAllTabs(v float32)

func (TabBar) SetWidthAllTabsIdeal

func (self TabBar) SetWidthAllTabsIdeal(v float32)

func (TabBar) SetWindow added in v1.1.0

func (self TabBar) SetWindow(v *Window)

func (*TabBar) Tabs

func (self *TabBar) Tabs() vectors.Vector[TabItem]

func (*TabBar) TabsActiveCount

func (self *TabBar) TabsActiveCount() int16

func (*TabBar) TabsAddedNew

func (self *TabBar) TabsAddedNew() bool

func (*TabBar) TabsNames

func (self *TabBar) TabsNames() TextBuffer

func (*TabBar) VisibleTabId

func (self *TabBar) VisibleTabId() ID

func (*TabBar) VisibleTabWasSubmitted

func (self *TabBar) VisibleTabWasSubmitted() bool

func (*TabBar) WantLayout

func (self *TabBar) WantLayout() bool

func (*TabBar) WidthAllTabs

func (self *TabBar) WidthAllTabs() float32

func (*TabBar) WidthAllTabsIdeal

func (self *TabBar) WidthAllTabsIdeal() float32

func (*TabBar) Window added in v1.1.0

func (self *TabBar) Window() *Window

type TabBarFlags

type TabBarFlags int32

Flags for ImGui::BeginTabBar() original name: ImGuiTabBarFlags_

const (
	TabBarFlagsNone TabBarFlags = 0
	// Allow manually dragging tabs to re-order them + New tabs are appended at the end of list
	TabBarFlagsReorderable TabBarFlags = 1
	// Automatically select new tabs when they appear
	TabBarFlagsAutoSelectNewTabs TabBarFlags = 2
	// Disable buttons to open the tab list popup
	TabBarFlagsTabListPopupButton TabBarFlags = 4
	// Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You may handle this behavior manually on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false.
	TabBarFlagsNoCloseWithMiddleMouseButton TabBarFlags = 8
	// Disable scrolling buttons (apply when fitting policy is ImGuiTabBarFlags_FittingPolicyScroll)
	TabBarFlagsNoTabListScrollingButtons TabBarFlags = 16
	// Disable tooltips when hovering a tab
	TabBarFlagsNoTooltip TabBarFlags = 32
	// Draw selected overline markers over selected tab
	TabBarFlagsDrawSelectedOverline TabBarFlags = 64
	// Resize tabs when they don't fit
	TabBarFlagsFittingPolicyResizeDown TabBarFlags = 128
	// Add scroll buttons when tabs don't fit
	TabBarFlagsFittingPolicyScroll  TabBarFlags = 256
	TabBarFlagsFittingPolicyMask    TabBarFlags = 384
	TabBarFlagsFittingPolicyDefault TabBarFlags = 128
)

type TabBarFlagsPrivate

type TabBarFlagsPrivate int32

Extend ImGuiTabBarFlags_ original name: ImGuiTabBarFlagsPrivate_

const (
	// Part of a dock node [we don't use this in the master branch but it facilitate branch syncing to keep this around]
	TabBarFlagsDockNode  TabBarFlagsPrivate = 1048576
	TabBarFlagsIsFocused TabBarFlagsPrivate = 2097152
	// FIXME: Settings are handled by the docking system, this only request the tab bar to mark settings dirty when reordering tabs
	TabBarFlagsSaveSettings TabBarFlagsPrivate = 4194304
)

type TabItem

type TabItem struct {
	CData *C.ImGuiTabItem
}

func InternalNewTabItem

func InternalNewTabItem() *TabItem

func InternalTabBarFindMostRecentlySelectedTabForActiveWindow

func InternalTabBarFindMostRecentlySelectedTabForActiveWindow(tab_bar *TabBar) *TabItem

func InternalTabBarFindTabByID

func InternalTabBarFindTabByID(tab_bar *TabBar, tab_id ID) *TabItem

func InternalTabBarFindTabByOrder

func InternalTabBarFindTabByOrder(tab_bar *TabBar, order int32) *TabItem

func InternalTabBarGetCurrentTab

func InternalTabBarGetCurrentTab(tab_bar *TabBar) *TabItem

func NewEmptyTabItem added in v1.2.0

func NewEmptyTabItem() *TabItem

NewEmptyTabItem creates TabItem with its 0 value.

func NewTabItemFromC

func NewTabItemFromC[SRC any](cvalue SRC) *TabItem

NewTabItemFromC creates TabItem from its C pointer. SRC ~= *C.ImGuiTabItem

func (*TabItem) BeginOrder

func (self *TabItem) BeginOrder() int16

func (TabItem) C

func (self TabItem) C() (C.ImGuiTabItem, func())

C is like Handle but returns plain type instead of pointer.

func (*TabItem) ContentWidth

func (self *TabItem) ContentWidth() float32

func (*TabItem) Destroy

func (self *TabItem) Destroy()

func (*TabItem) Flags

func (self *TabItem) Flags() TabItemFlags

func (*TabItem) Handle

func (self *TabItem) Handle() (result *C.ImGuiTabItem, fin func())

Handle returns C version of TabItem and its finalizer func.

func (*TabItem) ID

func (self *TabItem) ID() ID

func (*TabItem) IndexDuringLayout

func (self *TabItem) IndexDuringLayout() int16

func (*TabItem) LastFrameSelected

func (self *TabItem) LastFrameSelected() int32

func (*TabItem) LastFrameVisible

func (self *TabItem) LastFrameVisible() int32

func (*TabItem) NameOffset

func (self *TabItem) NameOffset() int

func (*TabItem) Offset

func (self *TabItem) Offset() float32

func (*TabItem) RequestedWidth

func (self *TabItem) RequestedWidth() float32

func (TabItem) SetBeginOrder

func (self TabItem) SetBeginOrder(v int16)

func (TabItem) SetContentWidth

func (self TabItem) SetContentWidth(v float32)

func (TabItem) SetFlags

func (self TabItem) SetFlags(v TabItemFlags)

func (TabItem) SetID

func (self TabItem) SetID(v ID)

func (TabItem) SetIndexDuringLayout

func (self TabItem) SetIndexDuringLayout(v int16)

func (TabItem) SetLastFrameSelected

func (self TabItem) SetLastFrameSelected(v int32)

func (TabItem) SetLastFrameVisible

func (self TabItem) SetLastFrameVisible(v int32)

func (TabItem) SetNameOffset

func (self TabItem) SetNameOffset(v int)

func (TabItem) SetOffset

func (self TabItem) SetOffset(v float32)

func (TabItem) SetRequestedWidth

func (self TabItem) SetRequestedWidth(v float32)

func (TabItem) SetWantClose

func (self TabItem) SetWantClose(v bool)

func (TabItem) SetWidth

func (self TabItem) SetWidth(v float32)

func (TabItem) SetWindow

func (self TabItem) SetWindow(v *Window)

func (*TabItem) WantClose

func (self *TabItem) WantClose() bool

func (*TabItem) Width

func (self *TabItem) Width() float32

func (*TabItem) Window

func (self *TabItem) Window() *Window

type TabItemFlags

type TabItemFlags int32

Flags for ImGui::BeginTabItem() original name: ImGuiTabItemFlags_

const (
	TabItemFlagsNone TabItemFlags = 0
	// Display a dot next to the title + set ImGuiTabItemFlags_NoAssumedClosure.
	TabItemFlagsUnsavedDocument TabItemFlags = 1
	// Trigger flag to programmatically make the tab selected when calling BeginTabItem()
	TabItemFlagsSetSelected TabItemFlags = 2
	// Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You may handle this behavior manually on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false.
	TabItemFlagsNoCloseWithMiddleMouseButton TabItemFlags = 4
	// Don't call PushID()/PopID() on BeginTabItem()/EndTabItem()
	TabItemFlagsNoPushId TabItemFlags = 8
	// Disable tooltip for the given tab
	TabItemFlagsNoTooltip TabItemFlags = 16
	// Disable reordering this tab or having another tab cross over this tab
	TabItemFlagsNoReorder TabItemFlags = 32
	// Enforce the tab position to the left of the tab bar (after the tab list popup button)
	TabItemFlagsLeading TabItemFlags = 64
	// Enforce the tab position to the right of the tab bar (before the scrolling buttons)
	TabItemFlagsTrailing TabItemFlags = 128
	// Tab is selected when trying to close + closure is not immediately assumed (will wait for user to stop submitting the tab). Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar.
	TabItemFlagsNoAssumedClosure TabItemFlags = 256
)

type TabItemFlagsPrivate

type TabItemFlagsPrivate int32

Extend ImGuiTabItemFlags_ original name: ImGuiTabItemFlagsPrivate_

const (
	TabItemFlagsSectionMask TabItemFlagsPrivate = 192
	// Track whether p_open was set or not (we'll need this info on the next frame to recompute ContentWidth during layout)
	TabItemFlagsNoCloseButton TabItemFlagsPrivate = 1048576
	// Used by TabItemButton, change the tab item behavior to mimic a button
	TabItemFlagsButton TabItemFlagsPrivate = 2097152
	// [Docking] Trailing tabs with the _Unsorted flag will be sorted based on the DockOrder of their Window.
	TabItemFlagsUnsorted TabItemFlagsPrivate = 4194304
)

type Table

type Table struct {
	CData *C.ImGuiTable
}

func InternalCurrentTable

func InternalCurrentTable() *Table

func InternalNewTable

func InternalNewTable() *Table

func InternalTableFindByID

func InternalTableFindByID(id ID) *Table

func NewEmptyTable added in v1.2.0

func NewEmptyTable() *Table

NewEmptyTable creates Table with its 0 value.

func NewTableFromC

func NewTableFromC[SRC any](cvalue SRC) *Table

NewTableFromC creates Table from its C pointer. SRC ~= *C.ImGuiTable

func (*Table) AngledHeadersCount

func (self *Table) AngledHeadersCount() TableColumnIdx

func (*Table) AngledHeadersHeight

func (self *Table) AngledHeadersHeight() float32

func (*Table) AngledHeadersSlope

func (self *Table) AngledHeadersSlope() float32

func (*Table) AutoFitSingleColumn

func (self *Table) AutoFitSingleColumn() TableColumnIdx

func (*Table) Bg0ClipRectForDrawCmd

func (self *Table) Bg0ClipRectForDrawCmd() Rect

func (*Table) Bg2ClipRectForDrawCmd

func (self *Table) Bg2ClipRectForDrawCmd() Rect

func (*Table) Bg2DrawChannelCurrent

func (self *Table) Bg2DrawChannelCurrent() TableDrawChannelIdx

func (*Table) Bg2DrawChannelUnfrozen

func (self *Table) Bg2DrawChannelUnfrozen() TableDrawChannelIdx

func (*Table) BgClipRect

func (self *Table) BgClipRect() Rect

func (*Table) BorderColorLight

func (self *Table) BorderColorLight() uint32

func (*Table) BorderColorStrong

func (self *Table) BorderColorStrong() uint32

func (*Table) BorderX1

func (self *Table) BorderX1() float32

func (*Table) BorderX2

func (self *Table) BorderX2() float32

func (Table) C

func (self Table) C() (C.ImGuiTable, func())

C is like Handle but returns plain type instead of pointer.

func (*Table) CellPaddingX

func (self *Table) CellPaddingX() float32

func (*Table) CellSpacingX1

func (self *Table) CellSpacingX1() float32

func (*Table) CellSpacingX2

func (self *Table) CellSpacingX2() float32

func (*Table) ColumnsAutoFitWidth

func (self *Table) ColumnsAutoFitWidth() float32

func (*Table) ColumnsCount

func (self *Table) ColumnsCount() int32

func (*Table) ColumnsEnabledCount

func (self *Table) ColumnsEnabledCount() TableColumnIdx

func (*Table) ColumnsEnabledFixedCount

func (self *Table) ColumnsEnabledFixedCount() TableColumnIdx

func (*Table) ColumnsGivenWidth

func (self *Table) ColumnsGivenWidth() float32

func (*Table) ColumnsNames

func (self *Table) ColumnsNames() TextBuffer

func (*Table) ColumnsStretchSumWeights

func (self *Table) ColumnsStretchSumWeights() float32

func (*Table) ContextPopupColumn

func (self *Table) ContextPopupColumn() TableColumnIdx

func (*Table) CurrentColumn

func (self *Table) CurrentColumn() int32

func (*Table) CurrentRow

func (self *Table) CurrentRow() int32

func (*Table) DeclColumnsCount

func (self *Table) DeclColumnsCount() TableColumnIdx

func (*Table) DisableDefaultContextMenu

func (self *Table) DisableDefaultContextMenu() bool

func (*Table) DrawSplitter

func (self *Table) DrawSplitter() *DrawListSplitter

func (*Table) DummyDrawChannel

func (self *Table) DummyDrawChannel() TableDrawChannelIdx

func (*Table) EnabledMaskByDisplayOrder

func (self *Table) EnabledMaskByDisplayOrder() BitArrayPtr

func (*Table) EnabledMaskByIndex

func (self *Table) EnabledMaskByIndex() BitArrayPtr

func (*Table) Flags

func (self *Table) Flags() TableFlags

func (*Table) FreezeColumnsCount

func (self *Table) FreezeColumnsCount() TableColumnIdx

func (*Table) FreezeColumnsRequest

func (self *Table) FreezeColumnsRequest() TableColumnIdx

func (*Table) FreezeRowsCount

func (self *Table) FreezeRowsCount() TableColumnIdx

func (*Table) FreezeRowsRequest

func (self *Table) FreezeRowsRequest() TableColumnIdx

func (*Table) Handle

func (self *Table) Handle() (result *C.ImGuiTable, fin func())

Handle returns C version of Table and its finalizer func.

func (*Table) HasScrollbarYCurr

func (self *Table) HasScrollbarYCurr() bool

func (*Table) HasScrollbarYPrev

func (self *Table) HasScrollbarYPrev() bool

func (*Table) HeldHeaderColumn

func (self *Table) HeldHeaderColumn() TableColumnIdx

func (*Table) HighlightColumnHeader

func (self *Table) HighlightColumnHeader() TableColumnIdx

func (*Table) HostBackupInnerClipRect

func (self *Table) HostBackupInnerClipRect() Rect

func (*Table) HostClipRect

func (self *Table) HostClipRect() Rect

func (*Table) HostIndentX

func (self *Table) HostIndentX() float32

func (*Table) HostSkipItems

func (self *Table) HostSkipItems() bool

func (*Table) HoveredColumnBody

func (self *Table) HoveredColumnBody() TableColumnIdx

func (*Table) HoveredColumnBorder

func (self *Table) HoveredColumnBorder() TableColumnIdx

func (*Table) ID

func (self *Table) ID() ID

func (*Table) InnerClipRect

func (self *Table) InnerClipRect() Rect

func (*Table) InnerRect

func (self *Table) InnerRect() Rect

func (*Table) InnerWidth

func (self *Table) InnerWidth() float32

func (*Table) InnerWindow

func (self *Table) InnerWindow() *Window

func (*Table) InstanceCurrent

func (self *Table) InstanceCurrent() int16

func (*Table) InstanceDataExtra

func (self *Table) InstanceDataExtra() vectors.Vector[TableInstanceData]

func (*Table) InstanceDataFirst

func (self *Table) InstanceDataFirst() TableInstanceData

func (*Table) InstanceInteracted

func (self *Table) InstanceInteracted() int16

func (*Table) InternalDestroy

func (self *Table) InternalDestroy()

func (*Table) IsActiveIdAliveBeforeTable

func (self *Table) IsActiveIdAliveBeforeTable() bool

func (*Table) IsActiveIdInTable

func (self *Table) IsActiveIdInTable() bool

func (*Table) IsContextPopupOpen

func (self *Table) IsContextPopupOpen() bool

func (*Table) IsDefaultDisplayOrder

func (self *Table) IsDefaultDisplayOrder() bool

func (*Table) IsDefaultSizingPolicy

func (self *Table) IsDefaultSizingPolicy() bool

func (*Table) IsInitializing

func (self *Table) IsInitializing() bool

func (*Table) IsInsideRow

func (self *Table) IsInsideRow() bool

func (*Table) IsLayoutLocked

func (self *Table) IsLayoutLocked() bool

func (*Table) IsResetAllRequest

func (self *Table) IsResetAllRequest() bool

func (*Table) IsResetDisplayOrderRequest

func (self *Table) IsResetDisplayOrderRequest() bool

func (*Table) IsSettingsDirty

func (self *Table) IsSettingsDirty() bool

func (*Table) IsSettingsRequestLoad

func (self *Table) IsSettingsRequestLoad() bool

func (*Table) IsSortSpecsDirty

func (self *Table) IsSortSpecsDirty() bool

func (*Table) IsUnfrozenRows

func (self *Table) IsUnfrozenRows() bool

func (*Table) IsUsingHeaders

func (self *Table) IsUsingHeaders() bool

func (*Table) LastFrameActive

func (self *Table) LastFrameActive() int32

func (*Table) LastResizedColumn

func (self *Table) LastResizedColumn() TableColumnIdx

func (*Table) LastRowFlags

func (self *Table) LastRowFlags() TableRowFlags

func (*Table) LeftMostEnabledColumn

func (self *Table) LeftMostEnabledColumn() TableColumnIdx

func (*Table) LeftMostStretchedColumn

func (self *Table) LeftMostStretchedColumn() TableColumnIdx

func (*Table) MemoryCompacted

func (self *Table) MemoryCompacted() bool

func (*Table) MinColumnWidth

func (self *Table) MinColumnWidth() float32

func (*Table) OuterPaddingX

func (self *Table) OuterPaddingX() float32

func (*Table) OuterRect

func (self *Table) OuterRect() Rect

func (*Table) OuterWindow

func (self *Table) OuterWindow() *Window

func (*Table) RawData

func (self *Table) RawData() uintptr

func (*Table) RefScale

func (self *Table) RefScale() float32

func (*Table) ReorderColumn

func (self *Table) ReorderColumn() TableColumnIdx

func (*Table) ReorderColumnDir

func (self *Table) ReorderColumnDir() TableColumnIdx

func (*Table) ResizeLockMinContentsX2

func (self *Table) ResizeLockMinContentsX2() float32

func (*Table) ResizedColumn

func (self *Table) ResizedColumn() TableColumnIdx

func (*Table) ResizedColumnNextWidth

func (self *Table) ResizedColumnNextWidth() float32

func (*Table) RightMostEnabledColumn

func (self *Table) RightMostEnabledColumn() TableColumnIdx

func (*Table) RightMostStretchedColumn

func (self *Table) RightMostStretchedColumn() TableColumnIdx

func (*Table) RowBgColor

func (self *Table) RowBgColor() [2](uint32)

func (*Table) RowBgColorCounter

func (self *Table) RowBgColorCounter() int32

func (*Table) RowCellDataCurrent

func (self *Table) RowCellDataCurrent() TableColumnIdx

func (*Table) RowCellPaddingY

func (self *Table) RowCellPaddingY() float32

func (*Table) RowFlags

func (self *Table) RowFlags() TableRowFlags

func (*Table) RowIndentOffsetX

func (self *Table) RowIndentOffsetX() float32

func (*Table) RowMinHeight

func (self *Table) RowMinHeight() float32

func (*Table) RowPosY1

func (self *Table) RowPosY1() float32

func (*Table) RowPosY2

func (self *Table) RowPosY2() float32

func (*Table) RowTextBaseline

func (self *Table) RowTextBaseline() float32

func (Table) SetAngledHeadersCount

func (self Table) SetAngledHeadersCount(v TableColumnIdx)

func (Table) SetAngledHeadersHeight

func (self Table) SetAngledHeadersHeight(v float32)

func (Table) SetAngledHeadersSlope

func (self Table) SetAngledHeadersSlope(v float32)

func (Table) SetAutoFitSingleColumn

func (self Table) SetAutoFitSingleColumn(v TableColumnIdx)

func (Table) SetBg0ClipRectForDrawCmd

func (self Table) SetBg0ClipRectForDrawCmd(v Rect)

func (Table) SetBg2ClipRectForDrawCmd

func (self Table) SetBg2ClipRectForDrawCmd(v Rect)

func (Table) SetBg2DrawChannelCurrent

func (self Table) SetBg2DrawChannelCurrent(v TableDrawChannelIdx)

func (Table) SetBg2DrawChannelUnfrozen

func (self Table) SetBg2DrawChannelUnfrozen(v TableDrawChannelIdx)

func (Table) SetBgClipRect

func (self Table) SetBgClipRect(v Rect)

func (Table) SetBorderColorLight

func (self Table) SetBorderColorLight(v uint32)

func (Table) SetBorderColorStrong

func (self Table) SetBorderColorStrong(v uint32)

func (Table) SetBorderX1

func (self Table) SetBorderX1(v float32)

func (Table) SetBorderX2

func (self Table) SetBorderX2(v float32)

func (Table) SetCellPaddingX

func (self Table) SetCellPaddingX(v float32)

func (Table) SetCellSpacingX1

func (self Table) SetCellSpacingX1(v float32)

func (Table) SetCellSpacingX2

func (self Table) SetCellSpacingX2(v float32)

func (Table) SetColumnsAutoFitWidth

func (self Table) SetColumnsAutoFitWidth(v float32)

func (Table) SetColumnsCount

func (self Table) SetColumnsCount(v int32)

func (Table) SetColumnsEnabledCount

func (self Table) SetColumnsEnabledCount(v TableColumnIdx)

func (Table) SetColumnsEnabledFixedCount

func (self Table) SetColumnsEnabledFixedCount(v TableColumnIdx)

func (Table) SetColumnsGivenWidth

func (self Table) SetColumnsGivenWidth(v float32)

func (Table) SetColumnsNames

func (self Table) SetColumnsNames(v TextBuffer)

func (Table) SetColumnsStretchSumWeights

func (self Table) SetColumnsStretchSumWeights(v float32)

func (Table) SetContextPopupColumn

func (self Table) SetContextPopupColumn(v TableColumnIdx)

func (Table) SetCurrentColumn

func (self Table) SetCurrentColumn(v int32)

func (Table) SetCurrentRow

func (self Table) SetCurrentRow(v int32)

func (Table) SetDeclColumnsCount

func (self Table) SetDeclColumnsCount(v TableColumnIdx)

func (Table) SetDisableDefaultContextMenu

func (self Table) SetDisableDefaultContextMenu(v bool)

func (Table) SetDrawSplitter

func (self Table) SetDrawSplitter(v *DrawListSplitter)

func (Table) SetDummyDrawChannel

func (self Table) SetDummyDrawChannel(v TableDrawChannelIdx)

func (Table) SetEnabledMaskByDisplayOrder

func (self Table) SetEnabledMaskByDisplayOrder(v BitArrayPtr)

func (Table) SetEnabledMaskByIndex

func (self Table) SetEnabledMaskByIndex(v BitArrayPtr)

func (Table) SetFlags

func (self Table) SetFlags(v TableFlags)

func (Table) SetFreezeColumnsCount

func (self Table) SetFreezeColumnsCount(v TableColumnIdx)

func (Table) SetFreezeColumnsRequest

func (self Table) SetFreezeColumnsRequest(v TableColumnIdx)

func (Table) SetFreezeRowsCount

func (self Table) SetFreezeRowsCount(v TableColumnIdx)

func (Table) SetFreezeRowsRequest

func (self Table) SetFreezeRowsRequest(v TableColumnIdx)

func (Table) SetHasScrollbarYCurr

func (self Table) SetHasScrollbarYCurr(v bool)

func (Table) SetHasScrollbarYPrev

func (self Table) SetHasScrollbarYPrev(v bool)

func (Table) SetHeldHeaderColumn

func (self Table) SetHeldHeaderColumn(v TableColumnIdx)

func (Table) SetHighlightColumnHeader

func (self Table) SetHighlightColumnHeader(v TableColumnIdx)

func (Table) SetHostBackupInnerClipRect

func (self Table) SetHostBackupInnerClipRect(v Rect)

func (Table) SetHostClipRect

func (self Table) SetHostClipRect(v Rect)

func (Table) SetHostIndentX

func (self Table) SetHostIndentX(v float32)

func (Table) SetHostSkipItems

func (self Table) SetHostSkipItems(v bool)

func (Table) SetHoveredColumnBody

func (self Table) SetHoveredColumnBody(v TableColumnIdx)

func (Table) SetHoveredColumnBorder

func (self Table) SetHoveredColumnBorder(v TableColumnIdx)

func (Table) SetID

func (self Table) SetID(v ID)

func (Table) SetInnerClipRect

func (self Table) SetInnerClipRect(v Rect)

func (Table) SetInnerRect

func (self Table) SetInnerRect(v Rect)

func (Table) SetInnerWidth

func (self Table) SetInnerWidth(v float32)

func (Table) SetInnerWindow

func (self Table) SetInnerWindow(v *Window)

func (Table) SetInstanceCurrent

func (self Table) SetInstanceCurrent(v int16)

func (Table) SetInstanceDataExtra

func (self Table) SetInstanceDataExtra(v vectors.Vector[TableInstanceData])

func (Table) SetInstanceDataFirst

func (self Table) SetInstanceDataFirst(v TableInstanceData)

func (Table) SetInstanceInteracted

func (self Table) SetInstanceInteracted(v int16)

func (Table) SetIsActiveIdAliveBeforeTable

func (self Table) SetIsActiveIdAliveBeforeTable(v bool)

func (Table) SetIsActiveIdInTable

func (self Table) SetIsActiveIdInTable(v bool)

func (Table) SetIsContextPopupOpen

func (self Table) SetIsContextPopupOpen(v bool)

func (Table) SetIsDefaultDisplayOrder

func (self Table) SetIsDefaultDisplayOrder(v bool)

func (Table) SetIsDefaultSizingPolicy

func (self Table) SetIsDefaultSizingPolicy(v bool)

func (Table) SetIsInitializing

func (self Table) SetIsInitializing(v bool)

func (Table) SetIsInsideRow

func (self Table) SetIsInsideRow(v bool)

func (Table) SetIsLayoutLocked

func (self Table) SetIsLayoutLocked(v bool)

func (Table) SetIsResetAllRequest

func (self Table) SetIsResetAllRequest(v bool)

func (Table) SetIsResetDisplayOrderRequest

func (self Table) SetIsResetDisplayOrderRequest(v bool)

func (Table) SetIsSettingsDirty

func (self Table) SetIsSettingsDirty(v bool)

func (Table) SetIsSettingsRequestLoad

func (self Table) SetIsSettingsRequestLoad(v bool)

func (Table) SetIsSortSpecsDirty

func (self Table) SetIsSortSpecsDirty(v bool)

func (Table) SetIsUnfrozenRows

func (self Table) SetIsUnfrozenRows(v bool)

func (Table) SetIsUsingHeaders

func (self Table) SetIsUsingHeaders(v bool)

func (Table) SetLastFrameActive

func (self Table) SetLastFrameActive(v int32)

func (Table) SetLastResizedColumn

func (self Table) SetLastResizedColumn(v TableColumnIdx)

func (Table) SetLastRowFlags

func (self Table) SetLastRowFlags(v TableRowFlags)

func (Table) SetLeftMostEnabledColumn

func (self Table) SetLeftMostEnabledColumn(v TableColumnIdx)

func (Table) SetLeftMostStretchedColumn

func (self Table) SetLeftMostStretchedColumn(v TableColumnIdx)

func (Table) SetMemoryCompacted

func (self Table) SetMemoryCompacted(v bool)

func (Table) SetMinColumnWidth

func (self Table) SetMinColumnWidth(v float32)

func (Table) SetOuterPaddingX

func (self Table) SetOuterPaddingX(v float32)

func (Table) SetOuterRect

func (self Table) SetOuterRect(v Rect)

func (Table) SetOuterWindow

func (self Table) SetOuterWindow(v *Window)

func (Table) SetRawData

func (self Table) SetRawData(v uintptr)

func (Table) SetRefScale

func (self Table) SetRefScale(v float32)

func (Table) SetReorderColumn

func (self Table) SetReorderColumn(v TableColumnIdx)

func (Table) SetReorderColumnDir

func (self Table) SetReorderColumnDir(v TableColumnIdx)

func (Table) SetResizeLockMinContentsX2

func (self Table) SetResizeLockMinContentsX2(v float32)

func (Table) SetResizedColumn

func (self Table) SetResizedColumn(v TableColumnIdx)

func (Table) SetResizedColumnNextWidth

func (self Table) SetResizedColumnNextWidth(v float32)

func (Table) SetRightMostEnabledColumn

func (self Table) SetRightMostEnabledColumn(v TableColumnIdx)

func (Table) SetRightMostStretchedColumn

func (self Table) SetRightMostStretchedColumn(v TableColumnIdx)

func (Table) SetRowBgColor

func (self Table) SetRowBgColor(v *[2]uint32)

func (Table) SetRowBgColorCounter

func (self Table) SetRowBgColorCounter(v int32)

func (Table) SetRowCellDataCurrent

func (self Table) SetRowCellDataCurrent(v TableColumnIdx)

func (Table) SetRowCellPaddingY

func (self Table) SetRowCellPaddingY(v float32)

func (Table) SetRowFlags

func (self Table) SetRowFlags(v TableRowFlags)

func (Table) SetRowIndentOffsetX

func (self Table) SetRowIndentOffsetX(v float32)

func (Table) SetRowMinHeight

func (self Table) SetRowMinHeight(v float32)

func (Table) SetRowPosY1

func (self Table) SetRowPosY1(v float32)

func (Table) SetRowPosY2

func (self Table) SetRowPosY2(v float32)

func (Table) SetRowTextBaseline

func (self Table) SetRowTextBaseline(v float32)

func (Table) SetSettingsLoadedFlags

func (self Table) SetSettingsLoadedFlags(v TableFlags)

func (Table) SetSettingsOffset

func (self Table) SetSettingsOffset(v int32)

func (Table) SetSortSpecs

func (self Table) SetSortSpecs(v TableSortSpecs)

func (Table) SetSortSpecsCount

func (self Table) SetSortSpecsCount(v TableColumnIdx)

func (Table) SetSortSpecsMulti

func (self Table) SetSortSpecsMulti(v vectors.Vector[TableColumnSortSpecs])

func (Table) SetSortSpecsSingle

func (self Table) SetSortSpecsSingle(v TableColumnSortSpecs)

func (Table) SetTempData

func (self Table) SetTempData(v *TableTempData)

func (Table) SetVisibleMaskByIndex

func (self Table) SetVisibleMaskByIndex(v BitArrayPtr)

func (Table) SetWorkRect

func (self Table) SetWorkRect(v Rect)

func (*Table) SettingsLoadedFlags

func (self *Table) SettingsLoadedFlags() TableFlags

func (*Table) SettingsOffset

func (self *Table) SettingsOffset() int32

func (*Table) SortSpecs

func (self *Table) SortSpecs() TableSortSpecs

func (*Table) SortSpecsCount

func (self *Table) SortSpecsCount() TableColumnIdx

func (*Table) SortSpecsMulti

func (self *Table) SortSpecsMulti() vectors.Vector[TableColumnSortSpecs]

func (*Table) SortSpecsSingle

func (self *Table) SortSpecsSingle() TableColumnSortSpecs

func (*Table) TempData

func (self *Table) TempData() *TableTempData

func (*Table) VisibleMaskByIndex

func (self *Table) VisibleMaskByIndex() BitArrayPtr

func (*Table) WorkRect

func (self *Table) WorkRect() Rect

type TableBgTarget

type TableBgTarget int32

Enum for ImGui::TableSetBgColor() Background colors are rendering in 3 layers:

  • Layer 0: draw with RowBg0 color if set, otherwise draw with ColumnBg0 if set.
  • Layer 1: draw with RowBg1 color if set, otherwise draw with ColumnBg1 if set.
  • Layer 2: draw with CellBg color if set.

The purpose of the two row/columns layers is to let you decide if a background color change should override or blend with the existing color. When using ImGuiTableFlags_RowBg on the table, each row has the RowBg0 color automatically set for odd/even rows. If you set the color of RowBg0 target, your color will override the existing RowBg0 color. If you set the color of RowBg1 or ColumnBg1 target, your color will blend over the RowBg0 color. original name: ImGuiTableBgTarget_

const (
	TableBgTargetNone TableBgTarget = 0
	// Set row background color 0 (generally used for background, automatically set when ImGuiTableFlags_RowBg is used)
	TableBgTargetRowBg0 TableBgTarget = 1
	// Set row background color 1 (generally used for selection marking)
	TableBgTargetRowBg1 TableBgTarget = 2
	// Set cell background color (top-most color)
	TableBgTargetCellBg TableBgTarget = 3
)

type TableCellData

type TableCellData struct {
	CData *C.ImGuiTableCellData
}

func NewEmptyTableCellData added in v1.2.0

func NewEmptyTableCellData() *TableCellData

NewEmptyTableCellData creates TableCellData with its 0 value.

func NewTableCellDataFromC

func NewTableCellDataFromC[SRC any](cvalue SRC) *TableCellData

NewTableCellDataFromC creates TableCellData from its C pointer. SRC ~= *C.ImGuiTableCellData

func (*TableCellData) BgColor

func (self *TableCellData) BgColor() uint32

func (TableCellData) C

func (self TableCellData) C() (C.ImGuiTableCellData, func())

C is like Handle but returns plain type instead of pointer.

func (*TableCellData) Column

func (self *TableCellData) Column() TableColumnIdx

func (*TableCellData) Handle

func (self *TableCellData) Handle() (result *C.ImGuiTableCellData, fin func())

Handle returns C version of TableCellData and its finalizer func.

func (TableCellData) SetBgColor

func (self TableCellData) SetBgColor(v uint32)

func (TableCellData) SetColumn

func (self TableCellData) SetColumn(v TableColumnIdx)

type TableColumn

type TableColumn struct {
	CData *C.ImGuiTableColumn
}

func InternalNewTableColumn

func InternalNewTableColumn() *TableColumn

func NewEmptyTableColumn added in v1.2.0

func NewEmptyTableColumn() *TableColumn

NewEmptyTableColumn creates TableColumn with its 0 value.

func NewTableColumnFromC

func NewTableColumnFromC[SRC any](cvalue SRC) *TableColumn

NewTableColumnFromC creates TableColumn from its C pointer. SRC ~= *C.ImGuiTableColumn

func (*TableColumn) AutoFitQueue

func (self *TableColumn) AutoFitQueue() byte

func (TableColumn) C

func (self TableColumn) C() (C.ImGuiTableColumn, func())

C is like Handle but returns plain type instead of pointer.

func (*TableColumn) CannotSkipItemsQueue

func (self *TableColumn) CannotSkipItemsQueue() byte

func (*TableColumn) ClipRect

func (self *TableColumn) ClipRect() Rect

func (*TableColumn) ContentMaxXFrozen

func (self *TableColumn) ContentMaxXFrozen() float32

func (*TableColumn) ContentMaxXHeadersIdeal

func (self *TableColumn) ContentMaxXHeadersIdeal() float32

func (*TableColumn) ContentMaxXHeadersUsed

func (self *TableColumn) ContentMaxXHeadersUsed() float32

func (*TableColumn) ContentMaxXUnfrozen

func (self *TableColumn) ContentMaxXUnfrozen() float32

func (*TableColumn) Destroy

func (self *TableColumn) Destroy()

func (*TableColumn) DisplayOrder

func (self *TableColumn) DisplayOrder() TableColumnIdx

func (*TableColumn) DrawChannelCurrent

func (self *TableColumn) DrawChannelCurrent() TableDrawChannelIdx

func (*TableColumn) DrawChannelFrozen

func (self *TableColumn) DrawChannelFrozen() TableDrawChannelIdx

func (*TableColumn) DrawChannelUnfrozen

func (self *TableColumn) DrawChannelUnfrozen() TableDrawChannelIdx

func (*TableColumn) Flags

func (self *TableColumn) Flags() TableColumnFlags

func (*TableColumn) Handle

func (self *TableColumn) Handle() (result *C.ImGuiTableColumn, fin func())

Handle returns C version of TableColumn and its finalizer func.

func (*TableColumn) IndexWithinEnabledSet

func (self *TableColumn) IndexWithinEnabledSet() TableColumnIdx

func (*TableColumn) InitStretchWeightOrWidth

func (self *TableColumn) InitStretchWeightOrWidth() float32

func (*TableColumn) IsEnabled

func (self *TableColumn) IsEnabled() bool

func (*TableColumn) IsPreserveWidthAuto

func (self *TableColumn) IsPreserveWidthAuto() bool

func (*TableColumn) IsRequestOutput

func (self *TableColumn) IsRequestOutput() bool

func (*TableColumn) IsSkipItems

func (self *TableColumn) IsSkipItems() bool

func (*TableColumn) IsUserEnabled

func (self *TableColumn) IsUserEnabled() bool

func (*TableColumn) IsUserEnabledNextFrame

func (self *TableColumn) IsUserEnabledNextFrame() bool

func (*TableColumn) IsVisibleX

func (self *TableColumn) IsVisibleX() bool

func (*TableColumn) IsVisibleY

func (self *TableColumn) IsVisibleY() bool

func (*TableColumn) ItemWidth

func (self *TableColumn) ItemWidth() float32

func (*TableColumn) MaxX

func (self *TableColumn) MaxX() float32

func (*TableColumn) MinX

func (self *TableColumn) MinX() float32

func (*TableColumn) NameOffset

func (self *TableColumn) NameOffset() int16

func (*TableColumn) NavLayerCurrent

func (self *TableColumn) NavLayerCurrent() int

func (*TableColumn) NextEnabledColumn

func (self *TableColumn) NextEnabledColumn() TableColumnIdx

func (*TableColumn) PrevEnabledColumn

func (self *TableColumn) PrevEnabledColumn() TableColumnIdx

func (TableColumn) SetAutoFitQueue

func (self TableColumn) SetAutoFitQueue(v byte)

func (TableColumn) SetCannotSkipItemsQueue

func (self TableColumn) SetCannotSkipItemsQueue(v byte)

func (TableColumn) SetClipRect

func (self TableColumn) SetClipRect(v Rect)

func (TableColumn) SetContentMaxXFrozen

func (self TableColumn) SetContentMaxXFrozen(v float32)

func (TableColumn) SetContentMaxXHeadersIdeal

func (self TableColumn) SetContentMaxXHeadersIdeal(v float32)

func (TableColumn) SetContentMaxXHeadersUsed

func (self TableColumn) SetContentMaxXHeadersUsed(v float32)

func (TableColumn) SetContentMaxXUnfrozen

func (self TableColumn) SetContentMaxXUnfrozen(v float32)

func (TableColumn) SetDisplayOrder

func (self TableColumn) SetDisplayOrder(v TableColumnIdx)

func (TableColumn) SetDrawChannelCurrent

func (self TableColumn) SetDrawChannelCurrent(v TableDrawChannelIdx)

func (TableColumn) SetDrawChannelFrozen

func (self TableColumn) SetDrawChannelFrozen(v TableDrawChannelIdx)

func (TableColumn) SetDrawChannelUnfrozen

func (self TableColumn) SetDrawChannelUnfrozen(v TableDrawChannelIdx)

func (TableColumn) SetFlags

func (self TableColumn) SetFlags(v TableColumnFlags)

func (TableColumn) SetIndexWithinEnabledSet

func (self TableColumn) SetIndexWithinEnabledSet(v TableColumnIdx)

func (TableColumn) SetInitStretchWeightOrWidth

func (self TableColumn) SetInitStretchWeightOrWidth(v float32)

func (TableColumn) SetIsEnabled

func (self TableColumn) SetIsEnabled(v bool)

func (TableColumn) SetIsPreserveWidthAuto

func (self TableColumn) SetIsPreserveWidthAuto(v bool)

func (TableColumn) SetIsRequestOutput

func (self TableColumn) SetIsRequestOutput(v bool)

func (TableColumn) SetIsSkipItems

func (self TableColumn) SetIsSkipItems(v bool)

func (TableColumn) SetIsUserEnabled

func (self TableColumn) SetIsUserEnabled(v bool)

func (TableColumn) SetIsUserEnabledNextFrame

func (self TableColumn) SetIsUserEnabledNextFrame(v bool)

func (TableColumn) SetIsVisibleX

func (self TableColumn) SetIsVisibleX(v bool)

func (TableColumn) SetIsVisibleY

func (self TableColumn) SetIsVisibleY(v bool)

func (TableColumn) SetItemWidth

func (self TableColumn) SetItemWidth(v float32)

func (TableColumn) SetMaxX

func (self TableColumn) SetMaxX(v float32)

func (TableColumn) SetMinX

func (self TableColumn) SetMinX(v float32)

func (TableColumn) SetNameOffset

func (self TableColumn) SetNameOffset(v int16)

func (TableColumn) SetNavLayerCurrent

func (self TableColumn) SetNavLayerCurrent(v int)

func (TableColumn) SetNextEnabledColumn

func (self TableColumn) SetNextEnabledColumn(v TableColumnIdx)

func (TableColumn) SetPrevEnabledColumn

func (self TableColumn) SetPrevEnabledColumn(v TableColumnIdx)

func (TableColumn) SetSortDirection

func (self TableColumn) SetSortDirection(v byte)

func (TableColumn) SetSortDirectionsAvailCount

func (self TableColumn) SetSortDirectionsAvailCount(v byte)

func (TableColumn) SetSortDirectionsAvailList

func (self TableColumn) SetSortDirectionsAvailList(v byte)

func (TableColumn) SetSortDirectionsAvailMask

func (self TableColumn) SetSortDirectionsAvailMask(v byte)

func (TableColumn) SetSortOrder

func (self TableColumn) SetSortOrder(v TableColumnIdx)

func (TableColumn) SetStretchWeight

func (self TableColumn) SetStretchWeight(v float32)

func (TableColumn) SetUserID

func (self TableColumn) SetUserID(v ID)

func (TableColumn) SetWidthAuto

func (self TableColumn) SetWidthAuto(v float32)

func (TableColumn) SetWidthGiven

func (self TableColumn) SetWidthGiven(v float32)

func (TableColumn) SetWidthMax

func (self TableColumn) SetWidthMax(v float32)

func (TableColumn) SetWidthRequest

func (self TableColumn) SetWidthRequest(v float32)

func (TableColumn) SetWorkMaxX

func (self TableColumn) SetWorkMaxX(v float32)

func (TableColumn) SetWorkMinX

func (self TableColumn) SetWorkMinX(v float32)

func (*TableColumn) SortDirection

func (self *TableColumn) SortDirection() byte

func (*TableColumn) SortDirectionsAvailCount

func (self *TableColumn) SortDirectionsAvailCount() byte

func (*TableColumn) SortDirectionsAvailList

func (self *TableColumn) SortDirectionsAvailList() byte

func (*TableColumn) SortDirectionsAvailMask

func (self *TableColumn) SortDirectionsAvailMask() byte

func (*TableColumn) SortOrder

func (self *TableColumn) SortOrder() TableColumnIdx

func (*TableColumn) StretchWeight

func (self *TableColumn) StretchWeight() float32

func (*TableColumn) UserID

func (self *TableColumn) UserID() ID

func (*TableColumn) WidthAuto

func (self *TableColumn) WidthAuto() float32

func (*TableColumn) WidthGiven

func (self *TableColumn) WidthGiven() float32

func (*TableColumn) WidthMax

func (self *TableColumn) WidthMax() float32

func (*TableColumn) WidthRequest

func (self *TableColumn) WidthRequest() float32

func (*TableColumn) WorkMaxX

func (self *TableColumn) WorkMaxX() float32

func (*TableColumn) WorkMinX

func (self *TableColumn) WorkMinX() float32

type TableColumnFlags

type TableColumnFlags int32

Flags for ImGui::TableSetupColumn() original name: ImGuiTableColumnFlags_

const (
	TableColumnFlagsNone TableColumnFlags = 0
	// Overriding/master disable flag: hide column, won't show in context menu (unlike calling TableSetColumnEnabled() which manipulates the user accessible state)
	TableColumnFlagsDisabled TableColumnFlags = 1
	// Default as a hidden/disabled column.
	TableColumnFlagsDefaultHide TableColumnFlags = 2
	// Default as a sorting column.
	TableColumnFlagsDefaultSort TableColumnFlags = 4
	// Column will stretch. Preferable with horizontal scrolling disabled (default if table sizing policy is _SizingStretchSame or _SizingStretchProp).
	TableColumnFlagsWidthStretch TableColumnFlags = 8
	// Column will not stretch. Preferable with horizontal scrolling enabled (default if table sizing policy is _SizingFixedFit and table is resizable).
	TableColumnFlagsWidthFixed TableColumnFlags = 16
	// Disable manual resizing.
	TableColumnFlagsNoResize TableColumnFlags = 32
	// Disable manual reordering this column, this will also prevent other columns from crossing over this column.
	TableColumnFlagsNoReorder TableColumnFlags = 64
	// Disable ability to hide/disable this column.
	TableColumnFlagsNoHide TableColumnFlags = 128
	// Disable clipping for this column (all NoClip columns will render in a same draw command).
	TableColumnFlagsNoClip TableColumnFlags = 256
	// Disable ability to sort on this field (even if ImGuiTableFlags_Sortable is set on the table).
	TableColumnFlagsNoSort TableColumnFlags = 512
	// Disable ability to sort in the ascending direction.
	TableColumnFlagsNoSortAscending TableColumnFlags = 1024
	// Disable ability to sort in the descending direction.
	TableColumnFlagsNoSortDescending TableColumnFlags = 2048
	// TableHeadersRow() will submit an empty label for this column. Convenient for some small columns. Name will still appear in context menu or in angled headers. You may append into this cell by calling TableSetColumnIndex() right after the TableHeadersRow() call.
	TableColumnFlagsNoHeaderLabel TableColumnFlags = 4096
	// Disable header text width contribution to automatic column width.
	TableColumnFlagsNoHeaderWidth TableColumnFlags = 8192
	// Make the initial sort direction Ascending when first sorting on this column (default).
	TableColumnFlagsPreferSortAscending TableColumnFlags = 16384
	// Make the initial sort direction Descending when first sorting on this column.
	TableColumnFlagsPreferSortDescending TableColumnFlags = 32768
	// Use current Indent value when entering cell (default for column 0).
	TableColumnFlagsIndentEnable TableColumnFlags = 65536
	// Ignore current Indent value when entering cell (default for columns > 0). Indentation changes _within_ the cell will still be honored.
	TableColumnFlagsIndentDisable TableColumnFlags = 131072
	// TableHeadersRow() will submit an angled header row for this column. Note this will add an extra row.
	TableColumnFlagsAngledHeader TableColumnFlags = 262144
	// Status: is enabled == not hidden by user/api (referred to as "Hide" in _DefaultHide and _NoHide) flags.
	TableColumnFlagsIsEnabled TableColumnFlags = 16777216
	// Status: is visible == is enabled AND not clipped by scrolling.
	TableColumnFlagsIsVisible TableColumnFlags = 33554432
	// Status: is currently part of the sort specs
	TableColumnFlagsIsSorted TableColumnFlags = 67108864
	// Status: is hovered by mouse
	TableColumnFlagsIsHovered  TableColumnFlags = 134217728
	TableColumnFlagsWidthMask  TableColumnFlags = 24
	TableColumnFlagsIndentMask TableColumnFlags = 196608
	TableColumnFlagsStatusMask TableColumnFlags = 251658240
	// [Internal] Disable user resizing this column directly (it may however we resized indirectly from its left edge)
	TableColumnFlagsNoDirectResize TableColumnFlags = 1073741824
)

func TableGetColumnFlags

func TableGetColumnFlags() TableColumnFlags

func TableGetColumnFlagsV

func TableGetColumnFlagsV(column_n int32) TableColumnFlags

return column flags so you can query their Enabled/Visible/Sorted/Hovered status flags. Pass -1 to use current column. TableGetColumnFlagsV parameter default value hint: column_n: -1

type TableColumnIdx

type TableColumnIdx int16

func NewTableColumnIdxFromC

func NewTableColumnIdxFromC[SRC any](cvalue SRC) *TableColumnIdx

NewTableColumnIdxFromC creates TableColumnIdx from its C pointer. SRC ~= *C.ImGuiTableColumnIdx

func (TableColumnIdx) C

func (self TableColumnIdx) C() (C.ImGuiTableColumnIdx, func())

C is like Handle but returns plain type instead of pointer.

func (*TableColumnIdx) Handle

func (selfSrc *TableColumnIdx) Handle() (result *C.ImGuiTableColumnIdx, fin func())

Handle returns C version of TableColumnIdx and its finalizer func.

type TableColumnSettings

type TableColumnSettings struct {
	CData *C.ImGuiTableColumnSettings
}

func InternalNewTableColumnSettings

func InternalNewTableColumnSettings() *TableColumnSettings

func NewEmptyTableColumnSettings added in v1.2.0

func NewEmptyTableColumnSettings() *TableColumnSettings

NewEmptyTableColumnSettings creates TableColumnSettings with its 0 value.

func NewTableColumnSettingsFromC

func NewTableColumnSettingsFromC[SRC any](cvalue SRC) *TableColumnSettings

NewTableColumnSettingsFromC creates TableColumnSettings from its C pointer. SRC ~= *C.ImGuiTableColumnSettings

func (TableColumnSettings) C

func (self TableColumnSettings) C() (C.ImGuiTableColumnSettings, func())

C is like Handle but returns plain type instead of pointer.

func (*TableColumnSettings) Destroy

func (self *TableColumnSettings) Destroy()

func (*TableColumnSettings) DisplayOrder

func (self *TableColumnSettings) DisplayOrder() TableColumnIdx

func (*TableColumnSettings) Handle

func (self *TableColumnSettings) Handle() (result *C.ImGuiTableColumnSettings, fin func())

Handle returns C version of TableColumnSettings and its finalizer func.

func (*TableColumnSettings) Index

func (self *TableColumnSettings) Index() TableColumnIdx

func (*TableColumnSettings) IsEnabled

func (self *TableColumnSettings) IsEnabled() byte

func (*TableColumnSettings) IsStretch

func (self *TableColumnSettings) IsStretch() byte

func (TableColumnSettings) SetDisplayOrder

func (self TableColumnSettings) SetDisplayOrder(v TableColumnIdx)

func (TableColumnSettings) SetIndex

func (self TableColumnSettings) SetIndex(v TableColumnIdx)

func (TableColumnSettings) SetIsEnabled

func (self TableColumnSettings) SetIsEnabled(v byte)

func (TableColumnSettings) SetIsStretch

func (self TableColumnSettings) SetIsStretch(v byte)

func (TableColumnSettings) SetSortDirection

func (self TableColumnSettings) SetSortDirection(v byte)

func (TableColumnSettings) SetSortOrder

func (self TableColumnSettings) SetSortOrder(v TableColumnIdx)

func (TableColumnSettings) SetUserID

func (self TableColumnSettings) SetUserID(v ID)

func (TableColumnSettings) SetWidthOrWeight

func (self TableColumnSettings) SetWidthOrWeight(v float32)

func (*TableColumnSettings) SortDirection

func (self *TableColumnSettings) SortDirection() byte

func (*TableColumnSettings) SortOrder

func (self *TableColumnSettings) SortOrder() TableColumnIdx

func (*TableColumnSettings) UserID

func (self *TableColumnSettings) UserID() ID

func (*TableColumnSettings) WidthOrWeight

func (self *TableColumnSettings) WidthOrWeight() float32

type TableColumnSortSpecs

type TableColumnSortSpecs struct {
	CData *C.ImGuiTableColumnSortSpecs
}

func NewEmptyTableColumnSortSpecs added in v1.2.0

func NewEmptyTableColumnSortSpecs() *TableColumnSortSpecs

NewEmptyTableColumnSortSpecs creates TableColumnSortSpecs with its 0 value.

func NewTableColumnSortSpecs

func NewTableColumnSortSpecs() *TableColumnSortSpecs

func NewTableColumnSortSpecsFromC

func NewTableColumnSortSpecsFromC[SRC any](cvalue SRC) *TableColumnSortSpecs

NewTableColumnSortSpecsFromC creates TableColumnSortSpecs from its C pointer. SRC ~= *C.ImGuiTableColumnSortSpecs

func (TableColumnSortSpecs) C

C is like Handle but returns plain type instead of pointer.

func (*TableColumnSortSpecs) ColumnIndex

func (self *TableColumnSortSpecs) ColumnIndex() int16

func (*TableColumnSortSpecs) ColumnUserID

func (self *TableColumnSortSpecs) ColumnUserID() ID

func (*TableColumnSortSpecs) Destroy

func (self *TableColumnSortSpecs) Destroy()

func (*TableColumnSortSpecs) Handle

func (self *TableColumnSortSpecs) Handle() (result *C.ImGuiTableColumnSortSpecs, fin func())

Handle returns C version of TableColumnSortSpecs and its finalizer func.

func (TableColumnSortSpecs) SetColumnIndex

func (self TableColumnSortSpecs) SetColumnIndex(v int16)

func (TableColumnSortSpecs) SetColumnUserID

func (self TableColumnSortSpecs) SetColumnUserID(v ID)

func (TableColumnSortSpecs) SetSortDirection

func (self TableColumnSortSpecs) SetSortDirection(v SortDirection)

func (TableColumnSortSpecs) SetSortOrder

func (self TableColumnSortSpecs) SetSortOrder(v int16)

func (*TableColumnSortSpecs) SortDirection

func (self *TableColumnSortSpecs) SortDirection() SortDirection

func (*TableColumnSortSpecs) SortOrder

func (self *TableColumnSortSpecs) SortOrder() int16

type TableColumnsSettings

type TableColumnsSettings struct {
	CData *C.ImGuiTableColumnsSettings
}

func NewTableColumnsSettingsFromC

func NewTableColumnsSettingsFromC[SRC any](cvalue SRC) *TableColumnsSettings

NewTableColumnsSettingsFromC creates TableColumnsSettings from its C pointer. SRC ~= *C.ImGuiTableColumnsSettings

func (*TableColumnsSettings) Handle

func (self *TableColumnsSettings) Handle() (result *C.ImGuiTableColumnsSettings, fin func())

Handle returns C version of TableColumnsSettings and its finalizer func.

type TableDrawChannelIdx

type TableDrawChannelIdx uint16

func NewTableDrawChannelIdxFromC

func NewTableDrawChannelIdxFromC[SRC any](cvalue SRC) *TableDrawChannelIdx

NewTableDrawChannelIdxFromC creates TableDrawChannelIdx from its C pointer. SRC ~= *C.ImGuiTableDrawChannelIdx

func (TableDrawChannelIdx) C

func (self TableDrawChannelIdx) C() (C.ImGuiTableDrawChannelIdx, func())

C is like Handle but returns plain type instead of pointer.

func (*TableDrawChannelIdx) Handle

func (selfSrc *TableDrawChannelIdx) Handle() (result *C.ImGuiTableDrawChannelIdx, fin func())

Handle returns C version of TableDrawChannelIdx and its finalizer func.

type TableFlags

type TableFlags int32

Flags for ImGui::BeginTable()

  • Important! Sizing policies have complex and subtle side effects, much more so than you would expect. Read comments/demos carefully + experiment with live demos to get acquainted with them.
  • The DEFAULT sizing policies are:
  • Default to ImGuiTableFlags_SizingFixedFit if ScrollX is on, or if host window has ImGuiWindowFlags_AlwaysAutoResize.
  • Default to ImGuiTableFlags_SizingStretchSame if ScrollX is off.
  • When ScrollX is off:
  • Table defaults to ImGuiTableFlags_SizingStretchSame -> all Columns defaults to ImGuiTableColumnFlags_WidthStretch with same weight.
  • Columns sizing policy allowed: Stretch (default), Fixed/Auto.
  • Fixed Columns (if any) will generally obtain their requested width (unless the table cannot fit them all).
  • Stretch Columns will share the remaining width according to their respective weight.
  • Mixed Fixed/Stretch columns is possible but has various side-effects on resizing behaviors. The typical use of mixing sizing policies is: any number of LEADING Fixed columns, followed by one or two TRAILING Stretch columns. (this is because the visible order of columns have subtle but necessary effects on how they react to manual resizing).
  • When ScrollX is on:
  • Table defaults to ImGuiTableFlags_SizingFixedFit -> all Columns defaults to ImGuiTableColumnFlags_WidthFixed
  • Columns sizing policy allowed: Fixed/Auto mostly.
  • Fixed Columns can be enlarged as needed. Table will show a horizontal scrollbar if needed.
  • When using auto-resizing (non-resizable) fixed columns, querying the content width to use item right-alignment e.g. SetNextItemWidth(-FLT_MIN) doesn't make sense, would create a feedback loop.
  • Using Stretch columns OFTEN DOES NOT MAKE SENSE if ScrollX is on, UNLESS you have specified a value for 'inner_width' in BeginTable(). If you specify a value for 'inner_width' then effectively the scrolling space is known and Stretch or mixed Fixed/Stretch columns become meaningful again.
  • Read on documentation at the top of imgui_tables.cpp for details.

original name: ImGuiTableFlags_

const (
	TableFlagsNone TableFlags = 0
	// Enable resizing columns.
	TableFlagsResizable TableFlags = 1
	// Enable reordering columns in header row (need calling TableSetupColumn() + TableHeadersRow() to display headers)
	TableFlagsReorderable TableFlags = 2
	// Enable hiding/disabling columns in context menu.
	TableFlagsHideable TableFlags = 4
	// Enable sorting. Call TableGetSortSpecs() to obtain sort specs. Also see ImGuiTableFlags_SortMulti and ImGuiTableFlags_SortTristate.
	TableFlagsSortable TableFlags = 8
	// Disable persisting columns order, width and sort settings in the .ini file.
	TableFlagsNoSavedSettings TableFlags = 16
	// Right-click on columns body/contents will display table context menu. By default it is available in TableHeadersRow().
	TableFlagsContextMenuInBody TableFlags = 32
	// Set each RowBg color with ImGuiCol_TableRowBg or ImGuiCol_TableRowBgAlt (equivalent of calling TableSetBgColor with ImGuiTableBgFlags_RowBg0 on each row manually)
	TableFlagsRowBg TableFlags = 64
	// Draw horizontal borders between rows.
	TableFlagsBordersInnerH TableFlags = 128
	// Draw horizontal borders at the top and bottom.
	TableFlagsBordersOuterH TableFlags = 256
	// Draw vertical borders between columns.
	TableFlagsBordersInnerV TableFlags = 512
	// Draw vertical borders on the left and right sides.
	TableFlagsBordersOuterV TableFlags = 1024
	// Draw horizontal borders.
	TableFlagsBordersH TableFlags = 384
	// Draw vertical borders.
	TableFlagsBordersV TableFlags = 1536
	// Draw inner borders.
	TableFlagsBordersInner TableFlags = 640
	// Draw outer borders.
	TableFlagsBordersOuter TableFlags = 1280
	// Draw all borders.
	TableFlagsBorders TableFlags = 1920
	// [ALPHA] Disable vertical borders in columns Body (borders will always appear in Headers). -> May move to style
	TableFlagsNoBordersInBody TableFlags = 2048
	// [ALPHA] Disable vertical borders in columns Body until hovered for resize (borders will always appear in Headers). -> May move to style
	TableFlagsNoBordersInBodyUntilResize TableFlags = 4096
	// Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching contents width.
	TableFlagsSizingFixedFit TableFlags = 8192
	// Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching the maximum contents width of all columns. Implicitly enable ImGuiTableFlags_NoKeepColumnsVisible.
	TableFlagsSizingFixedSame TableFlags = 16384
	// Columns default to _WidthStretch with default weights proportional to each columns contents widths.
	TableFlagsSizingStretchProp TableFlags = 24576
	// Columns default to _WidthStretch with default weights all equal, unless overridden by TableSetupColumn().
	TableFlagsSizingStretchSame TableFlags = 32768
	// Make outer width auto-fit to columns, overriding outer_size.x value. Only available when ScrollX/ScrollY are disabled and Stretch columns are not used.
	TableFlagsNoHostExtendX TableFlags = 65536
	// Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit). Only available when ScrollX/ScrollY are disabled. Data below the limit will be clipped and not visible.
	TableFlagsNoHostExtendY TableFlags = 131072
	// Disable keeping column always minimally visible when ScrollX is off and table gets too small. Not recommended if columns are resizable.
	TableFlagsNoKeepColumnsVisible TableFlags = 262144
	// Disable distributing remainder width to stretched columns (width allocation on a 100-wide table with 3 columns: Without this flag: 33,33,34. With this flag: 33,33,33). With larger number of columns, resizing will appear to be less smooth.
	TableFlagsPreciseWidths TableFlags = 524288
	// Disable clipping rectangle for every individual columns (reduce draw command count, items will be able to overflow into other columns). Generally incompatible with TableSetupScrollFreeze().
	TableFlagsNoClip TableFlags = 1048576
	// Default if BordersOuterV is on. Enable outermost padding. Generally desirable if you have headers.
	TableFlagsPadOuterX TableFlags = 2097152
	// Default if BordersOuterV is off. Disable outermost padding.
	TableFlagsNoPadOuterX TableFlags = 4194304
	// Disable inner padding between columns (double inner padding if BordersOuterV is on, single inner padding if BordersOuterV is off).
	TableFlagsNoPadInnerX TableFlags = 8388608
	// Enable horizontal scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. Changes default sizing policy. Because this creates a child window, ScrollY is currently generally recommended when using ScrollX.
	TableFlagsScrollX TableFlags = 16777216
	// Enable vertical scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size.
	TableFlagsScrollY TableFlags = 33554432
	// Hold shift when clicking headers to sort on multiple column. TableGetSortSpecs() may return specs where (SpecsCount > 1).
	TableFlagsSortMulti TableFlags = 67108864
	// Allow no sorting, disable default sorting. TableGetSortSpecs() may return specs where (SpecsCount == 0).
	TableFlagsSortTristate TableFlags = 134217728
	// Highlight column headers when hovered (may evolve into a fuller highlight)
	TableFlagsHighlightHoveredColumn TableFlags = 268435456
	TableFlagsSizingMask             TableFlags = 57344
)

type TableHeaderData

type TableHeaderData struct {
	CData *C.ImGuiTableHeaderData
}

func NewEmptyTableHeaderData added in v1.2.0

func NewEmptyTableHeaderData() *TableHeaderData

NewEmptyTableHeaderData creates TableHeaderData with its 0 value.

func NewTableHeaderDataFromC

func NewTableHeaderDataFromC[SRC any](cvalue SRC) *TableHeaderData

NewTableHeaderDataFromC creates TableHeaderData from its C pointer. SRC ~= *C.ImGuiTableHeaderData

func (*TableHeaderData) BgColor0

func (self *TableHeaderData) BgColor0() uint32

func (*TableHeaderData) BgColor1

func (self *TableHeaderData) BgColor1() uint32

func (TableHeaderData) C

func (self TableHeaderData) C() (C.ImGuiTableHeaderData, func())

C is like Handle but returns plain type instead of pointer.

func (*TableHeaderData) Handle

func (self *TableHeaderData) Handle() (result *C.ImGuiTableHeaderData, fin func())

Handle returns C version of TableHeaderData and its finalizer func.

func (*TableHeaderData) Index

func (self *TableHeaderData) Index() TableColumnIdx

func (TableHeaderData) SetBgColor0

func (self TableHeaderData) SetBgColor0(v uint32)

func (TableHeaderData) SetBgColor1

func (self TableHeaderData) SetBgColor1(v uint32)

func (TableHeaderData) SetIndex

func (self TableHeaderData) SetIndex(v TableColumnIdx)

func (TableHeaderData) SetTextColor

func (self TableHeaderData) SetTextColor(v uint32)

func (*TableHeaderData) TextColor

func (self *TableHeaderData) TextColor() uint32

type TableInstanceData

type TableInstanceData struct {
	CData *C.ImGuiTableInstanceData
}

func InternalNewTableInstanceData

func InternalNewTableInstanceData() *TableInstanceData

func InternalTableGetInstanceData

func InternalTableGetInstanceData(table *Table, instance_no int32) *TableInstanceData

func NewEmptyTableInstanceData added in v1.2.0

func NewEmptyTableInstanceData() *TableInstanceData

NewEmptyTableInstanceData creates TableInstanceData with its 0 value.

func NewTableInstanceDataFromC

func NewTableInstanceDataFromC[SRC any](cvalue SRC) *TableInstanceData

NewTableInstanceDataFromC creates TableInstanceData from its C pointer. SRC ~= *C.ImGuiTableInstanceData

func (TableInstanceData) C

func (self TableInstanceData) C() (C.ImGuiTableInstanceData, func())

C is like Handle but returns plain type instead of pointer.

func (*TableInstanceData) Destroy

func (self *TableInstanceData) Destroy()

func (*TableInstanceData) Handle

func (self *TableInstanceData) Handle() (result *C.ImGuiTableInstanceData, fin func())

Handle returns C version of TableInstanceData and its finalizer func.

func (*TableInstanceData) HoveredRowLast

func (self *TableInstanceData) HoveredRowLast() int32

func (*TableInstanceData) HoveredRowNext

func (self *TableInstanceData) HoveredRowNext() int32

func (*TableInstanceData) LastFrozenHeight

func (self *TableInstanceData) LastFrozenHeight() float32

func (*TableInstanceData) LastOuterHeight

func (self *TableInstanceData) LastOuterHeight() float32

func (*TableInstanceData) LastTopHeadersRowHeight

func (self *TableInstanceData) LastTopHeadersRowHeight() float32

func (TableInstanceData) SetHoveredRowLast

func (self TableInstanceData) SetHoveredRowLast(v int32)

func (TableInstanceData) SetHoveredRowNext

func (self TableInstanceData) SetHoveredRowNext(v int32)

func (TableInstanceData) SetLastFrozenHeight

func (self TableInstanceData) SetLastFrozenHeight(v float32)

func (TableInstanceData) SetLastOuterHeight

func (self TableInstanceData) SetLastOuterHeight(v float32)

func (TableInstanceData) SetLastTopHeadersRowHeight

func (self TableInstanceData) SetLastTopHeadersRowHeight(v float32)

func (TableInstanceData) SetTableInstanceID

func (self TableInstanceData) SetTableInstanceID(v ID)

func (*TableInstanceData) TableInstanceID

func (self *TableInstanceData) TableInstanceID() ID

type TableRowFlags

type TableRowFlags int32

Flags for ImGui::TableNextRow() original name: ImGuiTableRowFlags_

const (
	TableRowFlagsNone TableRowFlags = 0
	// Identify header row (set default background color + width of its contents accounted differently for auto column width)
	TableRowFlagsHeaders TableRowFlags = 1
)

type TableSettings

type TableSettings struct {
	CData *C.ImGuiTableSettings
}

func InternalNewTableSettings

func InternalNewTableSettings() *TableSettings

func InternalTableGetBoundSettings

func InternalTableGetBoundSettings(table *Table) *TableSettings

func InternalTableSettingsCreate

func InternalTableSettingsCreate(id ID, columns_count int32) *TableSettings

func InternalTableSettingsFindByID

func InternalTableSettingsFindByID(id ID) *TableSettings

func NewEmptyTableSettings added in v1.2.0

func NewEmptyTableSettings() *TableSettings

NewEmptyTableSettings creates TableSettings with its 0 value.

func NewTableSettingsFromC

func NewTableSettingsFromC[SRC any](cvalue SRC) *TableSettings

NewTableSettingsFromC creates TableSettings from its C pointer. SRC ~= *C.ImGuiTableSettings

func (TableSettings) C

func (self TableSettings) C() (C.ImGuiTableSettings, func())

C is like Handle but returns plain type instead of pointer.

func (*TableSettings) ColumnsCount

func (self *TableSettings) ColumnsCount() TableColumnIdx

func (*TableSettings) ColumnsCountMax

func (self *TableSettings) ColumnsCountMax() TableColumnIdx

func (*TableSettings) Destroy

func (self *TableSettings) Destroy()

func (*TableSettings) Handle

func (self *TableSettings) Handle() (result *C.ImGuiTableSettings, fin func())

Handle returns C version of TableSettings and its finalizer func.

func (*TableSettings) ID

func (self *TableSettings) ID() ID

func (*TableSettings) InternalColumnSettings

func (self *TableSettings) InternalColumnSettings() *TableColumnSettings

func (*TableSettings) RefScale

func (self *TableSettings) RefScale() float32

func (*TableSettings) SaveFlags

func (self *TableSettings) SaveFlags() TableFlags

func (TableSettings) SetColumnsCount

func (self TableSettings) SetColumnsCount(v TableColumnIdx)

func (TableSettings) SetColumnsCountMax

func (self TableSettings) SetColumnsCountMax(v TableColumnIdx)

func (TableSettings) SetID

func (self TableSettings) SetID(v ID)

func (TableSettings) SetRefScale

func (self TableSettings) SetRefScale(v float32)

func (TableSettings) SetSaveFlags

func (self TableSettings) SetSaveFlags(v TableFlags)

func (TableSettings) SetWantApply

func (self TableSettings) SetWantApply(v bool)

func (*TableSettings) WantApply

func (self *TableSettings) WantApply() bool

type TableSortSpecs

type TableSortSpecs struct {
	CData *C.ImGuiTableSortSpecs
}

func NewEmptyTableSortSpecs added in v1.2.0

func NewEmptyTableSortSpecs() *TableSortSpecs

NewEmptyTableSortSpecs creates TableSortSpecs with its 0 value.

func NewTableSortSpecs

func NewTableSortSpecs() *TableSortSpecs

func NewTableSortSpecsFromC

func NewTableSortSpecsFromC[SRC any](cvalue SRC) *TableSortSpecs

NewTableSortSpecsFromC creates TableSortSpecs from its C pointer. SRC ~= *C.ImGuiTableSortSpecs

func TableGetSortSpecs

func TableGetSortSpecs() *TableSortSpecs

get latest sort specs for the table (NULL if not sorting). Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable().

func (TableSortSpecs) C

func (self TableSortSpecs) C() (C.ImGuiTableSortSpecs, func())

C is like Handle but returns plain type instead of pointer.

func (*TableSortSpecs) Destroy

func (self *TableSortSpecs) Destroy()

func (*TableSortSpecs) Handle

func (self *TableSortSpecs) Handle() (result *C.ImGuiTableSortSpecs, fin func())

Handle returns C version of TableSortSpecs and its finalizer func.

func (TableSortSpecs) SetSpecs

func (self TableSortSpecs) SetSpecs(v *TableColumnSortSpecs)

func (TableSortSpecs) SetSpecsCount

func (self TableSortSpecs) SetSpecsCount(v int32)

func (TableSortSpecs) SetSpecsDirty

func (self TableSortSpecs) SetSpecsDirty(v bool)

func (*TableSortSpecs) Specs

func (self *TableSortSpecs) Specs() *TableColumnSortSpecs

func (*TableSortSpecs) SpecsCount

func (self *TableSortSpecs) SpecsCount() int32

func (*TableSortSpecs) SpecsDirty

func (self *TableSortSpecs) SpecsDirty() bool

type TableTempData

type TableTempData struct {
	CData *C.ImGuiTableTempData
}

func InternalNewTableTempData

func InternalNewTableTempData() *TableTempData

func NewEmptyTableTempData added in v1.2.0

func NewEmptyTableTempData() *TableTempData

NewEmptyTableTempData creates TableTempData with its 0 value.

func NewTableTempDataFromC

func NewTableTempDataFromC[SRC any](cvalue SRC) *TableTempData

NewTableTempDataFromC creates TableTempData from its C pointer. SRC ~= *C.ImGuiTableTempData

func (*TableTempData) AngledHeadersExtraWidth

func (self *TableTempData) AngledHeadersExtraWidth() float32

func (*TableTempData) AngledHeadersRequests

func (self *TableTempData) AngledHeadersRequests() vectors.Vector[TableHeaderData]

func (TableTempData) C

func (self TableTempData) C() (C.ImGuiTableTempData, func())

C is like Handle but returns plain type instead of pointer.

func (*TableTempData) Destroy

func (self *TableTempData) Destroy()

func (*TableTempData) DrawSplitter

func (self *TableTempData) DrawSplitter() DrawListSplitter

func (*TableTempData) Handle

func (self *TableTempData) Handle() (result *C.ImGuiTableTempData, fin func())

Handle returns C version of TableTempData and its finalizer func.

func (*TableTempData) HostBackupColumnsOffset

func (self *TableTempData) HostBackupColumnsOffset() Vec1

func (*TableTempData) HostBackupCurrLineSize

func (self *TableTempData) HostBackupCurrLineSize() Vec2

func (*TableTempData) HostBackupCursorMaxPos

func (self *TableTempData) HostBackupCursorMaxPos() Vec2

func (*TableTempData) HostBackupItemWidth

func (self *TableTempData) HostBackupItemWidth() float32

func (*TableTempData) HostBackupItemWidthStackSize

func (self *TableTempData) HostBackupItemWidthStackSize() int32

func (*TableTempData) HostBackupParentWorkRect

func (self *TableTempData) HostBackupParentWorkRect() Rect

func (*TableTempData) HostBackupPrevLineSize

func (self *TableTempData) HostBackupPrevLineSize() Vec2

func (*TableTempData) HostBackupWorkRect

func (self *TableTempData) HostBackupWorkRect() Rect

func (*TableTempData) LastTimeActive

func (self *TableTempData) LastTimeActive() float32

func (TableTempData) SetAngledHeadersExtraWidth

func (self TableTempData) SetAngledHeadersExtraWidth(v float32)

func (TableTempData) SetAngledHeadersRequests

func (self TableTempData) SetAngledHeadersRequests(v vectors.Vector[TableHeaderData])

func (TableTempData) SetDrawSplitter

func (self TableTempData) SetDrawSplitter(v DrawListSplitter)

func (TableTempData) SetHostBackupColumnsOffset

func (self TableTempData) SetHostBackupColumnsOffset(v Vec1)

func (TableTempData) SetHostBackupCurrLineSize

func (self TableTempData) SetHostBackupCurrLineSize(v Vec2)

func (TableTempData) SetHostBackupCursorMaxPos

func (self TableTempData) SetHostBackupCursorMaxPos(v Vec2)

func (TableTempData) SetHostBackupItemWidth

func (self TableTempData) SetHostBackupItemWidth(v float32)

func (TableTempData) SetHostBackupItemWidthStackSize

func (self TableTempData) SetHostBackupItemWidthStackSize(v int32)

func (TableTempData) SetHostBackupParentWorkRect

func (self TableTempData) SetHostBackupParentWorkRect(v Rect)

func (TableTempData) SetHostBackupPrevLineSize

func (self TableTempData) SetHostBackupPrevLineSize(v Vec2)

func (TableTempData) SetHostBackupWorkRect

func (self TableTempData) SetHostBackupWorkRect(v Rect)

func (TableTempData) SetLastTimeActive

func (self TableTempData) SetLastTimeActive(v float32)

func (TableTempData) SetTableIndex

func (self TableTempData) SetTableIndex(v int32)

func (TableTempData) SetUserOuterSize

func (self TableTempData) SetUserOuterSize(v Vec2)

func (*TableTempData) TableIndex

func (self *TableTempData) TableIndex() int32

func (*TableTempData) UserOuterSize

func (self *TableTempData) UserOuterSize() Vec2

type TextBuffer

type TextBuffer struct {
	CData *C.ImGuiTextBuffer
}

func NewEmptyTextBuffer added in v1.2.0

func NewEmptyTextBuffer() *TextBuffer

NewEmptyTextBuffer creates TextBuffer with its 0 value.

func NewTextBuffer

func NewTextBuffer() *TextBuffer

func NewTextBufferFromC

func NewTextBufferFromC[SRC any](cvalue SRC) *TextBuffer

NewTextBufferFromC creates TextBuffer from its C pointer. SRC ~= *C.ImGuiTextBuffer

func (*TextBuffer) Append

func (self *TextBuffer) Append(str string)

func (*TextBuffer) AppendV

func (self *TextBuffer) AppendV(str, str_end string)

AppendV parameter default value hint: str_end: NULL

func (*TextBuffer) Begin

func (self *TextBuffer) Begin() string

func (*TextBuffer) Buf

func (self *TextBuffer) Buf() vectors.Vector[int8]

func (TextBuffer) C

func (self TextBuffer) C() (C.ImGuiTextBuffer, func())

C is like Handle but returns plain type instead of pointer.

func (*TextBuffer) Clear

func (self *TextBuffer) Clear()

func (*TextBuffer) Cstr added in v1.2.0

func (self *TextBuffer) Cstr() string

func (*TextBuffer) Destroy

func (self *TextBuffer) Destroy()

func (*TextBuffer) Empty

func (self *TextBuffer) Empty() bool

func (*TextBuffer) End

func (self *TextBuffer) End() string

Buf is zero-terminated, so end() will point on the zero-terminator

func (*TextBuffer) Handle

func (self *TextBuffer) Handle() (result *C.ImGuiTextBuffer, fin func())

Handle returns C version of TextBuffer and its finalizer func.

func (*TextBuffer) Reserve

func (self *TextBuffer) Reserve(capacity int32)

func (TextBuffer) SetBuf

func (self TextBuffer) SetBuf(v vectors.Vector[int8])

func (*TextBuffer) Size

func (self *TextBuffer) Size() int32

type TextFilter

type TextFilter struct {
	CData *C.ImGuiTextFilter
}

func NewEmptyTextFilter added in v1.2.0

func NewEmptyTextFilter() *TextFilter

NewEmptyTextFilter creates TextFilter with its 0 value.

func NewTextFilter

func NewTextFilter(default_filter string) *TextFilter

NewTextFilter parameter default value hint: default_filter: ""

func NewTextFilterFromC

func NewTextFilterFromC[SRC any](cvalue SRC) *TextFilter

NewTextFilterFromC creates TextFilter from its C pointer. SRC ~= *C.ImGuiTextFilter

func (*TextFilter) Build

func (self *TextFilter) Build()

func (TextFilter) C

func (self TextFilter) C() (C.ImGuiTextFilter, func())

C is like Handle but returns plain type instead of pointer.

func (*TextFilter) Clear

func (self *TextFilter) Clear()

func (*TextFilter) CountGrep

func (self *TextFilter) CountGrep() int32

func (*TextFilter) Destroy

func (self *TextFilter) Destroy()

func (*TextFilter) Draw

func (self *TextFilter) Draw() bool

func (*TextFilter) DrawV

func (self *TextFilter) DrawV(label string, width float32) bool

Helper calling InputText+Build DrawV parameter default value hint: label: "Filter(inc,-exc)" width: 0.0f

func (*TextFilter) Filters

func (self *TextFilter) Filters() vectors.Vector[TextRange]

func (*TextFilter) Handle

func (self *TextFilter) Handle() (result *C.ImGuiTextFilter, fin func())

Handle returns C version of TextFilter and its finalizer func.

func (*TextFilter) InputBuf

func (self *TextFilter) InputBuf() [256]rune

func (*TextFilter) IsActive

func (self *TextFilter) IsActive() bool

func (*TextFilter) PassFilter

func (self *TextFilter) PassFilter(text string) bool

func (*TextFilter) PassFilterV

func (self *TextFilter) PassFilterV(text string) bool

PassFilterV parameter default value hint:

func (TextFilter) SetCountGrep

func (self TextFilter) SetCountGrep(v int32)

func (TextFilter) SetFilters

func (self TextFilter) SetFilters(v vectors.Vector[TextRange])

func (TextFilter) SetInputBuf

func (self TextFilter) SetInputBuf(v *[256]rune)

type TextFlags

type TextFlags int32

original name: ImGuiTextFlags_

const (
	TextFlagsNone                       TextFlags = 0
	TextFlagsNoWidthForLargeClippedText TextFlags = 1
)

type TextIndex

type TextIndex struct {
	CData *C.ImGuiTextIndex
}

func NewEmptyTextIndex added in v1.2.0

func NewEmptyTextIndex() *TextIndex

NewEmptyTextIndex creates TextIndex with its 0 value.

func NewTextIndexFromC

func NewTextIndexFromC[SRC any](cvalue SRC) *TextIndex

NewTextIndexFromC creates TextIndex from its C pointer. SRC ~= *C.ImGuiTextIndex

func (TextIndex) C

func (self TextIndex) C() (C.ImGuiTextIndex, func())

C is like Handle but returns plain type instead of pointer.

func (*TextIndex) EndOffset

func (self *TextIndex) EndOffset() int32

func (*TextIndex) Handle

func (self *TextIndex) Handle() (result *C.ImGuiTextIndex, fin func())

Handle returns C version of TextIndex and its finalizer func.

func (*TextIndex) InternalAppend

func (self *TextIndex) InternalAppend(base string, old_size, new_size int32)

func (*TextIndex) InternalClear

func (self *TextIndex) InternalClear()

func (*TextIndex) InternalGetlinebegin added in v1.2.0

func (self *TextIndex) InternalGetlinebegin(base string, n int32) string

func (*TextIndex) InternalGetlineend added in v1.2.0

func (self *TextIndex) InternalGetlineend(base string, n int32) string

func (*TextIndex) InternalSize

func (self *TextIndex) InternalSize() int32

func (*TextIndex) LineOffsets

func (self *TextIndex) LineOffsets() vectors.Vector[int32]

func (TextIndex) SetEndOffset

func (self TextIndex) SetEndOffset(v int32)

func (TextIndex) SetLineOffsets

func (self TextIndex) SetLineOffsets(v vectors.Vector[int32])

type TextRange

type TextRange struct {
	CData *C.ImGuiTextRange
}

func NewEmptyTextRange added in v1.2.0

func NewEmptyTextRange() *TextRange

NewEmptyTextRange creates TextRange with its 0 value.

func NewTextRangeFromC

func NewTextRangeFromC[SRC any](cvalue SRC) *TextRange

NewTextRangeFromC creates TextRange from its C pointer. SRC ~= *C.ImGuiTextRange

func NewTextRangeNil

func NewTextRangeNil() *TextRange

func NewTextRangeStr

func NewTextRangeStr(_b, _e string) *TextRange

func (*TextRange) B

func (self *TextRange) B() string

func (TextRange) C

func (self TextRange) C() (C.ImGuiTextRange, func())

C is like Handle but returns plain type instead of pointer.

func (*TextRange) Destroy

func (self *TextRange) Destroy()

func (*TextRange) E

func (self *TextRange) E() string

func (*TextRange) Empty

func (self *TextRange) Empty() bool

func (*TextRange) Handle

func (self *TextRange) Handle() (result *C.ImGuiTextRange, fin func())

Handle returns C version of TextRange and its finalizer func.

func (TextRange) SetB

func (self TextRange) SetB(v string)

func (TextRange) SetE

func (self TextRange) SetE(v string)

type TextureID

type TextureID uint64

func NewTextureIDFromC

func NewTextureIDFromC[SRC any](cvalue SRC) *TextureID

NewTextureIDFromC creates TextureID from its C pointer. SRC ~= *C.ImTextureID

func (TextureID) C

func (self TextureID) C() (C.ImTextureID, func())

C is like Handle but returns plain type instead of pointer.

func (*TextureID) Handle

func (selfSrc *TextureID) Handle() (result *C.ImTextureID, fin func())

Handle returns C version of TextureID and its finalizer func.

type TooltipFlags

type TooltipFlags int32

original name: ImGuiTooltipFlags_

const (
	TooltipFlagsNone TooltipFlags = 0
	// Clear/ignore previously submitted tooltip (defaults to append)
	TooltipFlagsOverridePrevious TooltipFlags = 2
)

type TreeNodeFlags

type TreeNodeFlags int32

Flags for ImGui::TreeNodeEx(), ImGui::CollapsingHeader*() original name: ImGuiTreeNodeFlags_

const (
	TreeNodeFlagsNone TreeNodeFlags = 0
	// Draw as selected
	TreeNodeFlagsSelected TreeNodeFlags = 1
	// Draw frame with background (e.g. for CollapsingHeader)
	TreeNodeFlagsFramed TreeNodeFlags = 2
	// Hit testing to allow subsequent widgets to overlap this one
	TreeNodeFlagsAllowOverlap TreeNodeFlags = 4
	// Don't do a TreePush() when open (e.g. for CollapsingHeader) = no extra indent nor pushing on ID stack
	TreeNodeFlagsNoTreePushOnOpen TreeNodeFlags = 8
	// Don't automatically and temporarily open node when Logging is active (by default logging will automatically open tree nodes)
	TreeNodeFlagsNoAutoOpenOnLog TreeNodeFlags = 16
	// Default node to be open
	TreeNodeFlagsDefaultOpen TreeNodeFlags = 32
	// Open on double-click instead of simple click (default for multi-select unless any _OpenOnXXX behavior is set explicitly). Both behaviors may be combined.
	TreeNodeFlagsOpenOnDoubleClick TreeNodeFlags = 64
	// Open when clicking on the arrow part (default for multi-select unless any _OpenOnXXX behavior is set explicitly). Both behaviors may be combined.
	TreeNodeFlagsOpenOnArrow TreeNodeFlags = 128
	// No collapsing, no arrow (use as a convenience for leaf nodes).
	TreeNodeFlagsLeaf TreeNodeFlags = 256
	// Display a bullet instead of arrow. IMPORTANT: node can still be marked open/close if you don't set the _Leaf flag!
	TreeNodeFlagsBullet TreeNodeFlags = 512
	// Use FramePadding (even for an unframed text node) to vertically align text baseline to regular widget height. Equivalent to calling AlignTextToFramePadding() before the node.
	TreeNodeFlagsFramePadding TreeNodeFlags = 1024
	// Extend hit box to the right-most edge, even if not framed. This is not the default in order to allow adding other items on the same line without using AllowOverlap mode.
	TreeNodeFlagsSpanAvailWidth TreeNodeFlags = 2048
	// Extend hit box to the left-most and right-most edges (cover the indent area).
	TreeNodeFlagsSpanFullWidth TreeNodeFlags = 4096
	// Narrow hit box + narrow hovering highlight, will only cover the label text.
	TreeNodeFlagsSpanTextWidth TreeNodeFlags = 8192
	// Frame will span all columns of its container table (text will still fit in current column)
	TreeNodeFlagsSpanAllColumns TreeNodeFlags = 16384
	// (WIP) Nav: left direction may move to this TreeNode() from any of its child (items submitted between TreeNode and TreePop)
	TreeNodeFlagsNavLeftJumpsBackHere TreeNodeFlags = 32768
	TreeNodeFlagsCollapsingHeader     TreeNodeFlags = 26
)

type TreeNodeFlagsPrivate

type TreeNodeFlagsPrivate int32

Extend ImGuiTreeNodeFlags_ original name: ImGuiTreeNodeFlagsPrivate_

const (
	// FIXME-WIP: Hard-coded for CollapsingHeader()
	TreeNodeFlagsClipLabelForTrailingButton TreeNodeFlagsPrivate = 268435456
	// FIXME-WIP: Turn Down arrow into an Up arrow, for reversed trees (#6517)
	TreeNodeFlagsUpsideDownArrow TreeNodeFlagsPrivate = 536870912
	TreeNodeFlagsOpenOnMask      TreeNodeFlagsPrivate = 192
)

type TreeNodeStackData

type TreeNodeStackData struct {
	CData *C.ImGuiTreeNodeStackData
}

func NewEmptyTreeNodeStackData added in v1.2.0

func NewEmptyTreeNodeStackData() *TreeNodeStackData

NewEmptyTreeNodeStackData creates TreeNodeStackData with its 0 value.

func NewTreeNodeStackDataFromC

func NewTreeNodeStackDataFromC[SRC any](cvalue SRC) *TreeNodeStackData

NewTreeNodeStackDataFromC creates TreeNodeStackData from its C pointer. SRC ~= *C.ImGuiTreeNodeStackData

func (TreeNodeStackData) C

func (self TreeNodeStackData) C() (C.ImGuiTreeNodeStackData, func())

C is like Handle but returns plain type instead of pointer.

func (*TreeNodeStackData) Handle

func (self *TreeNodeStackData) Handle() (result *C.ImGuiTreeNodeStackData, fin func())

Handle returns C version of TreeNodeStackData and its finalizer func.

func (*TreeNodeStackData) ID

func (self *TreeNodeStackData) ID() ID

func (*TreeNodeStackData) ItemFlags added in v1.1.0

func (self *TreeNodeStackData) ItemFlags() ItemFlags

func (*TreeNodeStackData) NavRect

func (self *TreeNodeStackData) NavRect() Rect

func (TreeNodeStackData) SetID

func (self TreeNodeStackData) SetID(v ID)

func (TreeNodeStackData) SetItemFlags added in v1.1.0

func (self TreeNodeStackData) SetItemFlags(v ItemFlags)

func (TreeNodeStackData) SetNavRect

func (self TreeNodeStackData) SetNavRect(v Rect)

func (TreeNodeStackData) SetTreeFlags

func (self TreeNodeStackData) SetTreeFlags(v TreeNodeFlags)

func (*TreeNodeStackData) TreeFlags

func (self *TreeNodeStackData) TreeFlags() TreeNodeFlags

type TypingSelectFlags

type TypingSelectFlags int32

Flags for GetTypingSelectRequest() original name: ImGuiTypingSelectFlags_

const (
	TypingSelectFlagsNone TypingSelectFlags = 0
	// Backspace to delete character inputs. If using: ensure GetTypingSelectRequest() is not called more than once per frame (filter by e.g. focus state)
	TypingSelectFlagsAllowBackspace TypingSelectFlags = 1
	// Allow "single char" search mode which is activated when pressing the same character multiple times.
	TypingSelectFlagsAllowSingleCharMode TypingSelectFlags = 2
)

type TypingSelectRequest

type TypingSelectRequest struct {
	CData *C.ImGuiTypingSelectRequest
}

func InternalTypingSelectRequest

func InternalTypingSelectRequest() *TypingSelectRequest

func InternalTypingSelectRequestV

func InternalTypingSelectRequestV(flags TypingSelectFlags) *TypingSelectRequest

InternalTypingSelectRequestV parameter default value hint: flags: ImGuiTypingSelectFlags_None

func NewEmptyTypingSelectRequest added in v1.2.0

func NewEmptyTypingSelectRequest() *TypingSelectRequest

NewEmptyTypingSelectRequest creates TypingSelectRequest with its 0 value.

func NewTypingSelectRequestFromC

func NewTypingSelectRequestFromC[SRC any](cvalue SRC) *TypingSelectRequest

NewTypingSelectRequestFromC creates TypingSelectRequest from its C pointer. SRC ~= *C.ImGuiTypingSelectRequest

func (TypingSelectRequest) C

func (self TypingSelectRequest) C() (C.ImGuiTypingSelectRequest, func())

C is like Handle but returns plain type instead of pointer.

func (*TypingSelectRequest) Flags

func (self *TypingSelectRequest) Flags() TypingSelectFlags

func (*TypingSelectRequest) Handle

func (self *TypingSelectRequest) Handle() (result *C.ImGuiTypingSelectRequest, fin func())

Handle returns C version of TypingSelectRequest and its finalizer func.

func (*TypingSelectRequest) SearchBuffer

func (self *TypingSelectRequest) SearchBuffer() string

func (*TypingSelectRequest) SearchBufferLen

func (self *TypingSelectRequest) SearchBufferLen() int32

func (*TypingSelectRequest) SelectRequest

func (self *TypingSelectRequest) SelectRequest() bool

func (TypingSelectRequest) SetFlags

func (self TypingSelectRequest) SetFlags(v TypingSelectFlags)

func (TypingSelectRequest) SetSearchBuffer

func (self TypingSelectRequest) SetSearchBuffer(v string)

func (TypingSelectRequest) SetSearchBufferLen

func (self TypingSelectRequest) SetSearchBufferLen(v int32)

func (TypingSelectRequest) SetSelectRequest

func (self TypingSelectRequest) SetSelectRequest(v bool)

func (TypingSelectRequest) SetSingleCharMode

func (self TypingSelectRequest) SetSingleCharMode(v bool)

func (TypingSelectRequest) SetSingleCharSize

func (self TypingSelectRequest) SetSingleCharSize(v int)

func (*TypingSelectRequest) SingleCharMode

func (self *TypingSelectRequest) SingleCharMode() bool

func (*TypingSelectRequest) SingleCharSize

func (self *TypingSelectRequest) SingleCharSize() int

type TypingSelectState

type TypingSelectState struct {
	CData *C.ImGuiTypingSelectState
}

func InternalNewTypingSelectState

func InternalNewTypingSelectState() *TypingSelectState

func NewEmptyTypingSelectState added in v1.2.0

func NewEmptyTypingSelectState() *TypingSelectState

NewEmptyTypingSelectState creates TypingSelectState with its 0 value.

func NewTypingSelectStateFromC

func NewTypingSelectStateFromC[SRC any](cvalue SRC) *TypingSelectState

NewTypingSelectStateFromC creates TypingSelectState from its C pointer. SRC ~= *C.ImGuiTypingSelectState

func (TypingSelectState) C

func (self TypingSelectState) C() (C.ImGuiTypingSelectState, func())

C is like Handle but returns plain type instead of pointer.

func (*TypingSelectState) Destroy

func (self *TypingSelectState) Destroy()

func (*TypingSelectState) FocusScope

func (self *TypingSelectState) FocusScope() ID

func (*TypingSelectState) Handle

func (self *TypingSelectState) Handle() (result *C.ImGuiTypingSelectState, fin func())

Handle returns C version of TypingSelectState and its finalizer func.

func (*TypingSelectState) InternalClear

func (self *TypingSelectState) InternalClear()

We preserve remaining data for easier debugging

func (*TypingSelectState) LastRequestFrame

func (self *TypingSelectState) LastRequestFrame() int32

func (*TypingSelectState) LastRequestTime

func (self *TypingSelectState) LastRequestTime() float32

func (*TypingSelectState) Request

func (self *TypingSelectState) Request() TypingSelectRequest

func (*TypingSelectState) SearchBuffer

func (self *TypingSelectState) SearchBuffer() [64]rune

func (TypingSelectState) SetFocusScope

func (self TypingSelectState) SetFocusScope(v ID)

func (TypingSelectState) SetLastRequestFrame

func (self TypingSelectState) SetLastRequestFrame(v int32)

func (TypingSelectState) SetLastRequestTime

func (self TypingSelectState) SetLastRequestTime(v float32)

func (TypingSelectState) SetRequest

func (self TypingSelectState) SetRequest(v TypingSelectRequest)

func (TypingSelectState) SetSearchBuffer

func (self TypingSelectState) SetSearchBuffer(v *[64]rune)

func (TypingSelectState) SetSingleCharModeLock

func (self TypingSelectState) SetSingleCharModeLock(v bool)

func (*TypingSelectState) SingleCharModeLock

func (self *TypingSelectState) SingleCharModeLock() bool

type Vec1

type Vec1 struct {
	CData *C.ImVec1
}

func InternalNewVec1Float

func InternalNewVec1Float(_x float32) *Vec1

func InternalNewVec1Nil

func InternalNewVec1Nil() *Vec1

func NewEmptyVec1 added in v1.2.0

func NewEmptyVec1() *Vec1

NewEmptyVec1 creates Vec1 with its 0 value.

func NewVec1FromC

func NewVec1FromC[SRC any](cvalue SRC) *Vec1

NewVec1FromC creates Vec1 from its C pointer. SRC ~= *C.ImVec1

func (Vec1) C

func (self Vec1) C() (C.ImVec1, func())

C is like Handle but returns plain type instead of pointer.

func (*Vec1) Destroy

func (self *Vec1) Destroy()

func (*Vec1) Handle

func (self *Vec1) Handle() (result *C.ImVec1, fin func())

Handle returns C version of Vec1 and its finalizer func.

type Vec2

type Vec2 struct {
	X float32
	Y float32
}

func CalcTextSize

func CalcTextSize(text string) Vec2

func CalcTextSizeV

func CalcTextSizeV(text string, hide_text_after_double_hash bool, wrap_width float32) Vec2

CalcTextSizeV parameter default value hint: hide_text_after_double_hash: false wrap_width: -1.0f

func ContentRegionAvail

func ContentRegionAvail() Vec2

available space from current position. THIS IS YOUR BEST FRIEND.

func CursorPos

func CursorPos() Vec2

[window-local] cursor position in window-local coordinates. This is not your best friend.

func CursorScreenPos

func CursorScreenPos() Vec2

cursor position, absolute coordinates. THIS IS YOUR BEST FRIEND (prefer using this rather than GetCursorPos(), also more useful to work with ImDrawList API).

func CursorStartPos

func CursorStartPos() Vec2

[window-local] initial cursor position, in window-local coordinates. Call GetCursorScreenPos() after Begin() to get the absolute coordinates version.

func FontTexUvWhitePixel

func FontTexUvWhitePixel() Vec2

get UV coordinate for a white pixel, useful to draw custom shapes via the ImDrawList API

func InternalCalcItemSize

func InternalCalcItemSize(size Vec2, default_w, default_h float32) Vec2

func InternalCalcWindowNextAutoFitSize

func InternalCalcWindowNextAutoFitSize(window *Window) Vec2

func InternalFindBestWindowPosForPopup

func InternalFindBestWindowPosForPopup(window *Window) Vec2

func InternalFindBestWindowPosForPopupEx added in v1.2.0

func InternalFindBestWindowPosForPopupEx(ref_pos, size Vec2, last_dir *Dir, r_outer, r_avoid Rect, policy PopupPositionPolicy) Vec2

func InternalImBezierCubicCalc

func InternalImBezierCubicCalc(p1, p2, p3, p4 Vec2, t float32) Vec2

func InternalImBezierCubicClosestPoint

func InternalImBezierCubicClosestPoint(p1, p2, p3, p4, p Vec2, num_segments int32) Vec2

For curves with explicit number of segments

func InternalImBezierCubicClosestPointCasteljau

func InternalImBezierCubicClosestPointCasteljau(p1, p2, p3, p4, p Vec2, tess_tol float32) Vec2

For auto-tessellated curves you can use tess_tol = style.CurveTessellationTol

func InternalImBezierQuadraticCalc

func InternalImBezierQuadraticCalc(p1, p2, p3 Vec2, t float32) Vec2

func InternalImClamp

func InternalImClamp(v, mn, mx Vec2) Vec2

func InternalImFloorVec2

func InternalImFloorVec2(v Vec2) Vec2

func InternalImLerpVec2Float

func InternalImLerpVec2Float(a, b Vec2, t float32) Vec2

func InternalImLerpVec2Vec2

func InternalImLerpVec2Vec2(a, b, t Vec2) Vec2

func InternalImLineClosestPoint

func InternalImLineClosestPoint(a, b, p Vec2) Vec2

func InternalImMax

func InternalImMax(lhs, rhs Vec2) Vec2

func InternalImMin

func InternalImMin(lhs, rhs Vec2) Vec2

func InternalImMul

func InternalImMul(lhs, rhs Vec2) Vec2

func InternalImRotate

func InternalImRotate(v Vec2, cos_a, sin_a float32) Vec2

func InternalImTriangleClosestPoint

func InternalImTriangleClosestPoint(a, b, c, p Vec2) Vec2

func InternalImTruncVec2

func InternalImTruncVec2(v Vec2) Vec2

func InternalKeyMagnitude2d

func InternalKeyMagnitude2d(key_left, key_right, key_up, key_down Key) Vec2

func InternalScrollToRectEx

func InternalScrollToRectEx(window *Window, rect Rect) Vec2

func InternalScrollToRectExV

func InternalScrollToRectExV(window *Window, rect Rect, flags ScrollFlags) Vec2

InternalScrollToRectExV parameter default value hint: flags: 0

func InternalTabItemCalcSizeStr

func InternalTabItemCalcSizeStr(label string, has_close_button_or_unsaved_marker bool) Vec2

func InternalTabItemCalcSizeWindowPtr

func InternalTabItemCalcSizeWindowPtr(window *Window) Vec2

func InternalWindowPosAbsToRel

func InternalWindowPosAbsToRel(window *Window, p Vec2) Vec2

func InternalWindowPosRelToAbs

func InternalWindowPosRelToAbs(window *Window, p Vec2) Vec2

func ItemRectMax

func ItemRectMax() Vec2

get lower-right bounding rectangle of the last item (screen space)

func ItemRectMin

func ItemRectMin() Vec2

get upper-left bounding rectangle of the last item (screen space)

func ItemRectSize

func ItemRectSize() Vec2

get size of last item

func MouseDragDelta

func MouseDragDelta() Vec2

func MouseDragDeltaV

func MouseDragDeltaV(button MouseButton, lock_threshold float32) Vec2

return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (uses io.MouseDraggingThreshold if lock_threshold < 0.0f) MouseDragDeltaV parameter default value hint: button: 0 lock_threshold: -1.0f

func MousePos

func MousePos() Vec2

shortcut to ImGui::GetIO().MousePos provided by user, to be consistent with other calls

func MousePosOnOpeningCurrentPopup

func MousePosOnOpeningCurrentPopup() Vec2

retrieve mouse position at the time of opening popup we have BeginPopup() into (helper to avoid user backing that value themselves)

func NewVec2

func NewVec2(x, y float32) Vec2

func WindowPos

func WindowPos() Vec2

get current window position in screen space (IT IS UNLIKELY YOU EVER NEED TO USE THIS. Consider always using GetCursorScreenPos() and GetContentRegionAvail() instead)

func WindowSize

func WindowSize() Vec2

get current window size (IT IS UNLIKELY YOU EVER NEED TO USE THIS. Consider always using GetCursorScreenPos() and GetContentRegionAvail() instead)

func (Vec2) Add

func (v Vec2) Add(another Vec2) Vec2

Add returns a sum of v and another.

func (*Vec2) Destroy

func (self *Vec2) Destroy()

func (Vec2) Div

func (v Vec2) Div(k float32) Vec2

Div returns the vector v/k.

func (*Vec2) FromC

func (i *Vec2) FromC(vec2Any unsafe.Pointer) *Vec2

vec2Any is ~C.ImVec2 and will be force coerted!

func (Vec2) Mul

func (v Vec2) Mul(k float32) Vec2

Mul returns the vector v*k.

func (Vec2) Sub

func (v Vec2) Sub(another Vec2) Vec2

Sub returns the vector v - another.

func (Vec2) ToC

func (i Vec2) ToC() C.ImVec2

type Vec4

type Vec4 struct {
	X float32
	Y float32
	Z float32
	W float32
}

func ColorConvertU32ToFloat4

func ColorConvertU32ToFloat4(in uint32) Vec4

func InternalImLerpVec4

func InternalImLerpVec4(a, b Vec4, t float32) Vec4

func NewVec4

func NewVec4(r, g, b, a float32) Vec4

func NewVec4Float added in v1.3.0

func NewVec4Float(_x, _y, _z, _w float32) *Vec4

func NewVec4Nil added in v1.3.0

func NewVec4Nil() *Vec4

func StyleColorVec4

func StyleColorVec4(idx Col) *Vec4

retrieve style color as stored in ImGuiStyle structure. use to feed back into PushStyleColor(), otherwise use GetColorU32() to get style color with style alpha baked in.

func (Vec4) Add

func (v Vec4) Add(p Vec2) Vec4

Add returns the rectangle r translated by p.

func (*Vec4) Destroy

func (self *Vec4) Destroy()

func (*Vec4) FromC

func (i *Vec4) FromC(vec4Any unsafe.Pointer) *Vec4

vec4Any is ~C.ImVec4 and will be force coerted!

func (Vec4) Sub

func (v Vec4) Sub(p Vec2) Vec4

Sub returns the vec4 v translated by -p.

func (Vec4) ToC

func (i Vec4) ToC() C.ImVec4

type Viewport

type Viewport struct {
	CData *C.ImGuiViewport
}

func FindViewportByID

func FindViewportByID(id ID) *Viewport

this is a helper for backends.

func FindViewportByPlatformHandle

func FindViewportByPlatformHandle(platform_handle uintptr) *Viewport

this is a helper for backends. the type platform_handle is decided by the backend (e.g. HWND, MyWindow*, GLFWwindow* etc.)

func MainViewport

func MainViewport() *Viewport

return primary/default viewport. This can never be NULL.

func NewEmptyViewport added in v1.2.0

func NewEmptyViewport() *Viewport

NewEmptyViewport creates Viewport with its 0 value.

func NewViewport

func NewViewport() *Viewport

func NewViewportFromC

func NewViewportFromC[SRC any](cvalue SRC) *Viewport

NewViewportFromC creates Viewport from its C pointer. SRC ~= *C.ImGuiViewport

func WindowViewport

func WindowViewport() *Viewport

get viewport currently associated to the current window.

func (Viewport) C

func (self Viewport) C() (C.ImGuiViewport, func())

C is like Handle but returns plain type instead of pointer.

func (*Viewport) Center

func (self *Viewport) Center() Vec2

func (*Viewport) Destroy

func (self *Viewport) Destroy()

func (*Viewport) DpiScale

func (self *Viewport) DpiScale() float32

func (*Viewport) DrawData

func (self *Viewport) DrawData() *DrawData

func (*Viewport) Flags

func (self *Viewport) Flags() ViewportFlags

func (*Viewport) Handle

func (self *Viewport) Handle() (result *C.ImGuiViewport, fin func())

Handle returns C version of Viewport and its finalizer func.

func (*Viewport) ID

func (self *Viewport) ID() ID

func (*Viewport) ParentViewportId

func (self *Viewport) ParentViewportId() ID

func (*Viewport) PlatformHandle

func (self *Viewport) PlatformHandle() uintptr

func (*Viewport) PlatformHandleRaw

func (self *Viewport) PlatformHandleRaw() uintptr

func (*Viewport) PlatformRequestClose

func (self *Viewport) PlatformRequestClose() bool

func (*Viewport) PlatformRequestMove

func (self *Viewport) PlatformRequestMove() bool

func (*Viewport) PlatformRequestResize

func (self *Viewport) PlatformRequestResize() bool

func (*Viewport) PlatformUserData

func (self *Viewport) PlatformUserData() uintptr

func (*Viewport) PlatformWindowCreated

func (self *Viewport) PlatformWindowCreated() bool

func (*Viewport) Pos

func (self *Viewport) Pos() Vec2

func (*Viewport) RendererUserData

func (self *Viewport) RendererUserData() uintptr

func (Viewport) SetDpiScale

func (self Viewport) SetDpiScale(v float32)

func (Viewport) SetDrawData

func (self Viewport) SetDrawData(v *DrawData)

func (Viewport) SetFlags

func (self Viewport) SetFlags(v ViewportFlags)

func (Viewport) SetID

func (self Viewport) SetID(v ID)

func (Viewport) SetParentViewportId

func (self Viewport) SetParentViewportId(v ID)

func (Viewport) SetPlatformHandle

func (self Viewport) SetPlatformHandle(v uintptr)

func (Viewport) SetPlatformHandleRaw

func (self Viewport) SetPlatformHandleRaw(v uintptr)

func (Viewport) SetPlatformRequestClose

func (self Viewport) SetPlatformRequestClose(v bool)

func (Viewport) SetPlatformRequestMove

func (self Viewport) SetPlatformRequestMove(v bool)

func (Viewport) SetPlatformRequestResize

func (self Viewport) SetPlatformRequestResize(v bool)

func (Viewport) SetPlatformUserData

func (self Viewport) SetPlatformUserData(v uintptr)

func (Viewport) SetPlatformWindowCreated

func (self Viewport) SetPlatformWindowCreated(v bool)

func (Viewport) SetPos

func (self Viewport) SetPos(v Vec2)

func (Viewport) SetRendererUserData

func (self Viewport) SetRendererUserData(v uintptr)

func (Viewport) SetSize

func (self Viewport) SetSize(v Vec2)

func (Viewport) SetWorkPos

func (self Viewport) SetWorkPos(v Vec2)

func (Viewport) SetWorkSize

func (self Viewport) SetWorkSize(v Vec2)

func (*Viewport) Size

func (self *Viewport) Size() Vec2

func (*Viewport) WorkCenter

func (self *Viewport) WorkCenter() Vec2

func (*Viewport) WorkPos

func (self *Viewport) WorkPos() Vec2

func (*Viewport) WorkSize

func (self *Viewport) WorkSize() Vec2

type ViewportFlags

type ViewportFlags int32

Flags stored in ImGuiViewport::Flags, giving indications to the platform backends. original name: ImGuiViewportFlags_

const (
	ViewportFlagsNone ViewportFlags = 0
	// Represent a Platform Window
	ViewportFlagsIsPlatformWindow ViewportFlags = 1
	// Represent a Platform Monitor (unused yet)
	ViewportFlagsIsPlatformMonitor ViewportFlags = 2
	// Platform Window: Is created/managed by the user application? (rather than our backend)
	ViewportFlagsOwnedByApp ViewportFlags = 4
	// Platform Window: Disable platform decorations: title bar, borders, etc. (generally set all windows, but if ImGuiConfigFlags_ViewportsDecoration is set we only set this on popups/tooltips)
	ViewportFlagsNoDecoration ViewportFlags = 8
	// Platform Window: Disable platform task bar icon (generally set on popups/tooltips, or all windows if ImGuiConfigFlags_ViewportsNoTaskBarIcon is set)
	ViewportFlagsNoTaskBarIcon ViewportFlags = 16
	// Platform Window: Don't take focus when created.
	ViewportFlagsNoFocusOnAppearing ViewportFlags = 32
	// Platform Window: Don't take focus when clicked on.
	ViewportFlagsNoFocusOnClick ViewportFlags = 64
	// Platform Window: Make mouse pass through so we can drag this window while peaking behind it.
	ViewportFlagsNoInputs ViewportFlags = 128
	// Platform Window: Renderer doesn't need to clear the framebuffer ahead (because we will fill it entirely).
	ViewportFlagsNoRendererClear ViewportFlags = 256
	// Platform Window: Avoid merging this window into another host window. This can only be set via ImGuiWindowClass viewport flags override (because we need to now ahead if we are going to create a viewport in the first place!).
	ViewportFlagsNoAutoMerge ViewportFlags = 512
	// Platform Window: Display on top (for tooltips only).
	ViewportFlagsTopMost ViewportFlags = 1024
	// Viewport can host multiple imgui windows (secondary viewports are associated to a single window). // FIXME: In practice there's still probably code making the assumption that this is always and only on the MainViewport. Will fix once we add support for "no main viewport".
	ViewportFlagsCanHostOtherWindows ViewportFlags = 2048
	// Platform Window: Window is minimized, can skip render. When minimized we tend to avoid using the viewport pos/size for clipping window or testing if they are contained in the viewport.
	ViewportFlagsIsMinimized ViewportFlags = 4096
	// Platform Window: Window is focused (last call to Platform_GetWindowFocus() returned true)
	ViewportFlagsIsFocused ViewportFlags = 8192
)

type ViewportP

type ViewportP struct {
	CData *C.ImGuiViewportP
}

func InternalFindHoveredViewportFromPlatformWindowStack

func InternalFindHoveredViewportFromPlatformWindowStack(mouse_platform_pos Vec2) *ViewportP

func InternalNewViewportP

func InternalNewViewportP() *ViewportP

func NewEmptyViewportP added in v1.2.0

func NewEmptyViewportP() *ViewportP

NewEmptyViewportP creates ViewportP with its 0 value.

func NewViewportPFromC

func NewViewportPFromC[SRC any](cvalue SRC) *ViewportP

NewViewportPFromC creates ViewportP from its C pointer. SRC ~= *C.ImGuiViewportP

func (*ViewportP) Alpha

func (self *ViewportP) Alpha() float32

func (*ViewportP) BgFgDrawLists

func (self *ViewportP) BgFgDrawLists() [2]*DrawList

func (*ViewportP) BgFgDrawListsLastFrame

func (self *ViewportP) BgFgDrawListsLastFrame() [2]int32

func (*ViewportP) BuildWorkInsetMax

func (self *ViewportP) BuildWorkInsetMax() Vec2

func (*ViewportP) BuildWorkInsetMin

func (self *ViewportP) BuildWorkInsetMin() Vec2

func (ViewportP) C

func (self ViewportP) C() (C.ImGuiViewportP, func())

C is like Handle but returns plain type instead of pointer.

func (*ViewportP) DrawDataBuilder

func (self *ViewportP) DrawDataBuilder() DrawDataBuilder

func (*ViewportP) DrawDataP

func (self *ViewportP) DrawDataP() DrawData

func (*ViewportP) Handle

func (self *ViewportP) Handle() (result *C.ImGuiViewportP, fin func())

Handle returns C version of ViewportP and its finalizer func.

func (*ViewportP) Idx

func (self *ViewportP) Idx() int32

func (*ViewportP) ImGuiViewport

func (self *ViewportP) ImGuiViewport() Viewport

func (*ViewportP) InternalBuildWorkRect

func (self *ViewportP) InternalBuildWorkRect() Rect

func (*ViewportP) InternalCalcWorkRectPos

func (self *ViewportP) InternalCalcWorkRectPos(inset_min Vec2) Vec2

func (*ViewportP) InternalCalcWorkRectSize

func (self *ViewportP) InternalCalcWorkRectSize(inset_min, inset_max Vec2) Vec2

func (*ViewportP) InternalClearRequestFlags

func (self *ViewportP) InternalClearRequestFlags()

func (*ViewportP) InternalDestroy

func (self *ViewportP) InternalDestroy()

func (*ViewportP) InternalMainRect

func (self *ViewportP) InternalMainRect() Rect

func (*ViewportP) InternalUpdateWorkRect

func (self *ViewportP) InternalUpdateWorkRect()

Update public fields

func (*ViewportP) InternalWorkRect

func (self *ViewportP) InternalWorkRect() Rect

func (*ViewportP) LastAlpha

func (self *ViewportP) LastAlpha() float32

func (*ViewportP) LastFocusedHadNavWindow

func (self *ViewportP) LastFocusedHadNavWindow() bool

func (*ViewportP) LastFocusedStampCount

func (self *ViewportP) LastFocusedStampCount() int32

func (*ViewportP) LastFrameActive

func (self *ViewportP) LastFrameActive() int32

func (*ViewportP) LastNameHash

func (self *ViewportP) LastNameHash() ID

func (*ViewportP) LastPlatformPos

func (self *ViewportP) LastPlatformPos() Vec2

func (*ViewportP) LastPlatformSize

func (self *ViewportP) LastPlatformSize() Vec2

func (*ViewportP) LastPos

func (self *ViewportP) LastPos() Vec2

func (*ViewportP) LastRendererSize

func (self *ViewportP) LastRendererSize() Vec2

func (*ViewportP) LastSize

func (self *ViewportP) LastSize() Vec2

func (*ViewportP) PlatformMonitor

func (self *ViewportP) PlatformMonitor() int16

func (ViewportP) SetAlpha

func (self ViewportP) SetAlpha(v float32)

func (ViewportP) SetBgFgDrawLists

func (self ViewportP) SetBgFgDrawLists(v *[2]*DrawList)

func (ViewportP) SetBgFgDrawListsLastFrame

func (self ViewportP) SetBgFgDrawListsLastFrame(v *[2]int32)

func (ViewportP) SetBuildWorkInsetMax

func (self ViewportP) SetBuildWorkInsetMax(v Vec2)

func (ViewportP) SetBuildWorkInsetMin

func (self ViewportP) SetBuildWorkInsetMin(v Vec2)

func (ViewportP) SetDrawDataBuilder

func (self ViewportP) SetDrawDataBuilder(v DrawDataBuilder)

func (ViewportP) SetDrawDataP

func (self ViewportP) SetDrawDataP(v DrawData)

func (ViewportP) SetIdx

func (self ViewportP) SetIdx(v int32)

func (ViewportP) SetImGuiViewport

func (self ViewportP) SetImGuiViewport(v Viewport)

func (ViewportP) SetLastAlpha

func (self ViewportP) SetLastAlpha(v float32)

func (ViewportP) SetLastFocusedHadNavWindow

func (self ViewportP) SetLastFocusedHadNavWindow(v bool)

func (ViewportP) SetLastFocusedStampCount

func (self ViewportP) SetLastFocusedStampCount(v int32)

func (ViewportP) SetLastFrameActive

func (self ViewportP) SetLastFrameActive(v int32)

func (ViewportP) SetLastNameHash

func (self ViewportP) SetLastNameHash(v ID)

func (ViewportP) SetLastPlatformPos

func (self ViewportP) SetLastPlatformPos(v Vec2)

func (ViewportP) SetLastPlatformSize

func (self ViewportP) SetLastPlatformSize(v Vec2)

func (ViewportP) SetLastPos

func (self ViewportP) SetLastPos(v Vec2)

func (ViewportP) SetLastRendererSize

func (self ViewportP) SetLastRendererSize(v Vec2)

func (ViewportP) SetLastSize

func (self ViewportP) SetLastSize(v Vec2)

func (ViewportP) SetPlatformMonitor

func (self ViewportP) SetPlatformMonitor(v int16)

func (ViewportP) SetWindow

func (self ViewportP) SetWindow(v *Window)

func (ViewportP) SetWorkInsetMax

func (self ViewportP) SetWorkInsetMax(v Vec2)

func (ViewportP) SetWorkInsetMin

func (self ViewportP) SetWorkInsetMin(v Vec2)

func (*ViewportP) Window

func (self *ViewportP) Window() *Window

func (*ViewportP) WorkInsetMax

func (self *ViewportP) WorkInsetMax() Vec2

func (*ViewportP) WorkInsetMin

func (self *ViewportP) WorkInsetMin() Vec2

type Wchar

type Wchar C.uint

type Wchar16

type Wchar16 uint16

func NewWchar16FromC

func NewWchar16FromC[SRC any](cvalue SRC) *Wchar16

NewWchar16FromC creates Wchar16 from its C pointer. SRC ~= *C.ImWchar16

func (Wchar16) C

func (self Wchar16) C() (C.ImWchar16, func())

C is like Handle but returns plain type instead of pointer.

func (*Wchar16) Handle

func (selfSrc *Wchar16) Handle() (result *C.ImWchar16, fin func())

Handle returns C version of Wchar16 and its finalizer func.

type Wchar32

type Wchar32 uint32

func NewWchar32FromC

func NewWchar32FromC[SRC any](cvalue SRC) *Wchar32

NewWchar32FromC creates Wchar32 from its C pointer. SRC ~= *C.ImWchar32

func (Wchar32) C

func (self Wchar32) C() (C.ImWchar32, func())

C is like Handle but returns plain type instead of pointer.

func (*Wchar32) Handle

func (selfSrc *Wchar32) Handle() (result *C.ImWchar32, fin func())

Handle returns C version of Wchar32 and its finalizer func.

type Window

type Window struct {
	CData *C.ImGuiWindow
}

func InternalCurrentWindow

func InternalCurrentWindow() *Window

func InternalCurrentWindowRead

func InternalCurrentWindowRead() *Window

func InternalFindBlockingModal

func InternalFindBlockingModal(window *Window) *Window

func InternalFindBottomMostVisibleWindowWithinBeginStack

func InternalFindBottomMostVisibleWindowWithinBeginStack(window *Window) *Window

func InternalFindWindowByID

func InternalFindWindowByID(id ID) *Window

func InternalFindWindowByName

func InternalFindWindowByName(name string) *Window

func InternalNewWindow

func InternalNewWindow(context *Context, name string) *Window

func InternalTopMostAndVisiblePopupModal

func InternalTopMostAndVisiblePopupModal() *Window

func InternalTopMostPopupModal

func InternalTopMostPopupModal() *Window

func NewEmptyWindow added in v1.2.0

func NewEmptyWindow() *Window

NewEmptyWindow creates Window with its 0 value.

func NewWindowFromC

func NewWindowFromC[SRC any](cvalue SRC) *Window

NewWindowFromC creates Window from its C pointer. SRC ~= *C.ImGuiWindow

func (*Window) Active

func (self *Window) Active() bool

func (*Window) Appearing

func (self *Window) Appearing() bool

func (*Window) AutoFitFramesX

func (self *Window) AutoFitFramesX() int

func (*Window) AutoFitFramesY

func (self *Window) AutoFitFramesY() int

func (*Window) AutoFitOnlyGrows

func (self *Window) AutoFitOnlyGrows() bool

func (*Window) AutoPosLastDirection

func (self *Window) AutoPosLastDirection() Dir

func (*Window) BeginCount

func (self *Window) BeginCount() int16

func (*Window) BeginCountPreviousFrame

func (self *Window) BeginCountPreviousFrame() int16

func (*Window) BeginOrderWithinContext

func (self *Window) BeginOrderWithinContext() int16

func (*Window) BeginOrderWithinParent

func (self *Window) BeginOrderWithinParent() int16

func (Window) C

func (self Window) C() (C.ImGuiWindow, func())

C is like Handle but returns plain type instead of pointer.

func (*Window) ChildFlags

func (self *Window) ChildFlags() ChildFlags

func (*Window) ChildId

func (self *Window) ChildId() ID

func (*Window) ClipRect

func (self *Window) ClipRect() Rect

func (*Window) Collapsed

func (self *Window) Collapsed() bool

func (*Window) ColumnsStorage

func (self *Window) ColumnsStorage() vectors.Vector[OldColumns]

func (*Window) ContentRegionRect

func (self *Window) ContentRegionRect() Rect

func (*Window) ContentSize

func (self *Window) ContentSize() Vec2

func (*Window) ContentSizeExplicit

func (self *Window) ContentSizeExplicit() Vec2

func (*Window) ContentSizeIdeal

func (self *Window) ContentSizeIdeal() Vec2

func (*Window) Ctx

func (self *Window) Ctx() *Context

func (*Window) DC

func (self *Window) DC() WindowTempData

func (*Window) DecoInnerSizeX1

func (self *Window) DecoInnerSizeX1() float32

func (*Window) DecoInnerSizeY1

func (self *Window) DecoInnerSizeY1() float32

func (*Window) DecoOuterSizeX1

func (self *Window) DecoOuterSizeX1() float32

func (*Window) DecoOuterSizeX2

func (self *Window) DecoOuterSizeX2() float32

func (*Window) DecoOuterSizeY1

func (self *Window) DecoOuterSizeY1() float32

func (*Window) DecoOuterSizeY2

func (self *Window) DecoOuterSizeY2() float32

func (*Window) DisableInputsFrames

func (self *Window) DisableInputsFrames() int

func (*Window) DockId

func (self *Window) DockId() ID

func (*Window) DockIsActive

func (self *Window) DockIsActive() bool

func (*Window) DockNode

func (self *Window) DockNode() *DockNode

func (*Window) DockNodeAsHost

func (self *Window) DockNodeAsHost() *DockNode

func (*Window) DockNodeIsVisible

func (self *Window) DockNodeIsVisible() bool

func (*Window) DockOrder

func (self *Window) DockOrder() int16

func (*Window) DockStyle

func (self *Window) DockStyle() WindowDockStyle

func (*Window) DockTabIsVisible

func (self *Window) DockTabIsVisible() bool

func (*Window) DockTabItemRect

func (self *Window) DockTabItemRect() Rect

func (*Window) DockTabItemStatusFlags

func (self *Window) DockTabItemStatusFlags() ItemStatusFlags

func (*Window) DockTabWantClose

func (self *Window) DockTabWantClose() bool

func (*Window) DrawList

func (self *Window) DrawList() *DrawList

func (*Window) DrawListInst

func (self *Window) DrawListInst() DrawList

func (*Window) Flags

func (self *Window) Flags() WindowFlags

func (*Window) FlagsPreviousFrame

func (self *Window) FlagsPreviousFrame() WindowFlags

func (*Window) FocusOrder

func (self *Window) FocusOrder() int16

func (*Window) FontDpiScale

func (self *Window) FontDpiScale() float32

func (*Window) FontWindowScale

func (self *Window) FontWindowScale() float32

func (*Window) Handle

func (self *Window) Handle() (result *C.ImGuiWindow, fin func())

Handle returns C version of Window and its finalizer func.

func (*Window) HasCloseButton

func (self *Window) HasCloseButton() bool

func (*Window) Hidden

func (self *Window) Hidden() bool

func (*Window) HiddenFramesCanSkipItems

func (self *Window) HiddenFramesCanSkipItems() int

func (*Window) HiddenFramesCannotSkipItems

func (self *Window) HiddenFramesCannotSkipItems() int

func (*Window) HiddenFramesForRenderOnly

func (self *Window) HiddenFramesForRenderOnly() int

func (*Window) ID

func (self *Window) ID() ID

func (*Window) IDStack

func (self *Window) IDStack() vectors.Vector[ID]

func (*Window) InnerClipRect

func (self *Window) InnerClipRect() Rect

func (*Window) InnerRect

func (self *Window) InnerRect() Rect

func (*Window) InternalCalcFontSize

func (self *Window) InternalCalcFontSize() float32

func (*Window) InternalDestroy

func (self *Window) InternalDestroy()

func (*Window) InternalIDFromPos

func (self *Window) InternalIDFromPos(p_abs Vec2) ID

func (*Window) InternalIDFromRectangle

func (self *Window) InternalIDFromRectangle(r_abs Rect) ID

func (*Window) InternalIDInt

func (self *Window) InternalIDInt(n int32) ID

func (*Window) InternalIDPtr

func (self *Window) InternalIDPtr(ptr uintptr) ID

func (*Window) InternalIDStr

func (self *Window) InternalIDStr(str string) ID

func (*Window) InternalIDStrV

func (self *Window) InternalIDStrV(str, str_end string) ID

InternalIDStrV parameter default value hint: str_end: NULL

func (*Window) InternalMenuBarRect

func (self *Window) InternalMenuBarRect() Rect

func (*Window) InternalRect

func (self *Window) InternalRect() Rect

func (*Window) InternalTitleBarRect

func (self *Window) InternalTitleBarRect() Rect

func (*Window) IsExplicitChild

func (self *Window) IsExplicitChild() bool

func (*Window) IsFallbackWindow

func (self *Window) IsFallbackWindow() bool

func (*Window) ItemWidthDefault

func (self *Window) ItemWidthDefault() float32

func (*Window) LastFrameActive

func (self *Window) LastFrameActive() int32

func (*Window) LastFrameJustFocused

func (self *Window) LastFrameJustFocused() int32

func (*Window) LastTimeActive

func (self *Window) LastTimeActive() float32

func (*Window) MemoryCompacted

func (self *Window) MemoryCompacted() bool

func (*Window) MemoryDrawListIdxCapacity

func (self *Window) MemoryDrawListIdxCapacity() int32

func (*Window) MemoryDrawListVtxCapacity

func (self *Window) MemoryDrawListVtxCapacity() int32

func (*Window) MenuBarHeight

func (self *Window) MenuBarHeight() float32

func (*Window) MoveId

func (self *Window) MoveId() ID

func (*Window) Name

func (self *Window) Name() string

func (*Window) NameBufLen

func (self *Window) NameBufLen() int32

func (*Window) NavLastChildNavWindow

func (self *Window) NavLastChildNavWindow() *Window

func (*Window) NavLastIds

func (self *Window) NavLastIds() [2]ID

func (*Window) NavPreferredScoringPosRel

func (self *Window) NavPreferredScoringPosRel() [2]Vec2

func (*Window) NavRectRel

func (self *Window) NavRectRel() [2]Rect

func (*Window) NavRootFocusScopeId

func (self *Window) NavRootFocusScopeId() ID

func (*Window) OuterRectClipped

func (self *Window) OuterRectClipped() Rect

func (*Window) ParentWindow

func (self *Window) ParentWindow() *Window

func (*Window) ParentWindowForFocusRoute

func (self *Window) ParentWindowForFocusRoute() *Window

func (*Window) ParentWindowInBeginStack

func (self *Window) ParentWindowInBeginStack() *Window

func (*Window) ParentWorkRect

func (self *Window) ParentWorkRect() Rect

func (*Window) PopupId

func (self *Window) PopupId() ID

func (*Window) Pos

func (self *Window) Pos() Vec2

func (*Window) RootWindow

func (self *Window) RootWindow() *Window

func (*Window) RootWindowDockTree

func (self *Window) RootWindowDockTree() *Window

func (*Window) RootWindowForNav

func (self *Window) RootWindowForNav() *Window

func (*Window) RootWindowForTitleBarHighlight

func (self *Window) RootWindowForTitleBarHighlight() *Window

func (*Window) RootWindowPopupTree

func (self *Window) RootWindowPopupTree() *Window

func (*Window) Scroll

func (self *Window) Scroll() Vec2

func (*Window) ScrollMax

func (self *Window) ScrollMax() Vec2

func (*Window) ScrollTarget

func (self *Window) ScrollTarget() Vec2

func (*Window) ScrollTargetCenterRatio

func (self *Window) ScrollTargetCenterRatio() Vec2

func (*Window) ScrollTargetEdgeSnapDist

func (self *Window) ScrollTargetEdgeSnapDist() Vec2

func (*Window) ScrollbarSizes

func (self *Window) ScrollbarSizes() Vec2

func (*Window) ScrollbarX

func (self *Window) ScrollbarX() bool

func (*Window) ScrollbarY

func (self *Window) ScrollbarY() bool

func (Window) SetActive

func (self Window) SetActive(v bool)

func (Window) SetAppearing

func (self Window) SetAppearing(v bool)

func (Window) SetAutoFitFramesX

func (self Window) SetAutoFitFramesX(v int)

func (Window) SetAutoFitFramesY

func (self Window) SetAutoFitFramesY(v int)

func (Window) SetAutoFitOnlyGrows

func (self Window) SetAutoFitOnlyGrows(v bool)

func (Window) SetAutoPosLastDirection

func (self Window) SetAutoPosLastDirection(v Dir)

func (Window) SetBeginCount

func (self Window) SetBeginCount(v int16)

func (Window) SetBeginCountPreviousFrame

func (self Window) SetBeginCountPreviousFrame(v int16)

func (Window) SetBeginOrderWithinContext

func (self Window) SetBeginOrderWithinContext(v int16)

func (Window) SetBeginOrderWithinParent

func (self Window) SetBeginOrderWithinParent(v int16)

func (Window) SetChildFlags

func (self Window) SetChildFlags(v ChildFlags)

func (Window) SetChildId

func (self Window) SetChildId(v ID)

func (Window) SetClipRect

func (self Window) SetClipRect(v Rect)

func (Window) SetCollapsed

func (self Window) SetCollapsed(v bool)

func (Window) SetColumnsStorage

func (self Window) SetColumnsStorage(v vectors.Vector[OldColumns])

func (Window) SetContentRegionRect

func (self Window) SetContentRegionRect(v Rect)

func (Window) SetContentSize

func (self Window) SetContentSize(v Vec2)

func (Window) SetContentSizeExplicit

func (self Window) SetContentSizeExplicit(v Vec2)

func (Window) SetContentSizeIdeal

func (self Window) SetContentSizeIdeal(v Vec2)

func (Window) SetCtx

func (self Window) SetCtx(v *Context)

func (Window) SetDC

func (self Window) SetDC(v WindowTempData)

func (Window) SetDecoInnerSizeX1

func (self Window) SetDecoInnerSizeX1(v float32)

func (Window) SetDecoInnerSizeY1

func (self Window) SetDecoInnerSizeY1(v float32)

func (Window) SetDecoOuterSizeX1

func (self Window) SetDecoOuterSizeX1(v float32)

func (Window) SetDecoOuterSizeX2

func (self Window) SetDecoOuterSizeX2(v float32)

func (Window) SetDecoOuterSizeY1

func (self Window) SetDecoOuterSizeY1(v float32)

func (Window) SetDecoOuterSizeY2

func (self Window) SetDecoOuterSizeY2(v float32)

func (Window) SetDisableInputsFrames

func (self Window) SetDisableInputsFrames(v int)

func (Window) SetDockId

func (self Window) SetDockId(v ID)

func (Window) SetDockIsActive

func (self Window) SetDockIsActive(v bool)

func (Window) SetDockNode

func (self Window) SetDockNode(v *DockNode)

func (Window) SetDockNodeAsHost

func (self Window) SetDockNodeAsHost(v *DockNode)

func (Window) SetDockNodeIsVisible

func (self Window) SetDockNodeIsVisible(v bool)

func (Window) SetDockOrder

func (self Window) SetDockOrder(v int16)

func (Window) SetDockStyle

func (self Window) SetDockStyle(v WindowDockStyle)

func (Window) SetDockTabIsVisible

func (self Window) SetDockTabIsVisible(v bool)

func (Window) SetDockTabItemRect

func (self Window) SetDockTabItemRect(v Rect)

func (Window) SetDockTabItemStatusFlags

func (self Window) SetDockTabItemStatusFlags(v ItemStatusFlags)

func (Window) SetDockTabWantClose

func (self Window) SetDockTabWantClose(v bool)

func (Window) SetDrawList

func (self Window) SetDrawList(v *DrawList)

func (Window) SetDrawListInst

func (self Window) SetDrawListInst(v DrawList)

func (Window) SetFlags

func (self Window) SetFlags(v WindowFlags)

func (Window) SetFlagsPreviousFrame

func (self Window) SetFlagsPreviousFrame(v WindowFlags)

func (Window) SetFocusOrder

func (self Window) SetFocusOrder(v int16)

func (Window) SetFontDpiScale

func (self Window) SetFontDpiScale(v float32)

func (Window) SetFontWindowScale

func (self Window) SetFontWindowScale(v float32)

func (Window) SetHasCloseButton

func (self Window) SetHasCloseButton(v bool)

func (Window) SetHidden

func (self Window) SetHidden(v bool)

func (Window) SetHiddenFramesCanSkipItems

func (self Window) SetHiddenFramesCanSkipItems(v int)

func (Window) SetHiddenFramesCannotSkipItems

func (self Window) SetHiddenFramesCannotSkipItems(v int)

func (Window) SetHiddenFramesForRenderOnly

func (self Window) SetHiddenFramesForRenderOnly(v int)

func (Window) SetID

func (self Window) SetID(v ID)

func (Window) SetIDStack

func (self Window) SetIDStack(v vectors.Vector[ID])

func (Window) SetInnerClipRect

func (self Window) SetInnerClipRect(v Rect)

func (Window) SetInnerRect

func (self Window) SetInnerRect(v Rect)

func (Window) SetIsExplicitChild

func (self Window) SetIsExplicitChild(v bool)

func (Window) SetIsFallbackWindow

func (self Window) SetIsFallbackWindow(v bool)

func (Window) SetItemWidthDefault

func (self Window) SetItemWidthDefault(v float32)

func (Window) SetLastFrameActive

func (self Window) SetLastFrameActive(v int32)

func (Window) SetLastFrameJustFocused

func (self Window) SetLastFrameJustFocused(v int32)

func (Window) SetLastTimeActive

func (self Window) SetLastTimeActive(v float32)

func (Window) SetMemoryCompacted

func (self Window) SetMemoryCompacted(v bool)

func (Window) SetMemoryDrawListIdxCapacity

func (self Window) SetMemoryDrawListIdxCapacity(v int32)

func (Window) SetMemoryDrawListVtxCapacity

func (self Window) SetMemoryDrawListVtxCapacity(v int32)

func (Window) SetMenuBarHeight

func (self Window) SetMenuBarHeight(v float32)

func (Window) SetMoveId

func (self Window) SetMoveId(v ID)

func (Window) SetName

func (self Window) SetName(v string)

func (Window) SetNameBufLen

func (self Window) SetNameBufLen(v int32)

func (Window) SetNavLastChildNavWindow

func (self Window) SetNavLastChildNavWindow(v *Window)

func (Window) SetNavLastIds

func (self Window) SetNavLastIds(v *[2]ID)

func (Window) SetNavPreferredScoringPosRel

func (self Window) SetNavPreferredScoringPosRel(v [2]*Vec2)

func (Window) SetNavRectRel

func (self Window) SetNavRectRel(v *[2]Rect)

func (Window) SetNavRootFocusScopeId

func (self Window) SetNavRootFocusScopeId(v ID)

func (Window) SetOuterRectClipped

func (self Window) SetOuterRectClipped(v Rect)

func (Window) SetParentWindow

func (self Window) SetParentWindow(v *Window)

func (Window) SetParentWindowForFocusRoute

func (self Window) SetParentWindowForFocusRoute(v *Window)

func (Window) SetParentWindowInBeginStack

func (self Window) SetParentWindowInBeginStack(v *Window)

func (Window) SetParentWorkRect

func (self Window) SetParentWorkRect(v Rect)

func (Window) SetPopupId

func (self Window) SetPopupId(v ID)

func (Window) SetPos

func (self Window) SetPos(v Vec2)

func (Window) SetRootWindow

func (self Window) SetRootWindow(v *Window)

func (Window) SetRootWindowDockTree

func (self Window) SetRootWindowDockTree(v *Window)

func (Window) SetRootWindowForNav

func (self Window) SetRootWindowForNav(v *Window)

func (Window) SetRootWindowForTitleBarHighlight

func (self Window) SetRootWindowForTitleBarHighlight(v *Window)

func (Window) SetRootWindowPopupTree

func (self Window) SetRootWindowPopupTree(v *Window)

func (Window) SetScroll

func (self Window) SetScroll(v Vec2)

func (Window) SetScrollMax

func (self Window) SetScrollMax(v Vec2)

func (Window) SetScrollTarget

func (self Window) SetScrollTarget(v Vec2)

func (Window) SetScrollTargetCenterRatio

func (self Window) SetScrollTargetCenterRatio(v Vec2)

func (Window) SetScrollTargetEdgeSnapDist

func (self Window) SetScrollTargetEdgeSnapDist(v Vec2)

func (Window) SetScrollbarSizes

func (self Window) SetScrollbarSizes(v Vec2)

func (Window) SetScrollbarX

func (self Window) SetScrollbarX(v bool)

func (Window) SetScrollbarY

func (self Window) SetScrollbarY(v bool)

func (Window) SetSetWindowCollapsedAllowFlags

func (self Window) SetSetWindowCollapsedAllowFlags(v Cond)

func (Window) SetSetWindowDockAllowFlags

func (self Window) SetSetWindowDockAllowFlags(v Cond)

func (Window) SetSetWindowPosAllowFlags

func (self Window) SetSetWindowPosAllowFlags(v Cond)

func (Window) SetSetWindowPosPivot

func (self Window) SetSetWindowPosPivot(v Vec2)

func (Window) SetSetWindowPosVal

func (self Window) SetSetWindowPosVal(v Vec2)

func (Window) SetSetWindowSizeAllowFlags

func (self Window) SetSetWindowSizeAllowFlags(v Cond)

func (Window) SetSettingsOffset

func (self Window) SetSettingsOffset(v int32)

func (Window) SetSize

func (self Window) SetSize(v Vec2)

func (Window) SetSizeFull

func (self Window) SetSizeFull(v Vec2)

func (Window) SetSkipItems

func (self Window) SetSkipItems(v bool)

func (Window) SetSkipRefresh

func (self Window) SetSkipRefresh(v bool)

func (Window) SetStateStorage

func (self Window) SetStateStorage(v Storage)

func (Window) SetTabId

func (self Window) SetTabId(v ID)

func (Window) SetTitleBarHeight

func (self Window) SetTitleBarHeight(v float32)

func (Window) SetViewport

func (self Window) SetViewport(v *ViewportP)

func (Window) SetViewportAllowPlatformMonitorExtend

func (self Window) SetViewportAllowPlatformMonitorExtend(v int32)

func (Window) SetViewportId

func (self Window) SetViewportId(v ID)

func (Window) SetViewportOwned

func (self Window) SetViewportOwned(v bool)

func (Window) SetViewportPos

func (self Window) SetViewportPos(v Vec2)

func (Window) SetWantCollapseToggle

func (self Window) SetWantCollapseToggle(v bool)

func (Window) SetWasActive

func (self Window) SetWasActive(v bool)

func (Window) SetWindowBorderSize

func (self Window) SetWindowBorderSize(v float32)

func (Window) SetWindowClass

func (self Window) SetWindowClass(v WindowClass)

func (*Window) SetWindowCollapsedAllowFlags

func (self *Window) SetWindowCollapsedAllowFlags() Cond

func (*Window) SetWindowDockAllowFlags

func (self *Window) SetWindowDockAllowFlags() Cond

func (Window) SetWindowPadding

func (self Window) SetWindowPadding(v Vec2)

func (*Window) SetWindowPosAllowFlags

func (self *Window) SetWindowPosAllowFlags() Cond

func (*Window) SetWindowPosPivot

func (self *Window) SetWindowPosPivot() Vec2

func (*Window) SetWindowPosVal

func (self *Window) SetWindowPosVal() Vec2

func (Window) SetWindowRounding

func (self Window) SetWindowRounding(v float32)

func (*Window) SetWindowSizeAllowFlags

func (self *Window) SetWindowSizeAllowFlags() Cond

func (Window) SetWorkRect

func (self Window) SetWorkRect(v Rect)

func (Window) SetWriteAccessed

func (self Window) SetWriteAccessed(v bool)

func (*Window) SettingsOffset

func (self *Window) SettingsOffset() int32

func (*Window) Size

func (self *Window) Size() Vec2

func (*Window) SizeFull

func (self *Window) SizeFull() Vec2

func (*Window) SkipItems

func (self *Window) SkipItems() bool

func (*Window) SkipRefresh

func (self *Window) SkipRefresh() bool

func (*Window) StateStorage

func (self *Window) StateStorage() Storage

func (*Window) TabId

func (self *Window) TabId() ID

func (*Window) TitleBarHeight

func (self *Window) TitleBarHeight() float32

func (*Window) Viewport

func (self *Window) Viewport() *ViewportP

func (*Window) ViewportAllowPlatformMonitorExtend

func (self *Window) ViewportAllowPlatformMonitorExtend() int32

func (*Window) ViewportId

func (self *Window) ViewportId() ID

func (*Window) ViewportOwned

func (self *Window) ViewportOwned() bool

func (*Window) ViewportPos

func (self *Window) ViewportPos() Vec2

func (*Window) WantCollapseToggle

func (self *Window) WantCollapseToggle() bool

func (*Window) WasActive

func (self *Window) WasActive() bool

func (*Window) WindowBorderSize

func (self *Window) WindowBorderSize() float32

func (*Window) WindowClass

func (self *Window) WindowClass() WindowClass

func (*Window) WindowPadding

func (self *Window) WindowPadding() Vec2

func (*Window) WindowRounding

func (self *Window) WindowRounding() float32

func (*Window) WorkRect

func (self *Window) WorkRect() Rect

func (*Window) WriteAccessed

func (self *Window) WriteAccessed() bool

type WindowClass

type WindowClass struct {
	CData *C.ImGuiWindowClass
}

func NewEmptyWindowClass added in v1.2.0

func NewEmptyWindowClass() *WindowClass

NewEmptyWindowClass creates WindowClass with its 0 value.

func NewWindowClass

func NewWindowClass() *WindowClass

func NewWindowClassFromC

func NewWindowClassFromC[SRC any](cvalue SRC) *WindowClass

NewWindowClassFromC creates WindowClass from its C pointer. SRC ~= *C.ImGuiWindowClass

func (WindowClass) C

func (self WindowClass) C() (C.ImGuiWindowClass, func())

C is like Handle but returns plain type instead of pointer.

func (*WindowClass) ClassId

func (self *WindowClass) ClassId() ID

func (*WindowClass) Destroy

func (self *WindowClass) Destroy()

func (*WindowClass) DockNodeFlagsOverrideSet

func (self *WindowClass) DockNodeFlagsOverrideSet() DockNodeFlags

func (*WindowClass) DockingAllowUnclassed

func (self *WindowClass) DockingAllowUnclassed() bool

func (*WindowClass) DockingAlwaysTabBar

func (self *WindowClass) DockingAlwaysTabBar() bool

func (*WindowClass) FocusRouteParentWindowId

func (self *WindowClass) FocusRouteParentWindowId() ID

func (*WindowClass) Handle

func (self *WindowClass) Handle() (result *C.ImGuiWindowClass, fin func())

Handle returns C version of WindowClass and its finalizer func.

func (*WindowClass) ParentViewportId

func (self *WindowClass) ParentViewportId() ID

func (WindowClass) SetClassId

func (self WindowClass) SetClassId(v ID)

func (WindowClass) SetDockNodeFlagsOverrideSet

func (self WindowClass) SetDockNodeFlagsOverrideSet(v DockNodeFlags)

func (WindowClass) SetDockingAllowUnclassed

func (self WindowClass) SetDockingAllowUnclassed(v bool)

func (WindowClass) SetDockingAlwaysTabBar

func (self WindowClass) SetDockingAlwaysTabBar(v bool)

func (WindowClass) SetFocusRouteParentWindowId

func (self WindowClass) SetFocusRouteParentWindowId(v ID)

func (WindowClass) SetParentViewportId

func (self WindowClass) SetParentViewportId(v ID)

func (WindowClass) SetTabItemFlagsOverrideSet

func (self WindowClass) SetTabItemFlagsOverrideSet(v TabItemFlags)

func (WindowClass) SetViewportFlagsOverrideClear

func (self WindowClass) SetViewportFlagsOverrideClear(v ViewportFlags)

func (WindowClass) SetViewportFlagsOverrideSet

func (self WindowClass) SetViewportFlagsOverrideSet(v ViewportFlags)

func (*WindowClass) TabItemFlagsOverrideSet

func (self *WindowClass) TabItemFlagsOverrideSet() TabItemFlags

func (*WindowClass) ViewportFlagsOverrideClear

func (self *WindowClass) ViewportFlagsOverrideClear() ViewportFlags

func (*WindowClass) ViewportFlagsOverrideSet

func (self *WindowClass) ViewportFlagsOverrideSet() ViewportFlags

type WindowDockStyle

type WindowDockStyle struct {
	CData *C.ImGuiWindowDockStyle
}

func NewEmptyWindowDockStyle added in v1.2.0

func NewEmptyWindowDockStyle() *WindowDockStyle

NewEmptyWindowDockStyle creates WindowDockStyle with its 0 value.

func NewWindowDockStyleFromC

func NewWindowDockStyleFromC[SRC any](cvalue SRC) *WindowDockStyle

NewWindowDockStyleFromC creates WindowDockStyle from its C pointer. SRC ~= *C.ImGuiWindowDockStyle

func (WindowDockStyle) C

func (self WindowDockStyle) C() (C.ImGuiWindowDockStyle, func())

C is like Handle but returns plain type instead of pointer.

func (*WindowDockStyle) Colors

func (self *WindowDockStyle) Colors() [8](uint32)

func (*WindowDockStyle) Handle

func (self *WindowDockStyle) Handle() (result *C.ImGuiWindowDockStyle, fin func())

Handle returns C version of WindowDockStyle and its finalizer func.

func (WindowDockStyle) SetColors

func (self WindowDockStyle) SetColors(v *[8]uint32)

type WindowDockStyleCol

type WindowDockStyleCol int32

List of colors that are stored at the time of Begin() into Docked Windows. We currently store the packed colors in a simple array window->DockStyle.Colors[]. A better solution may involve appending into a log of colors in ImGuiContext + store offsets into those arrays in ImGuiWindow, but it would be more complex as we'd need to double-buffer both as e.g. drop target may refer to window from last frame. original name: ImGuiWindowDockStyleCol

const (
	WindowDockStyleColText                      WindowDockStyleCol = 0
	WindowDockStyleColTabHovered                WindowDockStyleCol = 1
	WindowDockStyleColTabFocused                WindowDockStyleCol = 2
	WindowDockStyleColTabSelected               WindowDockStyleCol = 3
	WindowDockStyleColTabSelectedOverline       WindowDockStyleCol = 4
	WindowDockStyleColTabDimmed                 WindowDockStyleCol = 5
	WindowDockStyleColTabDimmedSelected         WindowDockStyleCol = 6
	WindowDockStyleColTabDimmedSelectedOverline WindowDockStyleCol = 7
	WindowDockStyleColCOUNT                     WindowDockStyleCol = 8
)

type WindowFlags

type WindowFlags int32

Flags for ImGui::Begin() (Those are per-window flags. There are shared flags in ImGuiIO: io.ConfigWindowsResizeFromEdges and io.ConfigWindowsMoveFromTitleBarOnly) original name: ImGuiWindowFlags_

const (
	WindowFlagsNone WindowFlags = 0
	// Disable title-bar
	WindowFlagsNoTitleBar WindowFlags = 1
	// Disable user resizing with the lower-right grip
	WindowFlagsNoResize WindowFlags = 2
	// Disable user moving the window
	WindowFlagsNoMove WindowFlags = 4
	// Disable scrollbars (window can still scroll with mouse or programmatically)
	WindowFlagsNoScrollbar WindowFlags = 8
	// Disable user vertically scrolling with mouse wheel. On child window, mouse wheel will be forwarded to the parent unless NoScrollbar is also set.
	WindowFlagsNoScrollWithMouse WindowFlags = 16
	// Disable user collapsing window by double-clicking on it. Also referred to as Window Menu Button (e.g. within a docking node).
	WindowFlagsNoCollapse WindowFlags = 32
	// Resize every window to its content every frame
	WindowFlagsAlwaysAutoResize WindowFlags = 64
	// Disable drawing background color (WindowBg, etc.) and outside border. Similar as using SetNextWindowBgAlpha(0.0f).
	WindowFlagsNoBackground WindowFlags = 128
	// Never load/save settings in .ini file
	WindowFlagsNoSavedSettings WindowFlags = 256
	// Disable catching mouse, hovering test with pass through.
	WindowFlagsNoMouseInputs WindowFlags = 512
	// Has a menu-bar
	WindowFlagsMenuBar WindowFlags = 1024
	// Allow horizontal scrollbar to appear (off by default). You may use SetNextWindowContentSize(ImVec2(width,0.0f)); prior to calling Begin() to specify width. Read code in imgui_demo in the "Horizontal Scrolling" section.
	WindowFlagsHorizontalScrollbar WindowFlags = 2048
	// Disable taking focus when transitioning from hidden to visible state
	WindowFlagsNoFocusOnAppearing WindowFlags = 4096
	// Disable bringing window to front when taking focus (e.g. clicking on it or programmatically giving it focus)
	WindowFlagsNoBringToFrontOnFocus WindowFlags = 8192
	// Always show vertical scrollbar (even if ContentSize.y < Size.y)
	WindowFlagsAlwaysVerticalScrollbar WindowFlags = 16384
	// Always show horizontal scrollbar (even if ContentSize.x < Size.x)
	WindowFlagsAlwaysHorizontalScrollbar WindowFlags = 32768
	// No keyboard/gamepad navigation within the window
	WindowFlagsNoNavInputs WindowFlags = 65536
	// No focusing toward this window with keyboard/gamepad navigation (e.g. skipped by CTRL+TAB)
	WindowFlagsNoNavFocus WindowFlags = 131072
	// Display a dot next to the title. When used in a tab/docking context, tab is selected when clicking the X + closure is not assumed (will wait for user to stop submitting the tab). Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar.
	WindowFlagsUnsavedDocument WindowFlags = 262144
	// Disable docking of this window
	WindowFlagsNoDocking    WindowFlags = 524288
	WindowFlagsNoNav        WindowFlags = 196608
	WindowFlagsNoDecoration WindowFlags = 43
	WindowFlagsNoInputs     WindowFlags = 197120
	// Don't use! For internal use by BeginChild()
	WindowFlagsChildWindow WindowFlags = 16777216
	// Don't use! For internal use by BeginTooltip()
	WindowFlagsTooltip WindowFlags = 33554432
	// Don't use! For internal use by BeginPopup()
	WindowFlagsPopup WindowFlags = 67108864
	// Don't use! For internal use by BeginPopupModal()
	WindowFlagsModal WindowFlags = 134217728
	// Don't use! For internal use by BeginMenu()
	WindowFlagsChildMenu WindowFlags = 268435456
	// Don't use! For internal use by Begin()/NewFrame()
	WindowFlagsDockNodeHost WindowFlags = 536870912
)

type WindowRefreshFlags

type WindowRefreshFlags int32

original name: ImGuiWindowRefreshFlags_

const (
	WindowRefreshFlagsNone WindowRefreshFlags = 0
	// [EXPERIMENTAL] Try to keep existing contents, USER MUST NOT HONOR BEGIN() RETURNING FALSE AND NOT APPEND.
	WindowRefreshFlagsTryToAvoidRefresh WindowRefreshFlags = 1
	// [EXPERIMENTAL] Always refresh on hover
	WindowRefreshFlagsRefreshOnHover WindowRefreshFlags = 2
	// [EXPERIMENTAL] Always refresh on focus
	WindowRefreshFlagsRefreshOnFocus WindowRefreshFlags = 4
)

type WindowSettings

type WindowSettings struct {
	CData *C.ImGuiWindowSettings
}

func InternalCreateNewWindowSettings

func InternalCreateNewWindowSettings(name string) *WindowSettings

func InternalFindWindowSettingsByID

func InternalFindWindowSettingsByID(id ID) *WindowSettings

func InternalFindWindowSettingsByWindow

func InternalFindWindowSettingsByWindow(window *Window) *WindowSettings

func InternalNewWindowSettings

func InternalNewWindowSettings() *WindowSettings

func NewEmptyWindowSettings added in v1.2.0

func NewEmptyWindowSettings() *WindowSettings

NewEmptyWindowSettings creates WindowSettings with its 0 value.

func NewWindowSettingsFromC

func NewWindowSettingsFromC[SRC any](cvalue SRC) *WindowSettings

NewWindowSettingsFromC creates WindowSettings from its C pointer. SRC ~= *C.ImGuiWindowSettings

func (WindowSettings) C

func (self WindowSettings) C() (C.ImGuiWindowSettings, func())

C is like Handle but returns plain type instead of pointer.

func (*WindowSettings) ClassId

func (self *WindowSettings) ClassId() ID

func (*WindowSettings) Collapsed

func (self *WindowSettings) Collapsed() bool

func (*WindowSettings) Destroy

func (self *WindowSettings) Destroy()

func (*WindowSettings) DockId

func (self *WindowSettings) DockId() ID

func (*WindowSettings) DockOrder

func (self *WindowSettings) DockOrder() int16

func (*WindowSettings) Handle

func (self *WindowSettings) Handle() (result *C.ImGuiWindowSettings, fin func())

Handle returns C version of WindowSettings and its finalizer func.

func (*WindowSettings) ID

func (self *WindowSettings) ID() ID

func (*WindowSettings) InternalName

func (self *WindowSettings) InternalName() string

func (*WindowSettings) IsChild

func (self *WindowSettings) IsChild() bool

func (WindowSettings) SetClassId

func (self WindowSettings) SetClassId(v ID)

func (WindowSettings) SetCollapsed

func (self WindowSettings) SetCollapsed(v bool)

func (WindowSettings) SetDockId

func (self WindowSettings) SetDockId(v ID)

func (WindowSettings) SetDockOrder

func (self WindowSettings) SetDockOrder(v int16)

func (WindowSettings) SetID

func (self WindowSettings) SetID(v ID)

func (WindowSettings) SetIsChild

func (self WindowSettings) SetIsChild(v bool)

func (WindowSettings) SetViewportId

func (self WindowSettings) SetViewportId(v ID)

func (WindowSettings) SetWantApply

func (self WindowSettings) SetWantApply(v bool)

func (WindowSettings) SetWantDelete

func (self WindowSettings) SetWantDelete(v bool)

func (*WindowSettings) ViewportId

func (self *WindowSettings) ViewportId() ID

func (*WindowSettings) WantApply

func (self *WindowSettings) WantApply() bool

func (*WindowSettings) WantDelete

func (self *WindowSettings) WantDelete() bool

type WindowStackData

type WindowStackData struct {
	CData *C.ImGuiWindowStackData
}

func NewEmptyWindowStackData added in v1.2.0

func NewEmptyWindowStackData() *WindowStackData

NewEmptyWindowStackData creates WindowStackData with its 0 value.

func NewWindowStackDataFromC

func NewWindowStackDataFromC[SRC any](cvalue SRC) *WindowStackData

NewWindowStackDataFromC creates WindowStackData from its C pointer. SRC ~= *C.ImGuiWindowStackData

func (WindowStackData) C

func (self WindowStackData) C() (C.ImGuiWindowStackData, func())

C is like Handle but returns plain type instead of pointer.

func (*WindowStackData) DisabledOverrideReenable

func (self *WindowStackData) DisabledOverrideReenable() bool

func (*WindowStackData) Handle

func (self *WindowStackData) Handle() (result *C.ImGuiWindowStackData, fin func())

Handle returns C version of WindowStackData and its finalizer func.

func (*WindowStackData) ParentLastItemDataBackup

func (self *WindowStackData) ParentLastItemDataBackup() LastItemData

func (WindowStackData) SetDisabledOverrideReenable

func (self WindowStackData) SetDisabledOverrideReenable(v bool)

func (WindowStackData) SetParentLastItemDataBackup

func (self WindowStackData) SetParentLastItemDataBackup(v LastItemData)

func (WindowStackData) SetStackSizesInBegin added in v1.1.0

func (self WindowStackData) SetStackSizesInBegin(v ErrorRecoveryState)

func (WindowStackData) SetWindow

func (self WindowStackData) SetWindow(v *Window)

func (*WindowStackData) StackSizesInBegin added in v1.1.0

func (self *WindowStackData) StackSizesInBegin() ErrorRecoveryState

func (*WindowStackData) Window

func (self *WindowStackData) Window() *Window

type WindowTempData

type WindowTempData struct {
	CData *C.ImGuiWindowTempData
}

func NewEmptyWindowTempData added in v1.2.0

func NewEmptyWindowTempData() *WindowTempData

NewEmptyWindowTempData creates WindowTempData with its 0 value.

func NewWindowTempDataFromC

func NewWindowTempDataFromC[SRC any](cvalue SRC) *WindowTempData

NewWindowTempDataFromC creates WindowTempData from its C pointer. SRC ~= *C.ImGuiWindowTempData

func (WindowTempData) C

func (self WindowTempData) C() (C.ImGuiWindowTempData, func())

C is like Handle but returns plain type instead of pointer.

func (*WindowTempData) ColumnsOffset

func (self *WindowTempData) ColumnsOffset() Vec1

func (*WindowTempData) CurrLineSize

func (self *WindowTempData) CurrLineSize() Vec2

func (*WindowTempData) CurrLineTextBaseOffset

func (self *WindowTempData) CurrLineTextBaseOffset() float32

func (*WindowTempData) CurrentColumns

func (self *WindowTempData) CurrentColumns() *OldColumns

func (*WindowTempData) CurrentTableIdx

func (self *WindowTempData) CurrentTableIdx() int32

func (*WindowTempData) CursorMaxPos

func (self *WindowTempData) CursorMaxPos() Vec2

func (*WindowTempData) CursorPos

func (self *WindowTempData) CursorPos() Vec2

func (*WindowTempData) CursorPosPrevLine

func (self *WindowTempData) CursorPosPrevLine() Vec2

func (*WindowTempData) CursorStartPos

func (self *WindowTempData) CursorStartPos() Vec2

func (*WindowTempData) CursorStartPosLossyness

func (self *WindowTempData) CursorStartPosLossyness() Vec2

func (*WindowTempData) GroupOffset

func (self *WindowTempData) GroupOffset() Vec1

func (*WindowTempData) Handle

func (self *WindowTempData) Handle() (result *C.ImGuiWindowTempData, fin func())

Handle returns C version of WindowTempData and its finalizer func.

func (*WindowTempData) IdealMaxPos

func (self *WindowTempData) IdealMaxPos() Vec2

func (*WindowTempData) Indent

func (self *WindowTempData) Indent() Vec1

func (*WindowTempData) IsSameLine

func (self *WindowTempData) IsSameLine() bool

func (*WindowTempData) IsSetPos

func (self *WindowTempData) IsSetPos() bool

func (*WindowTempData) ItemWidth

func (self *WindowTempData) ItemWidth() float32

func (*WindowTempData) ItemWidthStack

func (self *WindowTempData) ItemWidthStack() vectors.Vector[float32]

func (*WindowTempData) LayoutType

func (self *WindowTempData) LayoutType() LayoutType

func (*WindowTempData) MenuBarAppending

func (self *WindowTempData) MenuBarAppending() bool

func (*WindowTempData) MenuBarOffset

func (self *WindowTempData) MenuBarOffset() Vec2

func (*WindowTempData) MenuColumns

func (self *WindowTempData) MenuColumns() MenuColumns

func (*WindowTempData) ModalDimBgColor

func (self *WindowTempData) ModalDimBgColor() uint32

func (*WindowTempData) NavHideHighlightOneFrame

func (self *WindowTempData) NavHideHighlightOneFrame() bool

func (*WindowTempData) NavIsScrollPushableX

func (self *WindowTempData) NavIsScrollPushableX() bool

func (*WindowTempData) NavLayerCurrent

func (self *WindowTempData) NavLayerCurrent() NavLayer

func (*WindowTempData) NavLayersActiveMask

func (self *WindowTempData) NavLayersActiveMask() int16

func (*WindowTempData) NavLayersActiveMaskNext

func (self *WindowTempData) NavLayersActiveMaskNext() int16

func (*WindowTempData) NavWindowHasScrollY

func (self *WindowTempData) NavWindowHasScrollY() bool

func (*WindowTempData) ParentLayoutType

func (self *WindowTempData) ParentLayoutType() LayoutType

func (*WindowTempData) PrevLineSize

func (self *WindowTempData) PrevLineSize() Vec2

func (*WindowTempData) PrevLineTextBaseOffset

func (self *WindowTempData) PrevLineTextBaseOffset() float32

func (WindowTempData) SetColumnsOffset

func (self WindowTempData) SetColumnsOffset(v Vec1)

func (WindowTempData) SetCurrLineSize

func (self WindowTempData) SetCurrLineSize(v Vec2)

func (WindowTempData) SetCurrLineTextBaseOffset

func (self WindowTempData) SetCurrLineTextBaseOffset(v float32)

func (WindowTempData) SetCurrentColumns

func (self WindowTempData) SetCurrentColumns(v *OldColumns)

func (WindowTempData) SetCurrentTableIdx

func (self WindowTempData) SetCurrentTableIdx(v int32)

func (WindowTempData) SetCursorMaxPos

func (self WindowTempData) SetCursorMaxPos(v Vec2)

func (WindowTempData) SetCursorPos

func (self WindowTempData) SetCursorPos(v Vec2)

func (WindowTempData) SetCursorPosPrevLine

func (self WindowTempData) SetCursorPosPrevLine(v Vec2)

func (WindowTempData) SetCursorStartPos

func (self WindowTempData) SetCursorStartPos(v Vec2)

func (WindowTempData) SetCursorStartPosLossyness

func (self WindowTempData) SetCursorStartPosLossyness(v Vec2)

func (WindowTempData) SetGroupOffset

func (self WindowTempData) SetGroupOffset(v Vec1)

func (WindowTempData) SetIdealMaxPos

func (self WindowTempData) SetIdealMaxPos(v Vec2)

func (WindowTempData) SetIndent

func (self WindowTempData) SetIndent(v Vec1)

func (WindowTempData) SetIsSameLine

func (self WindowTempData) SetIsSameLine(v bool)

func (WindowTempData) SetIsSetPos

func (self WindowTempData) SetIsSetPos(v bool)

func (WindowTempData) SetItemWidth

func (self WindowTempData) SetItemWidth(v float32)

func (WindowTempData) SetItemWidthStack

func (self WindowTempData) SetItemWidthStack(v vectors.Vector[float32])

func (WindowTempData) SetLayoutType

func (self WindowTempData) SetLayoutType(v LayoutType)

func (WindowTempData) SetMenuBarAppending

func (self WindowTempData) SetMenuBarAppending(v bool)

func (WindowTempData) SetMenuBarOffset

func (self WindowTempData) SetMenuBarOffset(v Vec2)

func (WindowTempData) SetMenuColumns

func (self WindowTempData) SetMenuColumns(v MenuColumns)

func (WindowTempData) SetModalDimBgColor

func (self WindowTempData) SetModalDimBgColor(v uint32)

func (WindowTempData) SetNavHideHighlightOneFrame

func (self WindowTempData) SetNavHideHighlightOneFrame(v bool)

func (WindowTempData) SetNavIsScrollPushableX

func (self WindowTempData) SetNavIsScrollPushableX(v bool)

func (WindowTempData) SetNavLayerCurrent

func (self WindowTempData) SetNavLayerCurrent(v NavLayer)

func (WindowTempData) SetNavLayersActiveMask

func (self WindowTempData) SetNavLayersActiveMask(v int16)

func (WindowTempData) SetNavLayersActiveMaskNext

func (self WindowTempData) SetNavLayersActiveMaskNext(v int16)

func (WindowTempData) SetNavWindowHasScrollY

func (self WindowTempData) SetNavWindowHasScrollY(v bool)

func (WindowTempData) SetParentLayoutType

func (self WindowTempData) SetParentLayoutType(v LayoutType)

func (WindowTempData) SetPrevLineSize

func (self WindowTempData) SetPrevLineSize(v Vec2)

func (WindowTempData) SetPrevLineTextBaseOffset

func (self WindowTempData) SetPrevLineTextBaseOffset(v float32)

func (WindowTempData) SetStateStorage

func (self WindowTempData) SetStateStorage(v *Storage)

func (WindowTempData) SetTextWrapPos

func (self WindowTempData) SetTextWrapPos(v float32)

func (WindowTempData) SetTextWrapPosStack

func (self WindowTempData) SetTextWrapPosStack(v vectors.Vector[float32])

func (WindowTempData) SetTreeDepth

func (self WindowTempData) SetTreeDepth(v int32)

func (WindowTempData) SetTreeHasStackDataDepthMask

func (self WindowTempData) SetTreeHasStackDataDepthMask(v uint32)

func (*WindowTempData) StateStorage

func (self *WindowTempData) StateStorage() *Storage

func (*WindowTempData) TextWrapPos

func (self *WindowTempData) TextWrapPos() float32

func (*WindowTempData) TextWrapPosStack

func (self *WindowTempData) TextWrapPosStack() vectors.Vector[float32]

func (*WindowTempData) TreeDepth

func (self *WindowTempData) TreeDepth() int32

func (*WindowTempData) TreeHasStackDataDepthMask

func (self *WindowTempData) TreeHasStackDataDepthMask() uint32

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL