gui

package
v0.0.0-...-1953d82 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginFrame

func BeginFrame(ctx *context.Context)

func BeginTabBar

func BeginTabBar(label string) bool

BeginTabBar starts a tab bar Returns true if the tab bar is open

func BeginTabBarWithFlags

func BeginTabBarWithFlags(label string, flags imgui.TabBarFlags) bool

BeginTabBarWithFlags starts a tab bar with flags

func BeginTabItem

func BeginTabItem(label string) bool

BeginTabItem starts a tab item (a single tab in a tab bar) Returns true if the tab is selected

func BeginTabItemWithFlags

func BeginTabItemWithFlags(label string, open *bool, flags imgui.TabItemFlags) bool

BeginTabItemWithFlags starts a tab item with flags

func EndFrame

func EndFrame(ctx *context.Context)

func EndPanel

func EndPanel()

func EndTabBar

func EndTabBar()

EndTabBar ends a tab bar (must be called after BeginTabBar)

func EndTabItem

func EndTabItem()

EndTabItem ends a tab item (must be called after BeginTabItem)

func StartPanel

func StartPanel(name string) bool

func StartPanelV

func StartPanelV(name string, open *bool, flags imgui.WindowFlags) bool

Types

type Button

type Button struct {
	// contains filtered or unexported fields
}

func NewButton

func NewButton(id string, label string, onPress func()) *Button

func (*Button) Draw

func (button *Button) Draw()

type Text

type Text struct {
	// contains filtered or unexported fields
}

func NewText

func NewText(value string) *Text

func (*Text) Render

func (text *Text) Render()

func (*Text) SetText

func (text *Text) SetText(value string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL