Documentation ¶
Index ¶
- func EntersStage(from, to, s Stage) bool
- func ExitsStage(from, to, s Stage) bool
- type Context
- type Embed
- func (e *Embed) Build(ctx *Context) Model
- func (e *Embed) Id() matcha.Id
- func (e *Embed) Lifecycle(from, to Stage)
- func (e *Embed) Notify(f func()) comm.Id
- func (e *Embed) Signal()
- func (e *Embed) Subscribe(n comm.Notifier)
- func (e *Embed) Unnotify(id comm.Id)
- func (e *Embed) Unsubscribe(n comm.Notifier)
- type Model
- type Option
- type Root
- type Stage
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EntersStage ¶
EntersStage returns true if from<s and to>=s.
func ExitsStage ¶
ExitsStage returns true if from>=s and to<s.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context specifies the supporting context for building a View.
func (*Context) NewEmbed ¶
NewEmbed generates a new Embed for a given key. NewEmbed is a convenience around NewEmbed(ctx.NewId(key)).
func (*Context) WithPrefix ¶
WithPrefix returns a new Context. Calls to this Prev and NewId on this context will be prepended with key.
type Embed ¶
type Embed struct {
// contains filtered or unexported fields
}
Embed is a convenience struct that provides a default implementation of View. It also wraps a comm.Relay.
func (*Embed) Unsubscribe ¶
Unsubscribe calls Unsubscribe(n) on the underlying comm.Relay.
type Model ¶
type Model struct { Children []View Layouter layout.Layouter Painter paint.Painter Options []Option NativeViewName string NativeViewState proto.Message NativeValues map[string]proto.Message NativeFuncs map[string]interface{} }
Model describes the view and its children.
Directories ¶
Path | Synopsis |
---|---|
Package alert implements basic alerts.
|
Package alert implements basic alerts. |
Package basicview implements an empty view.
|
Package basicview implements an empty view. |
Package button implements a native button view.
|
Package button implements a native button view. |
Package button implements a view that can display an image.
|
Package button implements a view that can display an image. |
Package button implements a native progress view.
|
Package button implements a native progress view. |
Package button implements a native scroll view.
|
Package button implements a native scroll view. |
Package segmentview implements a native segmented control.
|
Package segmentview implements a native segmented control. |
Package segmentview implements a native slider.
|
Package segmentview implements a native slider. |
Package switchview implements a native switch.
|
Package switchview implements a native switch. |
Package urlimageview implements a view which loads and displays an image.
|
Package urlimageview implements a view which loads and displays an image. |
Click to show internal directories.
Click to hide internal directories.