Documentation
¶
Index ¶
- type BackgroundBorderPainter
- func (b *BackgroundBorderPainter) BackgroundBrush() tools.Brush
- func (b *BackgroundBorderPainter) BorderPen() tools.Pen
- func (b *BackgroundBorderPainter) Init(outer BackgroundBorderPainterOuter)
- func (b *BackgroundBorderPainter) PaintBackground(c framework.Canvas, r math.Rect)
- func (b *BackgroundBorderPainter) PaintBorder(c framework.Canvas, r math.Rect)
- func (b *BackgroundBorderPainter) SetBackgroundBrush(brush tools.Brush)
- func (b *BackgroundBorderPainter) SetBorderPen(pen tools.Pen)
- type BackgroundBorderPainterOuter
- type Button
- func (b *Button) Click(ev framework.MouseEvent) (consume bool)
- func (b *Button) Init(outer ButtonOuter, theme framework.Theme)
- func (b *Button) IsChecked() bool
- func (b *Button) KeyPress(ev framework.KeyboardEvent) (consume bool)
- func (b *Button) Label() framework.Label
- func (b *Button) SetChecked(checked bool)
- func (b *Button) SetText(text string)
- func (b *Button) SetType(buttonType framework.ButtonType)
- func (b *Button) Text() string
- func (b *Button) Type() framework.ButtonType
- type ButtonOuter
- type DrawPaint
- type DrawPaintOuter
- type Label
- func (l *Label) Color() tools.Color
- func (l *Label) DesiredSize(min, max math.Size) math.Size
- func (l *Label) Font() framework.Font
- func (l *Label) HorizontalAlignment() framework.HorizontalAlignment
- func (l *Label) Init(outer LabelOuter, theme framework.Theme, font framework.Font, ...)
- func (l *Label) Multiline() bool
- func (l *Label) Paint(c framework.Canvas)
- func (l *Label) SetColor(color tools.Color)
- func (l *Label) SetFont(font framework.Font)
- func (l *Label) SetHorizontalAlignment(horizontalAlignment framework.HorizontalAlignment)
- func (l *Label) SetMultiline(multiline bool)
- func (l *Label) SetText(text string)
- func (l *Label) SetVerticalAlignment(verticalAlignment framework.VerticalAlignment)
- func (l *Label) Text() string
- func (l *Label) VerticalAlignment() framework.VerticalAlignment
- type LabelOuter
- type LinearLayout
- func (l *LinearLayout) DesiredSize(min, max math.Size) math.Size
- func (l *LinearLayout) Direction() framework.Direction
- func (l *LinearLayout) HorizontalAlignment() framework.HorizontalAlignment
- func (l *LinearLayout) Init(outer LinearLayoutOuter, theme framework.Theme)
- func (l *LinearLayout) LayoutChildren()
- func (l *LinearLayout) Paint(c framework.Canvas)
- func (l *LinearLayout) SetDirection(d framework.Direction)
- func (l *LinearLayout) SetHorizontalAlignment(alignment framework.HorizontalAlignment)
- func (l *LinearLayout) SetSizeMode(mode framework.SizeMode)
- func (l *LinearLayout) SetVerticalAlignment(alignment framework.VerticalAlignment)
- func (l *LinearLayout) SizeMode() framework.SizeMode
- func (l *LinearLayout) VerticalAlignment() framework.VerticalAlignment
- type LinearLayoutOuter
- type Paddable
- type PaddableOuter
- type Parentable
- type ParentableOuter
- type Visible
- type VisibleOuter
- type Window
- func (w *Window) Close()
- func (w *Window) Draw() framework.Canvas
- func (w *Window) Focus() framework.Focusable
- func (w *Window) Fullscreen() bool
- func (w *Window) Hide()
- func (w *Window) Init(outer WindowOuter, theme framework.Theme, width, height int, title string)
- func (w *Window) IsVisible() bool
- func (w *Window) LayoutChildren()
- func (w *Window) OnClick(f func(framework.MouseEvent)) framework.EventSubscription
- func (w *Window) OnClose(f func()) framework.EventSubscription
- func (w *Window) OnDoubleClick(f func(framework.MouseEvent)) framework.EventSubscription
- func (w *Window) OnKeyDown(f func(framework.KeyboardEvent)) framework.EventSubscription
- func (w *Window) OnKeyRepeat(f func(framework.KeyboardEvent)) framework.EventSubscription
- func (w *Window) OnKeyStroke(f func(framework.KeyStrokeEvent)) framework.EventSubscription
- func (w *Window) OnKeyUp(f func(framework.KeyboardEvent)) framework.EventSubscription
- func (w *Window) OnMouseDown(f func(framework.MouseEvent)) framework.EventSubscription
- func (w *Window) OnMouseEnter(f func(framework.MouseEvent)) framework.EventSubscription
- func (w *Window) OnMouseExit(f func(framework.MouseEvent)) framework.EventSubscription
- func (w *Window) OnMouseMove(f func(framework.MouseEvent)) framework.EventSubscription
- func (w *Window) OnMouseScroll(f func(framework.MouseEvent)) framework.EventSubscription
- func (w *Window) OnMouseUp(f func(framework.MouseEvent)) framework.EventSubscription
- func (w *Window) OnResize(f func()) framework.EventSubscription
- func (w *Window) Paint(c framework.Canvas)
- func (w *Window) Parent() framework.Parent
- func (w *Window) Position() math.Point
- func (w *Window) Redraw()
- func (w *Window) Relayout()
- func (w *Window) Scale() float32
- func (w *Window) SetFocus(c framework.Control) bool
- func (w *Window) SetFullscreen(fullscreen bool)
- func (w *Window) SetPosition(pos math.Point)
- func (w *Window) SetScale(scale float32)
- func (w *Window) SetSize(size math.Size)
- func (w *Window) SetTitle(t string)
- func (w *Window) Show()
- func (w *Window) Size() math.Size
- func (w *Window) Title() string
- type WindowOuter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackgroundBorderPainter ¶
type BackgroundBorderPainter struct {
// contains filtered or unexported fields
}
func (*BackgroundBorderPainter) BackgroundBrush ¶
func (b *BackgroundBorderPainter) BackgroundBrush() tools.Brush
func (*BackgroundBorderPainter) BorderPen ¶
func (b *BackgroundBorderPainter) BorderPen() tools.Pen
func (*BackgroundBorderPainter) Init ¶
func (b *BackgroundBorderPainter) Init(outer BackgroundBorderPainterOuter)
func (*BackgroundBorderPainter) PaintBackground ¶
func (b *BackgroundBorderPainter) PaintBackground(c framework.Canvas, r math.Rect)
func (*BackgroundBorderPainter) PaintBorder ¶
func (b *BackgroundBorderPainter) PaintBorder(c framework.Canvas, r math.Rect)
func (*BackgroundBorderPainter) SetBackgroundBrush ¶
func (b *BackgroundBorderPainter) SetBackgroundBrush(brush tools.Brush)
func (*BackgroundBorderPainter) SetBorderPen ¶
func (b *BackgroundBorderPainter) SetBorderPen(pen tools.Pen)
type Button ¶
type Button struct { LinearLayout controller.Focusable // contains filtered or unexported fields }
func (*Button) Click ¶
func (b *Button) Click(ev framework.MouseEvent) (consume bool)
InputEventHandler override
func (*Button) KeyPress ¶
func (b *Button) KeyPress(ev framework.KeyboardEvent) (consume bool)
InputEventHandler override
func (*Button) SetChecked ¶
func (*Button) SetType ¶
func (b *Button) SetType(buttonType framework.ButtonType)
func (*Button) Type ¶
func (b *Button) Type() framework.ButtonType
type ButtonOuter ¶
type ButtonOuter interface { LinearLayoutOuter IsChecked() bool SetChecked(bool) }
type DrawPaintOuter ¶
type Label ¶
type Label struct { controller.Control // contains filtered or unexported fields }
func (*Label) HorizontalAlignment ¶
func (l *Label) HorizontalAlignment() framework.HorizontalAlignment
func (*Label) SetHorizontalAlignment ¶
func (l *Label) SetHorizontalAlignment(horizontalAlignment framework.HorizontalAlignment)
func (*Label) SetMultiline ¶
func (*Label) SetVerticalAlignment ¶
func (l *Label) SetVerticalAlignment(verticalAlignment framework.VerticalAlignment)
func (*Label) VerticalAlignment ¶
func (l *Label) VerticalAlignment() framework.VerticalAlignment
type LabelOuter ¶
type LabelOuter interface { controller.ControlOuter }
type LinearLayout ¶
type LinearLayout struct { controller.ContainerControlable BackgroundBorderPainter // contains filtered or unexported fields }
func (*LinearLayout) DesiredSize ¶
func (l *LinearLayout) DesiredSize(min, max math.Size) math.Size
func (*LinearLayout) Direction ¶
func (l *LinearLayout) Direction() framework.Direction
func (*LinearLayout) HorizontalAlignment ¶
func (l *LinearLayout) HorizontalAlignment() framework.HorizontalAlignment
func (*LinearLayout) Init ¶
func (l *LinearLayout) Init(outer LinearLayoutOuter, theme framework.Theme)
func (*LinearLayout) LayoutChildren ¶
func (l *LinearLayout) LayoutChildren()
func (*LinearLayout) Paint ¶
func (l *LinearLayout) Paint(c framework.Canvas)
func (*LinearLayout) SetDirection ¶
func (l *LinearLayout) SetDirection(d framework.Direction)
func (*LinearLayout) SetHorizontalAlignment ¶
func (l *LinearLayout) SetHorizontalAlignment(alignment framework.HorizontalAlignment)
func (*LinearLayout) SetSizeMode ¶
func (l *LinearLayout) SetSizeMode(mode framework.SizeMode)
func (*LinearLayout) SetVerticalAlignment ¶
func (l *LinearLayout) SetVerticalAlignment(alignment framework.VerticalAlignment)
func (*LinearLayout) SizeMode ¶
func (l *LinearLayout) SizeMode() framework.SizeMode
func (*LinearLayout) VerticalAlignment ¶
func (l *LinearLayout) VerticalAlignment() framework.VerticalAlignment
type LinearLayoutOuter ¶
type LinearLayoutOuter interface { controller.ContainerControlableOuter }
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 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() framework.Parent
func (*Parentable) SetParent ¶
func (p *Parentable) SetParent(parent framework.Parent)
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 ¶
type Window ¶
type Window struct { controller.Container controller.Attachable controller.Paddable controller.PaintChildren BackgroundBorderPainter // contains filtered or unexported fields }
func (*Window) Fullscreen ¶
func (*Window) LayoutChildren ¶
func (w *Window) LayoutChildren()
func (*Window) OnClick ¶
func (w *Window) OnClick(f func(framework.MouseEvent)) framework.EventSubscription
func (*Window) OnClose ¶
func (w *Window) OnClose(f func()) framework.EventSubscription
func (*Window) OnDoubleClick ¶
func (w *Window) OnDoubleClick(f func(framework.MouseEvent)) framework.EventSubscription
func (*Window) OnKeyDown ¶
func (w *Window) OnKeyDown(f func(framework.KeyboardEvent)) framework.EventSubscription
func (*Window) OnKeyRepeat ¶
func (w *Window) OnKeyRepeat(f func(framework.KeyboardEvent)) framework.EventSubscription
func (*Window) OnKeyStroke ¶
func (w *Window) OnKeyStroke(f func(framework.KeyStrokeEvent)) framework.EventSubscription
func (*Window) OnKeyUp ¶
func (w *Window) OnKeyUp(f func(framework.KeyboardEvent)) framework.EventSubscription
func (*Window) OnMouseDown ¶
func (w *Window) OnMouseDown(f func(framework.MouseEvent)) framework.EventSubscription
func (*Window) OnMouseEnter ¶
func (w *Window) OnMouseEnter(f func(framework.MouseEvent)) framework.EventSubscription
func (*Window) OnMouseExit ¶
func (w *Window) OnMouseExit(f func(framework.MouseEvent)) framework.EventSubscription
func (*Window) OnMouseMove ¶
func (w *Window) OnMouseMove(f func(framework.MouseEvent)) framework.EventSubscription
func (*Window) OnMouseScroll ¶
func (w *Window) OnMouseScroll(f func(framework.MouseEvent)) framework.EventSubscription
func (*Window) OnMouseUp ¶
func (w *Window) OnMouseUp(f func(framework.MouseEvent)) framework.EventSubscription
func (*Window) OnResize ¶
func (w *Window) OnResize(f func()) framework.EventSubscription
func (*Window) SetFullscreen ¶
func (*Window) SetPosition ¶
type WindowOuter ¶
type WindowOuter interface { framework.Window outer.Attachable outer.IsVisibler outer.LayoutChildren outer.PaintChilder outer.Painter outer.Parenter outer.Sized }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.