Documentation
¶
Index ¶
- func Blur(widget Widget)
- func Bounds(widget Widget) image.Rectangle
- func Disable(widget Widget)
- func Enable(widget Widget)
- func Focus(widget Widget)
- func HasFocusedChildWidget(widget Widget) bool
- func Hide(widget Widget)
- func IsEnabled(widget Widget) bool
- func IsFocused(widget Widget) bool
- func IsVisible(widget Widget) bool
- func Opacity(widget Widget) float64
- func Position(widget Widget) image.Point
- func RequestRedraw(widget Widget)
- func Run(root Widget, options *RunOptions) error
- func SetOpacity(widget Widget, opacity float64)
- func SetPosition(widget Widget, position image.Point)
- func Show(widget Widget)
- func VisibleBounds(widget Widget) image.Rectangle
- type ChildWidgetAppender
- type ColorMode
- type Context
- func (c *Context) AppScale() float64
- func (c *Context) AppSize() (int, int)
- func (c *Context) AppendAppLocales(locales []language.Tag) []language.Tag
- func (c *Context) AppendLocales(locales []language.Tag) []language.Tag
- func (c *Context) ColorMode() ColorMode
- func (c *Context) DeviceScale() float64
- func (c *Context) ResetColorMode()
- func (c *Context) Scale() float64
- func (c *Context) SetAppLocales(locales []language.Tag)
- func (c *Context) SetAppScale(scale float64)
- func (c *Context) SetColorMode(mode ColorMode)
- type DefaultWidget
- func (*DefaultWidget) CursorShape(context *Context) (ebiten.CursorShapeType, bool)
- func (*DefaultWidget) Draw(context *Context, dst *ebiten.Image)
- func (*DefaultWidget) HandleInput(context *Context) HandleInputResult
- func (*DefaultWidget) IsPopup() bool
- func (*DefaultWidget) Layout(context *Context, appender *ChildWidgetAppender)
- func (d *DefaultWidget) Size(context *Context) (int, int)
- func (*DefaultWidget) Update(context *Context) error
- type HandleInputResult
- type MouseOverlay
- func (m *MouseOverlay) HandleInput(context *Context) HandleInputResult
- func (m *MouseOverlay) IsHovering() bool
- func (m *MouseOverlay) IsPressing() bool
- func (m *MouseOverlay) SetOnDown(f func(mouseButton ebiten.MouseButton, cursorPosition image.Point))
- func (m *MouseOverlay) SetOnUp(f func(mouseButton ebiten.MouseButton, cursorPosition image.Point))
- func (m *MouseOverlay) Update(context *Context) error
- type RootWidget
- type RunOptions
- type Widget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasFocusedChildWidget ¶
func RequestRedraw ¶
func RequestRedraw(widget Widget)
func Run ¶
func Run(root Widget, options *RunOptions) error
func SetOpacity ¶
func SetPosition ¶
func VisibleBounds ¶
Types ¶
type ChildWidgetAppender ¶
type ChildWidgetAppender struct {
// contains filtered or unexported fields
}
func (*ChildWidgetAppender) AppendChildWidget ¶
func (c *ChildWidgetAppender) AppendChildWidget(widget Widget)
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) AppendAppLocales ¶
func (*Context) AppendLocales ¶
func (*Context) DeviceScale ¶
func (*Context) ResetColorMode ¶
func (c *Context) ResetColorMode()
func (*Context) SetAppLocales ¶
func (*Context) SetAppScale ¶
func (*Context) SetColorMode ¶
type DefaultWidget ¶
type DefaultWidget struct {
// contains filtered or unexported fields
}
func (*DefaultWidget) CursorShape ¶
func (*DefaultWidget) CursorShape(context *Context) (ebiten.CursorShapeType, bool)
func (*DefaultWidget) HandleInput ¶
func (*DefaultWidget) HandleInput(context *Context) HandleInputResult
func (*DefaultWidget) IsPopup ¶
func (*DefaultWidget) IsPopup() bool
func (*DefaultWidget) Layout ¶
func (*DefaultWidget) Layout(context *Context, appender *ChildWidgetAppender)
func (*DefaultWidget) Update ¶
func (*DefaultWidget) Update(context *Context) error
type HandleInputResult ¶
type HandleInputResult struct {
// contains filtered or unexported fields
}
func AbortHandlingInput ¶
func AbortHandlingInput() HandleInputResult
func HandleInputByWidget ¶
func HandleInputByWidget(widget Widget) HandleInputResult
func (*HandleInputResult) ShouldRaise ¶
func (r *HandleInputResult) ShouldRaise() bool
type MouseOverlay ¶
type MouseOverlay struct {
DefaultWidget
// contains filtered or unexported fields
}
func (*MouseOverlay) HandleInput ¶
func (m *MouseOverlay) HandleInput(context *Context) HandleInputResult
func (*MouseOverlay) IsHovering ¶
func (m *MouseOverlay) IsHovering() bool
func (*MouseOverlay) IsPressing ¶
func (m *MouseOverlay) IsPressing() bool
func (*MouseOverlay) SetOnDown ¶
func (m *MouseOverlay) SetOnDown(f func(mouseButton ebiten.MouseButton, cursorPosition image.Point))
func (*MouseOverlay) SetOnUp ¶
func (m *MouseOverlay) SetOnUp(f func(mouseButton ebiten.MouseButton, cursorPosition image.Point))
func (*MouseOverlay) Update ¶
func (m *MouseOverlay) Update(context *Context) error
type RootWidget ¶
type RootWidget struct {
DefaultWidget
}
type RunOptions ¶
type Widget ¶
type Widget interface {
Layout(context *Context, appender *ChildWidgetAppender)
HandleInput(context *Context) HandleInputResult
Update(context *Context) error
CursorShape(context *Context) (ebiten.CursorShapeType, bool)
Draw(context *Context, dst *ebiten.Image)
IsPopup() bool
Size(context *Context) (int, int)
// contains filtered or unexported methods
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.

