Documentation ¶
Index ¶
- type Attachable
- type AttachableOuter
- type BackgroundBorderPainter
- func (b *BackgroundBorderPainter) BackgroundBrush() gxui.Brush
- func (b *BackgroundBorderPainter) BorderPen() gxui.Pen
- func (b *BackgroundBorderPainter) Init(outer BackgroundBorderPainterOuter)
- func (b *BackgroundBorderPainter) PaintBackground(c gxui.Canvas, r math.Rect)
- func (b *BackgroundBorderPainter) PaintBorder(c gxui.Canvas, r math.Rect)
- func (b *BackgroundBorderPainter) SetBackgroundBrush(brush gxui.Brush)
- func (b *BackgroundBorderPainter) SetBorderPen(pen gxui.Pen)
- type BackgroundBorderPainterOuter
- type Container
- func (c *Container) AddChild(child gxui.Control)
- func (c *Container) AddChildAt(index int, child gxui.Control)
- func (c *Container) ChildAt(index int) gxui.Control
- func (c *Container) ChildCount() int
- func (c *Container) ChildIndex(child gxui.Control) int
- func (c *Container) Children() []gxui.Control
- func (c *Container) ContainsPoint(p math.Point) bool
- func (c *Container) Init(outer ContainerOuter)
- func (c *Container) IsMouseEventTarget() bool
- func (c *Container) RemoveAll()
- func (c *Container) RemoveChild(child gxui.Control)
- func (c *Container) RemoveChildAt(index int)
- func (c *Container) SetMouseEventTarget(mouseEventTarget bool)
- type ContainerOuter
- type DrawPaint
- type DrawPaintOuter
- type Focusable
- func (f *Focusable) GainedFocus()
- func (f *Focusable) HasFocus() bool
- func (f *Focusable) Init(outer FocusableOuter)
- func (f *Focusable) IsFocusable() bool
- func (f *Focusable) LostFocus()
- func (f *Focusable) OnGainedFocus(l func()) gxui.EventSubscription
- func (f *Focusable) OnLostFocus(l func()) gxui.EventSubscription
- func (f *Focusable) SetFocusable(bool)
- type FocusableOuter
- type InputEventHandler
- func (m *InputEventHandler) Click(ev gxui.MouseEvent) (consume bool)
- func (m *InputEventHandler) DoubleClick(ev gxui.MouseEvent) (consume bool)
- func (m *InputEventHandler) Init(outer InputEventHandlerOuter)
- func (m *InputEventHandler) IsMouseDown(button gxui.MouseButton) bool
- func (m *InputEventHandler) IsMouseOver() bool
- func (m *InputEventHandler) KeyDown(ev gxui.KeyboardEvent)
- func (m *InputEventHandler) KeyPress(ev gxui.KeyboardEvent) (consume bool)
- func (m *InputEventHandler) KeyRepeat(ev gxui.KeyboardEvent)
- func (m *InputEventHandler) KeyStroke(ev gxui.KeyStrokeEvent) (consume bool)
- func (m *InputEventHandler) KeyUp(ev gxui.KeyboardEvent)
- func (m *InputEventHandler) MouseDown(ev gxui.MouseEvent)
- func (m *InputEventHandler) MouseEnter(ev gxui.MouseEvent)
- func (m *InputEventHandler) MouseExit(ev gxui.MouseEvent)
- func (m *InputEventHandler) MouseMove(ev gxui.MouseEvent)
- func (m *InputEventHandler) MouseScroll(ev gxui.MouseEvent) (consume bool)
- func (m *InputEventHandler) MouseUp(ev gxui.MouseEvent)
- func (m *InputEventHandler) OnClick(f func(gxui.MouseEvent)) gxui.EventSubscription
- func (m *InputEventHandler) OnDoubleClick(f func(gxui.MouseEvent)) gxui.EventSubscription
- func (m *InputEventHandler) OnKeyDown(f func(gxui.KeyboardEvent)) gxui.EventSubscription
- func (m *InputEventHandler) OnKeyPress(f func(gxui.KeyboardEvent)) gxui.EventSubscription
- func (m *InputEventHandler) OnKeyRepeat(f func(gxui.KeyboardEvent)) gxui.EventSubscription
- func (m *InputEventHandler) OnKeyStroke(f func(gxui.KeyStrokeEvent)) gxui.EventSubscription
- func (m *InputEventHandler) OnKeyUp(f func(gxui.KeyboardEvent)) gxui.EventSubscription
- func (m *InputEventHandler) OnMouseDown(f func(gxui.MouseEvent)) gxui.EventSubscription
- func (m *InputEventHandler) OnMouseEnter(f func(gxui.MouseEvent)) gxui.EventSubscription
- func (m *InputEventHandler) OnMouseExit(f func(gxui.MouseEvent)) gxui.EventSubscription
- func (m *InputEventHandler) OnMouseMove(f func(gxui.MouseEvent)) gxui.EventSubscription
- func (m *InputEventHandler) OnMouseScroll(f func(gxui.MouseEvent)) gxui.EventSubscription
- func (m *InputEventHandler) OnMouseUp(f func(gxui.MouseEvent)) gxui.EventSubscription
- type InputEventHandlerOuter
- type Layoutable
- type LayoutableOuter
- type LinearLayout
- func (l *LinearLayout) DesiredSize(min, max math.Size) math.Size
- func (l *LinearLayout) HorizontalAlignment() gxui.HorizontalAlignment
- func (l *LinearLayout) Init(outer LinearLayoutOuter)
- func (l *LinearLayout) LayoutChildren()
- func (l *LinearLayout) Orientation() gxui.Orientation
- func (l *LinearLayout) SetHorizontalAlignment(alignment gxui.HorizontalAlignment)
- func (l *LinearLayout) SetOrientation(o gxui.Orientation)
- func (l *LinearLayout) SetVerticalAlignment(alignment gxui.VerticalAlignment)
- func (l *LinearLayout) VerticalAlignment() gxui.VerticalAlignment
- type LinearLayoutOuter
- type Paddable
- type PaddableOuter
- type PaintChildren
- type PaintChildrenOuter
- type Parentable
- type ParentableOuter
- type Visible
- type VisibleOuter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachable ¶
type Attachable struct {
// contains filtered or unexported fields
}
func (*Attachable) Attach ¶
func (a *Attachable) Attach()
func (*Attachable) Attached ¶
func (a *Attachable) Attached() bool
func (*Attachable) Detach ¶
func (a *Attachable) Detach()
func (*Attachable) Init ¶
func (a *Attachable) Init(outer AttachableOuter)
func (*Attachable) OnAttach ¶
func (a *Attachable) OnAttach(f func()) gxui.EventSubscription
func (*Attachable) OnDetach ¶
func (a *Attachable) OnDetach(f func()) gxui.EventSubscription
type AttachableOuter ¶
type AttachableOuter interface { outer.Relayouter }
type BackgroundBorderPainter ¶
type BackgroundBorderPainter struct {
// contains filtered or unexported fields
}
func (*BackgroundBorderPainter) BackgroundBrush ¶
func (b *BackgroundBorderPainter) BackgroundBrush() gxui.Brush
func (*BackgroundBorderPainter) BorderPen ¶
func (b *BackgroundBorderPainter) BorderPen() gxui.Pen
func (*BackgroundBorderPainter) Init ¶
func (b *BackgroundBorderPainter) Init(outer BackgroundBorderPainterOuter)
func (*BackgroundBorderPainter) PaintBackground ¶
func (b *BackgroundBorderPainter) PaintBackground(c gxui.Canvas, r math.Rect)
func (*BackgroundBorderPainter) PaintBorder ¶
func (b *BackgroundBorderPainter) PaintBorder(c gxui.Canvas, r math.Rect)
func (*BackgroundBorderPainter) SetBackgroundBrush ¶
func (b *BackgroundBorderPainter) SetBackgroundBrush(brush gxui.Brush)
func (*BackgroundBorderPainter) SetBorderPen ¶
func (b *BackgroundBorderPainter) SetBorderPen(pen gxui.Pen)
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func (*Container) Init ¶
func (c *Container) Init(outer ContainerOuter)
func (*Container) IsMouseEventTarget ¶
func (*Container) RemoveChild ¶
func (*Container) RemoveChildAt ¶
func (*Container) SetMouseEventTarget ¶
type ContainerOuter ¶
type ContainerOuter interface { gxui.Container outer.Attachable outer.Bounds outer.IsVisibler outer.LayoutChildren outer.Parenter }
type DrawPaintOuter ¶
type Focusable ¶
type Focusable struct {
// contains filtered or unexported fields
}
func (*Focusable) GainedFocus ¶
func (f *Focusable) GainedFocus()
func (*Focusable) Init ¶
func (f *Focusable) Init(outer FocusableOuter)
func (*Focusable) OnGainedFocus ¶
func (f *Focusable) OnGainedFocus(l func()) gxui.EventSubscription
func (*Focusable) OnLostFocus ¶
func (f *Focusable) OnLostFocus(l func()) gxui.EventSubscription
func (*Focusable) SetFocusable ¶
type FocusableOuter ¶
type FocusableOuter interface{}
type InputEventHandler ¶
type InputEventHandler struct {
// contains filtered or unexported fields
}
func (*InputEventHandler) Click ¶
func (m *InputEventHandler) Click(ev gxui.MouseEvent) (consume bool)
func (*InputEventHandler) DoubleClick ¶
func (m *InputEventHandler) DoubleClick(ev gxui.MouseEvent) (consume bool)
func (*InputEventHandler) Init ¶
func (m *InputEventHandler) Init(outer InputEventHandlerOuter)
func (*InputEventHandler) IsMouseDown ¶
func (m *InputEventHandler) IsMouseDown(button gxui.MouseButton) bool
func (*InputEventHandler) IsMouseOver ¶
func (m *InputEventHandler) IsMouseOver() bool
func (*InputEventHandler) KeyDown ¶
func (m *InputEventHandler) KeyDown(ev gxui.KeyboardEvent)
func (*InputEventHandler) KeyPress ¶
func (m *InputEventHandler) KeyPress(ev gxui.KeyboardEvent) (consume bool)
func (*InputEventHandler) KeyRepeat ¶
func (m *InputEventHandler) KeyRepeat(ev gxui.KeyboardEvent)
func (*InputEventHandler) KeyStroke ¶
func (m *InputEventHandler) KeyStroke(ev gxui.KeyStrokeEvent) (consume bool)
func (*InputEventHandler) KeyUp ¶
func (m *InputEventHandler) KeyUp(ev gxui.KeyboardEvent)
func (*InputEventHandler) MouseDown ¶
func (m *InputEventHandler) MouseDown(ev gxui.MouseEvent)
func (*InputEventHandler) MouseEnter ¶
func (m *InputEventHandler) MouseEnter(ev gxui.MouseEvent)
func (*InputEventHandler) MouseExit ¶
func (m *InputEventHandler) MouseExit(ev gxui.MouseEvent)
func (*InputEventHandler) MouseMove ¶
func (m *InputEventHandler) MouseMove(ev gxui.MouseEvent)
func (*InputEventHandler) MouseScroll ¶
func (m *InputEventHandler) MouseScroll(ev gxui.MouseEvent) (consume bool)
func (*InputEventHandler) MouseUp ¶
func (m *InputEventHandler) MouseUp(ev gxui.MouseEvent)
func (*InputEventHandler) OnClick ¶
func (m *InputEventHandler) OnClick(f func(gxui.MouseEvent)) gxui.EventSubscription
func (*InputEventHandler) OnDoubleClick ¶
func (m *InputEventHandler) OnDoubleClick(f func(gxui.MouseEvent)) gxui.EventSubscription
func (*InputEventHandler) OnKeyDown ¶
func (m *InputEventHandler) OnKeyDown(f func(gxui.KeyboardEvent)) gxui.EventSubscription
func (*InputEventHandler) OnKeyPress ¶
func (m *InputEventHandler) OnKeyPress(f func(gxui.KeyboardEvent)) gxui.EventSubscription
func (*InputEventHandler) OnKeyRepeat ¶
func (m *InputEventHandler) OnKeyRepeat(f func(gxui.KeyboardEvent)) gxui.EventSubscription
func (*InputEventHandler) OnKeyStroke ¶
func (m *InputEventHandler) OnKeyStroke(f func(gxui.KeyStrokeEvent)) gxui.EventSubscription
func (*InputEventHandler) OnKeyUp ¶
func (m *InputEventHandler) OnKeyUp(f func(gxui.KeyboardEvent)) gxui.EventSubscription
func (*InputEventHandler) OnMouseDown ¶
func (m *InputEventHandler) OnMouseDown(f func(gxui.MouseEvent)) gxui.EventSubscription
func (*InputEventHandler) OnMouseEnter ¶
func (m *InputEventHandler) OnMouseEnter(f func(gxui.MouseEvent)) gxui.EventSubscription
func (*InputEventHandler) OnMouseExit ¶
func (m *InputEventHandler) OnMouseExit(f func(gxui.MouseEvent)) gxui.EventSubscription
func (*InputEventHandler) OnMouseMove ¶
func (m *InputEventHandler) OnMouseMove(f func(gxui.MouseEvent)) gxui.EventSubscription
func (*InputEventHandler) OnMouseScroll ¶
func (m *InputEventHandler) OnMouseScroll(f func(gxui.MouseEvent)) gxui.EventSubscription
func (*InputEventHandler) OnMouseUp ¶
func (m *InputEventHandler) OnMouseUp(f func(gxui.MouseEvent)) gxui.EventSubscription
type InputEventHandlerOuter ¶
type InputEventHandlerOuter interface{}
type Layoutable ¶
type Layoutable struct {
// contains filtered or unexported fields
}
func (*Layoutable) Bounds ¶
func (l *Layoutable) Bounds() math.Rect
func (*Layoutable) Init ¶
func (l *Layoutable) Init(outer LayoutableOuter)
func (*Layoutable) Layout ¶
func (l *Layoutable) Layout(rect math.Rect)
func (*Layoutable) Margin ¶
func (l *Layoutable) Margin() math.Spacing
func (*Layoutable) Relayout ¶
func (l *Layoutable) Relayout()
func (*Layoutable) SetMargin ¶
func (l *Layoutable) SetMargin(m math.Spacing)
type LinearLayout ¶
type LinearLayout struct {
// contains filtered or unexported fields
}
func (*LinearLayout) DesiredSize ¶
func (l *LinearLayout) DesiredSize(min, max math.Size) math.Size
func (*LinearLayout) HorizontalAlignment ¶
func (l *LinearLayout) HorizontalAlignment() gxui.HorizontalAlignment
func (*LinearLayout) Init ¶
func (l *LinearLayout) Init(outer LinearLayoutOuter)
func (*LinearLayout) LayoutChildren ¶
func (l *LinearLayout) LayoutChildren()
func (*LinearLayout) Orientation ¶
func (l *LinearLayout) Orientation() gxui.Orientation
func (*LinearLayout) SetHorizontalAlignment ¶
func (l *LinearLayout) SetHorizontalAlignment(alignment gxui.HorizontalAlignment)
func (*LinearLayout) SetOrientation ¶
func (l *LinearLayout) SetOrientation(o gxui.Orientation)
func (*LinearLayout) SetVerticalAlignment ¶
func (l *LinearLayout) SetVerticalAlignment(alignment gxui.VerticalAlignment)
func (*LinearLayout) VerticalAlignment ¶
func (l *LinearLayout) VerticalAlignment() gxui.VerticalAlignment
type Paddable ¶
type Paddable struct {
// contains filtered or unexported fields
}
func (*Paddable) Init ¶
func (p *Paddable) Init(outer PaddableOuter)
func (*Paddable) SetPadding ¶
type PaddableOuter ¶
type PaddableOuter interface { outer.LayoutChildren outer.Redrawer }
type PaintChildren ¶
type PaintChildren struct {
// contains filtered or unexported fields
}
func (*PaintChildren) Init ¶
func (p *PaintChildren) Init(outer PaintChildrenOuter)
func (*PaintChildren) Paint ¶
func (p *PaintChildren) Paint(c gxui.Canvas)
func (*PaintChildren) PaintChild ¶
type PaintChildrenOuter ¶
type Parentable ¶
type Parentable struct {
// contains filtered or unexported fields
}
func (*Parentable) Init ¶
func (p *Parentable) Init(outer ParentableOuter)
func (*Parentable) Parent ¶
func (p *Parentable) Parent() gxui.Container
func (*Parentable) SetParent ¶
func (p *Parentable) SetParent(parent gxui.Container)
type ParentableOuter ¶
type ParentableOuter interface{}
type Visible ¶
type Visible struct {
// contains filtered or unexported fields
}
func (*Visible) Init ¶
func (v *Visible) Init(outer VisibleOuter)
func (*Visible) SetVisible ¶
Click to show internal directories.
Click to hide internal directories.