Documentation
¶
Index ¶
- Constants
- func CreateMonochromeImage(colorMode ebiten.ColorMode, img image.Image) image.Image
- func FontSize(context *guigui.Context) float64
- func LineHeight(context *guigui.Context) int
- func ListItemTextPadding(context *guigui.Context) guigui.Padding
- func MoveItemsInSlice[T any](slice []T, from int, count int, to int) int
- func RegisterFonts(appendEntries func([]FaceSourceEntry, *guigui.Context) []FaceSourceEntry, ...)
- func RoundedCornerRadius(context *guigui.Context) int
- func SetFaceSources(entries []FaceSourceEntry)
- func UnitSize(context *guigui.Context) int
- type Background
- type Button
- func (b *Button) Build(context *guigui.Context, adder *guigui.ChildAdder) error
- func (b *Button) CursorShape(context *guigui.Context, widgetBounds *guigui.WidgetBounds) (ebiten.CursorShapeType, bool)
- func (b *Button) Draw(context *guigui.Context, widgetBounds *guigui.WidgetBounds, dst *ebiten.Image)
- func (b *Button) HandlePointingInput(context *guigui.Context, widgetBounds *guigui.WidgetBounds) guigui.HandleInputResult
- func (b *Button) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, ...)
- func (b *Button) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point
- func (b *Button) OnDown(f func(context *guigui.Context))
- func (b *Button) OnUp(f func(context *guigui.Context))
- func (b *Button) SetContent(content guigui.Widget)
- func (b *Button) SetIcon(icon *ebiten.Image)
- func (b *Button) SetIconAlign(align IconAlign)
- func (b *Button) SetSharpCorners(sharpCorners Corners)
- func (b *Button) SetText(text string)
- func (b *Button) SetTextBold(bold bool)
- func (b *Button) SetTextColor(clr color.Color)
- func (b *Button) SetType(typ ButtonType)
- func (b *Button) Tick(context *guigui.Context, widgetBounds *guigui.WidgetBounds) error
- type ButtonType
- type Checkbox
- func (c *Checkbox) Build(context *guigui.Context, adder *guigui.ChildAdder) error
- func (c *Checkbox) CursorShape(context *guigui.Context, widgetBounds *guigui.WidgetBounds) (ebiten.CursorShapeType, bool)
- func (c *Checkbox) Draw(context *guigui.Context, widgetBounds *guigui.WidgetBounds, dst *ebiten.Image)
- func (c *Checkbox) HandlePointingInput(context *guigui.Context, widgetBounds *guigui.WidgetBounds) guigui.HandleInputResult
- func (c *Checkbox) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, ...)
- func (c *Checkbox) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point
- func (c *Checkbox) OnValueChanged(f func(context *guigui.Context, value bool))
- func (c *Checkbox) SetValue(value bool)
- func (c *Checkbox) Tick(context *guigui.Context, widgetBounds *guigui.WidgetBounds) error
- func (c *Checkbox) Value() bool
- type Corners
- type Drawer
- func (d *Drawer) Build(context *guigui.Context, adder *guigui.ChildAdder) error
- func (d *Drawer) IsOpen() bool
- func (d *Drawer) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, ...)
- func (d *Drawer) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point
- func (d *Drawer) OnClose(onClose func(context *guigui.Context, reason PopupCloseReason))
- func (d *Drawer) SetAnimated(animateOnFading bool)
- func (d *Drawer) SetBackgroundBlurred(blurred bool)
- func (d *Drawer) SetBackgroundBounds(bounds image.Rectangle)
- func (d *Drawer) SetBackgroundDark(dark bool)
- func (d *Drawer) SetCloseByClickingOutside(closeByClickingOutside bool)
- func (d *Drawer) SetContent(widget guigui.Widget)
- func (d *Drawer) SetDrawerEdge(edge DrawerEdge)
- func (d *Drawer) SetOpen(open bool)
- type DrawerEdge
- type Expander
- func (e *Expander) Build(context *guigui.Context, adder *guigui.ChildAdder) error
- func (e *Expander) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, ...)
- func (e *Expander) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point
- func (e *Expander) OnExpansionChanged(callback func(context *guigui.Context, expanded bool))
- func (e *Expander) SetContentWidget(w guigui.Widget)
- func (e *Expander) SetExpanded(expanded bool)
- func (e *Expander) SetHeaderWidget(w guigui.Widget)
- type FaceSourceEntry
- type FontPriority
- type Form
- func (f *Form) Build(context *guigui.Context, adder *guigui.ChildAdder) error
- func (f *Form) Draw(context *guigui.Context, widgetBounds *guigui.WidgetBounds, dst *ebiten.Image)
- func (f *Form) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, ...)
- func (f *Form) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point
- func (f *Form) SetItems(items []FormItem)
- type FormItem
- type HorizontalAlign
- type IconAlign
- type Image
- type List
- func (l *List[T]) AppendSelectedItemIndices(indices []int) []int
- func (l *List[T]) Build(context *guigui.Context, adder *guigui.ChildAdder) error
- func (l *List[T]) EnsureItemVisibleByIndex(index int)
- func (l *List[T]) ID(index int) any
- func (l *List[T]) IndexByValue(value T) int
- func (l *List[T]) IsItemVisible(index int) bool
- func (l *List[T]) ItemBounds(index int) image.Rectangle
- func (l *List[T]) ItemByIndex(index int) (ListItem[T], bool)
- func (l *List[T]) ItemCount() int
- func (l *List[T]) ItemTextColor(context *guigui.Context, index int) color.Color
- func (l *List[T]) JumpToItemByIndex(index int)
- func (l *List[T]) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, ...)
- func (l *List[T]) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point
- func (l *List[T]) OnItemExpanderToggled(f func(context *guigui.Context, index int, expanded bool))
- func (l *List[T]) OnItemSelected(f func(context *guigui.Context, index int))
- func (l *List[T]) OnItemsMoved(f func(context *guigui.Context, from, count, to int))
- func (l *List[T]) OnItemsSelected(f func(context *guigui.Context, indices []int))
- func (l *List[T]) SelectItemByIndex(index int)
- func (l *List[T]) SelectItemByValue(value T)
- func (l *List[T]) SelectItemsByIndices(indices []int)
- func (l *List[T]) SelectItemsByValues(values []T)
- func (l *List[T]) SelectedItem() (ListItem[T], bool)
- func (l *List[T]) SelectedItemCount() int
- func (l *List[T]) SelectedItemIndex() int
- func (l *List[T]) SetBackground(widget guigui.Widget)
- func (l *List[T]) SetCheckmarkIndex(index int)
- func (l *List[T]) SetFooterHeight(height int)
- func (l *List[T]) SetHeaderHeight(height int)
- func (l *List[T]) SetItemHeight(height int)
- func (l *List[T]) SetItemString(str string, index int)
- func (l *List[T]) SetItems(items []ListItem[T])
- func (l *List[T]) SetItemsByStrings(strs []string)
- func (l *List[T]) SetMultiSelection(multi bool)
- func (l *List[T]) SetStripeVisible(visible bool)
- func (l *List[T]) SetStyle(style ListStyle)
- func (l *List[T]) Tick(context *guigui.Context, widgetBounds *guigui.WidgetBounds) error
- type ListItem
- type ListStyle
- type NumberInput
- func (n *NumberInput) Build(context *guigui.Context, adder *guigui.ChildAdder) error
- func (n *NumberInput) CanCopy() bool
- func (n *NumberInput) CanCut() bool
- func (n *NumberInput) CanPaste() bool
- func (n *NumberInput) CommitWithCurrentInputValue()
- func (n *NumberInput) Copy() bool
- func (n *NumberInput) Cut() bool
- func (n *NumberInput) ForceSetValue(value int)
- func (n *NumberInput) ForceSetValueBigInt(value *big.Int)
- func (n *NumberInput) ForceSetValueInt64(value int64)
- func (n *NumberInput) ForceSetValueUint64(value uint64)
- func (n *NumberInput) HandleButtonInput(context *guigui.Context, widgetBounds *guigui.WidgetBounds) guigui.HandleInputResult
- func (n *NumberInput) IsEditable() bool
- func (n *NumberInput) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, ...)
- func (n *NumberInput) MaximumValueBigInt() *big.Int
- func (n *NumberInput) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point
- func (n *NumberInput) MinimumValueBigInt() *big.Int
- func (n *NumberInput) OnKeyJustPressed(f func(context *guigui.Context, key ebiten.Key))
- func (n *NumberInput) OnValueChanged(f func(context *guigui.Context, value int, committed bool))
- func (n *NumberInput) OnValueChangedBigInt(f func(context *guigui.Context, value *big.Int, committed bool))
- func (n *NumberInput) OnValueChangedInt64(f func(context *guigui.Context, value int64, committed bool))
- func (n *NumberInput) OnValueChangedUint64(f func(context *guigui.Context, value uint64, committed bool))
- func (n *NumberInput) Paste() bool
- func (n *NumberInput) SetEditable(editable bool)
- func (n *NumberInput) SetMaximumValue(maximum int)
- func (n *NumberInput) SetMaximumValueBigInt(maximum *big.Int)
- func (n *NumberInput) SetMaximumValueInt64(maximum int64)
- func (n *NumberInput) SetMaximumValueUint64(maximum uint64)
- func (n *NumberInput) SetMinimumValue(minimum int)
- func (n *NumberInput) SetMinimumValueBigInt(minimum *big.Int)
- func (n *NumberInput) SetMinimumValueInt64(minimum int64)
- func (n *NumberInput) SetMinimumValueUint64(minimum uint64)
- func (n *NumberInput) SetStep(step int)
- func (n *NumberInput) SetStepBigInt(step *big.Int)
- func (n *NumberInput) SetStepInt64(step int64)
- func (n *NumberInput) SetStepUint64(step uint64)
- func (n *NumberInput) SetValue(value int)
- func (n *NumberInput) SetValueBigInt(value *big.Int)
- func (n *NumberInput) SetValueInt64(value int64)
- func (n *NumberInput) SetValueUint64(value uint64)
- func (n *NumberInput) Value() int
- func (n *NumberInput) ValueBigInt() *big.Int
- func (n *NumberInput) ValueInt64() int64
- func (n *NumberInput) ValueUint64() uint64
- type Panel
- func (p *Panel) Build(context *guigui.Context, adder *guigui.ChildAdder) error
- func (p *Panel) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, ...)
- func (p *Panel) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point
- func (p *Panel) OnScroll(callback func(context *guigui.Context, offsetX, offsetY float64))
- func (p *Panel) SetAutoBorder(auto bool)
- func (p *Panel) SetBorders(borders PanelBorders)
- func (p *Panel) SetContent(widget guigui.Widget)
- func (p *Panel) SetContentConstraints(c PanelContentConstraints)
- func (p *Panel) SetScrollOffset(offsetX, offsetY float64)
- func (p *Panel) SetScrollOffsetByDelta(offsetXDelta, offsetYDelta float64)
- func (p *Panel) SetStyle(typ PanelStyle)
- type PanelBorders
- type PanelContentConstraints
- type PanelStyle
- type Popup
- func (p *Popup) BringToFrontLayer(context *guigui.Context)
- func (p *Popup) Build(context *guigui.Context, adder *guigui.ChildAdder) error
- func (p *Popup) IsOpen() bool
- func (p *Popup) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, ...)
- func (p *Popup) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point
- func (p *Popup) OnClose(f func(context *guigui.Context, reason PopupCloseReason))
- func (p *Popup) SetAnimated(animateOnFading bool)
- func (p *Popup) SetBackgroundBlurred(blurred bool)
- func (p *Popup) SetBackgroundBounds(bounds image.Rectangle)
- func (p *Popup) SetBackgroundDark(dark bool)
- func (p *Popup) SetCloseByClickingOutside(closeByClickingOutside bool)
- func (p *Popup) SetContent(widget guigui.Widget)
- func (p *Popup) SetOpen(open bool)
- type PopupCloseReason
- type PopupMenu
- func (p *PopupMenu[T]) Build(context *guigui.Context, adder *guigui.ChildAdder) error
- func (p *PopupMenu[T]) IsOpen() bool
- func (p *PopupMenu[T]) ItemByIndex(index int) (PopupMenuItem[T], bool)
- func (p *PopupMenu[T]) ItemTextColor(context *guigui.Context, index int) color.Color
- func (p *PopupMenu[T]) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, ...)
- func (p *PopupMenu[T]) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point
- func (p *PopupMenu[T]) OnItemSelected(f func(context *guigui.Context, index int))
- func (p *PopupMenu[T]) SelectItemByIndex(index int)
- func (p *PopupMenu[T]) SelectItemByValue(value T)
- func (p *PopupMenu[T]) SelectedItem() (PopupMenuItem[T], bool)
- func (p *PopupMenu[T]) SelectedItemIndex() int
- func (p *PopupMenu[T]) SetCheckmarkIndex(index int)
- func (p *PopupMenu[T]) SetItems(items []PopupMenuItem[T])
- func (p *PopupMenu[T]) SetItemsByStrings(items []string)
- func (p *PopupMenu[T]) SetOpen(open bool)
- type PopupMenuItem
- type SegmentedControl
- func (s *SegmentedControl[T]) Build(context *guigui.Context, adder *guigui.ChildAdder) error
- func (s *SegmentedControl[T]) ItemByIndex(index int) (SegmentedControlItem[T], bool)
- func (s *SegmentedControl[T]) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, ...)
- func (s *SegmentedControl[T]) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point
- func (s *SegmentedControl[T]) OnItemSelected(f func(context *guigui.Context, index int))
- func (s *SegmentedControl[T]) SelectItemByIndex(index int)
- func (s *SegmentedControl[T]) SelectItemByValue(value T)
- func (s *SegmentedControl[T]) SelectedItem() (SegmentedControlItem[T], bool)
- func (s *SegmentedControl[T]) SelectedItemIndex() int
- func (s *SegmentedControl[T]) SetDirection(direction SegmentedControlDirection)
- func (s *SegmentedControl[T]) SetItems(items []SegmentedControlItem[T])
- type SegmentedControlDirection
- type SegmentedControlItem
- type Select
- func (s *Select[T]) Build(context *guigui.Context, adder *guigui.ChildAdder) error
- func (s *Select[T]) IsPopupOpen() bool
- func (s *Select[T]) ItemByIndex(index int) (SelectItem[T], bool)
- func (s *Select[T]) ItemTextColor(context *guigui.Context, index int) color.Color
- func (s *Select[T]) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, ...)
- func (s *Select[T]) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point
- func (s *Select[T]) OnItemSelected(f func(context *guigui.Context, index int))
- func (s *Select[T]) SelectItemByIndex(index int)
- func (s *Select[T]) SelectItemByValue(value T)
- func (s *Select[T]) SelectedItem() (SelectItem[T], bool)
- func (s *Select[T]) SelectedItemIndex() int
- func (s *Select[T]) SetItems(items []SelectItem[T])
- func (s *Select[T]) SetItemsByStrings(items []string)
- type SelectItem
- type Slider
- func (s *Slider) Build(context *guigui.Context, adder *guigui.ChildAdder) error
- func (s *Slider) CursorShape(context *guigui.Context, widgetBounds *guigui.WidgetBounds) (ebiten.CursorShapeType, bool)
- func (s *Slider) Draw(context *guigui.Context, widgetBounds *guigui.WidgetBounds, dst *ebiten.Image)
- func (s *Slider) HandlePointingInput(context *guigui.Context, widgetBounds *guigui.WidgetBounds) guigui.HandleInputResult
- func (s *Slider) MaximumValueBigInt() *big.Int
- func (s *Slider) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point
- func (s *Slider) MinimumValueBigInt() *big.Int
- func (s *Slider) OnValueChanged(f func(context *guigui.Context, value int))
- func (s *Slider) OnValueChangedBigInt(f func(context *guigui.Context, value *big.Int))
- func (s *Slider) OnValueChangedInt64(f func(context *guigui.Context, value int64))
- func (s *Slider) OnValueChangedUint64(f func(context *guigui.Context, value uint64))
- func (s *Slider) SetMaximumValue(maximum int)
- func (s *Slider) SetMaximumValueBigInt(maximum *big.Int)
- func (s *Slider) SetMaximumValueInt64(maximum int64)
- func (s *Slider) SetMaximumValueUint64(maximum uint64)
- func (s *Slider) SetMinimumValue(minimum int)
- func (s *Slider) SetMinimumValueBigInt(minimum *big.Int)
- func (s *Slider) SetMinimumValueInt64(minimum int64)
- func (s *Slider) SetMinimumValueUint64(minimum uint64)
- func (s *Slider) SetValue(value int)
- func (s *Slider) SetValueBigInt(value *big.Int)
- func (s *Slider) SetValueInt64(value int64)
- func (s *Slider) SetValueUint64(value uint64)
- func (s *Slider) Tick(context *guigui.Context, widgetBounds *guigui.WidgetBounds) error
- func (s *Slider) Value() int
- func (s *Slider) ValueBigInt() *big.Int
- func (s *Slider) ValueInt64() int64
- func (s *Slider) ValueUint64() uint64
- type Table
- func (t *Table[T]) Build(context *guigui.Context, adder *guigui.ChildAdder) error
- func (t *Table[T]) EnsureItemVisibleByIndex(index int)
- func (t *Table[T]) ID(index int) any
- func (t *Table[T]) ItemByIndex(index int) (TableRow[T], bool)
- func (t *Table[T]) ItemCount() int
- func (t *Table[T]) ItemTextColor(context *guigui.Context, index int) color.Color
- func (t *Table[T]) JumpToItemByIndex(index int)
- func (t *Table[T]) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, ...)
- func (t *Table[T]) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point
- func (t *Table[T]) OnItemSelected(f func(context *guigui.Context, index int))
- func (t *Table[T]) OnItemsMoved(f func(context *guigui.Context, from, count, to int))
- func (t *Table[T]) SelectItemByIndex(index int)
- func (t *Table[T]) SelectItemByValue(value T)
- func (t *Table[T]) SelectedItem() (TableRow[T], bool)
- func (t *Table[T]) SelectedItemIndex() int
- func (t *Table[T]) SetCheckmarkIndex(index int)
- func (t *Table[T]) SetColumns(columns []TableColumn)
- func (t *Table[T]) SetFooterHeight(height int)
- func (t *Table[T]) SetItems(items []TableRow[T])
- type TableCell
- type TableColumn
- type TableRow
- type Text
- func (t *Text) Build(context *guigui.Context, adder *guigui.ChildAdder) error
- func (t *Text) CanCopy() bool
- func (t *Text) CanCut() bool
- func (t *Text) CanPaste() bool
- func (t *Text) CanRedo() bool
- func (t *Text) CanUndo() bool
- func (t *Text) CommitWithCurrentInputValue()
- func (t *Text) Copy() bool
- func (t *Text) CursorShape(context *guigui.Context, widgetBounds *guigui.WidgetBounds) (ebiten.CursorShapeType, bool)
- func (t *Text) Cut() bool
- func (t *Text) Draw(context *guigui.Context, widgetBounds *guigui.WidgetBounds, dst *ebiten.Image)
- func (t *Text) ForceSetValue(text string)
- func (t *Text) HandleButtonInput(context *guigui.Context, widgetBounds *guigui.WidgetBounds) guigui.HandleInputResult
- func (t *Text) HandlePointingInput(context *guigui.Context, widgetBounds *guigui.WidgetBounds) guigui.HandleInputResult
- func (t *Text) HorizontalAlign() HorizontalAlign
- func (t *Text) IsEditable() bool
- func (t *Text) IsMultiline() bool
- func (t *Text) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, ...)
- func (t *Text) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point
- func (t *Text) OnKeyJustPressed(f func(context *guigui.Context, key ebiten.Key))
- func (t *Text) OnValueChanged(f func(context *guigui.Context, text string, committed bool))
- func (t *Text) Paste() bool
- func (t *Text) Redo() bool
- func (t *Text) ReplaceValueAtSelection(text string)
- func (t *Text) SetAutoWrap(autoWrap bool)
- func (t *Text) SetBold(bold bool)
- func (t *Text) SetColor(color color.Color)
- func (t *Text) SetEditable(editable bool)
- func (t *Text) SetHorizontalAlign(align HorizontalAlign)
- func (t *Text) SetLocales(locales []language.Tag)
- func (t *Text) SetMultiline(multiline bool)
- func (t *Text) SetOpacity(opacity float64)
- func (t *Text) SetScale(scale float64)
- func (t *Text) SetSelectable(selectable bool)
- func (t *Text) SetTabWidth(tabWidth float64)
- func (t *Text) SetTabular(tabular bool)
- func (t *Text) SetValue(text string)
- func (t *Text) SetVerticalAlign(align VerticalAlign)
- func (t *Text) Tick(context *guigui.Context, widgetBounds *guigui.WidgetBounds) error
- func (t *Text) Undo() bool
- func (t *Text) Value() string
- func (t *Text) VerticalAlign() VerticalAlign
- type TextInput
- func (t *TextInput) Build(context *guigui.Context, adder *guigui.ChildAdder) error
- func (t *TextInput) CanCopy() bool
- func (t *TextInput) CanCut() bool
- func (t *TextInput) CanPaste() bool
- func (t *TextInput) CanRedo() bool
- func (t *TextInput) CanUndo() bool
- func (t *TextInput) CommitWithCurrentInputValue()
- func (t *TextInput) Copy() bool
- func (t *TextInput) Cut() bool
- func (t *TextInput) ForceSetValue(text string)
- func (t *TextInput) IsEditable() bool
- func (t *TextInput) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, ...)
- func (t *TextInput) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point
- func (t *TextInput) OnKeyJustPressed(f func(context *guigui.Context, key ebiten.Key))
- func (t *TextInput) OnValueChanged(f func(context *guigui.Context, text string, committed bool))
- func (t *TextInput) Paste() bool
- func (t *TextInput) Redo() bool
- func (t *TextInput) ReplaceValueAtSelection(text string)
- func (t *TextInput) SelectAll()
- func (t *TextInput) SetAutoWrap(autoWrap bool)
- func (t *TextInput) SetEditable(editable bool)
- func (t *TextInput) SetHorizontalAlign(halign HorizontalAlign)
- func (t *TextInput) SetIcon(icon *ebiten.Image)
- func (t *TextInput) SetMultiline(multiline bool)
- func (t *TextInput) SetStyle(style TextInputStyle)
- func (t *TextInput) SetTabular(tabular bool)
- func (t *TextInput) SetValue(text string)
- func (t *TextInput) SetVerticalAlign(valign VerticalAlign)
- func (t *TextInput) Tick(context *guigui.Context, widgetBounds *guigui.WidgetBounds) error
- func (t *TextInput) Undo() bool
- func (t *TextInput) Value() string
- type TextInputStyle
- type Toggle
- func (t *Toggle) CursorShape(context *guigui.Context, widgetBounds *guigui.WidgetBounds) (ebiten.CursorShapeType, bool)
- func (t *Toggle) Draw(context *guigui.Context, widgetBounds *guigui.WidgetBounds, dst *ebiten.Image)
- func (t *Toggle) HandlePointingInput(context *guigui.Context, widgetBounds *guigui.WidgetBounds) guigui.HandleInputResult
- func (t *Toggle) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point
- func (t *Toggle) OnValueChanged(f func(context *guigui.Context, value bool))
- func (t *Toggle) SetValue(value bool)
- func (t *Toggle) Tick(context *guigui.Context, widgetBounds *guigui.WidgetBounds) error
- func (t *Toggle) Value() bool
- type UnicodeRange
- type VerticalAlign
Constants ¶
View Source
const ( FontPriorityLow = 100 FontPriorityNormal = 200 FontPriorityHigh = 300 )
Variables ¶
This section is empty.
Functions ¶
func CreateMonochromeImage ¶
func LineHeight ¶
func RegisterFonts ¶
func RegisterFonts(appendEntries func([]FaceSourceEntry, *guigui.Context) []FaceSourceEntry, priority FontPriority)
RegisterFonts registers the fonts.
priority is used to determine the order of the fonts. The order of the fonts is determined by the priority. The bigger priority value, the higher priority. If the priority is the same, the order of the fonts is determined by the order of registration.
func RoundedCornerRadius ¶
func SetFaceSources ¶
func SetFaceSources(entries []FaceSourceEntry)
SetFaceSources sets the face sources.
Types ¶
type Background ¶
type Background struct {
guigui.DefaultWidget
// contains filtered or unexported fields
}
func (*Background) Draw ¶
func (b *Background) Draw(context *guigui.Context, widgetBounds *guigui.WidgetBounds, dst *ebiten.Image)
func (*Background) SetColor ¶
func (b *Background) SetColor(clr color.Color)
type Button ¶
type Button struct {
guigui.DefaultWidget
// contains filtered or unexported fields
}
func (*Button) CursorShape ¶
func (b *Button) CursorShape(context *guigui.Context, widgetBounds *guigui.WidgetBounds) (ebiten.CursorShapeType, bool)
func (*Button) HandlePointingInput ¶
func (b *Button) HandlePointingInput(context *guigui.Context, widgetBounds *guigui.WidgetBounds) guigui.HandleInputResult
func (*Button) Layout ¶
func (b *Button) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, layouter *guigui.ChildLayouter)
func (*Button) SetContent ¶
func (*Button) SetIconAlign ¶
func (*Button) SetSharpCorners ¶
func (*Button) SetTextBold ¶
func (*Button) SetTextColor ¶
func (*Button) SetType ¶
func (b *Button) SetType(typ ButtonType)
type ButtonType ¶
type ButtonType int
const ( ButtonTypeNormal ButtonType = iota ButtonTypePrimary )
type Checkbox ¶
type Checkbox struct {
guigui.DefaultWidget
// contains filtered or unexported fields
}
func (*Checkbox) CursorShape ¶
func (c *Checkbox) CursorShape(context *guigui.Context, widgetBounds *guigui.WidgetBounds) (ebiten.CursorShapeType, bool)
func (*Checkbox) HandlePointingInput ¶
func (c *Checkbox) HandlePointingInput(context *guigui.Context, widgetBounds *guigui.WidgetBounds) guigui.HandleInputResult
func (*Checkbox) Layout ¶
func (c *Checkbox) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, layouter *guigui.ChildLayouter)
func (*Checkbox) OnValueChanged ¶
type Drawer ¶
type Drawer struct {
guigui.DefaultWidget
// contains filtered or unexported fields
}
func (*Drawer) Layout ¶
func (d *Drawer) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, layouter *guigui.ChildLayouter)
func (*Drawer) OnClose ¶
func (d *Drawer) OnClose(onClose func(context *guigui.Context, reason PopupCloseReason))
func (*Drawer) SetAnimated ¶
func (*Drawer) SetBackgroundBlurred ¶
func (*Drawer) SetBackgroundBounds ¶
func (*Drawer) SetBackgroundDark ¶
func (*Drawer) SetCloseByClickingOutside ¶
func (*Drawer) SetContent ¶
func (*Drawer) SetDrawerEdge ¶
func (d *Drawer) SetDrawerEdge(edge DrawerEdge)
type DrawerEdge ¶
type DrawerEdge int
const ( DrawerEdgeStart DrawerEdge = iota DrawerEdgeTop DrawerEdgeEnd DrawerEdgeBottom )
type Expander ¶
type Expander struct {
guigui.DefaultWidget
// contains filtered or unexported fields
}
func (*Expander) Layout ¶
func (e *Expander) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, layouter *guigui.ChildLayouter)
func (*Expander) OnExpansionChanged ¶
func (*Expander) SetContentWidget ¶
func (*Expander) SetExpanded ¶
func (*Expander) SetHeaderWidget ¶
type FaceSourceEntry ¶
type FaceSourceEntry struct {
FaceSource *text.GoTextFaceSource
UnicodeRanges []UnicodeRange
}
func DefaultFaceSourceEntry ¶
func DefaultFaceSourceEntry() FaceSourceEntry
type FontPriority ¶
type FontPriority int
FontPriority is used to determine the order of the fonts for RegisterFonts.
type Form ¶
type Form struct {
guigui.DefaultWidget
// contains filtered or unexported fields
}
func (*Form) Layout ¶
func (f *Form) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, layouter *guigui.ChildLayouter)
type HorizontalAlign ¶
type HorizontalAlign int
const ( HorizontalAlignStart HorizontalAlign = HorizontalAlign(textutil.HorizontalAlignStart) HorizontalAlignCenter HorizontalAlign = HorizontalAlign(textutil.HorizontalAlignCenter) HorizontalAlignEnd HorizontalAlign = HorizontalAlign(textutil.HorizontalAlignEnd) HorizontalAlignLeft HorizontalAlign = HorizontalAlign(textutil.HorizontalAlignLeft) HorizontalAlignRight HorizontalAlign = HorizontalAlign(textutil.HorizontalAlignRight) )
type Image ¶
type Image struct {
guigui.DefaultWidget
// contains filtered or unexported fields
}
type List ¶
type List[T comparable] struct { guigui.DefaultWidget // contains filtered or unexported fields }
func (*List[T]) AppendSelectedItemIndices ¶
func (*List[T]) EnsureItemVisibleByIndex ¶
func (*List[T]) IndexByValue ¶
func (*List[T]) IsItemVisible ¶
func (*List[T]) ItemTextColor ¶
func (*List[T]) JumpToItemByIndex ¶
func (*List[T]) Layout ¶
func (l *List[T]) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, layouter *guigui.ChildLayouter)
func (*List[T]) OnItemExpanderToggled ¶
func (*List[T]) OnItemSelected ¶
func (*List[T]) OnItemsMoved ¶
func (*List[T]) OnItemsSelected ¶
func (*List[T]) SelectItemByIndex ¶
func (*List[T]) SelectItemByValue ¶
func (l *List[T]) SelectItemByValue(value T)
func (*List[T]) SelectItemsByIndices ¶
func (*List[T]) SelectItemsByValues ¶
func (l *List[T]) SelectItemsByValues(values []T)
func (*List[T]) SelectedItem ¶
func (*List[T]) SelectedItemCount ¶
func (*List[T]) SelectedItemIndex ¶
func (*List[T]) SetBackground ¶
func (*List[T]) SetCheckmarkIndex ¶
func (*List[T]) SetFooterHeight ¶
func (*List[T]) SetHeaderHeight ¶
func (*List[T]) SetItemHeight ¶
func (*List[T]) SetItemString ¶
func (*List[T]) SetItemsByStrings ¶
func (*List[T]) SetMultiSelection ¶
func (*List[T]) SetStripeVisible ¶
type NumberInput ¶
type NumberInput struct {
guigui.DefaultWidget
// contains filtered or unexported fields
}
func (*NumberInput) Build ¶
func (n *NumberInput) Build(context *guigui.Context, adder *guigui.ChildAdder) error
func (*NumberInput) CanCopy ¶
func (n *NumberInput) CanCopy() bool
func (*NumberInput) CanCut ¶
func (n *NumberInput) CanCut() bool
func (*NumberInput) CanPaste ¶
func (n *NumberInput) CanPaste() bool
func (*NumberInput) CommitWithCurrentInputValue ¶
func (n *NumberInput) CommitWithCurrentInputValue()
func (*NumberInput) Copy ¶
func (n *NumberInput) Copy() bool
func (*NumberInput) Cut ¶
func (n *NumberInput) Cut() bool
func (*NumberInput) ForceSetValue ¶
func (n *NumberInput) ForceSetValue(value int)
func (*NumberInput) ForceSetValueBigInt ¶
func (n *NumberInput) ForceSetValueBigInt(value *big.Int)
func (*NumberInput) ForceSetValueInt64 ¶
func (n *NumberInput) ForceSetValueInt64(value int64)
func (*NumberInput) ForceSetValueUint64 ¶
func (n *NumberInput) ForceSetValueUint64(value uint64)
func (*NumberInput) HandleButtonInput ¶
func (n *NumberInput) HandleButtonInput(context *guigui.Context, widgetBounds *guigui.WidgetBounds) guigui.HandleInputResult
func (*NumberInput) IsEditable ¶
func (n *NumberInput) IsEditable() bool
func (*NumberInput) Layout ¶
func (n *NumberInput) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, layouter *guigui.ChildLayouter)
func (*NumberInput) MaximumValueBigInt ¶
func (n *NumberInput) MaximumValueBigInt() *big.Int
func (*NumberInput) Measure ¶
func (n *NumberInput) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point
func (*NumberInput) MinimumValueBigInt ¶
func (n *NumberInput) MinimumValueBigInt() *big.Int
func (*NumberInput) OnKeyJustPressed ¶
func (n *NumberInput) OnKeyJustPressed(f func(context *guigui.Context, key ebiten.Key))
func (*NumberInput) OnValueChanged ¶
func (n *NumberInput) OnValueChanged(f func(context *guigui.Context, value int, committed bool))
func (*NumberInput) OnValueChangedBigInt ¶
func (*NumberInput) OnValueChangedInt64 ¶
func (n *NumberInput) OnValueChangedInt64(f func(context *guigui.Context, value int64, committed bool))
func (*NumberInput) OnValueChangedUint64 ¶
func (n *NumberInput) OnValueChangedUint64(f func(context *guigui.Context, value uint64, committed bool))
func (*NumberInput) Paste ¶
func (n *NumberInput) Paste() bool
func (*NumberInput) SetEditable ¶
func (n *NumberInput) SetEditable(editable bool)
func (*NumberInput) SetMaximumValue ¶
func (n *NumberInput) SetMaximumValue(maximum int)
func (*NumberInput) SetMaximumValueBigInt ¶
func (n *NumberInput) SetMaximumValueBigInt(maximum *big.Int)
func (*NumberInput) SetMaximumValueInt64 ¶
func (n *NumberInput) SetMaximumValueInt64(maximum int64)
func (*NumberInput) SetMaximumValueUint64 ¶
func (n *NumberInput) SetMaximumValueUint64(maximum uint64)
func (*NumberInput) SetMinimumValue ¶
func (n *NumberInput) SetMinimumValue(minimum int)
func (*NumberInput) SetMinimumValueBigInt ¶
func (n *NumberInput) SetMinimumValueBigInt(minimum *big.Int)
func (*NumberInput) SetMinimumValueInt64 ¶
func (n *NumberInput) SetMinimumValueInt64(minimum int64)
func (*NumberInput) SetMinimumValueUint64 ¶
func (n *NumberInput) SetMinimumValueUint64(minimum uint64)
func (*NumberInput) SetStep ¶
func (n *NumberInput) SetStep(step int)
func (*NumberInput) SetStepBigInt ¶
func (n *NumberInput) SetStepBigInt(step *big.Int)
func (*NumberInput) SetStepInt64 ¶
func (n *NumberInput) SetStepInt64(step int64)
func (*NumberInput) SetStepUint64 ¶
func (n *NumberInput) SetStepUint64(step uint64)
func (*NumberInput) SetValue ¶
func (n *NumberInput) SetValue(value int)
func (*NumberInput) SetValueBigInt ¶
func (n *NumberInput) SetValueBigInt(value *big.Int)
func (*NumberInput) SetValueInt64 ¶
func (n *NumberInput) SetValueInt64(value int64)
func (*NumberInput) SetValueUint64 ¶
func (n *NumberInput) SetValueUint64(value uint64)
func (*NumberInput) Value ¶
func (n *NumberInput) Value() int
func (*NumberInput) ValueBigInt ¶
func (n *NumberInput) ValueBigInt() *big.Int
func (*NumberInput) ValueInt64 ¶
func (n *NumberInput) ValueInt64() int64
func (*NumberInput) ValueUint64 ¶
func (n *NumberInput) ValueUint64() uint64
type Panel ¶
type Panel struct {
guigui.DefaultWidget
// contains filtered or unexported fields
}
func (*Panel) Layout ¶
func (p *Panel) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, layouter *guigui.ChildLayouter)
func (*Panel) SetAutoBorder ¶
func (*Panel) SetBorders ¶
func (p *Panel) SetBorders(borders PanelBorders)
func (*Panel) SetContent ¶
func (*Panel) SetContentConstraints ¶
func (p *Panel) SetContentConstraints(c PanelContentConstraints)
func (*Panel) SetScrollOffset ¶
func (*Panel) SetScrollOffsetByDelta ¶
func (*Panel) SetStyle ¶
func (p *Panel) SetStyle(typ PanelStyle)
type PanelContentConstraints ¶
type PanelContentConstraints int
const ( PanelContentConstraintsNone PanelContentConstraints = iota PanelContentConstraintsFixedWidth PanelContentConstraintsFixedHeight )
type Popup ¶
type Popup struct {
guigui.DefaultWidget
// contains filtered or unexported fields
}
func (*Popup) BringToFrontLayer ¶
BringToFrontLayer brings the popup to the front layer.
func (*Popup) Layout ¶
func (p *Popup) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, layouter *guigui.ChildLayouter)
func (*Popup) OnClose ¶
func (p *Popup) OnClose(f func(context *guigui.Context, reason PopupCloseReason))
func (*Popup) SetAnimated ¶
func (*Popup) SetBackgroundBlurred ¶
func (*Popup) SetBackgroundBounds ¶
func (*Popup) SetBackgroundDark ¶
func (*Popup) SetCloseByClickingOutside ¶
func (*Popup) SetContent ¶
type PopupCloseReason ¶
type PopupCloseReason int
const ( PopupCloseReasonNone PopupCloseReason = iota PopupCloseReasonFuncCall PopupCloseReasonClickOutside PopupCloseReasonReopen )
type PopupMenu ¶
type PopupMenu[T comparable] struct { guigui.DefaultWidget // contains filtered or unexported fields }
func (*PopupMenu[T]) ItemByIndex ¶
func (p *PopupMenu[T]) ItemByIndex(index int) (PopupMenuItem[T], bool)
func (*PopupMenu[T]) ItemTextColor ¶
func (*PopupMenu[T]) Layout ¶
func (p *PopupMenu[T]) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, layouter *guigui.ChildLayouter)
func (*PopupMenu[T]) OnItemSelected ¶
func (*PopupMenu[T]) SelectItemByIndex ¶
func (*PopupMenu[T]) SelectItemByValue ¶
func (p *PopupMenu[T]) SelectItemByValue(value T)
func (*PopupMenu[T]) SelectedItem ¶
func (p *PopupMenu[T]) SelectedItem() (PopupMenuItem[T], bool)
func (*PopupMenu[T]) SelectedItemIndex ¶
func (*PopupMenu[T]) SetCheckmarkIndex ¶
func (*PopupMenu[T]) SetItems ¶
func (p *PopupMenu[T]) SetItems(items []PopupMenuItem[T])
func (*PopupMenu[T]) SetItemsByStrings ¶
type PopupMenuItem ¶
type SegmentedControl ¶
type SegmentedControl[T comparable] struct { guigui.DefaultWidget // contains filtered or unexported fields }
func (*SegmentedControl[T]) Build ¶
func (s *SegmentedControl[T]) Build(context *guigui.Context, adder *guigui.ChildAdder) error
func (*SegmentedControl[T]) ItemByIndex ¶
func (s *SegmentedControl[T]) ItemByIndex(index int) (SegmentedControlItem[T], bool)
func (*SegmentedControl[T]) Layout ¶
func (s *SegmentedControl[T]) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, layouter *guigui.ChildLayouter)
func (*SegmentedControl[T]) Measure ¶
func (s *SegmentedControl[T]) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point
func (*SegmentedControl[T]) OnItemSelected ¶
func (s *SegmentedControl[T]) OnItemSelected(f func(context *guigui.Context, index int))
func (*SegmentedControl[T]) SelectItemByIndex ¶
func (s *SegmentedControl[T]) SelectItemByIndex(index int)
func (*SegmentedControl[T]) SelectItemByValue ¶
func (s *SegmentedControl[T]) SelectItemByValue(value T)
func (*SegmentedControl[T]) SelectedItem ¶
func (s *SegmentedControl[T]) SelectedItem() (SegmentedControlItem[T], bool)
func (*SegmentedControl[T]) SelectedItemIndex ¶
func (s *SegmentedControl[T]) SelectedItemIndex() int
func (*SegmentedControl[T]) SetDirection ¶
func (s *SegmentedControl[T]) SetDirection(direction SegmentedControlDirection)
func (*SegmentedControl[T]) SetItems ¶
func (s *SegmentedControl[T]) SetItems(items []SegmentedControlItem[T])
type SegmentedControlDirection ¶
type SegmentedControlDirection int
const ( SegmentedControlDirectionHorizontal SegmentedControlDirection = iota SegmentedControlDirectionVertical )
type SegmentedControlItem ¶
type Select ¶
type Select[T comparable] struct { guigui.DefaultWidget // contains filtered or unexported fields }
func (*Select[T]) IsPopupOpen ¶
func (*Select[T]) ItemByIndex ¶
func (s *Select[T]) ItemByIndex(index int) (SelectItem[T], bool)
func (*Select[T]) ItemTextColor ¶
func (*Select[T]) Layout ¶
func (s *Select[T]) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, layouter *guigui.ChildLayouter)
func (*Select[T]) OnItemSelected ¶
func (*Select[T]) SelectItemByIndex ¶
func (*Select[T]) SelectItemByValue ¶
func (s *Select[T]) SelectItemByValue(value T)
func (*Select[T]) SelectedItem ¶
func (s *Select[T]) SelectedItem() (SelectItem[T], bool)
func (*Select[T]) SelectedItemIndex ¶
func (*Select[T]) SetItems ¶
func (s *Select[T]) SetItems(items []SelectItem[T])
func (*Select[T]) SetItemsByStrings ¶
type SelectItem ¶
type Slider ¶
type Slider struct {
guigui.DefaultWidget
// contains filtered or unexported fields
}
func (*Slider) CursorShape ¶
func (s *Slider) CursorShape(context *guigui.Context, widgetBounds *guigui.WidgetBounds) (ebiten.CursorShapeType, bool)
func (*Slider) HandlePointingInput ¶
func (s *Slider) HandlePointingInput(context *guigui.Context, widgetBounds *guigui.WidgetBounds) guigui.HandleInputResult
func (*Slider) MaximumValueBigInt ¶
func (*Slider) MinimumValueBigInt ¶
func (*Slider) OnValueChanged ¶
func (*Slider) OnValueChangedBigInt ¶
func (*Slider) OnValueChangedInt64 ¶
func (*Slider) OnValueChangedUint64 ¶
func (*Slider) SetMaximumValue ¶
func (*Slider) SetMaximumValueBigInt ¶
func (*Slider) SetMaximumValueInt64 ¶
func (*Slider) SetMaximumValueUint64 ¶
func (*Slider) SetMinimumValue ¶
func (*Slider) SetMinimumValueBigInt ¶
func (*Slider) SetMinimumValueInt64 ¶
func (*Slider) SetMinimumValueUint64 ¶
func (*Slider) SetValueBigInt ¶
func (*Slider) SetValueInt64 ¶
func (*Slider) SetValueUint64 ¶
func (*Slider) ValueBigInt ¶
func (*Slider) ValueInt64 ¶
func (*Slider) ValueUint64 ¶
type Table ¶
type Table[T comparable] struct { guigui.DefaultWidget // contains filtered or unexported fields }
func (*Table[T]) EnsureItemVisibleByIndex ¶
func (*Table[T]) ItemTextColor ¶
func (*Table[T]) JumpToItemByIndex ¶
func (*Table[T]) Layout ¶
func (t *Table[T]) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, layouter *guigui.ChildLayouter)
func (*Table[T]) OnItemSelected ¶
func (*Table[T]) OnItemsMoved ¶
func (*Table[T]) SelectItemByIndex ¶
func (*Table[T]) SelectItemByValue ¶
func (t *Table[T]) SelectItemByValue(value T)
func (*Table[T]) SelectedItem ¶
func (*Table[T]) SelectedItemIndex ¶
func (*Table[T]) SetCheckmarkIndex ¶
func (*Table[T]) SetColumns ¶
func (t *Table[T]) SetColumns(columns []TableColumn)
func (*Table[T]) SetFooterHeight ¶
type TableCell ¶
type TableCell struct {
Text string
TextColor color.Color
TextHorizontalAlign HorizontalAlign
TextVerticalAlign VerticalAlign
TextBold bool
TextTabular bool
Content guigui.Widget
}
type TableColumn ¶
type TableColumn struct {
HeaderText string
HeaderTextHorizontalAlign HorizontalAlign
Width guigui.Size
MinWidth int
}
type TableRow ¶
type TableRow[T comparable] struct { Cells []TableCell Unselectable bool Movable bool Value T }
type Text ¶
type Text struct {
guigui.DefaultWidget
// contains filtered or unexported fields
}
func (*Text) CommitWithCurrentInputValue ¶
func (t *Text) CommitWithCurrentInputValue()
func (*Text) CursorShape ¶
func (t *Text) CursorShape(context *guigui.Context, widgetBounds *guigui.WidgetBounds) (ebiten.CursorShapeType, bool)
func (*Text) ForceSetValue ¶
func (*Text) HandleButtonInput ¶
func (t *Text) HandleButtonInput(context *guigui.Context, widgetBounds *guigui.WidgetBounds) guigui.HandleInputResult
func (*Text) HandlePointingInput ¶
func (t *Text) HandlePointingInput(context *guigui.Context, widgetBounds *guigui.WidgetBounds) guigui.HandleInputResult
func (*Text) HorizontalAlign ¶
func (t *Text) HorizontalAlign() HorizontalAlign
func (*Text) IsEditable ¶
func (*Text) IsMultiline ¶
func (*Text) Layout ¶
func (t *Text) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, layouter *guigui.ChildLayouter)
func (*Text) OnKeyJustPressed ¶
func (*Text) OnValueChanged ¶
func (*Text) ReplaceValueAtSelection ¶
func (*Text) SetAutoWrap ¶
func (*Text) SetEditable ¶
func (*Text) SetHorizontalAlign ¶
func (t *Text) SetHorizontalAlign(align HorizontalAlign)
func (*Text) SetLocales ¶
func (*Text) SetMultiline ¶
func (*Text) SetOpacity ¶
func (*Text) SetSelectable ¶
func (*Text) SetTabWidth ¶
func (*Text) SetTabular ¶
func (*Text) SetVerticalAlign ¶
func (t *Text) SetVerticalAlign(align VerticalAlign)
func (*Text) VerticalAlign ¶
func (t *Text) VerticalAlign() VerticalAlign
type TextInput ¶
type TextInput struct {
guigui.DefaultWidget
// contains filtered or unexported fields
}
func (*TextInput) CommitWithCurrentInputValue ¶
func (t *TextInput) CommitWithCurrentInputValue()
func (*TextInput) ForceSetValue ¶
func (*TextInput) IsEditable ¶
func (*TextInput) Layout ¶
func (t *TextInput) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, layouter *guigui.ChildLayouter)
func (*TextInput) OnKeyJustPressed ¶
func (*TextInput) OnValueChanged ¶
func (*TextInput) ReplaceValueAtSelection ¶
func (*TextInput) SetAutoWrap ¶
func (*TextInput) SetEditable ¶
func (*TextInput) SetHorizontalAlign ¶
func (t *TextInput) SetHorizontalAlign(halign HorizontalAlign)
func (*TextInput) SetMultiline ¶
func (*TextInput) SetStyle ¶
func (t *TextInput) SetStyle(style TextInputStyle)
func (*TextInput) SetTabular ¶
func (*TextInput) SetVerticalAlign ¶
func (t *TextInput) SetVerticalAlign(valign VerticalAlign)
type TextInputStyle ¶
type TextInputStyle int
const ( TextInputStyleNormal TextInputStyle = iota TextInputStyleInline )
type Toggle ¶
type Toggle struct {
guigui.DefaultWidget
// contains filtered or unexported fields
}
func (*Toggle) CursorShape ¶
func (t *Toggle) CursorShape(context *guigui.Context, widgetBounds *guigui.WidgetBounds) (ebiten.CursorShapeType, bool)
func (*Toggle) HandlePointingInput ¶
func (t *Toggle) HandlePointingInput(context *guigui.Context, widgetBounds *guigui.WidgetBounds) guigui.HandleInputResult
func (*Toggle) OnValueChanged ¶
type UnicodeRange ¶
type VerticalAlign ¶
type VerticalAlign int
const ( VerticalAlignTop VerticalAlign = VerticalAlign(textutil.VerticalAlignTop) VerticalAlignMiddle VerticalAlign = VerticalAlign(textutil.VerticalAlignMiddle) VerticalAlignBottom VerticalAlign = VerticalAlign(textutil.VerticalAlignBottom) )
Source Files
¶
- abstractlist.go
- abstractnumberinput.go
- background.go
- button.go
- checkbox.go
- drawer.go
- expander.go
- face.go
- form.go
- image.go
- list.go
- numberinput.go
- os_other.go
- panel.go
- popup.go
- popupmenu.go
- resourceimage.go
- roundedcornerwidget.go
- scroll.go
- segmentedcontrol.go
- select.go
- size.go
- slider.go
- table.go
- text.go
- textinput.go
- toggle.go
- util.go
Click to show internal directories.
Click to hide internal directories.