widget

package
v0.0.0-...-311b70d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2018 License: BSD-3-Clause Imports: 8 Imported by: 1

Documentation

Index

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 (*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 BackgroundBorderPainterOuter

type BackgroundBorderPainterOuter interface {
	outer.Redrawer
}

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) Init

func (b *Button) Init(outer ButtonOuter, theme framework.Theme)

func (*Button) IsChecked

func (b *Button) IsChecked() bool

func (*Button) KeyPress

func (b *Button) KeyPress(ev framework.KeyboardEvent) (consume bool)

InputEventHandler override

func (*Button) Label

func (b *Button) Label() framework.Label

func (*Button) SetChecked

func (b *Button) SetChecked(checked bool)

func (*Button) SetText

func (b *Button) SetText(text string)

func (*Button) SetType

func (b *Button) SetType(buttonType framework.ButtonType)

func (*Button) Text

func (b *Button) Text() string

func (*Button) Type

func (b *Button) Type() framework.ButtonType

type ButtonOuter

type ButtonOuter interface {
	LinearLayoutOuter
	IsChecked() bool
	SetChecked(bool)
}

type DrawPaint

type DrawPaint struct {
	// contains filtered or unexported fields
}

func (*DrawPaint) Draw

func (d *DrawPaint) Draw() framework.Canvas

func (*DrawPaint) Init

func (d *DrawPaint) Init(outer DrawPaintOuter, theme framework.Theme)

func (*DrawPaint) Redraw

func (d *DrawPaint) Redraw()

type DrawPaintOuter

type DrawPaintOuter interface {
	outer.Attachable
	outer.Painter
	outer.Parenter
	outer.Sized
}

type Label

type Label struct {
	controller.Control
	// contains filtered or unexported fields
}

func (*Label) Color

func (l *Label) Color() tools.Color

func (*Label) DesiredSize

func (l *Label) DesiredSize(min, max math.Size) math.Size

func (*Label) Font

func (l *Label) Font() framework.Font

func (*Label) HorizontalAlignment

func (l *Label) HorizontalAlignment() framework.HorizontalAlignment

func (*Label) Init

func (l *Label) Init(outer LabelOuter, theme framework.Theme, font framework.Font, color tools.Color)

func (*Label) Multiline

func (l *Label) Multiline() bool

func (*Label) Paint

func (l *Label) Paint(c framework.Canvas)

parts.DrawPaint overrides

func (*Label) SetColor

func (l *Label) SetColor(color tools.Color)

func (*Label) SetFont

func (l *Label) SetFont(font framework.Font)

}

func (*Label) SetHorizontalAlignment

func (l *Label) SetHorizontalAlignment(horizontalAlignment framework.HorizontalAlignment)

func (*Label) SetMultiline

func (l *Label) SetMultiline(multiline bool)

func (*Label) SetText

func (l *Label) SetText(text string)

func (*Label) SetVerticalAlignment

func (l *Label) SetVerticalAlignment(verticalAlignment framework.VerticalAlignment)

func (*Label) Text

func (l *Label) Text() string

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) Padding

func (p *Paddable) Padding() math.Spacing

func (*Paddable) SetPadding

func (p *Paddable) SetPadding(m math.Spacing)

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) IsVisible

func (v *Visible) IsVisible() bool

func (*Visible) SetVisible

func (v *Visible) SetVisible(visible bool)

type VisibleOuter

type VisibleOuter interface {
	outer.Redrawer
	outer.Parenter
}

type Window

type Window struct {
	controller.Container
	controller.Attachable
	controller.Paddable
	controller.PaintChildren
	BackgroundBorderPainter
	// contains filtered or unexported fields
}

func (*Window) Close

func (w *Window) Close()

func (*Window) Draw

func (w *Window) Draw() framework.Canvas

func (*Window) Focus

func (w *Window) Focus() framework.Focusable

func (*Window) Fullscreen

func (w *Window) Fullscreen() bool

func (*Window) Hide

func (w *Window) Hide()

func (*Window) Init

func (w *Window) Init(outer WindowOuter, theme framework.Theme, width, height int, title string)

func (*Window) IsVisible

func (w *Window) IsVisible() bool

func (*Window) LayoutChildren

func (w *Window) LayoutChildren()

func (*Window) OnClick

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 (*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 (*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) Paint

func (w *Window) Paint(c framework.Canvas)

func (*Window) Parent

func (w *Window) Parent() framework.Parent

func (*Window) Position

func (w *Window) Position() math.Point

func (*Window) Redraw

func (w *Window) Redraw()

func (*Window) Relayout

func (w *Window) Relayout()

func (*Window) Scale

func (w *Window) Scale() float32

func (*Window) SetFocus

func (w *Window) SetFocus(c framework.Control) bool

func (*Window) SetFullscreen

func (w *Window) SetFullscreen(fullscreen bool)

func (*Window) SetPosition

func (w *Window) SetPosition(pos math.Point)

func (*Window) SetScale

func (w *Window) SetScale(scale float32)

func (*Window) SetSize

func (w *Window) SetSize(size math.Size)

func (*Window) SetTitle

func (w *Window) SetTitle(t string)

func (*Window) Show

func (w *Window) Show()

func (*Window) Size

func (w *Window) Size() math.Size

func (*Window) Title

func (w *Window) Title() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL