Documentation ¶
Index ¶
Constants ¶
View Source
const Inset = 50
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Area ¶
type Area interface { Rect() f32.Rectangle Expand(halo int) image.Rectangle Size(inset int) image.Point }
Area is the main abstraction for any object taking up or actively tracking some space on the canvas
type InteractiveElement ¶
InteractiveElement is the base implementation of a dynamic element
func NewInteractiveElement ¶
func NewInteractiveElement(rect *f32.Rectangle) *InteractiveElement
NewInteractiveElement creates a new dynamic element
type InteractiveItem ¶
type InteractiveItem interface { Event(gtx *layout.Context, e *pointer.Event) (f32.Point, bool, error) Enable(gtx *layout.Context, th *material.Theme) error }
InteractiveItem represents an interactive UI element
type Item ¶
type Item interface {
ID() uint32
}
Item is the main abstraction for any object living within the canvas
type RawArea ¶
type RawArea struct {
// contains filtered or unexported fields
}
RawItem is the base implementation for an Item
type RawItem ¶
type RawItem struct {
// contains filtered or unexported fields
}
RawItem is the base implementation for an Item
type Scene ¶
type Scene struct { *View // contains filtered or unexported fields }
Scene is the main container for the canvas objects
func (*Scene) WithDimensions ¶
WithDimensions defines the window dimensions
Click to show internal directories.
Click to hide internal directories.