4/4/2023 0 Comments Using flowlayout r shinyTo allow size decreases as well as // increases, set ShrinkAcross. ShrinkAlong bool // ExpandAcross is whether the child's laid out size should increase along // the Flow's cross-axis if there is a space surplus (the child's measured // size is less than the parent's size). To allow // size increases as well as decreases, set ExpandAlong. To allow // size decreases as well as increases, set ShrinkAlong.ĮxpandAlong bool // ShrinkAlong is whether the child's laid out size should decrease along // the Flow's axis, based on AlongWeight, if there is a space deficit (the // children's measured size total more than the parent's size). // A negative AlongWeight is equivalent to zero.ĪlongWeight int // ExpandAlong is whether the child's laid out size should increase along // the Flow's axis, based on AlongWeight, if there is a space surplus (the // children's measured size total less than the parent's size). For example, if an AxisHorizontal Flow's // Rect width was 100 pixels greater than the sum of its children's natural // widths, and three children had non-zero FlowLayoutData.AlongWeight // values 6, 3 and 1 (and their FlowLayoutData.ExpandAlong values were // true) then those children's laid out widths would be larger than their // natural widths by 60, 30 and 10 pixels. AlongWeight is the relative weight for distributing any space surplus or // deficit along the Flow's axis. func (w *Uniform) PaintBase(ctx *node.PaintBaseContext, origin image.Point) error.func NewUniform(c theme.Color, inner node.Node) *Uniform.func (w *Text) PaintBase(ctx *node.PaintBaseContext, origin image.Point) error.func (w *Text) Paint(ctx *node.PaintContext, origin image.Point) error.func (w *Text) Measure(t *theme.Theme, widthHint, heightHint int).func (w *Sizer) Measure(t *theme.Theme, widthHint, heightHint int).func NewSizer(naturalWidth, naturalHeight unit.Value, inner node.Node) *Sizer.func (w *Sheet) PaintBase(ctx *node.PaintBaseContext, origin image.Point) error.func (w *Sheet) Paint(ctx *node.PaintContext, origin image.Point) (retErr error).func (w *Sheet) OnLifecycleEvent(e lifecycle.Event).func (w *Sheet) OnChildMarked(child node.Node, newMarks node.Marks).func (w *Padder) Measure(t *theme.Theme, widthHint, heightHint int).func (w *Padder) Layout(t *theme.Theme).func NewPadder(a Axis, margin unit.Value, inner node.Node) *Padder.func (w *Label) PaintBase(ctx *node.PaintBaseContext, origin image.Point) error.func (w *Label) Measure(t *theme.Theme, widthHint, heightHint int).func (w *Image) PaintBase(ctx *node.PaintBaseContext, origin image.Point) error.func (w *Image) Measure(t *theme.Theme, widthHint, heightHint int).func NewImage(src image.Image, srcRect image.Rectangle) *Image.func (w *Flow) Measure(t *theme.Theme, widthHint, heightHint int).func WithLayoutData(n node.Node, layoutData interface) node.Node.func RunWindow(s screen.Screen, root node.Node, opts *RunWindowOptions) error. TODO: give an overview and some example code. Package widget provides graphical user interface widgets. NewSizer(naturalWidth, naturalHeight, inner)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |