Documentation
¶
Index ¶
- type Button
- func (b *Button) Activate()
- func (b *Button) Dispose()
- func (b *Button) Init(scene *ge.Scene)
- func (b *Button) IsDisabled() bool
- func (b *Button) IsDisposed() bool
- func (b *Button) IsFocused() bool
- func (b *Button) SetDisabled(disabled bool)
- func (b *Button) SetFocus(focused bool)
- func (b *Button) Update(delta float64)
- type ButtonStyle
- type Image
- type ImageButton
- func (b *ImageButton) Activate()
- func (b *ImageButton) Dispose()
- func (b *ImageButton) Init(scene *ge.Scene)
- func (b *ImageButton) IsDisabled() bool
- func (b *ImageButton) IsDisposed() bool
- func (b *ImageButton) IsFocused() bool
- func (b *ImageButton) SetFocus(focused bool)
- func (b *ImageButton) SetImage(image Image)
- func (b *ImageButton) Update(delta float64)
- type ImageButtonStyle
- type Root
- func (r *Root) ConnectInputs(from, to inputElement)
- func (r *Root) Dispose()
- func (r *Root) FocusInputAfter(e inputElement)
- func (r *Root) FocusInputBefore(e inputElement)
- func (r *Root) FocusNextInput()
- func (r *Root) FocusPrevInput()
- func (r *Root) Init(scene *ge.Scene)
- func (r *Root) IsDisposed() bool
- func (r *Root) NewButton(style ButtonStyle) *Button
- func (r *Root) NewImageButton(style ImageButtonStyle) *ImageButton
- func (r *Root) Update(delta float64)
- type ValueLabel
- type ValueLabelStyle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Button ¶
type Button struct { Visible bool Pos ge.Pos Text string PrevInput inputElement NextInput inputElement EventActivated gesignal.Event[*Button] // contains filtered or unexported fields }
func (*Button) IsDisabled ¶
func (*Button) IsDisposed ¶
func (*Button) SetDisabled ¶
type ButtonStyle ¶
type ButtonStyle struct { Width float64 Height float64 BorderWidth float64 Font resource.FontID BorderColor ge.ColorScale BackgroundColor ge.ColorScale TextColor ge.ColorScale FocusedBorderColor ge.ColorScale FocusedBackgroundColor ge.ColorScale FocusedTextColor ge.ColorScale DisabledBorderColor ge.ColorScale DisabledBackgroundColor ge.ColorScale DisabledTextColor ge.ColorScale }
func DefaultButtonStyle ¶
func DefaultButtonStyle() ButtonStyle
func (ButtonStyle) Resized ¶
func (style ButtonStyle) Resized(w, h float64) ButtonStyle
type ImageButton ¶
type ImageButton struct { Visible bool Pos ge.Pos PrevInput inputElement NextInput inputElement EventActivated gesignal.Event[*ImageButton] // contains filtered or unexported fields }
func (*ImageButton) Activate ¶
func (b *ImageButton) Activate()
func (*ImageButton) Dispose ¶
func (b *ImageButton) Dispose()
func (*ImageButton) Init ¶
func (b *ImageButton) Init(scene *ge.Scene)
func (*ImageButton) IsDisabled ¶
func (b *ImageButton) IsDisabled() bool
func (*ImageButton) IsDisposed ¶
func (b *ImageButton) IsDisposed() bool
func (*ImageButton) IsFocused ¶
func (b *ImageButton) IsFocused() bool
func (*ImageButton) SetFocus ¶
func (b *ImageButton) SetFocus(focused bool)
func (*ImageButton) SetImage ¶
func (b *ImageButton) SetImage(image Image)
func (*ImageButton) Update ¶
func (b *ImageButton) Update(delta float64)
type ImageButtonStyle ¶
type ImageButtonStyle struct { Width float64 Height float64 BorderWidth float64 BorderColor ge.ColorScale BackgroundColor ge.ColorScale ImageColor ge.ColorScale FocusedBorderColor ge.ColorScale FocusedBackgroundColor ge.ColorScale FocusedImageColor ge.ColorScale }
func DefaultImageButtonStyle ¶
func DefaultImageButtonStyle() ImageButtonStyle
func (ImageButtonStyle) Resized ¶
func (style ImageButtonStyle) Resized(w, h float64) ImageButtonStyle
type Root ¶
type Root struct { ActivationAction input.Action PrevInputAction input.Action NextInputAction input.Action // contains filtered or unexported fields }
func (*Root) ConnectInputs ¶
func (r *Root) ConnectInputs(from, to inputElement)
func (*Root) FocusInputAfter ¶
func (r *Root) FocusInputAfter(e inputElement)
func (*Root) FocusInputBefore ¶
func (r *Root) FocusInputBefore(e inputElement)
func (*Root) FocusNextInput ¶
func (r *Root) FocusNextInput()
func (*Root) FocusPrevInput ¶
func (r *Root) FocusPrevInput()
func (*Root) IsDisposed ¶
func (*Root) NewButton ¶
func (r *Root) NewButton(style ButtonStyle) *Button
func (*Root) NewImageButton ¶
func (r *Root) NewImageButton(style ImageButtonStyle) *ImageButton
type ValueLabel ¶
type ValueLabel[T comparable] struct { Visible bool Pos ge.Pos // contains filtered or unexported fields }
func NewValueLabel ¶
func NewValueLabel[T comparable](r *Root, style ValueLabelStyle) *ValueLabel[T]
func (*ValueLabel[T]) BindValue ¶
func (l *ValueLabel[T]) BindValue(value *T)
func (*ValueLabel[T]) Dispose ¶
func (l *ValueLabel[T]) Dispose()
func (*ValueLabel[T]) Init ¶
func (l *ValueLabel[T]) Init(scene *ge.Scene)
func (*ValueLabel[T]) IsDisposed ¶
func (l *ValueLabel[T]) IsDisposed() bool
func (*ValueLabel[T]) SetText ¶
func (l *ValueLabel[T]) SetText(s string)
func (*ValueLabel[T]) Update ¶
func (l *ValueLabel[T]) Update(delta float64)
type ValueLabelStyle ¶
type ValueLabelStyle struct { Width float64 Height float64 BorderWidth float64 Font resource.FontID BorderColor ge.ColorScale BackgroundColor ge.ColorScale TextColor ge.ColorScale }
func DefaultValueLabelStyle ¶
func DefaultValueLabelStyle() ValueLabelStyle
Source Files
¶
Click to show internal directories.
Click to hide internal directories.