Documentation
¶
Index ¶
- type Button
- type Component
- type Dockable
- type Draggable
- type Label
- type Node
- func (n *Node) AppendChild(child Component)
- func (n *Node) GetDimensions() (int, int)
- func (n *Node) GetGlobalOffset() (int, int)
- func (n *Node) GetGlobalOffsetX() int
- func (n *Node) GetGlobalOffsetY() int
- func (n *Node) GetOffset() (int, int)
- func (n *Node) GetParent() *Node
- func (n *Node) IsWithinBounds(mouseX, mouseY int) bool
- func (n *Node) Render(ctx gui.DrawContext)
- func (n *Node) SetOffset(x int, y int)
- func (n *Node) SetParent(parent *Node)
- func (n *Node) Update()
- type Slider
- type Surface
- func (s *Surface) Dock(x, y int)
- func (s *Surface) DockBottom()
- func (s *Surface) DockLeft()
- func (s *Surface) DockRight()
- func (s *Surface) DockTop()
- func (s *Surface) OnDragEnd()
- func (s *Surface) OnDragStart(mouseX, mouseY int)
- func (s *Surface) OnWindowResize(newWindowWidth, newWindowHeight int)
- func (s *Surface) PrepareRender(ctx gui.DrawContext)
- func (s *Surface) Render(ctx gui.DrawContext)
- func (s *Surface) Reposition()
- func (s *Surface) Resize(width, height int)
- func (s *Surface) ResizeBottom(x, y int)
- func (s *Surface) ResizeLeft(x, y int)
- func (s *Surface) ResizeRight(x, y int)
- func (s *Surface) ResizeTop(x, y int)
- func (h Surface) SetDimensions(width, height int)
- func (s *Surface) Undock()
- type TextBox
- type Toggle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Button ¶
type Button struct { Node // contains filtered or unexported fields }
func (*Button) Render ¶
func (b *Button) Render(ctx gui.DrawContext)
type Dockable ¶
type Dockable struct { Node // contains filtered or unexported fields }
func NewDockable ¶
type Draggable ¶
type Draggable struct { Node // contains filtered or unexported fields }
func NewDraggable ¶
func (*Draggable) SetDimensions ¶
type Label ¶
type Label struct { Node // contains filtered or unexported fields }
func (*Label) Render ¶
func (l *Label) Render(ctx gui.DrawContext)
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) AppendChild ¶
func (*Node) GetDimensions ¶
func (*Node) GetGlobalOffset ¶
func (*Node) GetGlobalOffsetX ¶
func (*Node) GetGlobalOffsetY ¶
func (*Node) IsWithinBounds ¶
func (*Node) Render ¶
func (n *Node) Render(ctx gui.DrawContext)
type Slider ¶
type Slider struct { Node // contains filtered or unexported fields }
func (*Slider) Render ¶
func (s *Slider) Render(ctx gui.DrawContext)
type Surface ¶
func NewSurface ¶
func (*Surface) DockBottom ¶
func (s *Surface) DockBottom()
func (*Surface) OnDragStart ¶
func (*Surface) OnWindowResize ¶
func (*Surface) PrepareRender ¶
func (s *Surface) PrepareRender(ctx gui.DrawContext)
func (*Surface) Render ¶
func (s *Surface) Render(ctx gui.DrawContext)
func (*Surface) Reposition ¶
func (s *Surface) Reposition()
func (*Surface) ResizeBottom ¶
func (*Surface) ResizeLeft ¶
func (*Surface) ResizeRight ¶
func (Surface) SetDimensions ¶
func (h Surface) SetDimensions(width, height int)
type TextBox ¶
type TextBox struct { Node // contains filtered or unexported fields }
func (*TextBox) Render ¶
func (tb *TextBox) Render(ctx gui.DrawContext)
Click to show internal directories.
Click to hide internal directories.