outer

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachable

type Attachable interface {

	// Attached returns true if the control is directly or indirectly attached
	// to a window.
	Attached() bool

	// Attach is called when the control is directly or indirectly attached to a
	// window.
	// Attach should only be called by the parent of the control.
	Attach()

	// Detach is called when the control is directly or indirectly detached from a
	// window.
	// Detach should only be called by the parent of the control.
	Detach()

	// OnAttach subscribes f to be called whenever the control is attached.
	// OnDetach subscribes f to be called whenever the control is detached.
	OnAttach(func()) framework.EventSubscription
	OnDetach(func()) framework.EventSubscription
}

type Draw

type Draw interface {
	// Draw draws the control's visual apperance into the returned, new canvas.
	// Draw is typically called by the parent of the control - calling Draw will
	// not issue a re-draw of an attached control.
	Draw() framework.Canvas
}

type IsVisibler

type IsVisibler interface {
	// IsVisible returns true if the control is visible.
	IsVisible() bool
}

type Layout

type Layout interface {
	Layout(math.Rect)
}

type LayoutChildren

type LayoutChildren interface {
	LayoutChildren()
}

type PaintChilder

type PaintChilder interface {
	PaintChild(c framework.Canvas, child *framework.Child, idx int)
}

type Painter

type Painter interface {
	Paint(framework.Canvas)
}

type Parenter

type Parenter interface {

	// Parent returns the parent of the control.
	Parent() framework.Parent
}

type Redrawer

type Redrawer interface {
	Redraw()
}

type Relayouter

type Relayouter interface {
	Relayout()
}

type Sized

type Sized interface {
	// Size returns the size of the control. If the control is not attached, then
	// the returned size is undefined.
	Size() math.Size

	// SetSize sets the size of the control to the specified value.
	// SetSize should only be called by the parent of the control during layout.
	SetSize(math.Size)
}

Jump to

Keyboard shortcuts

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