Documentation ¶
Index ¶
- func Layout(ops *op.Ops, do func(ops *op.Ops))
- func PostLayout(ops *op.Ops, do func(ops *op.Ops))
- func PrintBoundingRectTo(w io.Writer, n node.Node)
- type AlignGetter
- type AlignSetter
- type Aligner
- type Alignment
- type Arrangement
- type ArrangementSetter
- type Arrangementer
- type BoundingRect
- type BoundingRectGetter
- type Clip
- type ClipSetter
- type Constraints
- type Context
- type Dimensions
- type EdgeInset
- type EdgeInsetOffsetGetter
- type EdgeInsetSetter
- type FlexWeight
- type Offset
- type OffsetSetter
- type Phase
- type PhaseHandler
- type PhaseHandlersSetter
- type PhaseRecorder
- func (d *PhaseRecorder) BoundingRect() BoundingRect
- func (d *PhaseRecorder) PositionBy(calc func() (x unit.Dp, y unit.Dp))
- func (d *PhaseRecorder) RecordPosition(x unit.Dp, y unit.Dp)
- func (d *PhaseRecorder) RecordSize(w unit.Dp, h unit.Dp)
- func (d *PhaseRecorder) SetPhaseHandlers(handlers ...PhaseHandler)
- type PositionSetter
- type Positioner
- type Scrollable
- type ScrollableSetter
- type Spacer
- type SpacingSetter
- type WeightGetter
- type WeightSetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlignGetter ¶
type AlignGetter interface {
Align() Alignment
}
type AlignSetter ¶
type AlignSetter interface {
SetAlign(align Alignment)
}
type Arrangement ¶
type Arrangement = arrangement.Arrangement
type ArrangementSetter ¶
type ArrangementSetter interface {
SetArrangement(Arrangement Arrangement)
}
type Arrangementer ¶
type Arrangementer struct {
Arrangement Arrangement
}
func (*Arrangementer) Eq ¶
func (r *Arrangementer) Eq(v *Arrangementer) cmp.Result
func (*Arrangementer) SetArrangement ¶
func (a *Arrangementer) SetArrangement(arrangement Arrangement)
type BoundingRect ¶
func GetBoundingClientRect ¶
func GetBoundingClientRect(n node.Node) (boundingRect BoundingRect)
func GetBoundingRect ¶
func GetBoundingRect(n node.Node) (boundingRect BoundingRect)
func (BoundingRect) String ¶
func (r BoundingRect) String() string
type BoundingRectGetter ¶
type BoundingRectGetter interface {
BoundingRect() BoundingRect
}
type ClipSetter ¶
type ClipSetter interface {
SetClip(enabled bool)
}
type Constraints ¶
type Constraints = layout.Constraints
type Dimensions ¶
type Dimensions = layout.Dimensions
type EdgeInset ¶
func (*EdgeInset) EdgeInsetOffset ¶
type EdgeInsetOffsetGetter ¶
type EdgeInsetOffsetGetter interface {
EdgeInsetOffset() Offset
}
type EdgeInsetSetter ¶
type FlexWeight ¶
type FlexWeight struct {
// contains filtered or unexported fields
}
func (*FlexWeight) Eq ¶
func (r *FlexWeight) Eq(v *FlexWeight) cmp.Result
func (*FlexWeight) SetWeight ¶
func (w *FlexWeight) SetWeight(weight float32)
func (*FlexWeight) Weight ¶
func (w *FlexWeight) Weight() (float32, bool)
type OffsetSetter ¶
type PhaseHandler ¶
func OnBeforePosition ¶
func OnBeforePosition(action func()) PhaseHandler
func OnBeforeSize ¶
func OnBeforeSize(action func()) PhaseHandler
func OnDidPosition ¶
func OnDidPosition(action func()) PhaseHandler
func OnDidSize ¶
func OnDidSize(action func()) PhaseHandler
type PhaseHandlersSetter ¶
type PhaseHandlersSetter interface {
SetPhaseHandlers(handlers ...PhaseHandler)
}
type PhaseRecorder ¶
func (*PhaseRecorder) BoundingRect ¶
func (d *PhaseRecorder) BoundingRect() BoundingRect
func (*PhaseRecorder) PositionBy ¶
func (d *PhaseRecorder) PositionBy(calc func() (x unit.Dp, y unit.Dp))
func (*PhaseRecorder) RecordPosition ¶
func (d *PhaseRecorder) RecordPosition(x unit.Dp, y unit.Dp)
func (*PhaseRecorder) RecordSize ¶
func (d *PhaseRecorder) RecordSize(w unit.Dp, h unit.Dp)
func (*PhaseRecorder) SetPhaseHandlers ¶
func (d *PhaseRecorder) SetPhaseHandlers(handlers ...PhaseHandler)
type PositionSetter ¶
type Positioner ¶
func (*Positioner) Eq ¶
func (p *Positioner) Eq(v *Positioner) cmp.Result
func (*Positioner) SetPosition ¶
func (p *Positioner) SetPosition(position position.Position)
type Scrollable ¶
func (*Scrollable) Eq ¶
func (s *Scrollable) Eq(v *Scrollable) cmp.Result
func (*Scrollable) SetScrollable ¶
func (s *Scrollable) SetScrollable(axis direction.Axis, enabled bool)
type ScrollableSetter ¶
type Spacer ¶
func (*Spacer) SetSpacing ¶
type SpacingSetter ¶
type WeightGetter ¶
type WeightSetter ¶
type WeightSetter interface {
SetWeight(weight float32)
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.