parts

package
v0.0.0-...-f24c7a3 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: BSD-3-Clause Imports: 5 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 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()) guix.EventSubscription

func (*Attachable) OnDetach

func (a *Attachable) OnDetach(f func()) guix.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() guix.Brush

func (*BackgroundBorderPainter) BorderPen

func (b *BackgroundBorderPainter) BorderPen() guix.Pen

func (*BackgroundBorderPainter) Init

func (*BackgroundBorderPainter) PaintBackground

func (b *BackgroundBorderPainter) PaintBackground(c guix.Canvas, r math.Rect)

func (*BackgroundBorderPainter) PaintBorder

func (b *BackgroundBorderPainter) PaintBorder(c guix.Canvas, r math.Rect)

func (*BackgroundBorderPainter) SetBackgroundBrush

func (b *BackgroundBorderPainter) SetBackgroundBrush(brush guix.Brush)

func (*BackgroundBorderPainter) SetBorderPen

func (b *BackgroundBorderPainter) SetBorderPen(pen guix.Pen)

type BackgroundBorderPainterOuter

type BackgroundBorderPainterOuter interface {
	outer.Redrawer
}

type Container

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

func (*Container) AddChild

func (c *Container) AddChild(control guix.Control) *guix.Child

guix.Container compliance

func (*Container) AddChildAt

func (c *Container) AddChildAt(index int, control guix.Control) *guix.Child

func (*Container) Children

func (c *Container) Children() guix.Children

guix.Parent compliance

func (*Container) ContainsPoint

func (c *Container) ContainsPoint(p math.Point) bool

func (*Container) Init

func (c *Container) Init(outer ContainerOuter)

func (*Container) IsMouseEventTarget

func (c *Container) IsMouseEventTarget() bool

func (*Container) RelayoutSuspended

func (c *Container) RelayoutSuspended() bool

RelayoutSuspended returns true if adding or removing a child Control to this Container will not trigger a relayout of this Container. The default is false where any mutation will trigger a relayout.

func (*Container) RemoveAll

func (c *Container) RemoveAll()

func (*Container) RemoveChild

func (c *Container) RemoveChild(control guix.Control)

func (*Container) RemoveChildAt

func (c *Container) RemoveChildAt(index int)

func (*Container) SetMouseEventTarget

func (c *Container) SetMouseEventTarget(mouseEventTarget bool)

func (*Container) SetRelayoutSuspended

func (c *Container) SetRelayoutSuspended(enable bool)

SetRelayoutSuspended enables or disables relayout of the Container on adding or removing a child Control to this Container.

type DrawPaint

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

func (*DrawPaint) Draw

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

func (*DrawPaint) Init

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

func (*DrawPaint) Redraw

func (d *DrawPaint) Redraw()

type DrawPaintOuter

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

type Focusable

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

func (*Focusable) GainedFocus

func (f *Focusable) GainedFocus()

func (*Focusable) HasFocus

func (f *Focusable) HasFocus() bool

func (*Focusable) Init

func (f *Focusable) Init(outer FocusableOuter)

func (*Focusable) IsFocusable

func (f *Focusable) IsFocusable() bool

guix.Control compliance

func (*Focusable) LostFocus

func (f *Focusable) LostFocus()

func (*Focusable) OnGainedFocus

func (f *Focusable) OnGainedFocus(l func()) guix.EventSubscription

func (*Focusable) OnLostFocus

func (f *Focusable) OnLostFocus(l func()) guix.EventSubscription

func (*Focusable) SetFocusable

func (f *Focusable) SetFocusable(bool)

type FocusableOuter

type FocusableOuter interface{}

type InputEventHandler

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

func (*InputEventHandler) Click

func (m *InputEventHandler) Click(ev guix.MouseEvent) (consume bool)

func (*InputEventHandler) DoubleClick

func (m *InputEventHandler) DoubleClick(ev guix.MouseEvent) (consume bool)

func (*InputEventHandler) Init

func (*InputEventHandler) IsMouseDown

func (m *InputEventHandler) IsMouseDown(button guix.MouseButton) bool

func (*InputEventHandler) IsMouseOver

func (m *InputEventHandler) IsMouseOver() bool

func (*InputEventHandler) KeyDown

func (m *InputEventHandler) KeyDown(ev guix.KeyboardEvent)

func (*InputEventHandler) KeyPress

func (m *InputEventHandler) KeyPress(ev guix.KeyboardEvent) (consume bool)

func (*InputEventHandler) KeyRepeat

func (m *InputEventHandler) KeyRepeat(ev guix.KeyboardEvent)

func (*InputEventHandler) KeyStroke

func (m *InputEventHandler) KeyStroke(ev guix.KeyStrokeEvent) (consume bool)

func (*InputEventHandler) KeyUp

func (m *InputEventHandler) KeyUp(ev guix.KeyboardEvent)

func (*InputEventHandler) MouseDown

func (m *InputEventHandler) MouseDown(ev guix.MouseEvent)

func (*InputEventHandler) MouseEnter

func (m *InputEventHandler) MouseEnter(ev guix.MouseEvent)

func (*InputEventHandler) MouseExit

func (m *InputEventHandler) MouseExit(ev guix.MouseEvent)

func (*InputEventHandler) MouseMove

func (m *InputEventHandler) MouseMove(ev guix.MouseEvent)

func (*InputEventHandler) MouseScroll

func (m *InputEventHandler) MouseScroll(ev guix.MouseEvent) (consume bool)

func (*InputEventHandler) MouseUp

func (m *InputEventHandler) MouseUp(ev guix.MouseEvent)

func (*InputEventHandler) OnClick

func (*InputEventHandler) OnDoubleClick

func (m *InputEventHandler) OnDoubleClick(f func(guix.MouseEvent)) guix.EventSubscription

func (*InputEventHandler) OnKeyDown

func (*InputEventHandler) OnKeyPress

func (*InputEventHandler) OnKeyRepeat

func (m *InputEventHandler) OnKeyRepeat(f func(guix.KeyboardEvent)) guix.EventSubscription

func (*InputEventHandler) OnKeyStroke

func (*InputEventHandler) OnKeyUp

func (*InputEventHandler) OnMouseDown

func (m *InputEventHandler) OnMouseDown(f func(guix.MouseEvent)) guix.EventSubscription

func (*InputEventHandler) OnMouseEnter

func (m *InputEventHandler) OnMouseEnter(f func(guix.MouseEvent)) guix.EventSubscription

func (*InputEventHandler) OnMouseExit

func (m *InputEventHandler) OnMouseExit(f func(guix.MouseEvent)) guix.EventSubscription

func (*InputEventHandler) OnMouseMove

func (m *InputEventHandler) OnMouseMove(f func(guix.MouseEvent)) guix.EventSubscription

func (*InputEventHandler) OnMouseScroll

func (m *InputEventHandler) OnMouseScroll(f func(guix.MouseEvent)) guix.EventSubscription

func (*InputEventHandler) OnMouseUp

func (m *InputEventHandler) OnMouseUp(f func(guix.MouseEvent)) guix.EventSubscription

type InputEventHandlerOuter

type InputEventHandlerOuter interface{}

type Layoutable

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

func (*Layoutable) Init

func (l *Layoutable) Init(outer LayoutableOuter, theme guix.Theme)

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)

func (*Layoutable) SetSize

func (l *Layoutable) SetSize(size math.Size)

func (*Layoutable) Size

func (l *Layoutable) Size() math.Size

type LayoutableOuter

type LayoutableOuter interface {
	outer.Parenter
	outer.Redrawer
}

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

func (l *LinearLayout) Direction() guix.Direction

func (*LinearLayout) HorizontalAlignment

func (l *LinearLayout) HorizontalAlignment() guix.HorizontalAlignment

func (*LinearLayout) Init

func (l *LinearLayout) Init(outer LinearLayoutOuter)

func (*LinearLayout) LayoutChildren

func (l *LinearLayout) LayoutChildren()

func (*LinearLayout) SetDirection

func (l *LinearLayout) SetDirection(d guix.Direction)

func (*LinearLayout) SetHorizontalAlignment

func (l *LinearLayout) SetHorizontalAlignment(alignment guix.HorizontalAlignment)

func (*LinearLayout) SetSizeMode

func (l *LinearLayout) SetSizeMode(mode guix.SizeMode)

func (*LinearLayout) SetVerticalAlignment

func (l *LinearLayout) SetVerticalAlignment(alignment guix.VerticalAlignment)

func (*LinearLayout) SizeMode

func (l *LinearLayout) SizeMode() guix.SizeMode

func (*LinearLayout) VerticalAlignment

func (l *LinearLayout) VerticalAlignment() guix.VerticalAlignment

type LinearLayoutOuter

type LinearLayoutOuter interface {
	guix.Container
	outer.Sized
}

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 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 guix.Canvas)

func (*PaintChildren) PaintChild

func (p *PaintChildren) PaintChild(c guix.Canvas, child *guix.Child, idx int)

type PaintChildrenOuter

type PaintChildrenOuter interface {
	guix.Container
	outer.PaintChilder
	outer.Sized
}

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() guix.Parent

func (*Parentable) SetParent

func (p *Parentable) SetParent(parent guix.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
}

Jump to

Keyboard shortcuts

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