Documentation ¶
Index ¶
- func NewButton(res *Resources, config ButtonConfig) *widget.Button
- func NewCenteredLabel(text string, ff font.Face) *widget.Text
- func NewCenteredLabelWithMaxWidth(text string, ff font.Face, width float64) *widget.Text
- func NewColoredLabel(text string, ff font.Face, clr color.RGBA, options ...widget.TextOpt) *widget.Text
- func NewLabel(text string, ff font.Face, options ...widget.TextOpt) *widget.Text
- func NewRootContainer() *widget.Container
- func NewRowContainer(config RowContainerConfig) *widget.Container
- func NewSeparator(ld interface{}, clr color.RGBA) widget.PreferredSizeLocateableWidget
- func NewSimpleTooltip(res *Resources, text string) *widget.Container
- type ButtonConfig
- type Resources
- type RowContainerConfig
- type SceneObject
- type SlotButton
- type SlotButtonConfig
- type Tooltip
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewColoredLabel ¶
func NewRootContainer ¶
func NewRowContainer ¶
func NewRowContainer(config RowContainerConfig) *widget.Container
func NewSeparator ¶
func NewSeparator(ld interface{}, clr color.RGBA) widget.PreferredSizeLocateableWidget
Types ¶
type ButtonConfig ¶
type Resources ¶
type Resources struct {
// contains filtered or unexported fields
}
func LoadResources ¶
type RowContainerConfig ¶
type SceneObject ¶
type SceneObject struct {
// contains filtered or unexported fields
}
func NewSceneObject ¶
func NewSceneObject(root *widget.Container) *SceneObject
func (*SceneObject) Draw ¶
func (o *SceneObject) Draw(screen *ebiten.Image)
func (*SceneObject) IsDisposed ¶
func (o *SceneObject) IsDisposed() bool
func (*SceneObject) Update ¶
func (o *SceneObject) Update(delta float64)
type SlotButton ¶
type SlotButton struct { Label *widget.Text Icon *widget.Graphic Selector *widget.Graphic Button *widget.Button Container *widget.Container }
func NewSlotButton ¶
func NewSlotButton(res *Resources, config SlotButtonConfig) *SlotButton
type SlotButtonConfig ¶
type SlotButtonConfig struct { OnClick func() OnHoverStart func(b *SlotButton) OnHoverEnd func(b *SlotButton) WithSelector bool WithLabel bool Tooltip *widget.Container }
Click to show internal directories.
Click to hide internal directories.