rendering

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: BSD-3-Clause Imports: 19 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package rendering holds the render tree: RenderObject, RenderBox, slivers, layers and the PipelineOwner.

Flutter: package:flutter/rendering.dart.

Index

Constants

View Source
const (
	// ListWheelDefaultDiameterRatio is the default ratio of the diameter of the
	// cylinder to the main axis extent of the viewport.
	//
	// Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.defaultDiameterRatio
	ListWheelDefaultDiameterRatio = 2.0
	// ListWheelDefaultPerspective is the default perspective.
	//
	// Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.defaultPerspective
	ListWheelDefaultPerspective = 0.003
)

The defaults and messages of RenderListWheelViewport.

View Source
const (

	// DefaultFrameTimingCapacity is how many frames a FrameTimingHistory keeps.
	DefaultFrameTimingCapacity = 240
)
View Source
const MaxLinesUnlimited = 0

MaxLinesUnlimited is the value of the MaxLines of RenderEditableOpts that means Flutter's maxLines: null, no limit to the number of lines. An unset MaxLines is Flutter's default, 1.

Deviation: Flutter's maxLines is a nullable int whose default is 1; an Opt cannot tell the default from null (SPEC §12.10).

Flutter: rendering/editable.dart RenderEditable.maxLines

View Source
const RenderAbstractViewportDefaultCacheExtent = 250.0

RenderAbstractViewportDefaultCacheExtent is the default cache extent in pixels.

Flutter: rendering/viewport.dart RenderAbstractViewport.defaultCacheExtent

Variables

View Source
var ChildLayoutHelper = childLayoutHelper{}

ChildLayoutHelper has the functions that a render box uses to lay out a child and measure it, the real way and the dry way. The pairs can be passed as the ChildLayouter and ChildBaselineGetter of a layout algorithm that has a dry and a real mode.

Flutter: rendering/layout_helper.dart ChildLayoutHelper

View Source
var ChildVicinityInvalid = ChildVicinity{XIndex: -1, YIndex: -1}

ChildVicinityInvalid is the vicinity of no child.

Flutter: widgets/two_dimensional_viewport.dart ChildVicinity.invalid

View Source
var DefaultRepaintColor = painting.NewHSVColorFromAHSV(0.4, 60, 1, 1)

DefaultRepaintColor is the value of DebugOptions.CurrentRepaintColor before the rainbow changes it: a yellow with 40% opacity.

Flutter: rendering/debug.dart _kDebugDefaultRepaintColor

View Source
var NoBaseline = BaselineOffset{}

NoBaseline is a BaselineOffset without a baseline.

Flutter: rendering/box.dart BaselineOffset.noBaseline

View Source
var RelativeRectFill = RelativeRect{}

RelativeRectFill is a rectangle that covers the whole container.

Flutter: rendering/stack.dart RelativeRect.fill

View Source
var RenderViewportExcludeFromScrolling = semantics.NewSemanticsTag("RenderViewport.excludeFromScrolling")

RenderViewportExcludeFromScrolling is the tag of the children that the semantics of the viewport leave out of scrolling.

Flutter: rendering/viewport.dart RenderViewport.excludeFromScrolling

View Source
var RenderViewportUseTwoPaneSemantics = semantics.NewSemanticsTag("RenderViewport.twoPane")

RenderViewportUseTwoPaneSemantics is the tag that the viewport gives its children, so that the semantics of the children that are out of view stay in a separate pane.

Flutter: rendering/viewport.dart RenderViewport.useTwoPaneSemantics

View Source
var SliverGeometryZero = SliverGeometry{}

SliverGeometryZero is the geometry of a sliver that takes no space.

Flutter: rendering/sliver.dart SliverGeometry.zero

View Source
var TreeSliverIndentationTypeNone = TreeSliverIndentationType{0.0}

TreeSliverIndentationTypeNone does not indent the children.

Flutter: rendering/sliver_tree.dart TreeSliverIndentationType.none

View Source
var TreeSliverIndentationTypeStandard = TreeSliverIndentationType{10.0}

TreeSliverIndentationTypeStandard is the standard indentation, 10 pixels a level.

Flutter: rendering/sliver_tree.dart TreeSliverIndentationType.standard

Functions

func ApplyGrowthDirectionToAxisDirection

func ApplyGrowthDirectionToAxisDirection(axisDirection painting.AxisDirection, growthDirection GrowthDirection) painting.AxisDirection

ApplyGrowthDirectionToAxisDirection flips the axis direction for a reverse growth direction.

Flutter: rendering/sliver.dart applyGrowthDirectionToAxisDirection

func DebugCheckHasBoundedAxis

func DebugCheckHasBoundedAxis(axis painting.Axis, constraints BoxConstraints) bool

DebugCheckHasBoundedAxis panics in debug builds, with the tag ViewportUnboundedMainAxis or ViewportUnboundedCrossAxis, if a viewport that scrolls along the axis is given unbounded constraints.

Flutter: rendering/debug.dart debugCheckHasBoundedAxis

func DebugDumpRenderObjectSemanticsTree

func DebugDumpRenderObjectSemanticsTree(root RenderObject) string

DebugDumpRenderObjectSemanticsTree is the dump of the semantics compilation of a render tree, for debugging the framework.

Flutter: rendering/object.dart debugDumpRenderObjectSemanticsTree

func DebugInstrumentRepaintCompositedChild

func DebugInstrumentRepaintCompositedChild(child RenderObject, debugAlsoPaintedParent bool, customContext *PaintingContext)

DebugInstrumentRepaintCompositedChild repaints a boundary into a custom context (debug builds only).

Flutter: rendering/object.dart PaintingContext.debugInstrumentRepaintCompositedChild

func DebugPaintPadding

func DebugPaintPadding(canvas *ui.Canvas, outerRect ui.Rect, innerRect foundation.Opt[ui.Rect], outlineWidth float64)

DebugPaintPadding paints the padding between the outer and the inner rectangle in a debug color; without an inner rectangle it paints the outer one in gray. Debug builds only.

Flutter: rendering/debug.dart debugPaintPadding

func DefaultApplyPaintTransformInline

func DefaultApplyPaintTransformInline(child Box, transform *ui.Matrix4)

DefaultApplyPaintTransformInline translates the transform by the offset of the inline child, or zeroes it if the child was not laid out.

Flutter: rendering/paragraph.dart RenderInlineChildrenContainerDefaults.defaultApplyPaintTransform

func DefaultComputeDistanceToFirstActualBaseline

func DefaultComputeDistanceToFirstActualBaseline[C Box](c *ContainerRenderObject[C], baseline ui.TextBaseline) foundation.Opt[float64]

DefaultComputeDistanceToFirstActualBaseline is the distance to the baseline of the first child that has one, plus the child's vertical offset.

Flutter: rendering/box.dart RenderBoxContainerDefaultsMixin.defaultComputeDistanceToFirstActualBaseline

func DefaultComputeDistanceToHighestActualBaseline

func DefaultComputeDistanceToHighestActualBaseline[C Box](c *ContainerRenderObject[C], baseline ui.TextBaseline) foundation.Opt[float64]

DefaultComputeDistanceToHighestActualBaseline is the smallest distance to a baseline among the children, plus the children's vertical offsets.

Flutter: rendering/box.dart RenderBoxContainerDefaultsMixin.defaultComputeDistanceToHighestActualBaseline

func DefaultHitTestChildren

func DefaultHitTestChildren[C Box](c *ContainerRenderObject[C], result *BoxHitTestResult, position ui.Offset) bool

DefaultHitTestChildren hit tests the children from the last (front) to the first, each at its offset, and stops at the first hit.

Flutter: rendering/box.dart RenderBoxContainerDefaultsMixin.defaultHitTestChildren

func DefaultPaint

func DefaultPaint[C Box](c *ContainerRenderObject[C], context *PaintingContext, offset ui.Offset)

DefaultPaint paints the children in order, each at its offset.

Flutter: rendering/box.dart RenderBoxContainerDefaultsMixin.defaultPaint

func GetChildrenAsList

func GetChildrenAsList[C Box](c *ContainerRenderObject[C]) []C

GetChildrenAsList returns the children in order.

Flutter: rendering/box.dart RenderBoxContainerDefaultsMixin.getChildrenAsList

func HitTestInlineChildren

func HitTestInlineChildren(c *ContainerRenderObject[Box], result *BoxHitTestResult, position ui.Offset) bool

HitTestInlineChildren hit tests the children at their offsets.

Flutter: rendering/paragraph.dart RenderInlineChildrenContainerDefaults.hitTestInlineChildren

func InitContainerLayer

func InitContainerLayer(c *ContainerLayer, self Layer)

InitContainerLayer sets the outer object of a layer that embeds ContainerLayer.

Flutter: no counterpart (the self pattern, SPEC §12.5)

func InitContainerRenderObject

func InitContainerRenderObject[C RenderObject](m *ContainerRenderObject[C], host RenderObject)

InitContainerRenderObject registers the mixin with its render object.

Flutter: no counterpart (the self pattern, SPEC §12.5)

func InitLayer

func InitLayer(base *LayerBase, self Layer)

InitLayer sets the outer object of a layer. The constructor of a type that embeds LayerBase calls it.

Flutter: no counterpart (the self pattern, SPEC §12.5)

func InitLayoutCallbackMixin

func InitLayoutCallbackMixin(m *LayoutCallbackMixin, host RenderObject, layoutCallback func())

InitLayoutCallbackMixin registers the layout callback of the render object.

Flutter: no counterpart (the self pattern, SPEC §12.5)

func InitOffsetLayer

func InitOffsetLayer(l *OffsetLayer, self Layer, opts ...OffsetLayerOpts)

InitOffsetLayer sets the outer object of a layer that embeds OffsetLayer.

Flutter: no counterpart (the self pattern, SPEC §12.5)

func InitRenderAligningShiftedBox

func InitRenderAligningShiftedBox(a *RenderAligningShiftedBox, self Box, alignment painting.AlignmentGeometry, textDirection ui.TextDirection, child Box)

InitRenderAligningShiftedBox sets the outer object, the alignment (nil is the center), the text direction and the child (nil for none).

Flutter: rendering/shifted_box.dart RenderAligningShiftedBox.new

func InitRenderBox

func InitRenderBox(b *RenderBox, self Box)

InitRenderBox sets the outer object of a render box.

Flutter: no counterpart (the self pattern, SPEC §12.5)

func InitRenderConstrainedBox

func InitRenderConstrainedBox(r *RenderConstrainedBox, self Box, additionalConstraints BoxConstraints, child Box)

InitRenderConstrainedBox sets up a RenderConstrainedBox embedded in the render object self, which subclasses it (the self pattern, SPEC §12.5).

Flutter: no counterpart (the self pattern, SPEC §12.5)

func InitRenderFlex

func InitRenderFlex(r *RenderFlex, self Box, children []Box, o RenderFlexOpts)

InitRenderFlex initializes the flex embedded in a render object that extends it (Dart's subclass): self is the outer value, whose methods the framework calls, such as PerformLayout.

Flutter: rendering/flex.dart RenderFlex.new

func InitRenderListBody

func InitRenderListBody(r *RenderListBody, self Box, opts ...RenderListBodyOpts)

InitRenderListBody sets up a RenderListBody that a render object outside rendering subclasses: self is the outer object.

Flutter: rendering/list_body.dart RenderListBody.new

func InitRenderMouseRegion

func InitRenderMouseRegion(r *RenderMouseRegion, self Box, child Box, o RenderMouseRegionOpts)

InitRenderMouseRegion sets up the region embedded in the outer object, which is the box that the framework sees.

Flutter: no counterpart (the self pattern, SPEC §12.5)

func InitRenderObject

func InitRenderObject(b *RenderObjectBase, self RenderObject)

InitRenderObject sets the outer object of a render object. The constructor of a type that embeds RenderObjectBase calls it (or the Init function of the struct it embeds, such as InitRenderBox).

Flutter: no counterpart (the self pattern, SPEC §12.5)

func InitRenderObjectWithChild

func InitRenderObjectWithChild[C RenderObject](m *RenderObjectWithChild[C], host RenderObject)

InitRenderObjectWithChild registers the mixin with its render object.

Flutter: no counterpart (the self pattern, SPEC §12.5)

func InitRenderOpacity

func InitRenderOpacity(r *RenderOpacity, self Box, child Box, opts ...RenderOpacityOpts)

InitRenderOpacity sets the outer object of an opacity box, for a render box that embeds RenderOpacity and overrides some of its methods.

Flutter: rendering/proxy_box.dart RenderOpacity.new

func InitRenderProxyBox

func InitRenderProxyBox(p *RenderProxyBox, self Box, child Box)

InitRenderProxyBox sets the outer object of a proxy box and its child (nil for none).

Flutter: rendering/proxy_box.dart RenderProxyBox.new

func InitRenderProxyBoxWithHitTestBehavior

func InitRenderProxyBoxWithHitTestBehavior(p *RenderProxyBoxWithHitTestBehavior, self Box, behavior HitTestBehavior, child Box)

InitRenderProxyBoxWithHitTestBehavior sets the outer object, the behavior (the zero value is deferToChild) and the child of the box.

Flutter: rendering/proxy_box.dart RenderProxyBoxWithHitTestBehavior.new

func InitRenderProxySliver

func InitRenderProxySliver(p *RenderProxySliver, self Sliver, child Sliver)

InitRenderProxySliver sets the outer object and the child (nil for none).

Flutter: rendering/proxy_sliver.dart RenderProxySliver.new

func InitRenderShiftedBox

func InitRenderShiftedBox(s *RenderShiftedBox, self Box, child Box)

InitRenderShiftedBox sets the outer object of a shifted box and its child (nil for none).

Flutter: rendering/shifted_box.dart RenderShiftedBox.new

func InitRenderSliver

func InitRenderSliver(s *RenderSliver, self Sliver)

InitRenderSliver sets the outer object of a sliver.

Flutter: no counterpart (the self pattern, SPEC §12.5)

func InitRenderSliverEdgeInsetsPadding

func InitRenderSliverEdgeInsetsPadding(p *RenderSliverEdgeInsetsPadding, self Sliver)

InitRenderSliverEdgeInsetsPadding sets the outer object, which must have a ResolvedPadding method.

Flutter: rendering/sliver_padding.dart RenderSliverEdgeInsetsPadding

func InitRenderSliverFixedExtentBoxAdaptor

func InitRenderSliverFixedExtentBoxAdaptor(a *RenderSliverFixedExtentBoxAdaptor, self Sliver, childManager RenderSliverBoxChildManager)

InitRenderSliverFixedExtentBoxAdaptor sets the outer object, which must have ItemExtent and ItemExtentBuilder methods, and the child manager.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverFixedExtentBoxAdaptor.new

func InitRenderSliverFloatingPersistentHeader

func InitRenderSliverFloatingPersistentHeader(h *RenderSliverFloatingPersistentHeader, self Sliver, child Box, vsync scheduler.TickerProvider, snapConfiguration *FloatingHeaderSnapConfiguration, stretchConfiguration *OverScrollHeaderStretchConfiguration, showOnScreenConfiguration *PersistentHeaderShowOnScreenConfiguration)

InitRenderSliverFloatingPersistentHeader sets the outer object (whose UpdateGeometry is called, so that a variant can replace it), the child (nil for none), the vsync (nil for none), and the snap, stretch and show on screen configurations (nil for none).

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPersistentHeader.new

func InitRenderSliverFloatingPinnedPersistentHeader

func InitRenderSliverFloatingPinnedPersistentHeader(h *RenderSliverFloatingPinnedPersistentHeader, self Sliver, child Box, vsync scheduler.TickerProvider, snapConfiguration *FloatingHeaderSnapConfiguration, stretchConfiguration *OverScrollHeaderStretchConfiguration, showOnScreenConfiguration *PersistentHeaderShowOnScreenConfiguration)

InitRenderSliverFloatingPinnedPersistentHeader sets the outer object, the child (nil for none), the vsync (nil for none), and the snap, stretch and show on screen configurations (nil for none).

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPinnedPersistentHeader.new

func InitRenderSliverMultiBoxAdaptor

func InitRenderSliverMultiBoxAdaptor(a *RenderSliverMultiBoxAdaptor, self Sliver, childManager RenderSliverBoxChildManager)

InitRenderSliverMultiBoxAdaptor sets the outer object and the child manager.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.new

func InitRenderSliverPersistentHeader

func InitRenderSliverPersistentHeader(h *RenderSliverPersistentHeader, self Sliver, child Box, stretchConfiguration *OverScrollHeaderStretchConfiguration)

InitRenderSliverPersistentHeader sets the outer object, which must have MaxExtent and MinExtent methods, the child (nil for none) and the stretch configuration (nil for none).

Flutter: rendering/sliver_persistent_header.dart RenderSliverPersistentHeader.new

func InitRenderSliverPinnedPersistentHeader

func InitRenderSliverPinnedPersistentHeader(h *RenderSliverPinnedPersistentHeader, self Sliver, child Box, stretchConfiguration *OverScrollHeaderStretchConfiguration, showOnScreenConfiguration *PersistentHeaderShowOnScreenConfiguration)

InitRenderSliverPinnedPersistentHeader sets the outer object, the child (nil for none), the stretch configuration (nil for none) and the show on screen configuration.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPinnedPersistentHeader.new

func InitRenderSliverScrollingPersistentHeader

func InitRenderSliverScrollingPersistentHeader(h *RenderSliverScrollingPersistentHeader, self Sliver, child Box, stretchConfiguration *OverScrollHeaderStretchConfiguration)

InitRenderSliverScrollingPersistentHeader sets the outer object, the child (nil for none) and the stretch configuration (nil for none).

Flutter: rendering/sliver_persistent_header.dart RenderSliverScrollingPersistentHeader.new

func InitRenderSliverSingleBoxAdapter

func InitRenderSliverSingleBoxAdapter(a *RenderSliverSingleBoxAdapter, self Sliver, child Box)

InitRenderSliverSingleBoxAdapter sets the outer object and the child (nil for none).

Flutter: rendering/sliver.dart RenderSliverSingleBoxAdapter.new

func InitRenderStack

func InitRenderStack(s *RenderStack, self Box, children []Box, o RenderStackOpts)

InitRenderStack sets the outer object of a stack, for a type that embeds RenderStack.

Flutter: rendering/stack.dart RenderStack.new

func InitRenderTwoDimensionalViewport

func InitRenderTwoDimensionalViewport(r *RenderTwoDimensionalViewport, self TwoDimensionalViewportSelf,
	horizontalOffset ViewportOffset, horizontalAxisDirection painting.AxisDirection,
	verticalOffset ViewportOffset, verticalAxisDirection painting.AxisDirection,
	delegate TwoDimensionalChildDelegate, mainAxis painting.Axis, childManager TwoDimensionalChildManager,
	opts ...RenderTwoDimensionalViewportOpts)

InitRenderTwoDimensionalViewport sets the outer object and the properties. In debug builds it panics with the tag TwoDimensionalViewportAxisInvalid when a direction is along the wrong axis.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.new

func InitRenderViewport

func InitRenderViewport(r *RenderViewport, self Box, crossAxisDirection painting.AxisDirection, offset ViewportOffset, opts ...RenderViewportOpts)

InitRenderViewport sets up the viewport; self is the outer render object, for a type that embeds RenderViewport. The panics of NewRenderViewport apply.

Flutter: rendering/viewport.dart RenderViewport.new

func InitRenderViewportBase

func InitRenderViewportBase(b *RenderViewportBase, self Box, crossAxisDirection painting.AxisDirection, offset ViewportOffset, opts RenderViewportBaseOpts)

InitRenderViewportBase sets the outer object and the properties. In debug builds the two directions along the same axis panic with the tag ViewportAxesInvalid.

Deviation: the deprecated cacheExtent and cacheExtentStyle parameters are not ported; use ScrollCacheExtent (SPEC §12.10).

Flutter: rendering/viewport.dart RenderViewportBase.new

func InitSelectionRegistrant

func InitSelectionRegistrant(r *SelectionRegistrant, self Selectable)

InitSelectionRegistrant sets the selectable that the registrant registers.

Flutter: no counterpart (the self pattern, SPEC §12.5)

func InitSemanticsAnnotations

func InitSemanticsAnnotations(a *SemanticsAnnotations, self RenderObject, properties *semantics.SemanticsProperties, opts ...SemanticsAnnotationsOpts)

InitSemanticsAnnotations sets the outer object and the annotations.

Flutter: rendering/object.dart SemanticsAnnotationsMixin.initSemanticsAnnotations

func InitSlottedContainer

func InitSlottedContainer(m *SlottedContainer, host RenderObject)

InitSlottedContainer registers the mixin with its render object.

Flutter: no counterpart (the self pattern, SPEC §12.5)

func LayerFind

func LayerFind[S any](l Layer, localPosition ui.Offset) (S, bool)

LayerFind returns the first annotation of type S at the position, searching the layer front to back. The position is in the layer's coordinates.

Flutter: rendering/layer.dart Layer.find

func LayoutInlineChildren

func LayoutInlineChildren(c *ContainerRenderObject[Box], maxWidth float64, layoutChild ChildLayouter, getChildBaseline ChildBaselineGetter) []painting.PlaceholderDimensions

LayoutInlineChildren lays out the children, which are the placeholders of the text, and returns their dimensions for the text layout.

Flutter: rendering/paragraph.dart RenderInlineChildrenContainerDefaults.layoutInlineChildren

func LayoutPositionedStackChild

func LayoutPositionedStackChild(child Box, data *StackParentData, size ui.Size, alignment painting.Alignment) bool

LayoutPositionedStackChild lays out a positioned child of a stack of the size and sets its offset. It reports whether the child overflows the stack.

Flutter: rendering/stack.dart RenderStack.layoutPositionedChild

func NewAlignmentGeometryTween

func NewAlignmentGeometryTween(begin, end painting.AlignmentGeometry) *animation.Tween[painting.AlignmentGeometry]

NewAlignmentGeometryTween creates a tween between two alignment geometries, either of which may be nil (which counts as the center).

Flutter: rendering/tweens.dart AlignmentGeometryTween

func NewAlignmentTween

func NewAlignmentTween(begin, end painting.Alignment) *animation.Tween[painting.Alignment]

NewAlignmentTween creates a tween between two alignments.

Flutter: rendering/tweens.dart AlignmentTween

func NewFractionalOffsetTween

NewFractionalOffsetTween creates a tween between two fractional offsets. A value that is none counts as the center when the other is some, as FractionalOffset.lerp does with null.

Flutter: rendering/tweens.dart FractionalOffsetTween

func NewPlaceholderSpanIndexSemanticsTag

func NewPlaceholderSpanIndexSemanticsTag(index int) semantics.SemanticsTag

NewPlaceholderSpanIndexSemanticsTag creates the tag that marks the semantics of the placeholder with the index among the placeholders of a paragraph.

Deviation: Flutter's is a SemanticsTag subclass with an index field, declared in painting; a SemanticsTag here is a name, so the index is in the name and PlaceholderSpanIndexOfSemanticsTag reads it back. It lives in rendering, because painting can not import semantics (SPEC §12.10).

Flutter: painting/placeholder_span.dart PlaceholderSpanIndexSemanticsTag

func PaintInlineChildren

func PaintInlineChildren(c *ContainerRenderObject[Box], context *PaintingContext, offset ui.Offset)

PaintInlineChildren paints the children at their offsets.

Flutter: rendering/paragraph.dart RenderInlineChildrenContainerDefaults.paintInlineChildren

func PerformanceOverlayAllMask

func PerformanceOverlayAllMask() int

PerformanceOverlayAllMask has the bits of every option.

Flutter: widgets/performance_overlay.dart PerformanceOverlay.allEnabled

func PlaceholderSpanIndexOfSemanticsTag

func PlaceholderSpanIndexOfSemanticsTag(tag semantics.SemanticsTag) (int, bool)

PlaceholderSpanIndexOfSemanticsTag is the index of a tag made by NewPlaceholderSpanIndexSemanticsTag; false for any other tag.

Flutter: painting/placeholder_span.dart PlaceholderSpanIndexSemanticsTag.index

func PositionInlineChildren

func PositionInlineChildren(c *ContainerRenderObject[Box], boxes []ui.TextBox)

PositionInlineChildren sets the offsets of the children from the boxes that the text layout gave the placeholders. In debug builds it panics with InlineBoxesMismatch if there are more boxes than children.

Flutter: rendering/paragraph.dart RenderInlineChildrenContainerDefaults.positionInlineChildren

func RenderTwoDimensionalViewportShowInViewport

func RenderTwoDimensionalViewportShowInViewport(o RenderTwoDimensionalViewportShowInViewportOpts) foundation.Opt[ui.Rect]

RenderTwoDimensionalViewportShowInViewport scrolls the viewport so that the descendant shows, along one axis or both, and returns the rectangle of the descendant after that, for the parent to show.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.showInViewport

func RenderViewportShowInViewport

func RenderViewportShowInViewport(descendant RenderObject, rect foundation.Opt[ui.Rect], viewport RenderAbstractViewport, offset ViewportOffset, opts ShowOnScreenOpts) foundation.Opt[ui.Rect]

RenderViewportShowInViewport scrolls the offset so that the descendant is visible in the viewport. It returns the rectangle of the descendant (or of the rect of it) in the coordinates of the parent of the viewport, once it is scrolled. A nil descendant does nothing and returns the rect.

Flutter: rendering/viewport.dart RenderViewportBase.showInViewport

func RepaintCompositedChild

func RepaintCompositedChild(child RenderObject, debugAlsoPaintedParent bool)

RepaintCompositedChild repaints a repaint boundary into its own layer. It is called by the pipeline owner, and by the context when a boundary has to be painted as part of its parent's painting (debugAlsoPaintedParent).

Flutter: rendering/object.dart PaintingContext.repaintCompositedChild

func RevealedOffsetClampOffset

func RevealedOffsetClampOffset(leadingEdgeOffset, trailingEdgeOffset RevealedOffset, currentOffset float64) foundation.Opt[RevealedOffset]

RevealedOffsetClampOffset is the offset, of the two that reveal the leading and the trailing edge of a target, that brings the current offset nearest to showing the target; none if the target is visible already.

Flutter: rendering/viewport.dart RevealedOffset.clampOffset

func SelectionUtilsAdjustDragOffset

func SelectionUtilsAdjustDragOffset(targetRect ui.Rect, point ui.Offset, direction ui.TextDirection) ui.Offset

SelectionUtilsAdjustDragOffset moves a point that is outside the rectangle to the corner of the rectangle that is closest in reading order, in the text direction.

Flutter: rendering/selection.dart SelectionUtils.adjustDragOffset

func SetupInlineChildParentData

func SetupInlineChildParentData(child RenderObject)

SetupInlineChildParentData gives the child a TextParentData if it has none. A render object with inline children calls it from SetupParentData.

Flutter: rendering/paragraph.dart RenderInlineChildrenContainerDefaults.setupParentData

func SliverApplyPaintTransformForBoxChild

func SliverApplyPaintTransformForBoxChild(s Sliver, child Box, transform *ui.Matrix4)

SliverApplyPaintTransformForBoxChild applies to the transform the translation that paints the box child of the sliver.

Flutter: rendering/sliver.dart RenderSliverHelpers.applyPaintTransformForBoxChild

func SliverHitTestBoxChild

func SliverHitTestBoxChild(s Sliver, result *BoxHitTestResult, child Box, mainAxisPosition, crossAxisPosition float64) bool

SliverHitTestBoxChild hit tests a box child of the sliver: it maps the positions of the sliver to the coordinates of the box.

Flutter: rendering/sliver.dart RenderSliverHelpers.hitTestBoxChild

func StackBaselineForChild

func StackBaselineForChild(child Box, stackSize ui.Size, nonPositioned BoxConstraints, alignment painting.Alignment,
	baseline ui.TextBaseline) foundation.Opt[float64]

StackBaselineForChild is the baseline of the child, in the stack of the size, for a dry layout: the child is laid out with its positioned constraints, or with the constraints of a non-positioned child.

Flutter: widgets/overlay.dart _RenderTheaterMixin.baselineForChild

func StackIntrinsicDimension

func StackIntrinsicDimension(firstChild Box, mainChildSizeGetter func(child Box) float64) float64

StackIntrinsicDimension is the largest value that the getter gives among the non-positioned children, from the first child on.

Flutter: rendering/stack.dart RenderStack.getIntrinsicDimension

func UpdateLayerProperties

func UpdateLayerProperties(child RenderObject)

UpdateLayerProperties updates the properties of the layer of a repaint boundary that does not need to repaint (only the layer's properties changed).

Flutter: rendering/object.dart PaintingContext.updateLayerProperties

func ViewportOffsetMoveTo

func ViewportOffsetMoveTo(offset ViewportOffset, to float64, opts ...ViewportOffsetMoveToOpts) *scheduler.TickerFuture

ViewportOffsetMoveTo animates the offset to the value, or jumps if there is no duration.

Flutter: rendering/viewport_offset.dart ViewportOffset.moveTo

func ViewportOffsetString

func ViewportOffsetString(o ViewportOffset) string

ViewportOffsetString describes the offset as ViewportOffset.toString does: its identity, and its pixels if it has some. A type that implements ViewportOffset can use it as its String method.

Flutter: rendering/viewport_offset.dart ViewportOffset.toString

Types

type AddInitialChildOpts

type AddInitialChildOpts struct {
	// Index is the index of the child to create; the default is 0.
	Index int
	// LayoutOffset is its layout offset; the default is 0.
	LayoutOffset float64
}

AddInitialChildOpts are the optional parameters of AddInitialChild.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.addInitialChild

type AnnotatedRegionLayer

type AnnotatedRegionLayer struct {
	ContainerLayer
	// contains filtered or unexported fields
}

AnnotatedRegionLayer is a layer that marks a region of the layer tree with a value that Layer.find can look up.

Flutter: rendering/layer.dart AnnotatedRegionLayer

func NewAnnotatedRegionLayer

func NewAnnotatedRegionLayer(value any, opts ...AnnotatedRegionLayerOpts) *AnnotatedRegionLayer

NewAnnotatedRegionLayer creates a layer that annotates its region with the value.

Deviation: Flutter's is generic (AnnotatedRegionLayer<T>) and matches annotations whose type is exactly the searched one; this one holds an any and matches the types the search accepts (SPEC §12.10).

Flutter: rendering/layer.dart AnnotatedRegionLayer.new

func (*AnnotatedRegionLayer) DebugFillProperties

func (l *AnnotatedRegionLayer) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the value, the size, the offset and opaque.

Flutter: rendering/layer.dart AnnotatedRegionLayer.debugFillProperties

func (*AnnotatedRegionLayer) FindAnnotations

func (l *AnnotatedRegionLayer) FindAnnotations(result *AnnotationResult, localPosition ui.Offset, onlyFirst bool) bool

FindAnnotations searches the children, then adds its own value if the position is inside the region and the result accepts the value.

Flutter: rendering/layer.dart AnnotatedRegionLayer.findAnnotations

func (*AnnotatedRegionLayer) Offset

func (l *AnnotatedRegionLayer) Offset() ui.Offset

Offset is the top left of the region.

Flutter: rendering/layer.dart AnnotatedRegionLayer.offset

func (*AnnotatedRegionLayer) Opaque

func (l *AnnotatedRegionLayer) Opaque() bool

Opaque reports whether the region absorbs the search.

Flutter: rendering/layer.dart AnnotatedRegionLayer.opaque

func (*AnnotatedRegionLayer) Size

Size is the size of the region, if limited.

Flutter: rendering/layer.dart AnnotatedRegionLayer.size

func (*AnnotatedRegionLayer) Value

func (l *AnnotatedRegionLayer) Value() any

Value is the annotation.

Flutter: rendering/layer.dart AnnotatedRegionLayer.value

type AnnotatedRegionLayerOpts

type AnnotatedRegionLayerOpts struct {
	// Size limits the region to a rectangle of this size at Offset; unset
	// means everything.
	Size foundation.Opt[ui.Size]
	// Offset is the top left of the region.
	Offset ui.Offset
	// Opaque makes the region absorb the search: layers under it are not
	// searched.
	Opaque bool
}

AnnotatedRegionLayerOpts are the optional parameters of NewAnnotatedRegionLayer.

Flutter: rendering/layer.dart AnnotatedRegionLayer.new

type AnnotationEntry

type AnnotationEntry struct {
	// Annotation is the annotation of the layer.
	//
	// Flutter: rendering/layer.dart AnnotationEntry.annotation
	Annotation any
	// LocalPosition is the position that was searched for, in the coordinates
	// of the layer the annotation belongs to.
	//
	// Flutter: rendering/layer.dart AnnotationEntry.localPosition
	LocalPosition ui.Offset
}

AnnotationEntry is an annotation found by Layer.FindAnnotations and the position it was found at, in the coordinates of the annotation's layer.

Flutter: rendering/layer.dart AnnotationEntry

func (AnnotationEntry) String

func (e AnnotationEntry) String() string

String describes the entry.

Flutter: rendering/layer.dart AnnotationEntry.toString

type AnnotationResult

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

AnnotationResult is the list of annotations of one type that Layer.FindAnnotations found, front first.

Deviation: Flutter's AnnotationResult<T> is generic, and its layers compare the type T of their annotation with S at run time; here the result holds a type check made by NewAnnotationResult (SPEC §12.10).

Flutter: rendering/layer.dart AnnotationResult

func LayerFindAllAnnotations

func LayerFindAllAnnotations[S any](l Layer, localPosition ui.Offset) *AnnotationResult

LayerFindAllAnnotations returns all annotations of type S at the position, front first.

Flutter: rendering/layer.dart Layer.findAllAnnotations

func NewAnnotationResult

func NewAnnotationResult[S any]() *AnnotationResult

NewAnnotationResult creates an empty result that collects annotations that are of type S.

Flutter: rendering/layer.dart AnnotationResult.new

func (*AnnotationResult) Accepts

func (r *AnnotationResult) Accepts(annotation any) bool

Accepts reports whether the result collects annotations like this value. Layers call it before they Add.

Flutter: rendering/layer.dart AnnotationResult (the type S)

func (*AnnotationResult) Add

func (r *AnnotationResult) Add(entry AnnotationEntry)

Add adds the entry to the end of the result.

Flutter: rendering/layer.dart AnnotationResult.add

func (*AnnotationResult) Annotations

func (r *AnnotationResult) Annotations() []any

Annotations are the annotations found, front first.

Flutter: rendering/layer.dart AnnotationResult.annotations

func (*AnnotationResult) Entries

func (r *AnnotationResult) Entries() []AnnotationEntry

Entries are the annotations found with their positions, front first.

Flutter: rendering/layer.dart AnnotationResult.entries

type AsBoxConstraintsOpts

type AsBoxConstraintsOpts struct {
	// MinExtent is the minimum extent in the main axis; the default is 0.
	MinExtent float64
	// MaxExtent is the maximum extent in the main axis; the default is infinite.
	MaxExtent foundation.Opt[float64]
	// CrossAxisExtent is the extent in the cross axis; the default is the cross
	// axis extent of the constraints.
	CrossAxisExtent foundation.Opt[float64]
}

AsBoxConstraintsOpts are the optional parameters of AsBoxConstraints.

Flutter: rendering/sliver.dart SliverConstraints.asBoxConstraints

type BackdropFilterLayer

type BackdropFilterLayer struct {
	ContainerLayer
	// contains filtered or unexported fields
}

BackdropFilterLayer is a layer that applies an image filter to what is painted behind it.

Flutter: rendering/layer.dart BackdropFilterLayer

func NewBackdropFilterLayer

func NewBackdropFilterLayer(opts ...BackdropFilterLayerOpts) *BackdropFilterLayer

NewBackdropFilterLayer creates a backdrop filter layer.

Flutter: rendering/layer.dart BackdropFilterLayer.new

func (*BackdropFilterLayer) AddToScene

func (l *BackdropFilterLayer) AddToScene(builder *ui.SceneBuilder)

AddToScene pushes the filter, adds the children and pops.

Flutter: rendering/layer.dart BackdropFilterLayer.addToScene

func (*BackdropFilterLayer) BackdropKey

func (l *BackdropFilterLayer) BackdropKey() foundation.Opt[BackdropKey]

BackdropKey is the key that shares the backdrop with other filters.

Flutter: rendering/layer.dart BackdropFilterLayer.backdropKey

func (*BackdropFilterLayer) BlendMode

func (l *BackdropFilterLayer) BlendMode() ui.BlendMode

BlendMode is how the filtered backdrop combines with what is there.

Flutter: rendering/layer.dart BackdropFilterLayer.blendMode

func (*BackdropFilterLayer) DebugFillProperties

func (l *BackdropFilterLayer) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the filter, the blend mode and the key.

Flutter: rendering/layer.dart BackdropFilterLayer.debugFillProperties

func (*BackdropFilterLayer) Filter

func (l *BackdropFilterLayer) Filter() ui.ImageFilter

Filter is the filter.

Flutter: rendering/layer.dart BackdropFilterLayer.filter

func (*BackdropFilterLayer) SetBackdropKey

func (l *BackdropFilterLayer) SetBackdropKey(v foundation.Opt[BackdropKey])

SetBackdropKey changes the key.

Flutter: rendering/layer.dart BackdropFilterLayer.backdropKey

func (*BackdropFilterLayer) SetBlendMode

func (l *BackdropFilterLayer) SetBlendMode(v ui.BlendMode)

SetBlendMode changes the blend mode.

Flutter: rendering/layer.dart BackdropFilterLayer.blendMode

func (*BackdropFilterLayer) SetFilter

func (l *BackdropFilterLayer) SetFilter(v ui.ImageFilter)

SetFilter changes the filter.

Flutter: rendering/layer.dart BackdropFilterLayer.filter

type BackdropFilterLayerOpts

type BackdropFilterLayerOpts struct {
	// Filter is the filter; it must be set before the layer is added to a scene.
	Filter ui.ImageFilter
	// BlendMode defaults to BlendModeSrcOver.
	BlendMode ui.BlendMode
}

BackdropFilterLayerOpts are the optional parameters of NewBackdropFilterLayer.

Flutter: rendering/layer.dart BackdropFilterLayer.new

type BackdropKey

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

BackdropKey identifies a backdrop that several BackdropFilterLayers share.

Deviation: the key is made from a counter that all keys share, as Flutter's static counter is (SPEC §12.10).

Flutter: rendering/layer.dart BackdropKey

func NewBackdropKey

func NewBackdropKey() BackdropKey

NewBackdropKey creates a key that differs from all the others.

Flutter: rendering/layer.dart BackdropKey.new

func (BackdropKey) Key

func (k BackdropKey) Key() int

Key is the number that identifies the backdrop.

type BaselineOffset

type BaselineOffset struct {
	// Offset is the distance; it is None for no baseline.
	Offset foundation.Opt[float64]
}

BaselineOffset is the distance from the top of a box to a baseline, or no baseline.

Flutter: rendering/box.dart BaselineOffset

func NewBaselineOffset

func NewBaselineOffset(offset foundation.Opt[float64]) BaselineOffset

NewBaselineOffset makes a baseline offset of the distance (None for none).

Flutter: rendering/box.dart BaselineOffset.new

func (BaselineOffset) Add

func (b BaselineOffset) Add(offset float64) BaselineOffset

Add moves the baseline down by the offset; no baseline stays none.

Flutter: rendering/box.dart BaselineOffset.operator+

func (BaselineOffset) MinOf

MinOf is the baseline that is higher up; a baseline wins over none.

Flutter: rendering/box.dart BaselineOffset.minOf

type BaselineOpts

type BaselineOpts struct {
	// OnlyReal returns None when the box has no baseline, instead of its height.
	OnlyReal bool
}

BaselineOpts are the optional parameters of GetDistanceToBaseline.

Flutter: rendering/box.dart RenderBox.getDistanceToBaseline

type Box

type Box interface {
	RenderObject
	// AsRenderBox returns the RenderBox that the object embeds.
	AsRenderBox() *RenderBox

	// Size is the size of the box, which layout set. It panics with
	// BoxNotLaidOut before layout.
	//
	// Flutter: rendering/box.dart RenderBox.size
	Size() ui.Size
	// HasSize reports whether the box has a size.
	//
	// Flutter: rendering/box.dart RenderBox.hasSize
	HasSize() bool
	// BoxConstraints are the constraints of the last layout.
	//
	// Flutter: rendering/box.dart RenderBox.constraints
	BoxConstraints() BoxConstraints

	// ComputeMinIntrinsicWidth is the smallest width at which the box can paint
	// without clipping, for the height.
	//
	// Flutter: rendering/box.dart RenderBox.computeMinIntrinsicWidth
	ComputeMinIntrinsicWidth(height float64) float64
	// ComputeMaxIntrinsicWidth is the width beyond which more width does not
	// help, for the height.
	//
	// Flutter: rendering/box.dart RenderBox.computeMaxIntrinsicWidth
	ComputeMaxIntrinsicWidth(height float64) float64
	// ComputeMinIntrinsicHeight is the smallest height at which the box can paint
	// without clipping, for the width.
	//
	// Flutter: rendering/box.dart RenderBox.computeMinIntrinsicHeight
	ComputeMinIntrinsicHeight(width float64) float64
	// ComputeMaxIntrinsicHeight is the height beyond which more height does not
	// help, for the width.
	//
	// Flutter: rendering/box.dart RenderBox.computeMaxIntrinsicHeight
	ComputeMaxIntrinsicHeight(width float64) float64
	// ComputeDryLayout is the size the box would have for the constraints,
	// without laying out.
	//
	// Flutter: rendering/box.dart RenderBox.computeDryLayout
	ComputeDryLayout(constraints BoxConstraints) ui.Size
	// ComputeDryBaseline is the baseline the box would have for the constraints,
	// without laying out.
	//
	// Flutter: rendering/box.dart RenderBox.computeDryBaseline
	ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]
	// ComputeDistanceToActualBaseline is the distance to the baseline, or None
	// if the box has none.
	//
	// Flutter: rendering/box.dart RenderBox.computeDistanceToActualBaseline
	ComputeDistanceToActualBaseline(baseline ui.TextBaseline) foundation.Opt[float64]
	// HitTestSelf reports whether the box itself is hit at the position.
	//
	// Flutter: rendering/box.dart RenderBox.hitTestSelf
	HitTestSelf(position ui.Offset) bool
	// HitTestChildren hit tests the children at the position.
	//
	// Flutter: rendering/box.dart RenderBox.hitTestChildren
	HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

	// GetMinIntrinsicWidth is the cached ComputeMinIntrinsicWidth.
	//
	// Flutter: rendering/box.dart RenderBox.getMinIntrinsicWidth
	GetMinIntrinsicWidth(height float64) float64
	// GetMaxIntrinsicWidth is the cached ComputeMaxIntrinsicWidth.
	//
	// Flutter: rendering/box.dart RenderBox.getMaxIntrinsicWidth
	GetMaxIntrinsicWidth(height float64) float64
	// GetMinIntrinsicHeight is the cached ComputeMinIntrinsicHeight.
	//
	// Flutter: rendering/box.dart RenderBox.getMinIntrinsicHeight
	GetMinIntrinsicHeight(width float64) float64
	// GetMaxIntrinsicHeight is the cached ComputeMaxIntrinsicHeight.
	//
	// Flutter: rendering/box.dart RenderBox.getMaxIntrinsicHeight
	GetMaxIntrinsicHeight(width float64) float64
	// GetDryLayout is the cached ComputeDryLayout.
	//
	// Flutter: rendering/box.dart RenderBox.getDryLayout
	GetDryLayout(constraints BoxConstraints) ui.Size
	// GetDryBaseline is the cached ComputeDryBaseline.
	//
	// Flutter: rendering/box.dart RenderBox.getDryBaseline
	GetDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]
	// GetDistanceToBaseline is the distance to the baseline of the laid out box;
	// without OnlyReal it falls back to the height.
	//
	// Flutter: rendering/box.dart RenderBox.getDistanceToBaseline
	GetDistanceToBaseline(baseline ui.TextBaseline, opts ...BaselineOpts) foundation.Opt[float64]
	// GetDistanceToActualBaseline is the cached ComputeDistanceToActualBaseline.
	//
	// Flutter: rendering/box.dart RenderBox.getDistanceToActualBaseline
	GetDistanceToActualBaseline(baseline ui.TextBaseline) foundation.Opt[float64]
	// HitTest adds the box and its descendants under the position to the result.
	//
	// Flutter: rendering/box.dart RenderBox.hitTest
	HitTest(result *BoxHitTestResult, position ui.Offset) bool
	// LocalToGlobal converts a point from the box's coordinates to those of the
	// ancestor (the root if nil).
	//
	// Flutter: rendering/box.dart RenderBox.localToGlobal
	LocalToGlobal(point ui.Offset, ancestor RenderObject) ui.Offset
	// GlobalToLocal converts a point from the ancestor's coordinates (the root's
	// if nil) to the box's.
	//
	// Flutter: rendering/box.dart RenderBox.globalToLocal
	GlobalToLocal(point ui.Offset, ancestor RenderObject) ui.Offset
}

Box is a render object that uses the box layout protocol: every type that embeds RenderBox. The methods are those of RenderBox that are overridden or called by other boxes.

Flutter: rendering/box.dart RenderBox

type BoxConstraints

type BoxConstraints struct {
	// MinWidth is the minimum width that satisfies the constraints.
	MinWidth float64
	// MaxWidth is the maximum width that satisfies the constraints.
	MaxWidth float64
	// MinHeight is the minimum height that satisfies the constraints.
	MinHeight float64
	// MaxHeight is the maximum height that satisfies the constraints.
	MaxHeight float64
}

BoxConstraints are immutable layout constraints for a RenderBox: a minimum and maximum width and height. A render box picks a size inside them.

The zero value is the tight constraints of size zero; use NewBoxConstraints for Flutter's defaults (unconstrained).

Flutter: rendering/box.dart BoxConstraints

func BoxConstraintsLerp

func BoxConstraintsLerp(a, b *BoxConstraints, t float64) *BoxConstraints

BoxConstraintsLerp linearly interpolates between two constraints; nil is treated as zero constraints scaled by t.

Flutter: rendering/box.dart BoxConstraints.lerp

func NewBoxConstraints

func NewBoxConstraints(opts ...BoxConstraintsOpts) BoxConstraints

NewBoxConstraints creates box constraints; an unset value is 0 for a minimum and infinity for a maximum.

Flutter: rendering/box.dart BoxConstraints.new

func NewBoxConstraintsExpand

func NewBoxConstraintsExpand(opts ...ExpandOpts) BoxConstraints

NewBoxConstraintsExpand creates constraints that expand to fill another box constraints: each dimension is the given value, or infinity.

Flutter: rendering/box.dart BoxConstraints.expand

func NewBoxConstraintsFromViewConstraints

func NewBoxConstraintsFromViewConstraints(c ui.ViewConstraints) BoxConstraints

NewBoxConstraintsFromViewConstraints creates box constraints from the constraints of a view.

Flutter: rendering/box.dart BoxConstraints.fromViewConstraints

func NewBoxConstraintsLoose

func NewBoxConstraintsLoose(size ui.Size) BoxConstraints

NewBoxConstraintsLoose creates constraints that forbid sizes larger than the given size.

Flutter: rendering/box.dart BoxConstraints.loose

func NewBoxConstraintsTight

func NewBoxConstraintsTight(size ui.Size) BoxConstraints

NewBoxConstraintsTight creates constraints that are tight on the size.

Flutter: rendering/box.dart BoxConstraints.tight

func NewBoxConstraintsTightFor

func NewBoxConstraintsTightFor(opts ...TightForOpts) BoxConstraints

NewBoxConstraintsTightFor creates constraints with the given width and height as the only value when set, and unconstrained otherwise.

Flutter: rendering/box.dart BoxConstraints.tightFor

func NewBoxConstraintsTightForFinite

func NewBoxConstraintsTightForFinite(opts ...TightForFiniteOpts) BoxConstraints

NewBoxConstraintsTightForFinite creates constraints that are tight on each dimension that is set and finite, and unconstrained on the others.

Flutter: rendering/box.dart BoxConstraints.tightForFinite

func (BoxConstraints) Biggest

func (c BoxConstraints) Biggest() ui.Size

Biggest is the biggest size that satisfies the constraints.

Flutter: rendering/box.dart BoxConstraints.biggest

func (BoxConstraints) Constrain

func (c BoxConstraints) Constrain(size ui.Size) ui.Size

Constrain returns the size closest to the given one that satisfies the constraints.

Flutter: rendering/box.dart BoxConstraints.constrain

func (BoxConstraints) ConstrainDimensions

func (c BoxConstraints) ConstrainDimensions(width, height float64) ui.Size

ConstrainDimensions returns the size closest to the given width and height that satisfies the constraints.

Flutter: rendering/box.dart BoxConstraints.constrainDimensions

func (BoxConstraints) ConstrainHeight

func (c BoxConstraints) ConstrainHeight(height float64) float64

ConstrainHeight returns the height closest to the given one that satisfies the constraints. Pass math.Inf(1) for the largest.

Flutter: rendering/box.dart BoxConstraints.constrainHeight

func (BoxConstraints) ConstrainSizeAndAttemptToPreserveAspectRatio

func (c BoxConstraints) ConstrainSizeAndAttemptToPreserveAspectRatio(size ui.Size) ui.Size

ConstrainSizeAndAttemptToPreserveAspectRatio returns the size that satisfies the constraints and keeps the aspect ratio of the given size where it can.

Flutter: rendering/box.dart BoxConstraints.constrainSizeAndAttemptToPreserveAspectRatio

func (BoxConstraints) ConstrainWidth

func (c BoxConstraints) ConstrainWidth(width float64) float64

ConstrainWidth returns the width closest to the given one that satisfies the constraints. Pass math.Inf(1) for the largest.

Flutter: rendering/box.dart BoxConstraints.constrainWidth

func (BoxConstraints) CopyWith

CopyWith returns the constraints with the set values replaced.

Flutter: rendering/box.dart BoxConstraints.copyWith

func (BoxConstraints) DebugAssertIsValid

func (c BoxConstraints) DebugAssertIsValid(opts ...DebugAssertIsValidOpts) bool

DebugAssertIsValid panics in a debug build if the constraints are NaN, negative or not normalized (and, for applied constraints, infinite). The tags are BoxConstraintsNaN, BoxConstraintsNegative, BoxConstraintsNotNormalized and BoxConstraintsInfinite. It returns IsNormalized.

Flutter: rendering/box.dart BoxConstraints.debugAssertIsValid

func (BoxConstraints) Deflate

Deflate returns constraints with the insets removed from the maximums, and from the minimums down to zero.

Flutter: rendering/box.dart BoxConstraints.deflate

func (BoxConstraints) Div

func (c BoxConstraints) Div(factor float64) BoxConstraints

Div divides every value by the factor.

Flutter: rendering/box.dart BoxConstraints.operator/

func (BoxConstraints) Enforce

Enforce returns constraints that respect the given constraints as much as these allow.

Flutter: rendering/box.dart BoxConstraints.enforce

func (BoxConstraints) Flipped

func (c BoxConstraints) Flipped() BoxConstraints

Flipped returns constraints with the width and height swapped.

Flutter: rendering/box.dart BoxConstraints.flipped

func (BoxConstraints) HasBoundedHeight

func (c BoxConstraints) HasBoundedHeight() bool

HasBoundedHeight reports whether the maximum height is finite.

Flutter: rendering/box.dart BoxConstraints.hasBoundedHeight

func (BoxConstraints) HasBoundedWidth

func (c BoxConstraints) HasBoundedWidth() bool

HasBoundedWidth reports whether the maximum width is finite.

Flutter: rendering/box.dart BoxConstraints.hasBoundedWidth

func (BoxConstraints) HasInfiniteHeight

func (c BoxConstraints) HasInfiniteHeight() bool

HasInfiniteHeight reports whether the constraints force an infinite height.

Flutter: rendering/box.dart BoxConstraints.hasInfiniteHeight

func (BoxConstraints) HasInfiniteWidth

func (c BoxConstraints) HasInfiniteWidth() bool

HasInfiniteWidth reports whether the constraints force an infinite width.

Flutter: rendering/box.dart BoxConstraints.hasInfiniteWidth

func (BoxConstraints) HasTightHeight

func (c BoxConstraints) HasTightHeight() bool

HasTightHeight reports whether there is exactly one height that satisfies the constraints.

Flutter: rendering/box.dart BoxConstraints.hasTightHeight

func (BoxConstraints) HasTightWidth

func (c BoxConstraints) HasTightWidth() bool

HasTightWidth reports whether there is exactly one width that satisfies the constraints.

Flutter: rendering/box.dart BoxConstraints.hasTightWidth

func (BoxConstraints) HeightConstraints

func (c BoxConstraints) HeightConstraints() BoxConstraints

HeightConstraints returns constraints with only the height constraints kept.

Flutter: rendering/box.dart BoxConstraints.heightConstraints

func (BoxConstraints) IsNormalized

func (c BoxConstraints) IsNormalized() bool

IsNormalized reports whether the minimums are non-negative and at most the maximums.

Flutter: rendering/box.dart BoxConstraints.isNormalized

func (BoxConstraints) IsSatisfiedBy

func (c BoxConstraints) IsSatisfiedBy(size ui.Size) bool

IsSatisfiedBy reports whether the size satisfies the constraints.

Flutter: rendering/box.dart BoxConstraints.isSatisfiedBy

func (BoxConstraints) IsTight

func (c BoxConstraints) IsTight() bool

IsTight reports whether there is exactly one size that satisfies the constraints.

Flutter: rendering/box.dart BoxConstraints.isTight

func (BoxConstraints) Loosen

func (c BoxConstraints) Loosen() BoxConstraints

Loosen returns constraints with the minimums removed and the same maximums.

Flutter: rendering/box.dart BoxConstraints.loosen

func (BoxConstraints) Mod

func (c BoxConstraints) Mod(value float64) BoxConstraints

Mod takes the remainder of every value divided by value, like Dart's %: it is never negative for a positive divisor.

Flutter: rendering/box.dart BoxConstraints.operator%

func (BoxConstraints) Mul

func (c BoxConstraints) Mul(factor float64) BoxConstraints

Mul scales every value by the factor.

Flutter: rendering/box.dart BoxConstraints.operator*

func (BoxConstraints) Normalize

func (c BoxConstraints) Normalize() BoxConstraints

Normalize returns constraints with the same values made normalized: no negative minimum, and no maximum below its minimum.

Flutter: rendering/box.dart BoxConstraints.normalize

func (BoxConstraints) Smallest

func (c BoxConstraints) Smallest() ui.Size

Smallest is the smallest size that satisfies the constraints.

Flutter: rendering/box.dart BoxConstraints.smallest

func (BoxConstraints) String

func (c BoxConstraints) String() string

String describes the constraints, such as "BoxConstraints(0.0<=w<=100.0, h=50.0)".

Flutter: rendering/box.dart BoxConstraints.toString

func (BoxConstraints) Tighten

func (c BoxConstraints) Tighten(opts ...TightenOpts) BoxConstraints

Tighten returns constraints that are tight on the given width and height, clamped to these constraints.

Flutter: rendering/box.dart BoxConstraints.tighten

func (BoxConstraints) TruncDiv

func (c BoxConstraints) TruncDiv(factor float64) BoxConstraints

TruncDiv divides every value by the factor and truncates the result.

Flutter: rendering/box.dart BoxConstraints.operator~/

func (BoxConstraints) WidthConstraints

func (c BoxConstraints) WidthConstraints() BoxConstraints

WidthConstraints returns constraints with only the width constraints kept.

Flutter: rendering/box.dart BoxConstraints.widthConstraints

type BoxConstraintsCopy

type BoxConstraintsCopy struct {
	// MinWidth replaces the minimum width if set.
	MinWidth foundation.Opt[float64]
	// MaxWidth replaces the maximum width if set.
	MaxWidth foundation.Opt[float64]
	// MinHeight replaces the minimum height if set.
	MinHeight foundation.Opt[float64]
	// MaxHeight replaces the maximum height if set.
	MaxHeight foundation.Opt[float64]
}

BoxConstraintsCopy are the values CopyWith replaces.

Flutter: rendering/box.dart BoxConstraints.copyWith

type BoxConstraintsOpts

type BoxConstraintsOpts struct {
	// MinWidth defaults to 0.
	MinWidth foundation.Opt[float64]
	// MaxWidth defaults to infinity.
	MaxWidth foundation.Opt[float64]
	// MinHeight defaults to 0.
	MinHeight foundation.Opt[float64]
	// MaxHeight defaults to infinity.
	MaxHeight foundation.Opt[float64]
}

BoxConstraintsOpts are the optional parameters of NewBoxConstraints.

Flutter: rendering/box.dart BoxConstraints.new

type BoxConstraintsTransform

type BoxConstraintsTransform func(constraints BoxConstraints) BoxConstraints

BoxConstraintsTransform turns the constraints of a box into those of its child.

Flutter: rendering/shifted_box.dart BoxConstraintsTransform

type BoxHitTest

type BoxHitTest func(result *BoxHitTestResult, position ui.Offset) bool

BoxHitTest hit tests a position in the coordinates of a box, adding to the result. It reports whether the position hit.

Flutter: rendering/box.dart BoxHitTest

type BoxHitTestEntry

type BoxHitTestEntry struct {
	gestures.HitTestEntryBase
	// LocalPosition is the position of the hit, in the target's coordinates.
	//
	// Flutter: rendering/box.dart BoxHitTestEntry.localPosition
	LocalPosition ui.Offset
}

BoxHitTestEntry is a hit test entry of a box: the target and the position of the hit in the box's coordinates.

Flutter: rendering/box.dart BoxHitTestEntry

func NewBoxHitTestEntry

func NewBoxHitTestEntry(target Box, localPosition ui.Offset) *BoxHitTestEntry

NewBoxHitTestEntry creates an entry for the target at the position.

Flutter: rendering/box.dart BoxHitTestEntry.new

func (*BoxHitTestEntry) String

func (e *BoxHitTestEntry) String() string

String describes the entry.

Flutter: rendering/box.dart BoxHitTestEntry.toString

type BoxHitTestResult

type BoxHitTestResult struct {
	*gestures.HitTestResult
}

BoxHitTestResult is a HitTestResult with the helpers for the box protocol, which push the transform of a child before it tests.

Flutter: rendering/box.dart BoxHitTestResult

func NewBoxHitTestResult

func NewBoxHitTestResult() *BoxHitTestResult

NewBoxHitTestResult creates an empty result.

Flutter: rendering/box.dart BoxHitTestResult.new

func NewBoxHitTestResultWrap

func NewBoxHitTestResultWrap(result *gestures.HitTestResult) *BoxHitTestResult

NewBoxHitTestResultWrap makes a box result that adds to the given result.

Flutter: rendering/box.dart BoxHitTestResult.wrap

func (*BoxHitTestResult) AddWithOutOfBandPosition

func (r *BoxHitTestResult) AddWithOutOfBandPosition(o OutOfBandOpts, hitTest BoxHitTestWithOutOfBandPosition) bool

AddWithOutOfBandPosition hit tests a child with a position the callback knows, pushing the transform of the child. Exactly one of the options must be set, or a debug build panics with OutOfBandOptionsInvalid.

Flutter: rendering/box.dart BoxHitTestResult.addWithOutOfBandPosition

func (*BoxHitTestResult) AddWithPaintOffset

func (r *BoxHitTestResult) AddWithPaintOffset(offset *ui.Offset, position ui.Offset, hitTest BoxHitTest) bool

AddWithPaintOffset hit tests a child that is painted at the offset. A nil offset means none.

Flutter: rendering/box.dart BoxHitTestResult.addWithPaintOffset

func (*BoxHitTestResult) AddWithPaintTransform

func (r *BoxHitTestResult) AddWithPaintTransform(transform *ui.Matrix4, position ui.Offset, hitTest BoxHitTest) bool

AddWithPaintTransform hit tests a child that is painted with the transform: the position is mapped by the inverse of the transform (with its perspective removed). A nil transform means none. It returns false if the transform can not be inverted.

Flutter: rendering/box.dart BoxHitTestResult.addWithPaintTransform

func (*BoxHitTestResult) AddWithRawTransform

func (r *BoxHitTestResult) AddWithRawTransform(transform *ui.Matrix4, position ui.Offset, hitTest BoxHitTest) bool

AddWithRawTransform hit tests a child with a transform that maps the position to the child's coordinates directly. A nil transform means none.

Flutter: rendering/box.dart BoxHitTestResult.addWithRawTransform

type BoxHitTestWithOutOfBandPosition

type BoxHitTestWithOutOfBandPosition func(result *BoxHitTestResult) bool

BoxHitTestWithOutOfBandPosition hit tests with a position that the caller knows about, not passed in.

Flutter: rendering/box.dart BoxHitTestWithOutOfBandPosition

type BoxParentData

type BoxParentData struct {
	ParentDataBase
	// Offset is the position of the child, in the coordinates of the parent.
	//
	// Flutter: rendering/box.dart BoxParentData.offset
	Offset ui.Offset
}

BoxParentData is the parent data for render boxes: the offset of the child in the parent's coordinates.

Flutter: rendering/box.dart BoxParentData

func BoxParentDataOf

func BoxParentDataOf(child RenderObject) *BoxParentData

BoxParentDataOf is the BoxParentData of a render box that its parent laid out, or the one embedded in the parent data of the child.

Flutter: no counterpart (the cast `child.parentData! as BoxParentData`)

func (*BoxParentData) String

func (d *BoxParentData) String() string

String is "offset=" and the offset.

Flutter: rendering/box.dart BoxParentData.toString

type CacheExtentStyle

type CacheExtentStyle int

CacheExtentStyle is how a ScrollCacheExtent measures the cache area.

Flutter: rendering/viewport.dart CacheExtentStyle

const (
	// CacheExtentStyleUnspecified is the zero value; it is not a real style.
	//
	// Flutter: no counterpart
	CacheExtentStyleUnspecified CacheExtentStyle = iota
	// CacheExtentStylePixel measures the cache area in logical pixels.
	//
	// Flutter: rendering/viewport.dart CacheExtentStyle.pixel
	CacheExtentStylePixel
	// CacheExtentStyleViewport measures the cache area as a multiple of the main
	// axis extent of the viewport.
	//
	// Flutter: rendering/viewport.dart CacheExtentStyle.viewport
	CacheExtentStyleViewport
)

The values of CacheExtentStyle follow Flutter's declaration order.

type ChildBaselineGetter

type ChildBaselineGetter func(child Box, constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ChildBaselineGetter returns the baseline of a child for the constraints.

Flutter: rendering/layout_helper.dart ChildBaselineGetter

type ChildLayouter

type ChildLayouter func(child Box, constraints BoxConstraints) ui.Size

ChildLayouter lays out a child with the constraints and returns its size.

Flutter: rendering/layout_helper.dart ChildLayouter

type ChildVicinity

type ChildVicinity struct {
	// XIndex is the index along the x axis.
	//
	// Flutter: widgets/two_dimensional_viewport.dart ChildVicinity.xIndex
	XIndex int
	// YIndex is the index along the y axis.
	//
	// Flutter: widgets/two_dimensional_viewport.dart ChildVicinity.yIndex
	YIndex int
}

ChildVicinity is the location of a child in the two-dimensional space of a RenderTwoDimensionalViewport: the index along each axis. It orders by x, then y.

Deviation: Flutter declares it, and the classes below, in the widgets library (widgets/two_dimensional_viewport.dart), where it can reach the private methods of the viewport. Go has no library-private members, so the render object lives in rendering and widgets re-exports the types (SPEC §12.10).

Flutter: widgets/two_dimensional_viewport.dart ChildVicinity

func NewChildVicinity

func NewChildVicinity(xIndex, yIndex int) ChildVicinity

NewChildVicinity creates a vicinity. In debug builds it panics with the tag ChildVicinityInvalid when an index is less than -1.

Flutter: widgets/two_dimensional_viewport.dart ChildVicinity.new

func (ChildVicinity) CompareTo

func (v ChildVicinity) CompareTo(other ChildVicinity) int

CompareTo orders by the x index, then by the y index.

Flutter: widgets/two_dimensional_viewport.dart ChildVicinity.compareTo

func (ChildVicinity) String

func (v ChildVicinity) String() string

String is "(xIndex: 1, yIndex: 2)".

Flutter: widgets/two_dimensional_viewport.dart ChildVicinity.toString

type ClearSelectionEvent

type ClearSelectionEvent struct{}

ClearSelectionEvent clears the selection.

Flutter: rendering/selection.dart ClearSelectionEvent

func (ClearSelectionEvent) Type

Type is SelectionEventTypeClear.

Flutter: rendering/selection.dart ClearSelectionEvent

type ClipPathLayer

type ClipPathLayer struct {
	ContainerLayer
	// contains filtered or unexported fields
}

ClipPathLayer is a layer that clips its children to a path.

Flutter: rendering/layer.dart ClipPathLayer

func NewClipPathLayer

func NewClipPathLayer(opts ...ClipPathLayerOpts) *ClipPathLayer

NewClipPathLayer creates a layer that clips to a path.

Flutter: rendering/layer.dart ClipPathLayer.new

func (*ClipPathLayer) AddToScene

func (l *ClipPathLayer) AddToScene(builder *ui.SceneBuilder)

AddToScene pushes the clip, adds the children and pops.

Flutter: rendering/layer.dart ClipPathLayer.addToScene

func (*ClipPathLayer) ClipBehavior

func (l *ClipPathLayer) ClipBehavior() ui.Clip

ClipBehavior is how the edge of the clip is drawn.

Flutter: rendering/layer.dart ClipPathLayer.clipBehavior

func (*ClipPathLayer) ClipPath

func (l *ClipPathLayer) ClipPath() *ui.Path

ClipPath is the path that is the clip.

Flutter: rendering/layer.dart ClipPathLayer.clipPath

func (*ClipPathLayer) DebugFillProperties

func (l *ClipPathLayer) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the clip behavior.

Flutter: rendering/layer.dart ClipPathLayer.debugFillProperties

func (*ClipPathLayer) DescribeClipBounds

func (l *ClipPathLayer) DescribeClipBounds() foundation.Opt[ui.Rect]

DescribeClipBounds is the bounds of the path.

Flutter: rendering/layer.dart ClipPathLayer.describeClipBounds

func (*ClipPathLayer) FindAnnotations

func (l *ClipPathLayer) FindAnnotations(result *AnnotationResult, localPosition ui.Offset, onlyFirst bool) bool

FindAnnotations finds nothing outside the path.

Flutter: rendering/layer.dart ClipPathLayer.findAnnotations

func (*ClipPathLayer) SetClipBehavior

func (l *ClipPathLayer) SetClipBehavior(v ui.Clip)

SetClipBehavior changes the behavior; ClipNone panics in debug builds.

Flutter: rendering/layer.dart ClipPathLayer.clipBehavior

func (*ClipPathLayer) SetClipPath

func (l *ClipPathLayer) SetClipPath(v *ui.Path)

SetClipPath changes the clip and marks the layer as needing AddToScene.

Flutter: rendering/layer.dart ClipPathLayer.clipPath

type ClipPathLayerOpts

type ClipPathLayerOpts struct {
	// ClipPath is the path; it must be set before the layer is added to a
	// scene.
	ClipPath *ui.Path
	// ClipBehavior defaults to ClipAntiAlias; ClipNone panics in debug builds.
	ClipBehavior ui.Clip
}

ClipPathLayerOpts are the optional parameters of NewClipPathLayer.

Flutter: rendering/layer.dart ClipPathLayer.new

type ClipRRectLayer

type ClipRRectLayer struct {
	ContainerLayer
	// contains filtered or unexported fields
}

ClipRRectLayer is a layer that clips its children to a rounded rectangle.

Flutter: rendering/layer.dart ClipRRectLayer

func NewClipRRectLayer

func NewClipRRectLayer(opts ...ClipRRectLayerOpts) *ClipRRectLayer

NewClipRRectLayer creates a layer that clips to a rounded rectangle.

Flutter: rendering/layer.dart ClipRRectLayer.new

func (*ClipRRectLayer) AddToScene

func (l *ClipRRectLayer) AddToScene(builder *ui.SceneBuilder)

AddToScene pushes the clip, adds the children and pops.

Flutter: rendering/layer.dart ClipRRectLayer.addToScene

func (*ClipRRectLayer) ClipBehavior

func (l *ClipRRectLayer) ClipBehavior() ui.Clip

ClipBehavior is how the edge of the clip is drawn.

Flutter: rendering/layer.dart ClipRRectLayer.clipBehavior

func (*ClipRRectLayer) ClipRRect

func (l *ClipRRectLayer) ClipRRect() foundation.Opt[ui.RRect]

ClipRRect is the rounded rectangle that is the clip.

Flutter: rendering/layer.dart ClipRRectLayer.clipRRect

func (*ClipRRectLayer) DebugFillProperties

func (l *ClipRRectLayer) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the clip.

Flutter: rendering/layer.dart ClipRRectLayer.debugFillProperties

func (*ClipRRectLayer) DescribeClipBounds

func (l *ClipRRectLayer) DescribeClipBounds() foundation.Opt[ui.Rect]

DescribeClipBounds is the outer rectangle of the clip.

Flutter: rendering/layer.dart ClipRRectLayer.describeClipBounds

func (*ClipRRectLayer) FindAnnotations

func (l *ClipRRectLayer) FindAnnotations(result *AnnotationResult, localPosition ui.Offset, onlyFirst bool) bool

FindAnnotations finds nothing outside the clip.

Flutter: rendering/layer.dart ClipRRectLayer.findAnnotations

func (*ClipRRectLayer) SetClipBehavior

func (l *ClipRRectLayer) SetClipBehavior(v ui.Clip)

SetClipBehavior changes the behavior; ClipNone panics in debug builds.

Flutter: rendering/layer.dart ClipRRectLayer.clipBehavior

func (*ClipRRectLayer) SetClipRRect

func (l *ClipRRectLayer) SetClipRRect(v ui.RRect)

SetClipRRect changes the clip and marks the layer as needing AddToScene.

Flutter: rendering/layer.dart ClipRRectLayer.clipRRect

type ClipRRectLayerOpts

type ClipRRectLayerOpts struct {
	// ClipRRect is the rounded rectangle; it must be set before the layer is
	// added to a scene.
	ClipRRect foundation.Opt[ui.RRect]
	// ClipBehavior defaults to ClipAntiAlias; ClipNone panics in debug builds.
	ClipBehavior ui.Clip
}

ClipRRectLayerOpts are the optional parameters of NewClipRRectLayer.

Flutter: rendering/layer.dart ClipRRectLayer.new

type ClipRSuperellipseLayer

type ClipRSuperellipseLayer struct {
	ContainerLayer
	// contains filtered or unexported fields
}

ClipRSuperellipseLayer is a layer that clips its children to a rounded superellipse.

Flutter: rendering/layer.dart ClipRSuperellipseLayer

func NewClipRSuperellipseLayer

func NewClipRSuperellipseLayer(opts ...ClipRSuperellipseLayerOpts) *ClipRSuperellipseLayer

NewClipRSuperellipseLayer creates a layer that clips to a rounded superellipse.

Flutter: rendering/layer.dart ClipRSuperellipseLayer.new

func (*ClipRSuperellipseLayer) AddToScene

func (l *ClipRSuperellipseLayer) AddToScene(builder *ui.SceneBuilder)

AddToScene pushes the clip, adds the children and pops.

Flutter: rendering/layer.dart ClipRSuperellipseLayer.addToScene

func (*ClipRSuperellipseLayer) ClipBehavior

func (l *ClipRSuperellipseLayer) ClipBehavior() ui.Clip

ClipBehavior is how the edge of the clip is drawn.

Flutter: rendering/layer.dart ClipRSuperellipseLayer.clipBehavior

func (*ClipRSuperellipseLayer) ClipRSuperellipse

func (l *ClipRSuperellipseLayer) ClipRSuperellipse() foundation.Opt[ui.RSuperellipse]

ClipRSuperellipse is the shape that is the clip.

Flutter: rendering/layer.dart ClipRSuperellipseLayer.clipRSuperellipse

func (*ClipRSuperellipseLayer) DebugFillProperties

DebugFillProperties adds the clip.

Flutter: rendering/layer.dart ClipRSuperellipseLayer.debugFillProperties

func (*ClipRSuperellipseLayer) DescribeClipBounds

func (l *ClipRSuperellipseLayer) DescribeClipBounds() foundation.Opt[ui.Rect]

DescribeClipBounds is the outer rectangle of the clip.

Flutter: rendering/layer.dart ClipRSuperellipseLayer.describeClipBounds

func (*ClipRSuperellipseLayer) FindAnnotations

func (l *ClipRSuperellipseLayer) FindAnnotations(result *AnnotationResult, localPosition ui.Offset, onlyFirst bool) bool

FindAnnotations finds nothing outside the outer rectangle of the clip.

Flutter: rendering/layer.dart ClipRSuperellipseLayer.findAnnotations

func (*ClipRSuperellipseLayer) SetClipBehavior

func (l *ClipRSuperellipseLayer) SetClipBehavior(v ui.Clip)

SetClipBehavior changes the behavior; ClipNone panics in debug builds.

Flutter: rendering/layer.dart ClipRSuperellipseLayer.clipBehavior

func (*ClipRSuperellipseLayer) SetClipRSuperellipse

func (l *ClipRSuperellipseLayer) SetClipRSuperellipse(v ui.RSuperellipse)

SetClipRSuperellipse changes the clip and marks the layer as needing AddToScene.

Flutter: rendering/layer.dart ClipRSuperellipseLayer.clipRSuperellipse

type ClipRSuperellipseLayerOpts

type ClipRSuperellipseLayerOpts struct {
	// ClipRSuperellipse is the shape; it must be set before the layer is added
	// to a scene.
	ClipRSuperellipse foundation.Opt[ui.RSuperellipse]
	// ClipBehavior defaults to ClipAntiAlias; ClipNone panics in debug builds.
	ClipBehavior ui.Clip
}

ClipRSuperellipseLayerOpts are the optional parameters of NewClipRSuperellipseLayer.

Flutter: rendering/layer.dart ClipRSuperellipseLayer.new

type ClipRectLayer

type ClipRectLayer struct {
	ContainerLayer
	// contains filtered or unexported fields
}

ClipRectLayer is a layer that clips its children to a rectangle.

Flutter: rendering/layer.dart ClipRectLayer

func NewClipRectLayer

func NewClipRectLayer(opts ...ClipRectLayerOpts) *ClipRectLayer

NewClipRectLayer creates a layer that clips to a rectangle.

Flutter: rendering/layer.dart ClipRectLayer.new

func (*ClipRectLayer) AddToScene

func (l *ClipRectLayer) AddToScene(builder *ui.SceneBuilder)

AddToScene pushes the clip, adds the children and pops.

Flutter: rendering/layer.dart ClipRectLayer.addToScene

func (*ClipRectLayer) ClipBehavior

func (l *ClipRectLayer) ClipBehavior() ui.Clip

ClipBehavior is how the edge of the clip is drawn.

Flutter: rendering/layer.dart ClipRectLayer.clipBehavior

func (*ClipRectLayer) ClipRect

func (l *ClipRectLayer) ClipRect() foundation.Opt[ui.Rect]

ClipRect is the rectangle that is the clip.

Flutter: rendering/layer.dart ClipRectLayer.clipRect

func (*ClipRectLayer) DebugFillProperties

func (l *ClipRectLayer) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the clip.

Flutter: rendering/layer.dart ClipRectLayer.debugFillProperties

func (*ClipRectLayer) DescribeClipBounds

func (l *ClipRectLayer) DescribeClipBounds() foundation.Opt[ui.Rect]

DescribeClipBounds is the clip rectangle.

Flutter: rendering/layer.dart ClipRectLayer.describeClipBounds

func (*ClipRectLayer) FindAnnotations

func (l *ClipRectLayer) FindAnnotations(result *AnnotationResult, localPosition ui.Offset, onlyFirst bool) bool

FindAnnotations finds nothing outside the clip rectangle.

Flutter: rendering/layer.dart ClipRectLayer.findAnnotations

func (*ClipRectLayer) SetClipBehavior

func (l *ClipRectLayer) SetClipBehavior(v ui.Clip)

SetClipBehavior changes the behavior; ClipNone panics in debug builds.

Flutter: rendering/layer.dart ClipRectLayer.clipBehavior

func (*ClipRectLayer) SetClipRect

func (l *ClipRectLayer) SetClipRect(v ui.Rect)

SetClipRect changes the clip and marks the layer as needing AddToScene.

Flutter: rendering/layer.dart ClipRectLayer.clipRect

type ClipRectLayerOpts

type ClipRectLayerOpts struct {
	// ClipRect is the rectangle; it must be set before the layer is added to a
	// scene.
	ClipRect foundation.Opt[ui.Rect]
	// ClipBehavior defaults to ClipHardEdge; ClipNone panics in debug builds.
	ClipBehavior ui.Clip
}

ClipRectLayerOpts are the optional parameters of NewClipRectLayer.

Flutter: rendering/layer.dart ClipRectLayer.new

type ColorFilterLayer

type ColorFilterLayer struct {
	ContainerLayer
	// contains filtered or unexported fields
}

ColorFilterLayer is a layer that applies a color filter to its children.

Flutter: rendering/layer.dart ColorFilterLayer

func NewColorFilterLayer

func NewColorFilterLayer(colorFilter *ui.ColorFilter) *ColorFilterLayer

NewColorFilterLayer creates a layer that applies the filter (nil leaves it to SetColorFilter).

Flutter: rendering/layer.dart ColorFilterLayer.new

func (*ColorFilterLayer) AddToScene

func (l *ColorFilterLayer) AddToScene(builder *ui.SceneBuilder)

AddToScene pushes the filter, adds the children and pops.

Flutter: rendering/layer.dart ColorFilterLayer.addToScene

func (*ColorFilterLayer) ColorFilter

func (l *ColorFilterLayer) ColorFilter() *ui.ColorFilter

ColorFilter is the filter.

Flutter: rendering/layer.dart ColorFilterLayer.colorFilter

func (*ColorFilterLayer) DebugFillProperties

func (l *ColorFilterLayer) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the filter.

Flutter: rendering/layer.dart ColorFilterLayer.debugFillProperties

func (*ColorFilterLayer) SetColorFilter

func (l *ColorFilterLayer) SetColorFilter(v *ui.ColorFilter)

SetColorFilter changes the filter, which must not be nil.

Flutter: rendering/layer.dart ColorFilterLayer.colorFilter

type CompositionCallback

type CompositionCallback func(layer Layer)

CompositionCallback is called when the layer is composited into a scene (or removed), with the layer.

Flutter: rendering/layer.dart CompositionCallback

type Constraints

type Constraints interface {
	// IsTight reports whether there is exactly one size that satisfies the
	// constraints.
	//
	// Flutter: rendering/object.dart Constraints.isTight
	IsTight() bool
	// IsNormalized reports whether the constraints are in canonical form:
	// every minimum is at most its maximum, and none is negative.
	//
	// Flutter: rendering/object.dart Constraints.isNormalized
	IsNormalized() bool
	// DebugAssertIsValid panics in a debug build with a tag that says what is
	// wrong if the constraints are invalid. It returns IsNormalized.
	//
	// Flutter: rendering/object.dart Constraints.debugAssertIsValid
	DebugAssertIsValid(opts ...DebugAssertIsValidOpts) bool
}

Constraints is an immutable layout constraint that a parent gives to a child. Implementations must be comparable with ==: the pipeline compares the new constraints with the old ones to skip layout.

Flutter: rendering/object.dart Constraints

type ContainerBoxParentData

type ContainerBoxParentData[C RenderObject] struct {
	BoxParentData
	ContainerParentData[C]
}

ContainerBoxParentData is the parent data for the children of a render box with a list of children: an offset and the links to the siblings.

Flutter: rendering/box.dart ContainerBoxParentData

func (*ContainerBoxParentData[C]) Detach

func (d *ContainerBoxParentData[C]) Detach()

Detach panics in debug builds if the sibling links are still set.

Flutter: rendering/object.dart ContainerParentDataMixin.detach

type ContainerLayer

type ContainerLayer struct {
	LayerBase
	// contains filtered or unexported fields
}

ContainerLayer is a layer that has a list of children.

Flutter: rendering/layer.dart ContainerLayer

func NewContainerLayer

func NewContainerLayer() *ContainerLayer

NewContainerLayer creates a layer without children.

Flutter: rendering/layer.dart ContainerLayer.new

func (*ContainerLayer) AddChildrenToScene

func (c *ContainerLayer) AddChildrenToScene(builder *ui.SceneBuilder)

AddChildrenToScene adds every child to the scene, retained when it did not change.

Flutter: rendering/layer.dart ContainerLayer.addChildrenToScene

func (*ContainerLayer) AddToScene

func (c *ContainerLayer) AddToScene(builder *ui.SceneBuilder)

AddToScene adds the children to the scene.

Flutter: rendering/layer.dart ContainerLayer.addToScene

func (*ContainerLayer) Append

func (c *ContainerLayer) Append(child Layer)

Append adds the layer to the end of the children. A debug build panics with LayerAppendInvalid if the child already has a parent or an owner, or would make a cycle.

Flutter: rendering/layer.dart ContainerLayer.append

func (*ContainerLayer) ApplyTransform

func (c *ContainerLayer) ApplyTransform(child Layer, transform *ui.Matrix4)

ApplyTransform applies the transform that this layer gives its child; none for a plain container.

Flutter: rendering/layer.dart ContainerLayer.applyTransform

func (*ContainerLayer) AsContainerLayer

func (c *ContainerLayer) AsContainerLayer() *ContainerLayer

AsContainerLayer returns the layer itself.

func (*ContainerLayer) Attach

func (c *ContainerLayer) Attach(owner any)

Attach attaches the layer and its children.

Flutter: rendering/layer.dart ContainerLayer.attach

func (*ContainerLayer) BuildScene

func (c *ContainerLayer) BuildScene(builder *ui.SceneBuilder) *ui.Scene

BuildScene builds the scene of the layer tree with the builder, adding the layers that changed and retaining the others. It is called on the root.

Flutter: rendering/layer.dart ContainerLayer.buildScene

func (*ContainerLayer) DebugDescribeChildren

func (c *ContainerLayer) DebugDescribeChildren() []foundation.DiagnosticsNode

DebugDescribeChildren names the children "child 1", "child 2" and so on.

Flutter: rendering/layer.dart ContainerLayer.debugDescribeChildren

func (*ContainerLayer) DepthFirstIterateChildren

func (c *ContainerLayer) DepthFirstIterateChildren() []Layer

DepthFirstIterateChildren returns every descendant, depth first.

Flutter: rendering/layer.dart ContainerLayer.depthFirstIterateChildren

func (*ContainerLayer) Detach

func (c *ContainerLayer) Detach()

Detach detaches the layer and its children, and calls its own composition callbacks.

Flutter: rendering/layer.dart ContainerLayer.detach

func (*ContainerLayer) Dispose

func (c *ContainerLayer) Dispose()

Dispose removes the children and the callbacks.

Flutter: rendering/layer.dart ContainerLayer.dispose

func (*ContainerLayer) FindAnnotations

func (c *ContainerLayer) FindAnnotations(result *AnnotationResult, localPosition ui.Offset, onlyFirst bool) bool

FindAnnotations searches the children from the last (front) to the first.

Flutter: rendering/layer.dart ContainerLayer.findAnnotations

func (*ContainerLayer) FirstChild

func (c *ContainerLayer) FirstChild() Layer

FirstChild is the first child, or nil.

Flutter: rendering/layer.dart ContainerLayer.firstChild

func (*ContainerLayer) HasChildren

func (c *ContainerLayer) HasChildren() bool

HasChildren reports whether the layer has a child.

Flutter: rendering/layer.dart ContainerLayer.hasChildren

func (*ContainerLayer) LastChild

func (c *ContainerLayer) LastChild() Layer

LastChild is the last child, or nil.

Flutter: rendering/layer.dart ContainerLayer.lastChild

func (*ContainerLayer) RedepthChild

func (c *ContainerLayer) RedepthChild(child Layer)

RedepthChild makes the child deeper than this layer, if it is not.

Flutter: rendering/layer.dart ContainerLayer.redepthChild

func (*ContainerLayer) RedepthChildren

func (c *ContainerLayer) RedepthChildren()

RedepthChildren updates the depth of every child.

Flutter: rendering/layer.dart ContainerLayer.redepthChildren

func (*ContainerLayer) RemoveAllChildren

func (c *ContainerLayer) RemoveAllChildren()

RemoveAllChildren removes every child.

Flutter: rendering/layer.dart ContainerLayer.removeAllChildren

func (*ContainerLayer) SupportsRasterization

func (c *ContainerLayer) SupportsRasterization() bool

SupportsRasterization is true if every child supports it.

Flutter: rendering/layer.dart ContainerLayer.supportsRasterization

func (*ContainerLayer) UpdateSubtreeNeedsAddToScene

func (c *ContainerLayer) UpdateSubtreeNeedsAddToScene()

UpdateSubtreeNeedsAddToScene marks this layer if it or a descendant needs AddToScene.

Flutter: rendering/layer.dart ContainerLayer.updateSubtreeNeedsAddToScene

type ContainerLayerLike

type ContainerLayerLike interface {
	Layer
	AsContainerLayer() *ContainerLayer
	// ApplyTransform applies to the transform the transformation that this
	// layer applies to the child.
	//
	// Flutter: rendering/layer.dart ContainerLayer.applyTransform
	ApplyTransform(child Layer, transform *ui.Matrix4)
}

ContainerLayerLike is a layer that has children: every type that embeds ContainerLayer.

Flutter: no counterpart

type ContainerParentData

type ContainerParentData[C RenderObject] struct {
	// PreviousSibling is the child before this one, or nil.
	//
	// Flutter: rendering/object.dart ContainerParentDataMixin.previousSibling
	PreviousSibling C
	// NextSibling is the child after this one, or nil.
	//
	// Flutter: rendering/object.dart ContainerParentDataMixin.nextSibling
	NextSibling C
}

ContainerParentData is the parent data that links a child to its siblings, for a parent with a list of children of type C. Embed it (or ContainerBoxParentData) in the parent data type.

Flutter: rendering/object.dart ContainerParentDataMixin

type ContainerRenderObject

type ContainerRenderObject[C RenderObject] struct {
	// contains filtered or unexported fields
}

ContainerRenderObject holds a list of children of type C for a render object. The children's parent data must embed ContainerParentData[C]. Embed it and call InitContainerRenderObject in the constructor.

Flutter: rendering/object.dart ContainerRenderObjectMixin

func (*ContainerRenderObject[C]) Add

func (m *ContainerRenderObject[C]) Add(child C)

Add adds the child at the end.

Flutter: rendering/object.dart ContainerRenderObjectMixin.add

func (*ContainerRenderObject[C]) AddAll

func (m *ContainerRenderObject[C]) AddAll(children []C)

AddAll adds the children at the end, in order.

Flutter: rendering/object.dart ContainerRenderObjectMixin.addAll

func (*ContainerRenderObject[C]) ChildAfter

func (m *ContainerRenderObject[C]) ChildAfter(child C) C

ChildAfter is the child after the given child, or nil.

Flutter: rendering/object.dart ContainerRenderObjectMixin.childAfter

func (*ContainerRenderObject[C]) ChildBefore

func (m *ContainerRenderObject[C]) ChildBefore(child C) C

ChildBefore is the child before the given child, or nil.

Flutter: rendering/object.dart ContainerRenderObjectMixin.childBefore

func (*ContainerRenderObject[C]) ChildCount

func (m *ContainerRenderObject[C]) ChildCount() int

ChildCount is the number of children.

Flutter: rendering/object.dart ContainerRenderObjectMixin.childCount

func (*ContainerRenderObject[C]) FirstChild

func (m *ContainerRenderObject[C]) FirstChild() C

FirstChild is the first child, or nil.

Flutter: rendering/object.dart ContainerRenderObjectMixin.firstChild

func (*ContainerRenderObject[C]) Insert

func (m *ContainerRenderObject[C]) Insert(child, after C)

Insert adds the child after another child, or at the start if after is nil. In debug builds it panics with ContainerInsertInvalid if the child is the object itself, is after itself, or is a child already.

Flutter: rendering/object.dart ContainerRenderObjectMixin.insert

func (*ContainerRenderObject[C]) InsertObject

func (m *ContainerRenderObject[C]) InsertObject(child, after RenderObject)

InsertObject inserts the child after a sibling (nil for the start); both must be a C. It panics with the tag RenderChildTypeMismatch when one is of the wrong type.

Flutter: widgets/framework.dart MultiChildRenderObjectElement.insertRenderObjectChild

func (*ContainerRenderObject[C]) LastChild

func (m *ContainerRenderObject[C]) LastChild() C

LastChild is the last child, or nil.

Flutter: rendering/object.dart ContainerRenderObjectMixin.lastChild

func (*ContainerRenderObject[C]) Move

func (m *ContainerRenderObject[C]) Move(child, after C)

Move moves the child to after another child (or the start), and marks the object as needing layout.

Flutter: rendering/object.dart ContainerRenderObjectMixin.move

func (*ContainerRenderObject[C]) MoveObject

func (m *ContainerRenderObject[C]) MoveObject(child, after RenderObject)

MoveObject moves the child after a sibling (nil for the start).

Flutter: widgets/framework.dart MultiChildRenderObjectElement.moveRenderObjectChild

func (*ContainerRenderObject[C]) Remove

func (m *ContainerRenderObject[C]) Remove(child C)

Remove removes the child.

Flutter: rendering/object.dart ContainerRenderObjectMixin.remove

func (*ContainerRenderObject[C]) RemoveAll

func (m *ContainerRenderObject[C]) RemoveAll()

RemoveAll removes every child.

Flutter: rendering/object.dart ContainerRenderObjectMixin.removeAll

func (*ContainerRenderObject[C]) RemoveObject

func (m *ContainerRenderObject[C]) RemoveObject(child RenderObject)

RemoveObject removes the child.

Flutter: widgets/framework.dart MultiChildRenderObjectElement.removeRenderObjectChild

type CrossAxisAlignment

type CrossAxisAlignment int

CrossAxisAlignment is how the children are placed along the cross axis. The zero value is CrossAxisAlignmentUnspecified: center.

Flutter: rendering/flex.dart CrossAxisAlignment

const (
	// CrossAxisAlignmentUnspecified is the zero value: the default (center).
	//
	// Flutter: no counterpart
	CrossAxisAlignmentUnspecified CrossAxisAlignment = iota
	// CrossAxisAlignmentStart places the children with their start edge aligned
	// with the start side of the cross axis.
	//
	// Flutter: rendering/flex.dart CrossAxisAlignment.start
	CrossAxisAlignmentStart
	// CrossAxisAlignmentEnd places the children as close to the end of the cross
	// axis as possible.
	//
	// Flutter: rendering/flex.dart CrossAxisAlignment.end
	CrossAxisAlignmentEnd
	// CrossAxisAlignmentCenter places the children so that their centers align
	// with the middle of the cross axis.
	//
	// Flutter: rendering/flex.dart CrossAxisAlignment.center
	CrossAxisAlignmentCenter
	// CrossAxisAlignmentStretch requires the children to fill the cross axis.
	//
	// Flutter: rendering/flex.dart CrossAxisAlignment.stretch
	CrossAxisAlignmentStretch
	// CrossAxisAlignmentBaseline places the children along the cross axis such
	// that their baselines match.
	//
	// Flutter: rendering/flex.dart CrossAxisAlignment.baseline
	CrossAxisAlignmentBaseline
)

The values of CrossAxisAlignment follow Flutter's declaration order.

func (CrossAxisAlignment) Name

func (c CrossAxisAlignment) Name() string

Name returns the Dart enum name, such as "stretch".

Flutter: rendering/flex.dart CrossAxisAlignment.name

func (CrossAxisAlignment) String

func (c CrossAxisAlignment) String() string

String returns the name Dart prints, such as "CrossAxisAlignment.start".

Flutter: rendering/flex.dart CrossAxisAlignment.toString

type CustomClipper

type CustomClipper[T any] interface {
	foundation.Listenable
	// GetClip returns the clip for the size.
	//
	// Flutter: rendering/proxy_box.dart CustomClipper.getClip
	GetClip(size ui.Size) T
	// GetApproximateClipRect returns a rectangle that approximates the clip,
	// for semantics; the default is the whole box.
	//
	// Flutter: rendering/proxy_box.dart CustomClipper.getApproximateClipRect
	GetApproximateClipRect(size ui.Size) ui.Rect
	// ShouldReclip says whether the clip has to be computed again, given the
	// clipper of the same type that it replaces.
	//
	// Flutter: rendering/proxy_box.dart CustomClipper.shouldReclip
	ShouldReclip(oldClipper CustomClipper[T]) bool
}

CustomClipper creates the clip of a clip render object from the size of the box.

Flutter: rendering/proxy_box.dart CustomClipper

type CustomClipperBase

type CustomClipperBase[T any] struct {
	// contains filtered or unexported fields
}

CustomClipperBase has the listenable and the default approximate rectangle of a CustomClipper: embed it in a clipper.

Flutter: rendering/proxy_box.dart CustomClipper

func NewCustomClipperBase

func NewCustomClipperBase[T any](reclip foundation.Listenable) CustomClipperBase[T]

NewCustomClipperBase creates the base; the clip is computed again when the reclip listenable (nil for none) notifies.

Flutter: rendering/proxy_box.dart CustomClipper.new

func (CustomClipperBase[T]) AddListener

AddListener adds the listener to the reclip listenable.

Flutter: rendering/proxy_box.dart CustomClipper.addListener

func (CustomClipperBase[T]) GetApproximateClipRect

func (c CustomClipperBase[T]) GetApproximateClipRect(size ui.Size) ui.Rect

GetApproximateClipRect is the whole box.

Flutter: rendering/proxy_box.dart CustomClipper.getApproximateClipRect

func (CustomClipperBase[T]) RemoveListener

func (c CustomClipperBase[T]) RemoveListener(handle foundation.ListenerHandle)

RemoveListener removes the listener from the reclip listenable.

Flutter: rendering/proxy_box.dart CustomClipper.removeListener

type CustomPainter

type CustomPainter interface {
	foundation.Listenable
	// Paint paints on the canvas, in the box of the given size at the origin.
	//
	// Flutter: rendering/custom_paint.dart CustomPainter.paint
	Paint(canvas *ui.Canvas, size ui.Size)
	// ShouldRepaint says whether a new painter paints differently from the old
	// one of the same type.
	//
	// Flutter: rendering/custom_paint.dart CustomPainter.shouldRepaint
	ShouldRepaint(oldDelegate CustomPainter) bool
	// HitTest says whether the position is on the painting: none defers to the
	// default (a background painter is hit, a foreground one is not).
	//
	// Flutter: rendering/custom_paint.dart CustomPainter.hitTest
	HitTest(position ui.Offset) foundation.Opt[bool]
}

CustomPainter is the interface that custom painters implement: it paints on a canvas of a given size and tells when it needs to paint again.

The semantics of a painter are optional interfaces: SemanticsPainter and SemanticsRebuildPainter.

Flutter: rendering/custom_paint.dart CustomPainter

type CustomPainterBase

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

CustomPainterBase has the listenable and the defaults of a CustomPainter: embed it and implement Paint and ShouldRepaint.

Flutter: rendering/custom_paint.dart CustomPainter

func NewCustomPainterBase

func NewCustomPainterBase(repaint foundation.Listenable) CustomPainterBase

NewCustomPainterBase creates the base; the box repaints when the repaint listenable (nil for none) notifies.

Flutter: rendering/custom_paint.dart CustomPainter.new

func (CustomPainterBase) AddListener

AddListener adds the listener to the repaint listenable.

Flutter: rendering/custom_paint.dart CustomPainter.addListener

func (CustomPainterBase) HitTest

HitTest defers to the default.

Flutter: rendering/custom_paint.dart CustomPainter.hitTest

func (CustomPainterBase) RemoveListener

func (p CustomPainterBase) RemoveListener(handle foundation.ListenerHandle)

RemoveListener removes the listener from the repaint listenable.

Flutter: rendering/custom_paint.dart CustomPainter.removeListener

type CustomPainterSemantics

type CustomPainterSemantics struct {
	// Key identifies this object among its siblings: the SemanticsNode with the
	// same key is updated from it. With a nil key the update does not guarantee
	// which node is updated.
	//
	// Flutter: rendering/custom_paint.dart CustomPainterSemantics.key
	Key foundation.Key
	// Rect is the location and size of the box on the canvas where this
	// information applies.
	//
	// Flutter: rendering/custom_paint.dart CustomPainterSemantics.rect
	Rect ui.Rect
	// Transform is the transform from the coordinate system of the canvas to
	// that of its parent; nil for none.
	//
	// Flutter: rendering/custom_paint.dart CustomPainterSemantics.transform
	Transform *ui.Matrix4
	// Properties are assigned to the node that is created or updated.
	//
	// Flutter: rendering/custom_paint.dart CustomPainterSemantics.properties
	Properties *semantics.SemanticsProperties
	// Tags are the tags of the node.
	//
	// Flutter: rendering/custom_paint.dart CustomPainterSemantics.tags
	Tags map[semantics.SemanticsTag]struct{}
}

CustomPainterSemantics is the semantics information about a rectangle on a canvas, which a custom painter gives to the accessibility tools.

Flutter: rendering/custom_paint.dart CustomPainterSemantics

type DebugAssertIsValidOpts

type DebugAssertIsValidOpts struct {
	// IsAppliedConstraint is true if the constraints are applied to a render
	// object: constraints that force an infinite size are then invalid.
	IsAppliedConstraint bool
	// InformationCollector adds lines to the panic's metadata.
	InformationCollector InformationCollector
}

DebugAssertIsValidOpts are the optional parameters of Constraints.DebugAssertIsValid.

Flutter: rendering/object.dart Constraints.debugAssertIsValid

type DebugOptions

type DebugOptions struct {
	// ReportError is called with the errors that the render objects report and
	// that do not stop the frame, such as an overflow; nil prints them with
	// DebugPrint. The binding sets it from RendererBindingOpts.ReportError.
	//
	// Flutter: foundation/assertions.dart FlutterError.reportError
	ReportError func(err error)
	// UIThread says which goroutine is the UI thread. Debug builds check it in
	// MarkNeedsLayout and panic with the tag WrongThread; nil
	// checks nothing (SPEC §13).
	//
	// Flutter: no counterpart
	UIThread *foundation.UIThread
	// PaintSizeEnabled paints a box around every render box
	// (debugPaintSizeEnabled).
	PaintSizeEnabled bool
	// PaintBaselinesEnabled paints the alphabetic and ideographic baselines
	// (debugPaintBaselinesEnabled).
	PaintBaselinesEnabled bool
	// PaintTextLayoutBoxes paints a box around every text box
	// (debugPaintTextLayoutBoxes).
	PaintTextLayoutBoxes bool
	// PaintLayerBordersEnabled paints a border around every layer
	// (debugPaintLayerBordersEnabled).
	PaintLayerBordersEnabled bool
	// PaintPointersEnabled paints a color over a box that has pointers on it
	// (debugPaintPointersEnabled).
	PaintPointersEnabled bool
	// RepaintRainbowEnabled paints a changing color border around each
	// repainted layer (debugRepaintRainbowEnabled).
	RepaintRainbowEnabled bool
	// RepaintTextRainbowEnabled paints a changing color over repainted text
	// (debugRepaintTextRainbowEnabled).
	RepaintTextRainbowEnabled bool
	// CurrentRepaintColor is the color of the next repaint rainbow
	// (debugCurrentRepaintColor); the zero value means DefaultRepaintColor.
	CurrentRepaintColor painting.HSVColor
	// PrintMarkNeedsLayoutStacks prints the stack when a render object is marked
	// as needing layout (debugPrintMarkNeedsLayoutStacks).
	PrintMarkNeedsLayoutStacks bool
	// PrintMarkNeedsPaintStacks prints the stack when a render object is marked
	// as needing paint (debugPrintMarkNeedsPaintStacks).
	PrintMarkNeedsPaintStacks bool
	// PrintLayouts prints a line for every render object that lays out
	// (debugPrintLayouts).
	PrintLayouts bool
	// CheckIntrinsicSizes checks that the intrinsic sizes and the dry layout of
	// a box agree with its layout (debugCheckIntrinsicSizes).
	CheckIntrinsicSizes bool
	// ProfileLayoutsEnabled is kept for compatibility: layout profiling is not
	// ported (debugProfileLayoutsEnabled).
	ProfileLayoutsEnabled bool
	// ProfilePaintsEnabled is kept for compatibility: paint profiling is not
	// ported (debugProfilePaintsEnabled).
	ProfilePaintsEnabled bool
	// EnhanceLayoutTimelineArguments is kept for compatibility
	// (debugEnhanceLayoutTimelineArguments).
	EnhanceLayoutTimelineArguments bool
	// EnhancePaintTimelineArguments is kept for compatibility
	// (debugEnhancePaintTimelineArguments).
	EnhancePaintTimelineArguments bool
	// OnProfilePaint is called with each render object that paints
	// (debugOnProfilePaint).
	OnProfilePaint ProfilePaintCallback
	// DisableClipLayers makes the clip layers not clip (debugDisableClipLayers).
	DisableClipLayers bool
	// DisablePhysicalShapeLayers makes the physical shape layers not draw
	// elevation (debugDisablePhysicalShapeLayers).
	DisablePhysicalShapeLayers bool
	// DisableOpacityLayers makes the opacity layers not fade
	// (debugDisableOpacityLayers).
	DisableOpacityLayers bool
	// Print writes a line of debug output; the default is fmt.Println
	// (debugPrint).
	Print func(string)
	// contains filtered or unexported fields
}

DebugOptions are the debugging flags of the rendering library. The renderer binding holds one and shares it with its pipeline owners; layers and render objects read it through their owner. A flag has an effect only in debug builds.

Deviation: Flutter's flags are global variables; these are fields of a value that the binding holds (SPEC §12.10).

Flutter: rendering/debug.dart

func NewDebugOptions

func NewDebugOptions() *DebugOptions

NewDebugOptions creates options with every flag off.

Flutter: rendering/debug.dart

func (*DebugOptions) AddPaintCallback

func (o *DebugOptions) AddPaintCallback(cb DebugPaintCallback)

AddPaintCallback registers a callback that runs after every RenderView paints (debug builds only).

Flutter: rendering/view.dart RenderView.debugAddPaintCallback

func (*DebugOptions) DebugAssertAllRenderVarsUnset

func (o *DebugOptions) DebugAssertAllRenderVarsUnset(reason string, checkIntrinsicSizesOverride bool) bool

DebugAssertAllRenderVarsUnset panics with the tag RenderDebugVarsSet and the reason if any flag is set, in debug builds. CheckIntrinsicSizesOverride is the value that CheckIntrinsicSizes is expected to have.

Flutter: rendering/debug.dart debugAssertAllRenderVarsUnset

func (*DebugOptions) DebugPrint

func (o *DebugOptions) DebugPrint(s string)

DebugPrint writes a line through Print.

Flutter: foundation/print.dart debugPrint

func (*DebugOptions) PaintCallbackCount

func (o *DebugOptions) PaintCallbackCount() int

PaintCallbackCount is the number of registered paint callbacks.

func (*DebugOptions) RemovePaintCallback

func (o *DebugOptions) RemovePaintCallback(index int)

RemovePaintCallback removes the callback registered last with the same function value; because functions are not comparable it takes the index that AddPaintCallback's order gives.

Flutter: rendering/view.dart RenderView.debugRemovePaintCallback

type DebugOverflowIndicator

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

DebugOverflowIndicator paints a yellow and black striped pattern on the edges of a render object whose children overflow it, and reports the overflow once. Embed it in the render objects that overflow.

Deviation: the labels ("RIGHT OVERFLOWED BY 25 PIXELS") are not drawn, because a render object has no text engine; the stripes and the error report are (SPEC §12.10).

Flutter: rendering/debug_overflow_indicator.dart DebugOverflowIndicatorMixin

func (*DebugOverflowIndicator) PaintOverflowIndicator

func (d *DebugOverflowIndicator) PaintOverflowIndicator(self RenderObject, context *PaintingContext, offset ui.Offset,
	containerRect, childRect ui.Rect, overflowHints ...string)

PaintOverflowIndicator paints the striped pattern on the edges of the container that the child overflows, and reports the overflow once. The rects are in the coordinates of the render object.

Flutter: rendering/debug_overflow_indicator.dart DebugOverflowIndicatorMixin.paintOverflowIndicator

func (*DebugOverflowIndicator) ResetOverflowReport

func (d *DebugOverflowIndicator) ResetOverflowReport()

ResetOverflowReport makes the next overflow be reported again; call it from Reassemble.

Flutter: rendering/debug_overflow_indicator.dart DebugOverflowIndicatorMixin.reassemble

type DebugPaintCallback

type DebugPaintCallback func(context *PaintingContext, offset ui.Offset, renderView *RenderView)

DebugPaintCallback is called after a RenderView has painted, to paint on top of it.

Flutter: rendering/view.dart DebugPaintCallback

type DecorationPosition

type DecorationPosition int

DecorationPosition is where a decoration is painted relative to the child.

Flutter: rendering/proxy_box.dart DecorationPosition

const (
	// DecorationPositionUnspecified is the zero value: the widget's default
	// (background).
	//
	// Flutter: no counterpart
	DecorationPositionUnspecified DecorationPosition = iota
	// DecorationPositionBackground paints the decoration behind the child.
	//
	// Flutter: rendering/proxy_box.dart DecorationPosition.background
	DecorationPositionBackground
	// DecorationPositionForeground paints the decoration in front of the child.
	//
	// Flutter: rendering/proxy_box.dart DecorationPosition.foreground
	DecorationPositionForeground
)

The values of DecorationPosition follow Flutter's declaration order.

func (DecorationPosition) Name

func (p DecorationPosition) Name() string

Name returns the Dart enum name, such as "background".

Flutter: rendering/proxy_box.dart DecorationPosition.name

func (DecorationPosition) String

func (p DecorationPosition) String() string

String returns the name Dart prints, such as "DecorationPosition.background".

Flutter: rendering/proxy_box.dart DecorationPosition.toString

type DirectionallyExtendSelectionEvent

type DirectionallyExtendSelectionEvent struct {
	// Dx is the horizontal position that the edge keeps when it moves lines.
	//
	// Flutter: rendering/selection.dart DirectionallyExtendSelectionEvent.dx
	Dx float64
	// IsEnd is whether the end edge moves, instead of the start one.
	//
	// Flutter: rendering/selection.dart DirectionallyExtendSelectionEvent.isEnd
	IsEnd bool
	// Direction is where the edge moves.
	//
	// Flutter: rendering/selection.dart DirectionallyExtendSelectionEvent.direction
	Direction SelectionExtendDirection
}

DirectionallyExtendSelectionEvent extends the selection in a direction.

Flutter: rendering/selection.dart DirectionallyExtendSelectionEvent

func (DirectionallyExtendSelectionEvent) CopyWith

CopyWith returns a copy with the given fields replaced.

Flutter: rendering/selection.dart DirectionallyExtendSelectionEvent.copyWith

func (DirectionallyExtendSelectionEvent) Type

Type is SelectionEventTypeDirectionallyExtendSelection.

Flutter: rendering/selection.dart DirectionallyExtendSelectionEvent

type DirectionallyExtendSelectionEventCopy

type DirectionallyExtendSelectionEventCopy struct {
	Dx        foundation.Opt[float64]
	IsEnd     foundation.Opt[bool]
	Direction SelectionExtendDirection
}

DirectionallyExtendSelectionEventCopy holds the replacements of CopyWith.

Flutter: rendering/selection.dart DirectionallyExtendSelectionEvent.copyWith

type EstimateMaxScrollOffsetOpts

type EstimateMaxScrollOffsetOpts struct {
	// FirstIndex is the index of the first live child.
	FirstIndex foundation.Opt[int]
	// LastIndex is the index of the last live child.
	LastIndex foundation.Opt[int]
	// LeadingScrollOffset is the scroll offset of the leading edge of the first
	// live child.
	LeadingScrollOffset foundation.Opt[float64]
	// TrailingScrollOffset is the scroll offset of the trailing edge of the last
	// live child.
	TrailingScrollOffset foundation.Opt[float64]
}

EstimateMaxScrollOffsetOpts are the parameters of RenderSliverBoxChildManager.EstimateMaxScrollOffset.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverBoxChildManager.estimateMaxScrollOffset

type ExclusiveMouseRegionState

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

ExclusiveMouseRegionState is the state that the exclusive mouse regions of an app share while hit testing. Make one per app (the binding does) and give it to every NewRenderExclusiveMouseRegion.

Deviation: Flutter keeps this state in static fields of _RenderExclusiveMouseRegion; Go has no global mutable state (SPEC §12.10).

Flutter: widgets/raw_tooltip.dart _RenderExclusiveMouseRegion

type ExpandOpts

type ExpandOpts struct {
	// Width is the exact width; unset means as large as possible.
	Width foundation.Opt[float64]
	// Height is the exact height; unset means as large as possible.
	Height foundation.Opt[float64]
}

ExpandOpts are the optional parameters of NewBoxConstraintsExpand.

Flutter: rendering/box.dart BoxConstraints.expand

type FixedColumnWidth

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

FixedColumnWidth sizes the column to a constant width.

Flutter: rendering/table.dart FixedColumnWidth

func NewFixedColumnWidth

func NewFixedColumnWidth(value float64) FixedColumnWidth

NewFixedColumnWidth creates the column width.

Flutter: rendering/table.dart FixedColumnWidth.new

func (FixedColumnWidth) Flex

Flex is none.

Flutter: rendering/table.dart TableColumnWidth.flex

func (FixedColumnWidth) MaxIntrinsicWidth

func (c FixedColumnWidth) MaxIntrinsicWidth([]Box, float64) float64

MaxIntrinsicWidth is the width.

Flutter: rendering/table.dart FixedColumnWidth.maxIntrinsicWidth

func (FixedColumnWidth) MinIntrinsicWidth

func (c FixedColumnWidth) MinIntrinsicWidth([]Box, float64) float64

MinIntrinsicWidth is the width.

Flutter: rendering/table.dart FixedColumnWidth.minIntrinsicWidth

func (FixedColumnWidth) String

func (c FixedColumnWidth) String() string

String is "FixedColumnWidth(5.0)".

Flutter: rendering/table.dart FixedColumnWidth.toString

func (FixedColumnWidth) Value

func (c FixedColumnWidth) Value() float64

Value is the width in logical pixels.

Flutter: rendering/table.dart FixedColumnWidth.value

type FixedExtentLayoutOverrides

type FixedExtentLayoutOverrides interface {
	// OverrideIndexToLayoutOffset replaces IndexToLayoutOffset.
	OverrideIndexToLayoutOffset(index int) float64
	// OverrideMinChildIndexForScrollOffset replaces GetMinChildIndexForScrollOffset.
	OverrideMinChildIndexForScrollOffset(scrollOffset float64) int
	// OverrideMaxChildIndexForScrollOffset replaces GetMaxChildIndexForScrollOffset.
	OverrideMaxChildIndexForScrollOffset(scrollOffset float64) int
	// OverrideComputeMaxScrollOffset replaces ComputeMaxScrollOffset.
	OverrideComputeMaxScrollOffset(constraints SliverConstraints) float64
}

FixedExtentLayoutOverrides is implemented by a sliver that replaces the methods that map scroll offsets to indices and back in RenderSliverFixedExtentBoxAdaptor (the carousel does). Go has no virtual dispatch between the embedded base and the outer type, so the base asks the outer type, under these names, before it uses its own code.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverFixedExtentBoxAdaptor

type FlexColumnWidth

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

FlexColumnWidth sizes the column by a share of the space left over by the other columns.

Flutter: rendering/table.dart FlexColumnWidth

func NewFlexColumnWidth

func NewFlexColumnWidth(opts ...FlexColumnWidthOpts) FlexColumnWidth

NewFlexColumnWidth creates the column width.

Flutter: rendering/table.dart FlexColumnWidth.new

func (FlexColumnWidth) Flex

Flex is the flex factor.

Flutter: rendering/table.dart FlexColumnWidth.flex

func (FlexColumnWidth) MaxIntrinsicWidth

func (FlexColumnWidth) MaxIntrinsicWidth([]Box, float64) float64

MaxIntrinsicWidth is 0.

Flutter: rendering/table.dart FlexColumnWidth.maxIntrinsicWidth

func (FlexColumnWidth) MinIntrinsicWidth

func (FlexColumnWidth) MinIntrinsicWidth([]Box, float64) float64

MinIntrinsicWidth is 0.

Flutter: rendering/table.dart FlexColumnWidth.minIntrinsicWidth

func (FlexColumnWidth) String

func (c FlexColumnWidth) String() string

String is "FlexColumnWidth(1.0)".

Flutter: rendering/table.dart FlexColumnWidth.toString

func (FlexColumnWidth) Value

func (c FlexColumnWidth) Value() float64

Value is the flex factor.

Flutter: rendering/table.dart FlexColumnWidth.value

type FlexColumnWidthOpts

type FlexColumnWidthOpts struct {
	// Value is the flex factor; the default is 1.
	Value foundation.Opt[float64]
}

FlexColumnWidthOpts are the optional parameters of NewFlexColumnWidth.

Flutter: rendering/table.dart FlexColumnWidth.new

type FlexFit

type FlexFit int

FlexFit is how a flexible child is inscribed into the available space. The zero value is FlexFitUnspecified: tight.

Flutter: rendering/flex.dart FlexFit

const (
	// FlexFitUnspecified is the zero value: the default (tight).
	//
	// Flutter: no counterpart
	FlexFitUnspecified FlexFit = iota
	// FlexFitTight forces the child to take all the available space.
	//
	// Flutter: rendering/flex.dart FlexFit.tight
	FlexFitTight
	// FlexFitLoose lets the child be at most as large as the available space.
	//
	// Flutter: rendering/flex.dart FlexFit.loose
	FlexFitLoose
)

The values of FlexFit follow Flutter's declaration order.

func (FlexFit) Name

func (f FlexFit) Name() string

Name returns the Dart enum name, such as "tight".

Flutter: rendering/flex.dart FlexFit.name

func (FlexFit) String

func (f FlexFit) String() string

String returns the name Dart prints, such as "FlexFit.tight".

Flutter: rendering/flex.dart FlexFit.toString

type FlexParentData

type FlexParentData struct {
	ContainerBoxParentData[Box]
	// Flex is the flex factor to use for this child. If None or zero, the
	// child is inflexible and determines its own size in the main axis.
	//
	// Flutter: rendering/flex.dart FlexParentData.flex
	Flex foundation.Opt[int]
	// Fit is how the child is inscribed into the available space. The
	// zero value (FlexFitUnspecified) means tight.
	//
	// Flutter: rendering/flex.dart FlexParentData.fit
	Fit FlexFit
}

FlexParentData is the parent data of the children of a RenderFlex: the flex factor and the fit, besides the offset.

Flutter: rendering/flex.dart FlexParentData

func (*FlexParentData) String

func (d *FlexParentData) String() string

String describes the offset, the flex factor and the fit.

Flutter: rendering/flex.dart FlexParentData.toString

type FloatingHeaderSnapConfiguration

type FloatingHeaderSnapConfiguration struct {
	// Curve is the snap animation curve; the default is Curves.ease.
	//
	// Flutter: rendering/sliver_persistent_header.dart FloatingHeaderSnapConfiguration.curve
	Curve animation.Curve
	// Duration is the snap animation duration; the default is 300ms.
	//
	// Flutter: rendering/sliver_persistent_header.dart FloatingHeaderSnapConfiguration.duration
	Duration time.Duration
}

FloatingHeaderSnapConfiguration is how a floating header snaps into or out of view when the user stops scrolling.

Flutter: rendering/sliver_persistent_header.dart FloatingHeaderSnapConfiguration

func NewFloatingHeaderSnapConfiguration

func NewFloatingHeaderSnapConfiguration(opts ...FloatingHeaderSnapConfigurationOpts) *FloatingHeaderSnapConfiguration

NewFloatingHeaderSnapConfiguration creates the configuration.

Flutter: rendering/sliver_persistent_header.dart FloatingHeaderSnapConfiguration.new

type FloatingHeaderSnapConfigurationOpts

type FloatingHeaderSnapConfigurationOpts struct {
	// Curve defaults to animation.Curves.Ease.
	Curve animation.Curve
	// Duration defaults to 300ms.
	Duration foundation.Opt[time.Duration]
}

FloatingHeaderSnapConfigurationOpts are the optional parameters of NewFloatingHeaderSnapConfiguration.

Flutter: rendering/sliver_persistent_header.dart FloatingHeaderSnapConfiguration.new

type FlowDelegate

type FlowDelegate interface {
	foundation.Listenable
	// GetSize is the size of the container given the constraints.
	//
	// Flutter: rendering/flow.dart FlowDelegate.getSize
	GetSize(constraints BoxConstraints) ui.Size
	// GetConstraintsForChild are the constraints for the i-th child.
	//
	// Flutter: rendering/flow.dart FlowDelegate.getConstraintsForChild
	GetConstraintsForChild(i int, constraints BoxConstraints) BoxConstraints
	// PaintChildren paints the children by calling context.PaintChildAt.
	//
	// Flutter: rendering/flow.dart FlowDelegate.paintChildren
	PaintChildren(context FlowPaintingContext)
	// ShouldRelayout says whether the layout of a flow with the old delegate is
	// out of date.
	//
	// Flutter: rendering/flow.dart FlowDelegate.shouldRelayout
	ShouldRelayout(oldDelegate FlowDelegate) bool
	// ShouldRepaint says whether the painting of a flow with the old delegate is
	// out of date.
	//
	// Flutter: rendering/flow.dart FlowDelegate.shouldRepaint
	ShouldRepaint(oldDelegate FlowDelegate) bool
}

FlowDelegate controls the layout and paint of the children of a RenderFlow. Embed FlowDelegateBase for the defaults.

Flutter: rendering/flow.dart FlowDelegate

type FlowDelegateBase

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

FlowDelegateBase has the listenable and the default methods of a FlowDelegate.

Flutter: rendering/flow.dart FlowDelegate

func NewFlowDelegateBase

func NewFlowDelegateBase(repaint foundation.Listenable) FlowDelegateBase

NewFlowDelegateBase creates the base; the flow repaints when the repaint listenable (nil for none) notifies.

Flutter: rendering/flow.dart FlowDelegate.new

func (FlowDelegateBase) AddListener

AddListener adds the listener to the repaint listenable.

Flutter: rendering/flow.dart FlowDelegate._repaint

func (FlowDelegateBase) GetConstraintsForChild

func (FlowDelegateBase) GetConstraintsForChild(_ int, constraints BoxConstraints) BoxConstraints

GetConstraintsForChild passes the constraints through.

Flutter: rendering/flow.dart FlowDelegate.getConstraintsForChild

func (FlowDelegateBase) GetSize

func (FlowDelegateBase) GetSize(constraints BoxConstraints) ui.Size

GetSize is the biggest size the constraints allow.

Flutter: rendering/flow.dart FlowDelegate.getSize

func (FlowDelegateBase) RemoveListener

func (d FlowDelegateBase) RemoveListener(handle foundation.ListenerHandle)

RemoveListener removes the listener from the repaint listenable.

Flutter: rendering/flow.dart FlowDelegate._repaint

func (FlowDelegateBase) ShouldRelayout

func (FlowDelegateBase) ShouldRelayout(FlowDelegate) bool

ShouldRelayout is false.

Flutter: rendering/flow.dart FlowDelegate.shouldRelayout

type FlowPaintChildOpts

type FlowPaintChildOpts struct {
	// Transform is the transform to apply to the child; nil is the identity.
	Transform *ui.Matrix4
	// Opacity defaults to 1 when None; an opacity of 0 skips painting the
	// child but still records it as painted.
	Opacity foundation.Opt[float64]
}

FlowPaintChildOpts are the optional parameters of FlowPaintingContext.PaintChildAt.

Flutter: rendering/flow.dart FlowPaintingContext.paintChild

type FlowPaintingContext

type FlowPaintingContext interface {
	// Size is the size of the container in which the children are painted.
	//
	// Flutter: rendering/flow.dart FlowPaintingContext.size
	Size() ui.Size
	// ChildCount is the number of children available to paint.
	//
	// Flutter: rendering/flow.dart FlowPaintingContext.childCount
	ChildCount() int
	// GetChildSize is the size of the i-th child, or None if there is no such
	// child.
	//
	// Flutter: rendering/flow.dart FlowPaintingContext.getChildSize
	GetChildSize(i int) foundation.Opt[ui.Size]
	// PaintChildAt paints the i-th child with the transform (nil for the
	// identity) and the opacity. Each child can be painted only once.
	//
	// Flutter: rendering/flow.dart FlowPaintingContext.paintChild
	PaintChildAt(i int, opts ...FlowPaintChildOpts)
}

FlowPaintingContext is the context in which a FlowDelegate paints its children.

Flutter: rendering/flow.dart FlowPaintingContext

type FlowParentData

type FlowParentData struct {
	ContainerBoxParentData[Box]
	// contains filtered or unexported fields
}

FlowParentData is the parent data of the children of a RenderFlow: the transform that the delegate painted the child with.

Flutter: rendering/flow.dart FlowParentData

type FollowerLayer

type FollowerLayer struct {
	ContainerLayer
	// Link is the link to the leader.
	//
	// Flutter: rendering/layer.dart FollowerLayer.link
	Link *LayerLink
	// ShowWhenUnlinked says whether the children are shown when the link has no
	// leader.
	//
	// Flutter: rendering/layer.dart FollowerLayer.showWhenUnlinked
	ShowWhenUnlinked bool
	// UnlinkedOffset is where the children are painted when there is no leader.
	//
	// Flutter: rendering/layer.dart FollowerLayer.unlinkedOffset
	UnlinkedOffset ui.Offset
	// LinkedOffset is the offset from the leader's origin when there is one.
	//
	// Flutter: rendering/layer.dart FollowerLayer.linkedOffset
	LinkedOffset ui.Offset
	// contains filtered or unexported fields
}

FollowerLayer is a layer that follows a LeaderLayer: it applies the transform from the leader's coordinates to its own.

Flutter: rendering/layer.dart FollowerLayer

func NewFollowerLayer

func NewFollowerLayer(link *LayerLink, opts ...FollowerLayerOpts) *FollowerLayer

NewFollowerLayer creates a follower of the link.

Flutter: rendering/layer.dart FollowerLayer.new

func (*FollowerLayer) AddToScene

func (l *FollowerLayer) AddToScene(builder *ui.SceneBuilder)

AddToScene finds the transform to the leader, pushes it, adds the children and pops.

Flutter: rendering/layer.dart FollowerLayer.addToScene

func (*FollowerLayer) AlwaysNeedsAddToScene

func (l *FollowerLayer) AlwaysNeedsAddToScene() bool

AlwaysNeedsAddToScene is true: the transform depends on the leader, which can move without this layer knowing.

Flutter: rendering/layer.dart FollowerLayer.alwaysNeedsAddToScene

func (*FollowerLayer) ApplyTransform

func (l *FollowerLayer) ApplyTransform(child Layer, transform *ui.Matrix4)

ApplyTransform multiplies the transform by the follower's.

Flutter: rendering/layer.dart FollowerLayer.applyTransform

func (*FollowerLayer) DebugFillProperties

func (l *FollowerLayer) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the link and the transform.

Flutter: rendering/layer.dart FollowerLayer.debugFillProperties

func (*FollowerLayer) FindAnnotations

func (l *FollowerLayer) FindAnnotations(result *AnnotationResult, localPosition ui.Offset, onlyFirst bool) bool

FindAnnotations searches the children at the position in the leader's coordinates, or at the unlinked offset if there is no leader.

Flutter: rendering/layer.dart FollowerLayer.findAnnotations

func (*FollowerLayer) LastTransform

func (l *FollowerLayer) LastTransform() *ui.Matrix4

LastTransform is the transform from the follower's parent's coordinates to the leader's, used by the last AddToScene, or nil.

Flutter: rendering/layer.dart FollowerLayer.getLastTransform

type FollowerLayerOpts

type FollowerLayerOpts struct {
	// HideWhenUnlinked hides the children when the link has no leader; the
	// default is to show them (Flutter's showWhenUnlinked = true).
	HideWhenUnlinked bool
	// UnlinkedOffset is where the children are painted when there is no leader.
	UnlinkedOffset ui.Offset
	// LinkedOffset is the offset from the leader's origin when there is one.
	LinkedOffset ui.Offset
}

FollowerLayerOpts are the optional parameters of NewFollowerLayer.

Flutter: rendering/layer.dart FollowerLayer.new

type FractionColumnWidth

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

FractionColumnWidth sizes the column to a fraction of the table's width.

Flutter: rendering/table.dart FractionColumnWidth

func NewFractionColumnWidth

func NewFractionColumnWidth(value float64) FractionColumnWidth

NewFractionColumnWidth creates the column width.

Flutter: rendering/table.dart FractionColumnWidth.new

func (FractionColumnWidth) Flex

Flex is none.

Flutter: rendering/table.dart TableColumnWidth.flex

func (FractionColumnWidth) MaxIntrinsicWidth

func (c FractionColumnWidth) MaxIntrinsicWidth(cells []Box, containerWidth float64) float64

MaxIntrinsicWidth is the fraction of the container's width, or 0 if it is unbounded.

Flutter: rendering/table.dart FractionColumnWidth.maxIntrinsicWidth

func (FractionColumnWidth) MinIntrinsicWidth

func (c FractionColumnWidth) MinIntrinsicWidth(_ []Box, containerWidth float64) float64

MinIntrinsicWidth is the fraction of the container's width, or 0 if it is unbounded.

Flutter: rendering/table.dart FractionColumnWidth.minIntrinsicWidth

func (FractionColumnWidth) String

func (c FractionColumnWidth) String() string

String is "FractionColumnWidth(0.5)".

Flutter: rendering/table.dart FractionColumnWidth.toString

func (FractionColumnWidth) Value

func (c FractionColumnWidth) Value() float64

Value is the fraction of the table's width.

Flutter: rendering/table.dart FractionColumnWidth.value

type FrameTimingHistory

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

FrameTimingHistory keeps the last frames' timings, for the performance overlay.

Flutter: no counterpart

func NewFrameTimingHistory

func NewFrameTimingHistory(capacity int) *FrameTimingHistory

NewFrameTimingHistory creates a history of the last capacity frames; a value below 1 keeps DefaultFrameTimingCapacity.

Flutter: no counterpart

func (*FrameTimingHistory) Add

func (h *FrameTimingHistory) Add(timings ...ui.FrameTiming)

Add appends the timings, dropping the oldest frames over the capacity.

Flutter: no counterpart

func (*FrameTimingHistory) Last

func (h *FrameTimingHistory) Last(n int) []ui.FrameTiming

Last returns the n newest frames, oldest first (all of them if there are fewer).

Flutter: no counterpart

func (*FrameTimingHistory) Len

func (h *FrameTimingHistory) Len() int

Len is the number of frames kept.

Flutter: no counterpart

type GetOffsetToRevealOpts

type GetOffsetToRevealOpts struct {
	// Rect is the part of the target to reveal, in its coordinates; the default
	// is its paint bounds.
	Rect foundation.Opt[ui.Rect]
	// Axis is the axis to reveal along; the default is the main axis of the
	// viewport.
	Axis painting.Axis
}

GetOffsetToRevealOpts are the optional parameters of GetOffsetToReveal.

Flutter: rendering/viewport.dart RenderAbstractViewport.getOffsetToReveal

type GranularlyExtendSelectionEvent

type GranularlyExtendSelectionEvent struct {
	// Forward is whether the edge moves forward.
	//
	// Flutter: rendering/selection.dart GranularlyExtendSelectionEvent.forward
	Forward bool
	// IsEnd is whether the end edge moves, instead of the start one.
	//
	// Flutter: rendering/selection.dart GranularlyExtendSelectionEvent.isEnd
	IsEnd bool
	// Granularity is how far the edge moves.
	//
	// Flutter: rendering/selection.dart GranularlyExtendSelectionEvent.granularity
	Granularity TextGranularity
}

GranularlyExtendSelectionEvent extends the selection by a granularity.

Flutter: rendering/selection.dart GranularlyExtendSelectionEvent

func (GranularlyExtendSelectionEvent) Type

Type is SelectionEventTypeGranularlyExtendSelection.

Flutter: rendering/selection.dart GranularlyExtendSelectionEvent

type GrowthDirection

type GrowthDirection int

GrowthDirection is the direction in which a sliver's contents are ordered, relative to the axis direction.

Flutter: rendering/sliver.dart GrowthDirection

const (
	// GrowthDirectionUnspecified is the zero value; it is not a real direction.
	//
	// Flutter: no counterpart
	GrowthDirectionUnspecified GrowthDirection = iota
	// GrowthDirectionForward means the contents are ordered in the axis direction:
	// the first item at the start (the top or left).
	//
	// Flutter: rendering/sliver.dart GrowthDirection.forward
	GrowthDirectionForward
	// GrowthDirectionReverse means the contents are ordered against the axis
	// direction.
	//
	// Flutter: rendering/sliver.dart GrowthDirection.reverse
	GrowthDirectionReverse
)

The values of GrowthDirection follow Flutter's declaration order.

func (GrowthDirection) String

func (g GrowthDirection) String() string

String is the name with the enum, such as "GrowthDirection.forward".

Flutter: rendering/sliver.dart GrowthDirection

type HitTestBehavior

type HitTestBehavior int

HitTestBehavior is how a box behaves during hit testing.

Flutter: rendering/proxy_box.dart HitTestBehavior

const (
	// HitTestBehaviorUnspecified is the zero value: the widget's default.
	//
	// Flutter: no counterpart
	HitTestBehaviorUnspecified HitTestBehavior = iota
	// HitTestBehaviorDeferToChild targets only the boxes whose children are hit.
	//
	// Flutter: rendering/proxy_box.dart HitTestBehavior.deferToChild
	HitTestBehaviorDeferToChild
	// HitTestBehaviorOpaque targets the box, so the boxes behind it are not hit.
	//
	// Flutter: rendering/proxy_box.dart HitTestBehavior.opaque
	HitTestBehaviorOpaque
	// HitTestBehaviorTranslucent targets the box and lets the boxes behind it be
	// hit as well.
	//
	// Flutter: rendering/proxy_box.dart HitTestBehavior.translucent
	HitTestBehaviorTranslucent
)

The values of HitTestBehavior follow Flutter's declaration order.

func (HitTestBehavior) Name

func (b HitTestBehavior) Name() string

Name returns the Dart enum name, such as "opaque".

Flutter: rendering/proxy_box.dart HitTestBehavior.name

func (HitTestBehavior) String

func (b HitTestBehavior) String() string

String returns the name Dart prints, such as "HitTestBehavior.opaque".

Flutter: rendering/proxy_box.dart HitTestBehavior.toString

type ImageFilterLayer

type ImageFilterLayer struct {
	OffsetLayer
	// contains filtered or unexported fields
}

ImageFilterLayer is a layer that applies an image filter to its children.

Flutter: rendering/layer.dart ImageFilterLayer

func NewImageFilterLayer

func NewImageFilterLayer(opts ...ImageFilterLayerOpts) *ImageFilterLayer

NewImageFilterLayer creates an image filter layer.

Flutter: rendering/layer.dart ImageFilterLayer.new

func (*ImageFilterLayer) AddToScene

func (l *ImageFilterLayer) AddToScene(builder *ui.SceneBuilder)

AddToScene pushes the filter, adds the children and pops.

Flutter: rendering/layer.dart ImageFilterLayer.addToScene

func (*ImageFilterLayer) DebugFillProperties

func (l *ImageFilterLayer) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the filter.

Flutter: rendering/layer.dart ImageFilterLayer.debugFillProperties

func (*ImageFilterLayer) ImageFilter

func (l *ImageFilterLayer) ImageFilter() ui.ImageFilter

ImageFilter is the filter.

Flutter: rendering/layer.dart ImageFilterLayer.imageFilter

func (*ImageFilterLayer) SetImageFilter

func (l *ImageFilterLayer) SetImageFilter(v ui.ImageFilter)

SetImageFilter changes the filter, which must not be nil.

Flutter: rendering/layer.dart ImageFilterLayer.imageFilter

type ImageFilterLayerOpts

type ImageFilterLayerOpts struct {
	// ImageFilter is the filter; it must be set before the layer is added to a
	// scene.
	ImageFilter ui.ImageFilter
	// Offset is how far the children are moved.
	Offset ui.Offset
}

ImageFilterLayerOpts are the optional parameters of NewImageFilterLayer.

Flutter: rendering/layer.dart ImageFilterLayer.new

type InformationCollector

type InformationCollector func() []string

InformationCollector returns lines that add context to a failure.

Deviation: Flutter's collector returns DiagnosticsNodes; this returns strings (SPEC §12.10).

Flutter: foundation/assertions.dart InformationCollector

type IntrinsicColumnWidth

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

IntrinsicColumnWidth sizes the column by the intrinsic width of its widest cell.

Flutter: rendering/table.dart IntrinsicColumnWidth

func NewIntrinsicColumnWidth

func NewIntrinsicColumnWidth(opts ...IntrinsicColumnWidthOpts) IntrinsicColumnWidth

NewIntrinsicColumnWidth creates the column width.

Flutter: rendering/table.dart IntrinsicColumnWidth.new

func (IntrinsicColumnWidth) Flex

Flex is the flex the column was created with.

Flutter: rendering/table.dart IntrinsicColumnWidth.flex

func (IntrinsicColumnWidth) MaxIntrinsicWidth

func (IntrinsicColumnWidth) MaxIntrinsicWidth(cells []Box, _ float64) float64

MaxIntrinsicWidth is the largest maximum intrinsic width among the cells.

Flutter: rendering/table.dart IntrinsicColumnWidth.maxIntrinsicWidth

func (IntrinsicColumnWidth) MinIntrinsicWidth

func (IntrinsicColumnWidth) MinIntrinsicWidth(cells []Box, _ float64) float64

MinIntrinsicWidth is the largest minimum intrinsic width among the cells.

Flutter: rendering/table.dart IntrinsicColumnWidth.minIntrinsicWidth

func (IntrinsicColumnWidth) String

func (c IntrinsicColumnWidth) String() string

String is "IntrinsicColumnWidth(flex: 1.0)".

Flutter: rendering/table.dart IntrinsicColumnWidth.toString

type IntrinsicColumnWidthOpts

type IntrinsicColumnWidthOpts struct {
	// Flex, if set, makes the column take a share of the free space.
	Flex foundation.Opt[float64]
}

IntrinsicColumnWidthOpts are the optional parameters of NewIntrinsicColumnWidth.

Flutter: rendering/table.dart IntrinsicColumnWidth.new

type ItemExtentBuilder

type ItemExtentBuilder func(index int, dimensions SliverLayoutDimensions) foundation.Opt[float64]

ItemExtentBuilder gives the main axis extent of the item at the index, or none to let the item decide.

Flutter: rendering/sliver.dart ItemExtentBuilder

type KeepAliveParentData

type KeepAliveParentData interface {
	ParentData
	// KeepAliveData is the embedded mixin.
	KeepAliveData() *KeepAliveParentDataMixin
	// KeptAlive is whether the parent keeps the child alive at the moment, while
	// it is out of view.
	//
	// Flutter: rendering/sliver_multi_box_adaptor.dart KeepAliveParentDataMixin.keptAlive
	KeptAlive() bool
}

KeepAliveParentData is a parent data that embeds KeepAliveParentDataMixin and knows whether the parent keeps the child alive at the moment.

Flutter: rendering/sliver_multi_box_adaptor.dart KeepAliveParentDataMixin

type KeepAliveParentDataMixin

type KeepAliveParentDataMixin struct {
	// KeepAlive is whether the child asks the parent to keep it alive while it is
	// not visible.
	//
	// Flutter: rendering/sliver_multi_box_adaptor.dart KeepAliveParentDataMixin.keepAlive
	KeepAlive bool
}

KeepAliveParentDataMixin is the state of a parent data that lets its child ask the parent to keep it alive when it scrolls out of view. Embed it in the parent data type.

Flutter: rendering/sliver_multi_box_adaptor.dart KeepAliveParentDataMixin

func (*KeepAliveParentDataMixin) KeepAliveData

KeepAliveData is the mixin.

type Layer

type Layer interface {
	foundation.DiagnosticableTree
	// AddToScene adds the layer and its children to the scene builder. It is
	// the method to override; the pipeline calls it through the retained
	// rendering path.
	//
	// Flutter: rendering/layer.dart Layer.addToScene
	AddToScene(builder *ui.SceneBuilder)
	// FindAnnotations adds the annotations at the position (in the layer's
	// coordinates) to the result, and reports whether the layer absorbs hits.
	//
	// Flutter: rendering/layer.dart Layer.findAnnotations
	FindAnnotations(result *AnnotationResult, localPosition ui.Offset, onlyFirst bool) bool
	// AlwaysNeedsAddToScene reports whether the layer must be added to every
	// scene, even when it did not change.
	//
	// Flutter: rendering/layer.dart Layer.alwaysNeedsAddToScene
	AlwaysNeedsAddToScene() bool
	// SupportsRasterization reports whether the layer can be rasterized (an
	// embedded platform view cannot).
	//
	// Flutter: rendering/layer.dart Layer.supportsRasterization
	SupportsRasterization() bool
	// DescribeClipBounds are the bounds of the clip that the layer applies, if
	// it is a clip.
	//
	// Flutter: rendering/layer.dart Layer.describeClipBounds
	DescribeClipBounds() foundation.Opt[ui.Rect]
	// Attach attaches the layer to the owner.
	//
	// Flutter: rendering/layer.dart Layer.attach
	Attach(owner any)
	// Detach detaches the layer from its owner.
	//
	// Flutter: rendering/layer.dart Layer.detach
	Detach()
	// Dispose releases the layer's resources. Use handles; do not call it
	// while a handle holds the layer.
	//
	// Flutter: rendering/layer.dart Layer.dispose
	Dispose()
	// UpdateSubtreeNeedsAddToScene marks the layer as needing AddToScene if
	// it or a descendant needs it.
	//
	// Flutter: rendering/layer.dart Layer.updateSubtreeNeedsAddToScene
	UpdateSubtreeNeedsAddToScene()
	// RedepthChildren updates the depth of the children.
	//
	// Flutter: rendering/layer.dart Layer.redepthChildren
	RedepthChildren()
	// AsLayer returns the LayerBase every layer embeds.
	AsLayer() *LayerBase
	// contains filtered or unexported methods
}

Layer is a composited layer: a node of the tree that the pipeline builds from the painting and turns into a scene. A layer type embeds one of the structs of this package (LayerBase, ContainerLayer, OffsetLayer, ...) and overrides the methods it needs; the embedded struct reaches the outer object through the self pointer that the constructor set.

Flutter: rendering/layer.dart Layer

type LayerBase

type LayerBase struct {

	// DebugCreator is the object that created the layer, for debug output.
	//
	// Flutter: rendering/layer.dart Layer.debugCreator
	DebugCreator any
	// contains filtered or unexported fields
}

LayerBase is the state and the default behavior that every Layer embeds.

Flutter: rendering/layer.dart Layer

func (*LayerBase) AddCompositionCallback

func (b *LayerBase) AddCompositionCallback(callback CompositionCallback) func()

AddCompositionCallback registers a callback that is called when the layer is composited into a scene and when it is detached. It returns the function that removes the callback.

Flutter: rendering/layer.dart Layer.addCompositionCallback

func (*LayerBase) AddToScene

func (b *LayerBase) AddToScene(*ui.SceneBuilder)

AddToScene panics: a layer type must override it.

Flutter: rendering/layer.dart Layer.addToScene

func (*LayerBase) AlwaysNeedsAddToScene

func (b *LayerBase) AlwaysNeedsAddToScene() bool

AlwaysNeedsAddToScene is false: a layer is reused when it did not change.

Flutter: rendering/layer.dart Layer.alwaysNeedsAddToScene

func (*LayerBase) AsLayer

func (b *LayerBase) AsLayer() *LayerBase

AsLayer returns the base itself.

func (*LayerBase) Attach

func (b *LayerBase) Attach(owner any)

Attach sets the owner.

Flutter: rendering/layer.dart Layer.attach

func (*LayerBase) Attached

func (b *LayerBase) Attached() bool

Attached reports whether the layer has an owner.

Flutter: rendering/layer.dart Layer.attached

func (*LayerBase) DebugDescribeChildren

func (b *LayerBase) DebugDescribeChildren() []foundation.DiagnosticsNode

DebugDescribeChildren is empty for a leaf layer.

Flutter: rendering/layer.dart Layer.debugDescribeChildren

func (*LayerBase) DebugDisposed

func (b *LayerBase) DebugDisposed() bool

DebugDisposed reports whether the layer was disposed (always false in release builds).

Flutter: rendering/layer.dart Layer.debugDisposed

func (*LayerBase) DebugFillProperties

func (b *LayerBase) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the owner, the creator, the engine layer and the handle count.

Flutter: rendering/layer.dart Layer.debugFillProperties

func (*LayerBase) DebugHandleCount

func (b *LayerBase) DebugHandleCount() int

DebugHandleCount is the number of handles that hold the layer.

Flutter: rendering/layer.dart Layer.debugHandleCount

func (*LayerBase) DebugMarkClean

func (b *LayerBase) DebugMarkClean()

DebugMarkClean marks the layer as not needing AddToScene (debug builds only), for tests.

Flutter: rendering/layer.dart Layer.debugMarkClean

func (*LayerBase) DebugSubtreeNeedsAddToScene

func (b *LayerBase) DebugSubtreeNeedsAddToScene() bool

DebugSubtreeNeedsAddToScene reports whether the layer is marked as needing to be added to the scene (debug builds only; release builds give false).

Flutter: rendering/layer.dart Layer.debugSubtreeNeedsAddToScene

func (*LayerBase) Depth

func (b *LayerBase) Depth() int

Depth is the distance of the layer from the root, set when it is attached.

Flutter: rendering/layer.dart Layer.depth

func (*LayerBase) DescribeClipBounds

func (b *LayerBase) DescribeClipBounds() foundation.Opt[ui.Rect]

DescribeClipBounds is nothing for a layer that does not clip.

Flutter: rendering/layer.dart Layer.describeClipBounds

func (*LayerBase) Detach

func (b *LayerBase) Detach()

Detach clears the owner.

Flutter: rendering/layer.dart Layer.detach

func (*LayerBase) Dispose

func (b *LayerBase) Dispose()

Dispose releases the engine layer. Layers are disposed when the last handle lets go of them; a layer must be disposed once. A debug build panics with LayerDisposedTwice or LayerDisposedWithHandles when it is not.

Flutter: rendering/layer.dart Layer.dispose

func (*LayerBase) EngineLayer

func (b *LayerBase) EngineLayer() ui.EngineLayer

EngineLayer is the engine layer of the last time the layer was added to a scene, or nil.

Flutter: rendering/layer.dart Layer.engineLayer

func (*LayerBase) FindAnnotations

func (b *LayerBase) FindAnnotations(*AnnotationResult, ui.Offset, bool) bool

FindAnnotations finds nothing: a layer has no annotations by default.

Flutter: rendering/layer.dart Layer.findAnnotations

func (*LayerBase) MarkNeedsAddToScene

func (b *LayerBase) MarkNeedsAddToScene()

MarkNeedsAddToScene makes the layer be added to the next scene again, not reused from the previous one.

Flutter: rendering/layer.dart Layer.markNeedsAddToScene

func (*LayerBase) NextSibling

func (b *LayerBase) NextSibling() Layer

NextSibling is the layer after this one in the parent's list.

Flutter: rendering/layer.dart Layer.nextSibling

func (*LayerBase) Owner

func (b *LayerBase) Owner() any

Owner is the object that the layer is attached to, or nil.

Flutter: rendering/layer.dart Layer.owner

func (*LayerBase) Parent

func (b *LayerBase) Parent() *ContainerLayer

Parent is the layer that holds this one as a child.

Flutter: rendering/layer.dart Layer.parent

func (*LayerBase) PreviousSibling

func (b *LayerBase) PreviousSibling() Layer

PreviousSibling is the layer before this one in the parent's list.

Flutter: rendering/layer.dart Layer.previousSibling

func (*LayerBase) RedepthChildren

func (b *LayerBase) RedepthChildren()

RedepthChildren does nothing: a leaf has no children.

Flutter: rendering/layer.dart Layer.redepthChildren

func (*LayerBase) Remove

func (b *LayerBase) Remove()

Remove removes the layer from its parent.

Flutter: rendering/layer.dart Layer.remove

func (*LayerBase) SetEngineLayer

func (b *LayerBase) SetEngineLayer(value ui.EngineLayer)

SetEngineLayer replaces the engine layer, disposing the old one, and marks the parent as needing AddToScene.

Flutter: rendering/layer.dart Layer.engineLayer

func (*LayerBase) String

func (b *LayerBase) String() string

String describes the layer.

func (*LayerBase) SubtreeHasCompositionCallbacks

func (b *LayerBase) SubtreeHasCompositionCallbacks() bool

SubtreeHasCompositionCallbacks reports whether this layer or a descendant has composition callbacks.

Flutter: rendering/layer.dart Layer.subtreeHasCompositionCallbacks

func (*LayerBase) SupportsRasterization

func (b *LayerBase) SupportsRasterization() bool

SupportsRasterization reports whether the layer can be rasterized.

Flutter: rendering/layer.dart Layer.supportsRasterization

func (*LayerBase) ToStringShort

func (b *LayerBase) ToStringShort() string

ToStringShort adds " DETACHED" to a layer that has no owner.

Flutter: rendering/layer.dart Layer.toStringShort

func (*LayerBase) UpdateSubtreeNeedsAddToScene

func (b *LayerBase) UpdateSubtreeNeedsAddToScene()

UpdateSubtreeNeedsAddToScene marks the layer as needing AddToScene if it always does.

Flutter: rendering/layer.dart Layer.updateSubtreeNeedsAddToScene

type LayerHandle

type LayerHandle[T Layer] struct {
	// contains filtered or unexported fields
}

LayerHandle holds a reference to a layer and disposes the layer when the last handle lets go. A render object holds its layer in one.

Flutter: rendering/layer.dart LayerHandle

func NewLayerHandle

func NewLayerHandle[T Layer](layer T) *LayerHandle[T]

NewLayerHandle creates a handle holding the layer (nil for none).

Flutter: rendering/layer.dart LayerHandle.new

func (*LayerHandle[T]) Layer

func (h *LayerHandle[T]) Layer() T

Layer is the held layer, or the zero value of T (nil).

Flutter: rendering/layer.dart LayerHandle.layer

func (*LayerHandle[T]) SetLayer

func (h *LayerHandle[T]) SetLayer(layer T)

SetLayer replaces the held layer, releasing the old one. Pass the zero value (nil) to let go. Setting a disposed layer panics with LayerHandleDisposed in debug builds.

Flutter: rendering/layer.dart LayerHandle.layer

func (*LayerHandle[T]) String

func (h *LayerHandle[T]) String() string

String describes the handle.

Flutter: rendering/layer.dart LayerHandle.toString

type LayerLink struct {

	// LeaderSize is the size of the leader's render object, set when it paints;
	// the follower can use it to place itself.
	//
	// Flutter: rendering/layer.dart LayerLink.leaderSize
	LeaderSize foundation.Opt[ui.Size]
	// contains filtered or unexported fields
}

LayerLink links a LeaderLayer to the FollowerLayers that follow it. Create one and give it to both.

Deviation: the check that a previous leader is gone by the end of the frame (a post-frame callback in Flutter) is not ported (SPEC §12.10).

Flutter: rendering/layer.dart LayerLink

func NewLayerLink() *LayerLink

NewLayerLink creates a link without a leader.

Flutter: rendering/layer.dart LayerLink.new

func (*LayerLink) DebugPreviousLeaderCount

func (k *LayerLink) DebugPreviousLeaderCount() int

DebugPreviousLeaderCount is the number of leaders that were replaced and are still attached (debug builds only); it is 0 when the app is correct.

Flutter: rendering/layer.dart LayerLink._debugPreviousLeaders

func (*LayerLink) Leader

func (k *LayerLink) Leader() *LeaderLayer

Leader is the leader layer that is attached now, or nil.

Flutter: rendering/layer.dart LayerLink.leader

func (*LayerLink) String

func (k *LayerLink) String() string

String describes the link.

Flutter: rendering/layer.dart LayerLink.toString

type LayoutCallback

type LayoutCallback func(constraints Constraints)

LayoutCallback is called while a render object lays out, to build or change its children. The constraints are those of the render object.

Flutter: rendering/object.dart LayoutCallback

type LayoutCallbackMixin

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

LayoutCallbackMixin is the state for a render object that runs a layout callback while it lays out (a LayoutBuilder's). Embed it, call InitLayoutCallbackMixin, and give the callback as the function.

Flutter: rendering/object.dart RenderObjectWithLayoutCallbackMixin

func (*LayoutCallbackMixin) RunLayoutCallback

func (m *LayoutCallbackMixin) RunLayoutCallback()

RunLayoutCallback runs the layout callback; call it from PerformLayout.

Flutter: rendering/object.dart RenderObjectWithLayoutCallbackMixin.runLayoutCallback

func (*LayoutCallbackMixin) ScheduleLayoutCallback

func (m *LayoutCallbackMixin) ScheduleLayoutCallback()

ScheduleLayoutCallback schedules the layout callback: the object is added to the owner's list to lay out, and marked as needing layout.

Flutter: rendering/object.dart RenderObjectWithLayoutCallbackMixin.scheduleLayoutCallback

type LayoutChildSequenceOpts

type LayoutChildSequenceOpts struct {
	// Child is the first sliver of the sequence.
	Child Sliver
	// ScrollOffset is the scroll offset of the first sliver.
	ScrollOffset float64
	// Overlap is how much the first sliver overlaps the leading edge.
	Overlap float64
	// LayoutOffset is where the first sliver is laid out, from the leading edge.
	LayoutOffset float64
	// RemainingPaintExtent is how much of the viewport remains to be painted.
	RemainingPaintExtent float64
	// MainAxisExtent is the extent of the viewport in the main axis.
	MainAxisExtent float64
	// CrossAxisExtent is the extent of the viewport in the cross axis.
	CrossAxisExtent float64
	// GrowthDirection is the growth direction of the sequence.
	GrowthDirection GrowthDirection
	// Advance gives the next sliver of the sequence.
	Advance func(child Sliver) Sliver
	// RemainingCacheExtent is how much of the cache area remains.
	RemainingCacheExtent float64
	// CacheOrigin is where the cache area starts.
	CacheOrigin float64
}

LayoutChildSequenceOpts are the parameters of LayoutChildSequence.

Flutter: rendering/viewport.dart RenderViewportBase.layoutChildSequence

type LayoutOpts

type LayoutOpts struct {
	// ParentUsesSize says that the parent reads the child's size, so the parent
	// has to lay out again when the child's size changes.
	ParentUsesSize bool
}

LayoutOpts are the optional parameters of RenderObject.Layout.

Flutter: rendering/object.dart RenderObject.layout

type LeaderLayer

type LeaderLayer struct {
	ContainerLayer
	// contains filtered or unexported fields
}

LeaderLayer is the layer that FollowerLayers follow.

Flutter: rendering/layer.dart LeaderLayer

func NewLeaderLayer

func NewLeaderLayer(link *LayerLink, opts ...LeaderLayerOpts) *LeaderLayer

NewLeaderLayer creates a leader for the link.

Flutter: rendering/layer.dart LeaderLayer.new

func (*LeaderLayer) AddToScene

func (l *LeaderLayer) AddToScene(builder *ui.SceneBuilder)

AddToScene pushes the offset as a transform, if there is one, and adds the children.

Flutter: rendering/layer.dart LeaderLayer.addToScene

func (*LeaderLayer) ApplyTransform

func (l *LeaderLayer) ApplyTransform(child Layer, transform *ui.Matrix4)

ApplyTransform translates the transform by the offset.

Flutter: rendering/layer.dart LeaderLayer.applyTransform

func (*LeaderLayer) Attach

func (l *LeaderLayer) Attach(owner any)

Attach registers the leader with its link.

Flutter: rendering/layer.dart LeaderLayer.attach

func (*LeaderLayer) DebugFillProperties

func (l *LeaderLayer) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the offset and the link.

Flutter: rendering/layer.dart LeaderLayer.debugFillProperties

func (*LeaderLayer) Detach

func (l *LeaderLayer) Detach()

Detach unregisters the leader from its link.

Flutter: rendering/layer.dart LeaderLayer.detach

func (*LeaderLayer) FindAnnotations

func (l *LeaderLayer) FindAnnotations(result *AnnotationResult, localPosition ui.Offset, onlyFirst bool) bool

FindAnnotations searches the children at the position minus the offset.

Flutter: rendering/layer.dart LeaderLayer.findAnnotations

func (l *LeaderLayer) Link() *LayerLink

Link is the link the leader belongs to.

Flutter: rendering/layer.dart LeaderLayer.link

func (*LeaderLayer) Offset

func (l *LeaderLayer) Offset() ui.Offset

Offset is the position of the leader in its parent.

Flutter: rendering/layer.dart LeaderLayer.offset

func (l *LeaderLayer) SetLink(v *LayerLink)

SetLink changes the link, moving the registration if attached.

Flutter: rendering/layer.dart LeaderLayer.link

func (*LeaderLayer) SetOffset

func (l *LeaderLayer) SetOffset(v ui.Offset)

SetOffset moves the leader.

Flutter: rendering/layer.dart LeaderLayer.offset

type LeaderLayerOpts

type LeaderLayerOpts struct {
	// Offset is the position of the leader in its parent.
	Offset ui.Offset
}

LeaderLayerOpts are the optional parameters of NewLeaderLayer.

Flutter: rendering/layer.dart LeaderLayer.new

type ListBodyParentData

type ListBodyParentData struct {
	ContainerBoxParentData[Box]
}

ListBodyParentData is the parent data of the children of a RenderListBody.

Flutter: rendering/list_body.dart ListBodyParentData

type ListWheelChildManager

type ListWheelChildManager interface {
	// ChildCount is the number of children, or none if the list is not bounded.
	//
	// Flutter: rendering/list_wheel_viewport.dart ListWheelChildManager.childCount
	ChildCount() foundation.Opt[int]
	// ChildExistsAt is whether there is a child at the index.
	//
	// Flutter: rendering/list_wheel_viewport.dart ListWheelChildManager.childExistsAt
	ChildExistsAt(index int) bool
	// CreateChild creates the child at the index and inserts it after the given
	// child (nil for the start).
	//
	// Flutter: rendering/list_wheel_viewport.dart ListWheelChildManager.createChild
	CreateChild(index int, after Box)
	// RemoveChild removes the child.
	//
	// Flutter: rendering/list_wheel_viewport.dart ListWheelChildManager.removeChild
	RemoveChild(child Box)
}

ListWheelChildManager creates and removes the children of a RenderListWheelViewport, lazily, while the viewport lays itself out.

Flutter: rendering/list_wheel_viewport.dart ListWheelChildManager

type ListWheelParentData

type ListWheelParentData struct {
	ContainerBoxParentData[Box]
	// Index is the index of the child in the list, or none before it is set.
	//
	// Flutter: rendering/list_wheel_viewport.dart ListWheelParentData.index
	Index foundation.Opt[int]
	// Transform is the transform the child was last painted with, or nil.
	//
	// Flutter: rendering/list_wheel_viewport.dart ListWheelParentData.transform
	Transform *ui.Matrix4
}

ListWheelParentData is the parent data of the children of a RenderListWheelViewport: the index, and the transform that the child was last painted with.

Flutter: rendering/list_wheel_viewport.dart ListWheelParentData

func (*ListWheelParentData) Detach

func (d *ListWheelParentData) Detach()

Detach panics in debug builds if the sibling links are still set.

Flutter: rendering/object.dart ContainerParentDataMixin.detach

type MainAxisAlignment

type MainAxisAlignment int

MainAxisAlignment is how the children are placed along the main axis. The zero value is MainAxisAlignmentUnspecified: start.

Flutter: rendering/flex.dart MainAxisAlignment

const (
	// MainAxisAlignmentUnspecified is the zero value: the default (start).
	//
	// Flutter: no counterpart
	MainAxisAlignmentUnspecified MainAxisAlignment = iota
	// MainAxisAlignmentStart places the children as close to the start of the
	// main axis as possible.
	//
	// Flutter: rendering/flex.dart MainAxisAlignment.start
	MainAxisAlignmentStart
	// MainAxisAlignmentEnd places the children as close to the end of the main
	// axis as possible.
	//
	// Flutter: rendering/flex.dart MainAxisAlignment.end
	MainAxisAlignmentEnd
	// MainAxisAlignmentCenter places the children as close to the middle of the
	// main axis as possible.
	//
	// Flutter: rendering/flex.dart MainAxisAlignment.center
	MainAxisAlignmentCenter
	// MainAxisAlignmentSpaceBetween places the free space evenly between the
	// children.
	//
	// Flutter: rendering/flex.dart MainAxisAlignment.spaceBetween
	MainAxisAlignmentSpaceBetween
	// MainAxisAlignmentSpaceAround places the free space evenly between the
	// children as well as half of that space before and after the first and
	// last child.
	//
	// Flutter: rendering/flex.dart MainAxisAlignment.spaceAround
	MainAxisAlignmentSpaceAround
	// MainAxisAlignmentSpaceEvenly places the free space evenly between the
	// children as well as before and after the first and last child.
	//
	// Flutter: rendering/flex.dart MainAxisAlignment.spaceEvenly
	MainAxisAlignmentSpaceEvenly
)

The values of MainAxisAlignment follow Flutter's declaration order.

func (MainAxisAlignment) Name

func (m MainAxisAlignment) Name() string

Name returns the Dart enum name, such as "spaceBetween".

Flutter: rendering/flex.dart MainAxisAlignment.name

func (MainAxisAlignment) String

func (m MainAxisAlignment) String() string

String returns the name Dart prints, such as "MainAxisAlignment.start".

Flutter: rendering/flex.dart MainAxisAlignment.toString

type MainAxisSize

type MainAxisSize int

MainAxisSize is how much space is occupied along the main axis. The zero value is MainAxisSizeUnspecified: max.

Flutter: rendering/flex.dart MainAxisSize

const (
	// MainAxisSizeUnspecified is the zero value: the default (max).
	//
	// Flutter: no counterpart
	MainAxisSizeUnspecified MainAxisSize = iota
	// MainAxisSizeMin minimizes the amount of free space along the main axis.
	//
	// Flutter: rendering/flex.dart MainAxisSize.min
	MainAxisSizeMin
	// MainAxisSizeMax maximizes the amount of free space along the main axis.
	//
	// Flutter: rendering/flex.dart MainAxisSize.max
	MainAxisSizeMax
)

The values of MainAxisSize follow Flutter's declaration order.

func (MainAxisSize) Name

func (m MainAxisSize) Name() string

Name returns the Dart enum name, such as "min".

Flutter: rendering/flex.dart MainAxisSize.name

func (MainAxisSize) String

func (m MainAxisSize) String() string

String returns the name Dart prints, such as "MainAxisSize.min".

Flutter: rendering/flex.dart MainAxisSize.toString

type MaxColumnWidth

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

MaxColumnWidth sizes the column to the larger of two column widths.

Flutter: rendering/table.dart MaxColumnWidth

func NewMaxColumnWidth

func NewMaxColumnWidth(a, b TableColumnWidth) MaxColumnWidth

NewMaxColumnWidth creates the column width.

Flutter: rendering/table.dart MaxColumnWidth.new

func (MaxColumnWidth) Flex

func (c MaxColumnWidth) Flex(cells []Box) foundation.Opt[float64]

Flex is the larger of the two flex factors, or the one that is set.

Flutter: rendering/table.dart MaxColumnWidth.flex

func (MaxColumnWidth) MaxIntrinsicWidth

func (c MaxColumnWidth) MaxIntrinsicWidth(cells []Box, w float64) float64

MaxIntrinsicWidth is the larger of the two.

Flutter: rendering/table.dart MaxColumnWidth.maxIntrinsicWidth

func (MaxColumnWidth) MinIntrinsicWidth

func (c MaxColumnWidth) MinIntrinsicWidth(cells []Box, w float64) float64

MinIntrinsicWidth is the larger of the two.

Flutter: rendering/table.dart MaxColumnWidth.minIntrinsicWidth

func (MaxColumnWidth) String

func (c MaxColumnWidth) String() string

String is "MaxColumnWidth(a, b)".

Flutter: rendering/table.dart MaxColumnWidth.toString

type MinColumnWidth

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

MinColumnWidth sizes the column to the smaller of two column widths.

Flutter: rendering/table.dart MinColumnWidth

func NewMinColumnWidth

func NewMinColumnWidth(a, b TableColumnWidth) MinColumnWidth

NewMinColumnWidth creates the column width.

Flutter: rendering/table.dart MinColumnWidth.new

func (MinColumnWidth) Flex

func (c MinColumnWidth) Flex(cells []Box) foundation.Opt[float64]

Flex is the smaller of the two flex factors, or the one that is set.

Flutter: rendering/table.dart MinColumnWidth.flex

func (MinColumnWidth) MaxIntrinsicWidth

func (c MinColumnWidth) MaxIntrinsicWidth(cells []Box, w float64) float64

MaxIntrinsicWidth is the smaller of the two.

Flutter: rendering/table.dart MinColumnWidth.maxIntrinsicWidth

func (MinColumnWidth) MinIntrinsicWidth

func (c MinColumnWidth) MinIntrinsicWidth(cells []Box, w float64) float64

MinIntrinsicWidth is the smaller of the two.

Flutter: rendering/table.dart MinColumnWidth.minIntrinsicWidth

func (MinColumnWidth) String

func (c MinColumnWidth) String() string

String is "MinColumnWidth(a, b)".

Flutter: rendering/table.dart MinColumnWidth.toString

type MouseTracker

type MouseTracker struct {
	foundation.ChangeNotifier
	// contains filtered or unexported fields
}

MouseTracker tracks the annotations under each mouse pointer, and sends enter and exit events and the cursor changes to them. It notifies its listeners when a mouse is connected or disconnected.

Flutter: rendering/mouse_tracker.dart MouseTracker

func NewMouseTracker

func NewMouseTracker(hitTestInView MouseTrackerHitTest, fallbackCursor services.MouseCursor) *MouseTracker

NewMouseTracker creates a tracker that hit tests with hitTestInView. The fallback cursor is the basic one.

Flutter: rendering/mouse_tracker.dart MouseTracker.new

func (*MouseTracker) DebugDeviceActiveCursor

func (t *MouseTracker) DebugDeviceActiveCursor(device int) (services.MouseCursor, bool)

DebugDeviceActiveCursor is the cursor of the device; it is only available in debug mode.

Flutter: rendering/mouse_tracker.dart MouseTracker.debugDeviceActiveCursor

func (*MouseTracker) MouseIsConnected

func (t *MouseTracker) MouseIsConnected() bool

MouseIsConnected is whether any mouse is connected.

Flutter: rendering/mouse_tracker.dart MouseTracker.mouseIsConnected

func (*MouseTracker) SetSystemCursorActivator

func (t *MouseTracker) SetSystemCursorActivator(activate services.SystemCursorActivator)

SetSystemCursorActivator sets the function that shows a system cursor on a device: the dispatcher's, in an app.

Deviation: Flutter's cursor sessions use a platform channel (SPEC §12.10).

Flutter: services/mouse_cursor.dart _SystemMouseCursorSession.activate

func (*MouseTracker) UpdateAllDevices

func (t *MouseTracker) UpdateAllDevices()

UpdateAllDevices hit tests again for every device, which sends the enter and exit events that a new frame caused. It is called after every frame.

Flutter: rendering/mouse_tracker.dart MouseTracker.updateAllDevices

func (*MouseTracker) UpdateWithEvent

func (t *MouseTracker) UpdateWithEvent(event gestures.PointerEvent, hitTestResult *gestures.HitTestResult)

UpdateWithEvent updates the annotations under the device of a mouse or stylus event. The hit test result is the one the event produced, or nil to hit test again. Other kinds of device and signal events are ignored.

Flutter: rendering/mouse_tracker.dart MouseTracker.updateWithEvent

type MouseTrackerHitTest

type MouseTrackerHitTest func(offset ui.Offset, viewID ui.ViewID) *gestures.HitTestResult

MouseTrackerHitTest hit tests a position of a view and returns the result.

Flutter: rendering/mouse_tracker.dart MouseTrackerHitTest

type MultiChildLayoutDelegate

type MultiChildLayoutDelegate interface {
	foundation.Listenable
	// Base is the embedded base, where the state of a layout is kept.
	Base() *MultiChildLayoutDelegateBase
	// GetSize is the size of the box for the constraints.
	//
	// Flutter: rendering/custom_layout.dart MultiChildLayoutDelegate.getSize
	GetSize(constraints BoxConstraints) ui.Size
	// PerformLayout lays out and positions the children, each exactly once,
	// with the base's LayoutChild and PositionChild.
	//
	// Flutter: rendering/custom_layout.dart MultiChildLayoutDelegate.performLayout
	PerformLayout(size ui.Size)
	// ShouldRelayout says whether the box should be laid out again, given the
	// delegate of the same type that it replaces.
	//
	// Flutter: rendering/custom_layout.dart MultiChildLayoutDelegate.shouldRelayout
	ShouldRelayout(oldDelegate MultiChildLayoutDelegate) bool
}

MultiChildLayoutDelegate controls the layout and the position of the children of a RenderCustomMultiChildLayoutBox. Embed MultiChildLayoutDelegateBase and implement PerformLayout and ShouldRelayout.

Flutter: rendering/custom_layout.dart MultiChildLayoutDelegate

type MultiChildLayoutDelegateBase

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

MultiChildLayoutDelegateBase has the relayout listenable, the state of a layout and the methods a delegate uses to lay its children out.

Flutter: rendering/custom_layout.dart MultiChildLayoutDelegate

func NewMultiChildLayoutDelegateBase

func NewMultiChildLayoutDelegateBase(relayout foundation.Listenable) MultiChildLayoutDelegateBase

NewMultiChildLayoutDelegateBase creates the base; the box is laid out again when the relayout listenable (nil for none) notifies.

Flutter: rendering/custom_layout.dart MultiChildLayoutDelegate.new

func (*MultiChildLayoutDelegateBase) AddListener

AddListener adds the listener to the relayout listenable.

Flutter: rendering/custom_layout.dart MultiChildLayoutDelegate._relayout

func (*MultiChildLayoutDelegateBase) Base

Base returns the base itself.

Flutter: no counterpart (the self pattern, SPEC §12.5)

func (*MultiChildLayoutDelegateBase) GetSize

func (*MultiChildLayoutDelegateBase) GetSize(constraints BoxConstraints) ui.Size

GetSize is the biggest size the constraints allow.

Flutter: rendering/custom_layout.dart MultiChildLayoutDelegate.getSize

func (*MultiChildLayoutDelegateBase) HasChild

func (d *MultiChildLayoutDelegateBase) HasChild(childID any) bool

HasChild reports whether there is a child with the id.

Flutter: rendering/custom_layout.dart MultiChildLayoutDelegate.hasChild

func (*MultiChildLayoutDelegateBase) LayoutChild

func (d *MultiChildLayoutDelegateBase) LayoutChild(childID any, constraints BoxConstraints) ui.Size

LayoutChild lays out the child with the id with the constraints and returns its size. In debug builds it panics with MultiChildLayoutNoSuchChild if there is no such child, and with MultiChildLayoutChildTwice if the child was laid out already.

Flutter: rendering/custom_layout.dart MultiChildLayoutDelegate.layoutChild

func (*MultiChildLayoutDelegateBase) PositionChild

func (d *MultiChildLayoutDelegateBase) PositionChild(childID any, offset ui.Offset)

PositionChild sets the offset of the child with the id. In debug builds it panics with MultiChildLayoutNoSuchChild if there is no such child.

Flutter: rendering/custom_layout.dart MultiChildLayoutDelegate.positionChild

func (*MultiChildLayoutDelegateBase) RemoveListener

func (d *MultiChildLayoutDelegateBase) RemoveListener(handle foundation.ListenerHandle)

RemoveListener removes the listener from the relayout listenable.

Flutter: rendering/custom_layout.dart MultiChildLayoutDelegate._relayout

type MultiChildLayoutParentData

type MultiChildLayoutParentData struct {
	ContainerBoxParentData[Box]
	// ID is the identifier used to refer to the child. It must be comparable.
	//
	// Flutter: rendering/custom_layout.dart MultiChildLayoutParentData.id
	ID any
}

MultiChildLayoutParentData is the parent data of the children of a RenderCustomMultiChildLayoutBox: the id that the delegate knows the child by.

Flutter: rendering/custom_layout.dart MultiChildLayoutParentData

func (*MultiChildLayoutParentData) String

func (d *MultiChildLayoutParentData) String() string

String is the offset and the id.

Flutter: rendering/custom_layout.dart MultiChildLayoutParentData.toString

type OffsetLayer

type OffsetLayer struct {
	ContainerLayer
	// contains filtered or unexported fields
}

OffsetLayer is a layer that offsets its children. It is the layer of a repaint boundary.

Flutter: rendering/layer.dart OffsetLayer

func NewOffsetLayer

func NewOffsetLayer(opts ...OffsetLayerOpts) *OffsetLayer

NewOffsetLayer creates an offset layer.

Flutter: rendering/layer.dart OffsetLayer.new

func (*OffsetLayer) AddToScene

func (l *OffsetLayer) AddToScene(builder *ui.SceneBuilder)

AddToScene pushes the offset, adds the children and pops.

Flutter: rendering/layer.dart OffsetLayer.addToScene

func (*OffsetLayer) ApplyTransform

func (l *OffsetLayer) ApplyTransform(child Layer, transform *ui.Matrix4)

ApplyTransform translates the transform by the offset.

Flutter: rendering/layer.dart OffsetLayer.applyTransform

func (*OffsetLayer) AsOffsetLayer

func (l *OffsetLayer) AsOffsetLayer() *OffsetLayer

AsOffsetLayer returns the layer itself.

func (*OffsetLayer) DebugFillProperties

func (l *OffsetLayer) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the offset.

Flutter: rendering/layer.dart OffsetLayer.debugFillProperties

func (*OffsetLayer) FindAnnotations

func (l *OffsetLayer) FindAnnotations(result *AnnotationResult, localPosition ui.Offset, onlyFirst bool) bool

FindAnnotations searches the children at the position minus the offset.

Flutter: rendering/layer.dart OffsetLayer.findAnnotations

func (*OffsetLayer) Offset

func (l *OffsetLayer) Offset() ui.Offset

Offset is how far the children are moved.

Flutter: rendering/layer.dart OffsetLayer.offset

func (*OffsetLayer) SetOffset

func (l *OffsetLayer) SetOffset(v ui.Offset)

SetOffset changes the offset and marks the layer as needing AddToScene.

Flutter: rendering/layer.dart OffsetLayer.offset

func (*OffsetLayer) ToImage

func (l *OffsetLayer) ToImage(bounds ui.Rect, pixelRatio float64, opts ...ui.ToImageOpts) (*ui.Image, error)

ToImage renders the layer tree (as of the last compositing) to an image of the bounds, at the pixel ratio (1 if zero).

Deviation: Flutter's returns a Future and draws with the engine; this blocks, returns the error, and is given the rasterizer in the options (SPEC §12.10).

Flutter: rendering/layer.dart OffsetLayer.toImage

func (*OffsetLayer) ToImageSync

func (l *OffsetLayer) ToImageSync(bounds ui.Rect, pixelRatio float64, opts ...ui.ToImageOpts) (*ui.Image, error)

ToImageSync is ToImage on the calling goroutine.

Flutter: rendering/layer.dart OffsetLayer.toImageSync

type OffsetLayerLike

type OffsetLayerLike interface {
	ContainerLayerLike
	AsOffsetLayer() *OffsetLayer
}

OffsetLayerLike is a layer that is an OffsetLayer: the layer of a repaint boundary can be any of them.

Flutter: no counterpart

type OffsetLayerOpts

type OffsetLayerOpts struct {
	// Offset is how far the children are moved.
	Offset ui.Offset
}

OffsetLayerOpts are the optional parameters of NewOffsetLayer.

Flutter: rendering/layer.dart OffsetLayer.new

type OpacityLayer

type OpacityLayer struct {
	OffsetLayer
	// contains filtered or unexported fields
}

OpacityLayer is a layer that makes its children partly transparent.

Flutter: rendering/layer.dart OpacityLayer

func NewOpacityLayer

func NewOpacityLayer(opts ...OpacityLayerOpts) *OpacityLayer

NewOpacityLayer creates an opacity layer.

Flutter: rendering/layer.dart OpacityLayer.new

func (*OpacityLayer) AddToScene

func (l *OpacityLayer) AddToScene(builder *ui.SceneBuilder)

AddToScene pushes an opacity (or only an offset when it is opaque), adds the children and pops. A layer without children adds nothing.

Flutter: rendering/layer.dart OpacityLayer.addToScene

func (*OpacityLayer) Alpha

func (l *OpacityLayer) Alpha() foundation.Opt[int]

Alpha is the opacity, 0 to 255.

Flutter: rendering/layer.dart OpacityLayer.alpha

func (*OpacityLayer) DebugFillProperties

func (l *OpacityLayer) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the alpha.

Flutter: rendering/layer.dart OpacityLayer.debugFillProperties

func (*OpacityLayer) SetAlpha

func (l *OpacityLayer) SetAlpha(v int)

SetAlpha changes the opacity. The engine layer is dropped when the alpha becomes or stops being 255, as the kind of layer pushed changes.

Flutter: rendering/layer.dart OpacityLayer.alpha

type OpacityLayerOpts

type OpacityLayerOpts struct {
	// Alpha is the opacity, 0 to 255; it must be set before the layer is added
	// to a scene.
	Alpha foundation.Opt[int]
	// Offset is how far the children are moved.
	Offset ui.Offset
}

OpacityLayerOpts are the optional parameters of NewOpacityLayer.

Flutter: rendering/layer.dart OpacityLayer.new

type OutOfBandOpts

type OutOfBandOpts struct {
	// PaintOffset is the offset the child is painted at.
	PaintOffset *ui.Offset
	// PaintTransform is the transform the child is painted with; it is inverted.
	PaintTransform *ui.Matrix4
	// RawTransform maps the position directly.
	RawTransform *ui.Matrix4
}

OutOfBandOpts say how the position maps in AddWithOutOfBandPosition; exactly one must be set.

Flutter: rendering/box.dart BoxHitTestResult.addWithOutOfBandPosition

type OverScrollHeaderStretchConfiguration

type OverScrollHeaderStretchConfiguration struct {
	// StretchTriggerOffset is the overscroll distance, in logical pixels, at
	// which OnStretchTrigger is called; the default is 100.
	//
	// Flutter: rendering/sliver_persistent_header.dart OverScrollHeaderStretchConfiguration.stretchTriggerOffset
	StretchTriggerOffset float64
	// OnStretchTrigger is called when the overscroll reaches the trigger offset;
	// nil for none.
	//
	// Flutter: rendering/sliver_persistent_header.dart OverScrollHeaderStretchConfiguration.onStretchTrigger
	OnStretchTrigger func()
}

OverScrollHeaderStretchConfiguration is the configuration of a header that stretches when it is overscrolled.

Deviation: OnStretchTrigger is a plain function, not an AsyncCallback that returns a Future (SPEC §12.10).

Flutter: rendering/sliver_persistent_header.dart OverScrollHeaderStretchConfiguration

func NewOverScrollHeaderStretchConfiguration

func NewOverScrollHeaderStretchConfiguration() *OverScrollHeaderStretchConfiguration

NewOverScrollHeaderStretchConfiguration creates the configuration with the default trigger offset of 100 and no callback.

Flutter: rendering/sliver_persistent_header.dart OverScrollHeaderStretchConfiguration.new

type OverflowBarAlignment

type OverflowBarAlignment int

OverflowBarAlignment is how a RenderOverflowBar aligns its children when they overflow horizontally and are stacked vertically.

Flutter: widgets/overflow_bar.dart OverflowBarAlignment

const (
	// OverflowBarAlignmentUnspecified is the zero value: the default (start).
	//
	// Flutter: no counterpart
	OverflowBarAlignmentUnspecified OverflowBarAlignment = iota
	// OverflowBarAlignmentStart aligns each child to the start of the bar.
	//
	// Flutter: widgets/overflow_bar.dart OverflowBarAlignment.start
	OverflowBarAlignmentStart
	// OverflowBarAlignmentEnd aligns each child to the end of the bar.
	//
	// Flutter: widgets/overflow_bar.dart OverflowBarAlignment.end
	OverflowBarAlignmentEnd
	// OverflowBarAlignmentCenter centers each child.
	//
	// Flutter: widgets/overflow_bar.dart OverflowBarAlignment.center
	OverflowBarAlignmentCenter
)

func (OverflowBarAlignment) Name

func (a OverflowBarAlignment) Name() string

Name returns the Dart enum name.

Flutter: widgets/overflow_bar.dart OverflowBarAlignment.name

func (OverflowBarAlignment) String

func (a OverflowBarAlignment) String() string

String returns the name Dart prints, such as "OverflowBarAlignment.end".

Flutter: widgets/overflow_bar.dart OverflowBarAlignment.toString

type OverflowBarParentData

type OverflowBarParentData struct {
	ContainerBoxParentData[Box]
}

OverflowBarParentData is the parent data of the children of a RenderOverflowBar.

Flutter: widgets/overflow_bar.dart _OverflowBarParentData

type OverflowBoxFit

type OverflowBoxFit int

OverflowBoxFit is how a RenderConstrainedOverflowBox sizes itself.

Flutter: rendering/shifted_box.dart OverflowBoxFit

const (
	// OverflowBoxFitUnspecified is the zero value: the widget's default (max).
	//
	// Flutter: no counterpart
	OverflowBoxFitUnspecified OverflowBoxFit = iota
	// OverflowBoxFitMax passes the constraints of the parent: the box is as big
	// as possible.
	//
	// Flutter: rendering/shifted_box.dart OverflowBoxFit.max
	OverflowBoxFitMax
	// OverflowBoxFitDeferToChild sizes the box to the child.
	//
	// Flutter: rendering/shifted_box.dart OverflowBoxFit.deferToChild
	OverflowBoxFitDeferToChild
)

The values of OverflowBoxFit follow Flutter's declaration order.

func (OverflowBoxFit) Name

func (f OverflowBoxFit) Name() string

Name returns the Dart enum name, such as "max".

Flutter: rendering/shifted_box.dart OverflowBoxFit.name

func (OverflowBoxFit) String

func (f OverflowBoxFit) String() string

String returns the name Dart prints, such as "OverflowBoxFit.max".

Flutter: rendering/shifted_box.dart OverflowBoxFit.toString

type PaintingContext

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

PaintingContext is a place to record painting commands: it hands out a canvas, and builds the layer tree around the pictures.

Deviation: the constructor is not protected, and CreateChildContext cannot be overridden; the picture recorder and the canvas are made by the ui package directly, not by the renderer binding (SPEC §12.10).

Flutter: rendering/object.dart PaintingContext

func NewPaintingContext

func NewPaintingContext(containerLayer *ContainerLayer, estimatedBounds ui.Rect) *PaintingContext

NewPaintingContext creates a context that adds its layers to the container layer; estimatedBounds is where it expects to paint.

Flutter: rendering/object.dart PaintingContext.new

func (*PaintingContext) AddCompositionCallback

func (c *PaintingContext) AddCompositionCallback(callback CompositionCallback) func()

AddCompositionCallback registers a callback on the container layer that runs when it is composited into a scene. It returns the function that removes it.

Flutter: rendering/object.dart PaintingContext.addCompositionCallback

func (*PaintingContext) AddLayer

func (c *PaintingContext) AddLayer(layer Layer)

AddLayer stops recording and adds the layer.

Flutter: rendering/object.dart PaintingContext.addLayer

func (*PaintingContext) AppendLayer

func (c *PaintingContext) AppendLayer(layer Layer)

AppendLayer adds the layer to the container layer, after removing it from where it was. The context must not be recording.

Flutter: rendering/object.dart PaintingContext.appendLayer

func (*PaintingContext) Canvas

func (c *PaintingContext) Canvas() *ui.Canvas

Canvas is the canvas to paint on, which starts a new picture layer if the context was not recording.

Flutter: rendering/object.dart PaintingContext.canvas

func (*PaintingContext) EstimatedBounds

func (c *PaintingContext) EstimatedBounds() ui.Rect

EstimatedBounds is the area that the context expects to paint in.

Flutter: rendering/object.dart PaintingContext.estimatedBounds

func (*PaintingContext) PaintChild

func (c *PaintingContext) PaintChild(child RenderObject, offset ui.Offset)

PaintChild paints a child render object at an offset: into this context, or into the child's own layer when it is a repaint boundary.

Flutter: rendering/object.dart PaintingContext.paintChild

func (*PaintingContext) PushClipPath

func (c *PaintingContext) PushClipPath(needsCompositing bool, offset ui.Offset, bounds ui.Rect, clipPath *ui.Path, painter PaintingContextCallback, opts ...PushClipPathOpts) *ClipPathLayer

PushClipPath clips the painter to the path. See PushClipRect.

Flutter: rendering/object.dart PaintingContext.pushClipPath

func (*PaintingContext) PushClipRRect

func (c *PaintingContext) PushClipRRect(needsCompositing bool, offset ui.Offset, bounds ui.Rect, clipRRect ui.RRect, painter PaintingContextCallback, opts ...PushClipRRectOpts) *ClipRRectLayer

PushClipRRect clips the painter to the rounded rectangle; bounds are the bounds of what is painted. See PushClipRect.

Flutter: rendering/object.dart PaintingContext.pushClipRRect

func (*PaintingContext) PushClipRSuperellipse

func (c *PaintingContext) PushClipRSuperellipse(needsCompositing bool, offset ui.Offset, bounds ui.Rect, clip ui.RSuperellipse, painter PaintingContextCallback, opts ...PushClipRSuperellipseOpts) *ClipRSuperellipseLayer

PushClipRSuperellipse clips the painter to the rounded superellipse. See PushClipRect.

Flutter: rendering/object.dart PaintingContext.pushClipRSuperellipse

func (*PaintingContext) PushClipRect

func (c *PaintingContext) PushClipRect(needsCompositing bool, offset ui.Offset, clipRect ui.Rect, painter PaintingContextCallback, opts ...PushClipRectOpts) *ClipRectLayer

PushClipRect clips the painter to the rectangle. If needsCompositing it uses a ClipRectLayer (the one returned, to keep as the next OldLayer); otherwise it clips the canvas and returns nil.

Flutter: rendering/object.dart PaintingContext.pushClipRect

func (*PaintingContext) PushColorFilter

func (c *PaintingContext) PushColorFilter(offset ui.Offset, colorFilter *ui.ColorFilter, painter PaintingContextCallback, oldLayer *ColorFilterLayer) *ColorFilterLayer

PushColorFilter applies the color filter to what the painter paints, using a ColorFilterLayer (oldLayer is reused if not nil).

Flutter: rendering/object.dart PaintingContext.pushColorFilter

func (*PaintingContext) PushLayer

func (c *PaintingContext) PushLayer(childLayer ContainerLayerLike, painter PaintingContextCallback, offset ui.Offset, childPaintBounds foundation.Opt[ui.Rect])

PushLayer paints into a child layer: it appends the layer, creates a child context for it and calls the painter. childPaintBounds are the estimated bounds of the child (the default is those of this context).

Flutter: rendering/object.dart PaintingContext.pushLayer

func (*PaintingContext) PushOpacity

func (c *PaintingContext) PushOpacity(offset ui.Offset, alpha int, painter PaintingContextCallback, oldLayer *OpacityLayer) *OpacityLayer

PushOpacity makes what the painter paints partly transparent, using an OpacityLayer (oldLayer is reused if not nil).

Flutter: rendering/object.dart PaintingContext.pushOpacity

func (*PaintingContext) PushTransform

func (c *PaintingContext) PushTransform(needsCompositing bool, offset ui.Offset, transform *ui.Matrix4, painter PaintingContextCallback, oldLayer *TransformLayer) *TransformLayer

PushTransform transforms what the painter paints. If needsCompositing it uses a TransformLayer (oldLayer is reused if not nil) and returns it; otherwise it transforms the canvas and returns nil.

Flutter: rendering/object.dart PaintingContext.pushTransform

func (*PaintingContext) Recorder

func (c *PaintingContext) Recorder() *ui.PictureRecorder

Recorder is the picture recorder, which starts recording if it was not.

Flutter: rendering/object.dart PaintingContext.recorder

func (*PaintingContext) SetIsComplexHint

func (c *PaintingContext) SetIsComplexHint()

SetIsComplexHint hints that the current picture is expensive to draw.

Flutter: rendering/object.dart PaintingContext.setIsComplexHint

func (*PaintingContext) SetWillChangeHint

func (c *PaintingContext) SetWillChangeHint()

SetWillChangeHint hints that the current picture is likely to change.

Flutter: rendering/object.dart PaintingContext.setWillChangeHint

func (*PaintingContext) StopRecordingIfNeeded

func (c *PaintingContext) StopRecordingIfNeeded()

StopRecordingIfNeeded ends the picture that is being recorded, if any, and stores it in its layer. Paint code does not call it; the context does.

Flutter: rendering/object.dart PaintingContext.stopRecordingIfNeeded

func (*PaintingContext) String

func (c *PaintingContext) String() string

String describes the context.

Flutter: rendering/object.dart PaintingContext.toString

type PaintingContextCallback

type PaintingContextCallback func(context *PaintingContext, offset ui.Offset)

PaintingContextCallback paints into a context at an offset.

Flutter: rendering/object.dart PaintingContextCallback

type ParentData

type ParentData interface {
	// Detach is called when the child is removed from its parent.
	//
	// Flutter: rendering/object.dart ParentData.detach
	Detach()
	// String describes the data.
	String() string
}

ParentData is the base class for data that a parent render object stores on its children: where to position them, who their siblings are, and so on. A type that holds parent data embeds ParentDataBase.

Flutter: rendering/object.dart ParentData

type ParentDataBase

type ParentDataBase struct{}

ParentDataBase is the default implementation of ParentData to embed.

Flutter: rendering/object.dart ParentData

func (*ParentDataBase) Detach

func (*ParentDataBase) Detach()

Detach does nothing.

Flutter: rendering/object.dart ParentData.detach

func (*ParentDataBase) String

func (*ParentDataBase) String() string

String is "<none>".

Flutter: rendering/object.dart ParentData.toString

type PerformanceOverlayOption

type PerformanceOverlayOption int

PerformanceOverlayOption is a part of the performance overlay.

Flutter: rendering/performance_overlay.dart PerformanceOverlayOption

const (
	// PerformanceOverlayOptionUnspecified is the zero value: not an option.
	//
	// Flutter: no counterpart
	PerformanceOverlayOptionUnspecified PerformanceOverlayOption = iota
	// PerformanceOverlayOptionDisplayRasterizerStatistics writes the statistics of the
	// raster thread (the time to draw a frame) as text.
	//
	// Flutter: rendering/performance_overlay.dart PerformanceOverlayOption.displayRasterizerStatistics
	PerformanceOverlayOptionDisplayRasterizerStatistics
	// PerformanceOverlayOptionVisualizeRasterizerStatistics draws a graph of the time to
	// draw each frame.
	//
	// Flutter: rendering/performance_overlay.dart PerformanceOverlayOption.visualizeRasterizerStatistics
	PerformanceOverlayOptionVisualizeRasterizerStatistics
	// PerformanceOverlayOptionDisplayEngineStatistics writes the statistics of the UI
	// thread (the time to build a frame) as text.
	//
	// Flutter: rendering/performance_overlay.dart PerformanceOverlayOption.displayEngineStatistics
	PerformanceOverlayOptionDisplayEngineStatistics
	// PerformanceOverlayOptionVisualizeEngineStatistics draws a graph of the time to
	// build each frame.
	//
	// Flutter: rendering/performance_overlay.dart PerformanceOverlayOption.visualizeEngineStatistics
	PerformanceOverlayOptionVisualizeEngineStatistics
)

The parts of the overlay. Flutter's constants are the bits of the options mask, in the order of the enum's indexes (Index); Mask is the bit.

func (PerformanceOverlayOption) Index

func (o PerformanceOverlayOption) Index() int

Index is the position of the option in Flutter's enum, from 0.

Flutter: rendering/performance_overlay.dart PerformanceOverlayOption.index

func (PerformanceOverlayOption) Mask

func (o PerformanceOverlayOption) Mask() int

Mask is the bit of the option in an options mask.

Flutter: rendering/performance_overlay.dart (1 << option.index)

type PersistentHeaderShowOnScreenConfiguration

type PersistentHeaderShowOnScreenConfiguration struct {
	// MinShowOnScreenExtent is the smallest extent the header may take; the
	// default is minus infinity.
	//
	// Flutter: rendering/sliver_persistent_header.dart PersistentHeaderShowOnScreenConfiguration.minShowOnScreenExtent
	MinShowOnScreenExtent float64
	// MaxShowOnScreenExtent is the largest extent the header may take; the
	// default is infinity.
	//
	// Flutter: rendering/sliver_persistent_header.dart PersistentHeaderShowOnScreenConfiguration.maxShowOnScreenExtent
	MaxShowOnScreenExtent float64
}

PersistentHeaderShowOnScreenConfiguration is how a header reacts to a request to show a descendant of it on screen: the range of extents it may take.

Flutter: rendering/sliver_persistent_header.dart PersistentHeaderShowOnScreenConfiguration

func NewPersistentHeaderShowOnScreenConfiguration

func NewPersistentHeaderShowOnScreenConfiguration(opts ...PersistentHeaderShowOnScreenConfigurationOpts) *PersistentHeaderShowOnScreenConfiguration

NewPersistentHeaderShowOnScreenConfiguration creates the configuration. In debug builds a minimum above the maximum panics with the tag PersistentHeaderShowOnScreenInvalid.

Flutter: rendering/sliver_persistent_header.dart PersistentHeaderShowOnScreenConfiguration.new

type PersistentHeaderShowOnScreenConfigurationOpts

type PersistentHeaderShowOnScreenConfigurationOpts struct {
	// MinShowOnScreenExtent defaults to minus infinity.
	MinShowOnScreenExtent foundation.Opt[float64]
	// MaxShowOnScreenExtent defaults to infinity.
	MaxShowOnScreenExtent foundation.Opt[float64]
}

PersistentHeaderShowOnScreenConfigurationOpts are the optional parameters of NewPersistentHeaderShowOnScreenConfiguration.

Flutter: rendering/sliver_persistent_header.dart PersistentHeaderShowOnScreenConfiguration.new

type PictureLayer

type PictureLayer struct {
	LayerBase
	// contains filtered or unexported fields
}

PictureLayer is a layer that holds a picture the canvas recorded.

Flutter: rendering/layer.dart PictureLayer

func NewPictureLayer

func NewPictureLayer(canvasBounds ui.Rect) *PictureLayer

NewPictureLayer creates a layer for a picture that is recorded into the bounds.

Flutter: rendering/layer.dart PictureLayer.new

func (*PictureLayer) AddToScene

func (l *PictureLayer) AddToScene(builder *ui.SceneBuilder)

AddToScene adds the picture to the scene.

Flutter: rendering/layer.dart PictureLayer.addToScene

func (*PictureLayer) CanvasBounds

func (l *PictureLayer) CanvasBounds() ui.Rect

CanvasBounds are the bounds the picture is drawn in, for debugging; the picture is not clipped to them.

Flutter: rendering/layer.dart PictureLayer.canvasBounds

func (*PictureLayer) DebugFillProperties

func (l *PictureLayer) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the paint bounds, the picture and the hints.

Flutter: rendering/layer.dart PictureLayer.debugFillProperties

func (*PictureLayer) Dispose

func (l *PictureLayer) Dispose()

Dispose disposes the picture and the layer.

Flutter: rendering/layer.dart PictureLayer.dispose

func (*PictureLayer) IsComplexHint

func (l *PictureLayer) IsComplexHint() bool

IsComplexHint tells the engine that the picture is expensive to draw.

Flutter: rendering/layer.dart PictureLayer.isComplexHint

func (*PictureLayer) Picture

func (l *PictureLayer) Picture() *ui.Picture

Picture is the picture of the layer.

Flutter: rendering/layer.dart PictureLayer.picture

func (*PictureLayer) SetIsComplexHint

func (l *PictureLayer) SetIsComplexHint(v bool)

SetIsComplexHint sets the hint.

Flutter: rendering/layer.dart PictureLayer.isComplexHint

func (*PictureLayer) SetPicture

func (l *PictureLayer) SetPicture(p *ui.Picture)

SetPicture replaces the picture, disposing the old one.

Flutter: rendering/layer.dart PictureLayer.picture

func (*PictureLayer) SetWillChangeHint

func (l *PictureLayer) SetWillChangeHint(v bool)

SetWillChangeHint sets the hint.

Flutter: rendering/layer.dart PictureLayer.willChangeHint

func (*PictureLayer) WillChangeHint

func (l *PictureLayer) WillChangeHint() bool

WillChangeHint tells the engine that the picture is likely to change.

Flutter: rendering/layer.dart PictureLayer.willChangeHint

type PipelineManifold

type PipelineManifold interface {
	foundation.Listenable
	// SemanticsEnabled reports whether semantics are needed.
	//
	// Flutter: rendering/object.dart PipelineManifold.semanticsEnabled
	SemanticsEnabled() bool
	// RequestVisualUpdate asks for a frame.
	//
	// Flutter: rendering/object.dart PipelineManifold.requestVisualUpdate
	RequestVisualUpdate()
}

PipelineManifold is the connection between a tree of pipeline owners and the rest of the framework: it asks for frames and says whether semantics are wanted. It is a Listenable that notifies when SemanticsEnabled changes.

Flutter: rendering/object.dart PipelineManifold

type PipelineOwner

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

PipelineOwner is the interface between the render tree and the pipeline that runs layout, compositing bits, paint and semantics. A tree of owners has one owner per root render object (such as a RenderView).

Flutter: rendering/object.dart PipelineOwner

func NewPipelineOwner

func NewPipelineOwner(opts ...PipelineOwnerOpts) *PipelineOwner

NewPipelineOwner creates a pipeline owner.

Flutter: rendering/object.dart PipelineOwner.new

func NewViewPipelineOwner

func NewViewPipelineOwner(opts ...PipelineOwnerOpts) *PipelineOwner

NewViewPipelineOwner creates the pipeline owner for a tree whose root is a RenderView: it starts, sends and clears the semantics through that view. Flutter's View widget wires its owner the same way.

Flutter: widgets/view.dart _ViewScope (PipelineOwner callbacks)

func (*PipelineOwner) AdoptChild

func (p *PipelineOwner) AdoptChild(child *PipelineOwner)

AdoptChild makes the owner a child of this one: it is flushed after this owner, and attached to the same manifold. A debug build panics with PipelineOwnerChildListLocked if called during layout, paint or semantics.

Flutter: rendering/object.dart PipelineOwner.adoptChild

func (*PipelineOwner) Attach

func (p *PipelineOwner) Attach(manifold PipelineManifold)

Attach connects the owner and its children to the manifold.

Flutter: rendering/object.dart PipelineOwner.attach

func (*PipelineOwner) DebugDescribeChildren

func (p *PipelineOwner) DebugDescribeChildren() []foundation.DiagnosticsNode

DebugDescribeChildren is the child owners.

Flutter: rendering/object.dart PipelineOwner.debugDescribeChildren

func (*PipelineOwner) DebugDoingLayout

func (p *PipelineOwner) DebugDoingLayout() bool

DebugDoingLayout reports whether FlushLayout is running.

Flutter: rendering/object.dart PipelineOwner.debugDoingLayout

func (*PipelineOwner) DebugDoingPaint

func (p *PipelineOwner) DebugDoingPaint() bool

DebugDoingPaint reports whether FlushPaint is running.

Flutter: rendering/object.dart PipelineOwner.debugDoingPaint

func (*PipelineOwner) DebugDoingSemantics

func (p *PipelineOwner) DebugDoingSemantics() bool

DebugDoingSemantics reports whether FlushSemantics is running.

Flutter: rendering/object.dart PipelineOwner._debugDoingSemantics

func (*PipelineOwner) DebugFillProperties

func (p *PipelineOwner) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the root node.

Flutter: rendering/object.dart PipelineOwner.debugFillProperties

func (*PipelineOwner) DebugOptions

func (p *PipelineOwner) DebugOptions() *DebugOptions

DebugOptions are the debug flags that the owner and its render objects read.

Flutter: rendering/debug.dart

func (*PipelineOwner) Detach

func (p *PipelineOwner) Detach()

Detach disconnects the owner and its children from the manifold.

Flutter: rendering/object.dart PipelineOwner.detach

func (*PipelineOwner) Dispose

func (p *PipelineOwner) Dispose()

Dispose releases the owner. It must have no children, no root and no manifold.

Flutter: rendering/object.dart PipelineOwner.dispose

func (*PipelineOwner) DropChild

func (p *PipelineOwner) DropChild(child *PipelineOwner)

DropChild removes a child owner.

Flutter: rendering/object.dart PipelineOwner.dropChild

func (*PipelineOwner) FlushCompositingBits

func (p *PipelineOwner) FlushCompositingBits()

FlushCompositingBits updates the compositing bits of the render objects that need it, shallowest first, and then those of the child owners.

Flutter: rendering/object.dart PipelineOwner.flushCompositingBits

func (*PipelineOwner) FlushLayout

func (p *PipelineOwner) FlushLayout()

FlushLayout lays out the render objects that need it, shallowest first, and then those of the child owners.

Flutter: rendering/object.dart PipelineOwner.flushLayout

func (*PipelineOwner) FlushPaint

func (p *PipelineOwner) FlushPaint()

FlushPaint repaints the repaint boundaries that need it, deepest first, and then those of the child owners.

Flutter: rendering/object.dart PipelineOwner.flushPaint

func (*PipelineOwner) FlushSemantics

func (p *PipelineOwner) FlushSemantics()

FlushSemantics updates the semantics tree, if there is one, and then those of the child owners. Initially only the root, as scheduled by ScheduleInitialSemantics, needs an update.

Flutter: rendering/object.dart PipelineOwner.flushSemantics

func (*PipelineOwner) NodesNeedingLayout

func (p *PipelineOwner) NodesNeedingLayout() []RenderObject

NodesNeedingLayout are the render objects that need layout.

Flutter: rendering/object.dart PipelineOwner.nodesNeedingLayout

func (*PipelineOwner) NodesNeedingPaint

func (p *PipelineOwner) NodesNeedingPaint() []RenderObject

NodesNeedingPaint are the repaint boundaries that need to paint.

Flutter: rendering/object.dart PipelineOwner.nodesNeedingPaint

func (*PipelineOwner) RequestVisualUpdate

func (p *PipelineOwner) RequestVisualUpdate()

RequestVisualUpdate asks for a frame: it calls OnNeedVisualUpdate, or asks the manifold.

Flutter: rendering/object.dart PipelineOwner.requestVisualUpdate

func (*PipelineOwner) RootNode

func (p *PipelineOwner) RootNode() RenderObject

RootNode is the render object at the root of the tree this owner manages.

Flutter: rendering/object.dart PipelineOwner.rootNode

func (*PipelineOwner) SemanticsOwner

func (p *PipelineOwner) SemanticsOwner() *semantics.SemanticsOwner

SemanticsOwner is the owner of the semantics tree, or nil while the manifold does not want semantics. A nil owner makes the pipeline skip all the semantics steps.

Flutter: rendering/object.dart PipelineOwner.semanticsOwner

func (*PipelineOwner) SetRootNode

func (p *PipelineOwner) SetRootNode(value RenderObject)

SetRootNode replaces the root: the old root is detached and the new one attached. Pass nil to remove the root.

Flutter: rendering/object.dart PipelineOwner.rootNode

func (*PipelineOwner) String

func (p *PipelineOwner) String() string

String describes the owner.

func (*PipelineOwner) VisitChildren

func (p *PipelineOwner) VisitChildren(visitor func(child *PipelineOwner))

VisitChildren calls the visitor with every child owner.

Flutter: rendering/object.dart PipelineOwner.visitChildren

type PipelineOwnerOpts

type PipelineOwnerOpts struct {
	// OnNeedVisualUpdate is called when a render object asks for a frame; the
	// default asks the manifold.
	OnNeedVisualUpdate func()
	// DisallowRootNode makes SetRootNode with a render object panic with the
	// tag RootNodeNotAllowed: the root pipeline owner of the binding manages
	// child owners, not a root of its own.
	DisallowRootNode bool
	// Debug are the debug flags. The default is a fresh set; a child owner
	// uses its parent's.
	Debug *DebugOptions

	// OnSemanticsOwnerCreated is called when the owner creates its semantics
	// owner, because the manifold wants semantics.
	OnSemanticsOwnerCreated func()
	// OnSemanticsUpdate receives the semantics updates. A tree whose manifold
	// enables semantics needs it (the tag SemanticsUpdateCallbackMissing).
	OnSemanticsUpdate semantics.SemanticsUpdateCallback
	// OnSemanticsOwnerDisposed is called when the owner disposes its semantics
	// owner.
	OnSemanticsOwnerDisposed func()
}

PipelineOwnerOpts are the optional parameters of NewPipelineOwner.

Flutter: rendering/object.dart PipelineOwner.new

type PointerCancelEventListener

type PointerCancelEventListener func(event *gestures.PointerCancelEvent)

PointerCancelEventListener is called when the input from a pointer is no longer directed towards this receiver.

Flutter: rendering/proxy_box.dart PointerCancelEventListener

type PointerDownEventListener

type PointerDownEventListener func(event *gestures.PointerDownEvent)

PointerDownEventListener is called when a pointer comes into contact with the screen.

Flutter: rendering/proxy_box.dart PointerDownEventListener

type PointerMoveEventListener

type PointerMoveEventListener func(event *gestures.PointerMoveEvent)

PointerMoveEventListener is called when a pointer that is in contact with the screen moves.

Flutter: rendering/proxy_box.dart PointerMoveEventListener

type PointerPanZoomEndEventListener

type PointerPanZoomEndEventListener func(event *gestures.PointerPanZoomEndEvent)

PointerPanZoomEndEventListener is called when a pan/zoom ends.

Flutter: rendering/proxy_box.dart PointerPanZoomEndEventListener

type PointerPanZoomStartEventListener

type PointerPanZoomStartEventListener func(event *gestures.PointerPanZoomStartEvent)

PointerPanZoomStartEventListener is called when a pan/zoom begins.

Flutter: rendering/proxy_box.dart PointerPanZoomStartEventListener

type PointerPanZoomUpdateEventListener

type PointerPanZoomUpdateEventListener func(event *gestures.PointerPanZoomUpdateEvent)

PointerPanZoomUpdateEventListener is called when a pan/zoom is updated.

Flutter: rendering/proxy_box.dart PointerPanZoomUpdateEventListener

type PointerSignalEventListener

type PointerSignalEventListener func(event gestures.PointerSignalEvent)

PointerSignalEventListener is called when a pointer signal occurs, such as a scroll.

Flutter: rendering/proxy_box.dart PointerSignalEventListener

type PointerUpEventListener

type PointerUpEventListener func(event *gestures.PointerUpEvent)

PointerUpEventListener is called when a pointer stops being in contact with the screen.

Flutter: rendering/proxy_box.dart PointerUpEventListener

type ProfilePaintCallback

type ProfilePaintCallback func(renderObject RenderObject)

ProfilePaintCallback is called with each render object that paints, when DebugOptions.OnProfilePaint is set.

Flutter: rendering/debug.dart ProfilePaintCallback

type PushClipPathOpts

type PushClipPathOpts struct {
	// ClipBehavior defaults to ClipAntiAlias.
	ClipBehavior ui.Clip
	// OldLayer is the layer of the previous paint, which is reused.
	OldLayer *ClipPathLayer
}

PushClipPathOpts are the optional parameters of PushClipPath.

Flutter: rendering/object.dart PaintingContext.pushClipPath

type PushClipRRectOpts

type PushClipRRectOpts struct {
	// ClipBehavior defaults to ClipAntiAlias.
	ClipBehavior ui.Clip
	// OldLayer is the layer of the previous paint, which is reused.
	OldLayer *ClipRRectLayer
}

PushClipRRectOpts are the optional parameters of PushClipRRect.

Flutter: rendering/object.dart PaintingContext.pushClipRRect

type PushClipRSuperellipseOpts

type PushClipRSuperellipseOpts struct {
	// ClipBehavior defaults to ClipAntiAlias.
	ClipBehavior ui.Clip
	// OldLayer is the layer of the previous paint, which is reused.
	OldLayer *ClipRSuperellipseLayer
}

PushClipRSuperellipseOpts are the optional parameters of PushClipRSuperellipse.

Flutter: rendering/object.dart PaintingContext.pushClipRSuperellipse

type PushClipRectOpts

type PushClipRectOpts struct {
	// ClipBehavior defaults to ClipHardEdge.
	ClipBehavior ui.Clip
	// OldLayer is the layer of the previous paint, which is reused.
	OldLayer *ClipRectLayer
}

PushClipRectOpts are the optional parameters of PushClipRect.

Flutter: rendering/object.dart PaintingContext.pushClipRect

type RelativeRect

type RelativeRect struct {
	// Left is the offset of the left edge from the left edge of the container.
	//
	// Flutter: rendering/stack.dart RelativeRect.left
	Left float64
	// Top is the offset of the top edge from the top edge of the container.
	//
	// Flutter: rendering/stack.dart RelativeRect.top
	Top float64
	// Right is the offset of the right edge from the right edge of the container.
	//
	// Flutter: rendering/stack.dart RelativeRect.right
	Right float64
	// Bottom is the offset of the bottom edge from the bottom edge of the
	// container.
	//
	// Flutter: rendering/stack.dart RelativeRect.bottom
	Bottom float64
}

RelativeRect is a rectangle described by the distances of its edges from the edges of a container.

Flutter: rendering/stack.dart RelativeRect

func NewRelativeRectFromDirectional

func NewRelativeRectFromDirectional(textDirection ui.TextDirection, start, top, end, bottom float64) RelativeRect

NewRelativeRectFromDirectional creates the rectangle from the start and end offsets, which are the left and right ones in a left-to-right text direction.

Flutter: rendering/stack.dart RelativeRect.fromDirectional

func NewRelativeRectFromLTRB

func NewRelativeRectFromLTRB(left, top, right, bottom float64) RelativeRect

NewRelativeRectFromLTRB creates a rectangle from the offsets of its edges.

Flutter: rendering/stack.dart RelativeRect.fromLTRB

func NewRelativeRectFromRect

func NewRelativeRectFromRect(rect, container ui.Rect) RelativeRect

NewRelativeRectFromRect creates the rectangle of a rect in a container rect.

Flutter: rendering/stack.dart RelativeRect.fromRect

func NewRelativeRectFromSize

func NewRelativeRectFromSize(rect ui.Rect, container ui.Size) RelativeRect

NewRelativeRectFromSize creates the rectangle of a rect in a container of the size.

Flutter: rendering/stack.dart RelativeRect.fromSize

func RelativeRectLerp

func RelativeRectLerp(a, b *RelativeRect, t float64) *RelativeRect

RelativeRectLerp interpolates between two rectangles; nil is the zero rectangle (the one that fills the container).

Deviation: when b is nil Flutter reads b's fields and throws; this scales a, which is evidently what it means (SPEC §12.10).

Flutter: rendering/stack.dart RelativeRect.lerp

func (RelativeRect) Deflate

func (r RelativeRect) Deflate(delta float64) RelativeRect

Deflate shrinks the rectangle by the delta on every side.

Flutter: rendering/stack.dart RelativeRect.deflate

func (RelativeRect) HasInsets

func (r RelativeRect) HasInsets() bool

HasInsets reports whether any of the offsets is positive.

Flutter: rendering/stack.dart RelativeRect.hasInsets

func (RelativeRect) Inflate

func (r RelativeRect) Inflate(delta float64) RelativeRect

Inflate grows the rectangle by the delta on every side.

Flutter: rendering/stack.dart RelativeRect.inflate

func (RelativeRect) Intersect

func (r RelativeRect) Intersect(other RelativeRect) RelativeRect

Intersect is the rectangle that is inside both.

Flutter: rendering/stack.dart RelativeRect.intersect

func (RelativeRect) Shift

func (r RelativeRect) Shift(offset ui.Offset) RelativeRect

Shift moves the rectangle by the offset.

Flutter: rendering/stack.dart RelativeRect.shift

func (RelativeRect) String

func (r RelativeRect) String() string

String describes the rectangle, such as "RelativeRect.fromLTRB(1.0, 2.0, 3.0, 4.0)".

Flutter: rendering/stack.dart RelativeRect.toString

func (RelativeRect) ToRect

func (r RelativeRect) ToRect(container ui.Rect) ui.Rect

ToRect is the rectangle in a container rect (only its size is used).

Flutter: rendering/stack.dart RelativeRect.toRect

func (RelativeRect) ToSize

func (r RelativeRect) ToSize(container ui.Size) ui.Size

ToSize is the size of the rectangle in a container of the size.

Flutter: rendering/stack.dart RelativeRect.toSize

type RenderAbsorbPointer

type RenderAbsorbPointer struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderAbsorbPointer absorbs pointer events when absorbing.

Deviation: the deprecated ignoringSemantics parameter is not ported, so it is always null (SPEC §12.10).

Flutter: rendering/proxy_box.dart RenderAbsorbPointer

func NewRenderAbsorbPointer

func NewRenderAbsorbPointer(child Box, opts ...RenderAbsorbPointerOpts) *RenderAbsorbPointer

NewRenderAbsorbPointer creates the box.

Flutter: rendering/proxy_box.dart RenderAbsorbPointer.new

func (*RenderAbsorbPointer) Absorbing

func (r *RenderAbsorbPointer) Absorbing() bool

Absorbing is whether this render object absorbs pointers during hit testing.

Flutter: rendering/proxy_box.dart RenderAbsorbPointer.absorbing

func (*RenderAbsorbPointer) DebugFillProperties

func (r *RenderAbsorbPointer) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the flag.

Flutter: rendering/proxy_box.dart RenderAbsorbPointer.debugFillProperties

func (*RenderAbsorbPointer) DescribeSemanticsConfiguration

func (r *RenderAbsorbPointer) DescribeSemanticsConfiguration(config *semantics.SemanticsConfiguration)

DescribeSemanticsConfiguration blocks the user actions of the subtree when absorbing.

Flutter: rendering/proxy_box.dart RenderAbsorbPointer.describeSemanticsConfiguration

func (*RenderAbsorbPointer) HitTest

func (r *RenderAbsorbPointer) HitTest(result *BoxHitTestResult, position ui.Offset) bool

HitTest is true inside the box when absorbing, without testing the child.

Flutter: rendering/proxy_box.dart RenderAbsorbPointer.hitTest

func (*RenderAbsorbPointer) SetAbsorbing

func (r *RenderAbsorbPointer) SetAbsorbing(value bool)

SetAbsorbing changes the flag.

Flutter: rendering/proxy_box.dart RenderAbsorbPointer.absorbing

type RenderAbsorbPointerOpts

type RenderAbsorbPointerOpts struct {
	// Absorbing defaults to true.
	Absorbing foundation.Opt[bool]
}

RenderAbsorbPointerOpts are the optional parameters of NewRenderAbsorbPointer.

Flutter: rendering/proxy_box.dart RenderAbsorbPointer.new

type RenderAbstractViewport

type RenderAbstractViewport interface {
	RenderObject
	// GetOffsetToReveal returns the scroll offset that puts the target at the
	// alignment in the viewport (0 for the leading edge, 1 for the trailing edge),
	// and where the target is then.
	//
	// Flutter: rendering/viewport.dart RenderAbstractViewport.getOffsetToReveal
	GetOffsetToReveal(target RenderObject, alignment float64, opts ...GetOffsetToRevealOpts) RevealedOffset
}

RenderAbstractViewport is the interface of a render object that shows part of its descendants, and knows the scroll offset that reveals one of them.

Flutter: rendering/viewport.dart RenderAbstractViewport

func RenderAbstractViewportMaybeOf

func RenderAbstractViewportMaybeOf(object RenderObject) RenderAbstractViewport

RenderAbstractViewportMaybeOf finds the closest viewport, starting at the object itself; nil if there is none.

Flutter: rendering/viewport.dart RenderAbstractViewport.maybeOf

func RenderAbstractViewportOf

func RenderAbstractViewportOf(object RenderObject) RenderAbstractViewport

RenderAbstractViewportOf finds the closest viewport, starting at the object itself. In debug builds it panics with the tag ViewportNotFound if there is none.

Flutter: rendering/viewport.dart RenderAbstractViewport.of

type RenderAligningShiftedBox

type RenderAligningShiftedBox struct {
	RenderShiftedBox
	// contains filtered or unexported fields
}

RenderAligningShiftedBox is a shifted box that aligns its child within itself. Embed it and call InitRenderAligningShiftedBox in the constructor.

Flutter: rendering/shifted_box.dart RenderAligningShiftedBox

func (*RenderAligningShiftedBox) AlignChild

func (a *RenderAligningShiftedBox) AlignChild()

AlignChild sets the child's offset from its alignment, once the box and the child have a size.

Flutter: rendering/shifted_box.dart RenderAligningShiftedBox.alignChild

func (*RenderAligningShiftedBox) Alignment

Alignment is how to align the child.

Flutter: rendering/shifted_box.dart RenderAligningShiftedBox.alignment

func (*RenderAligningShiftedBox) DebugFillProperties

DebugFillProperties adds the alignment and the text direction.

Flutter: rendering/shifted_box.dart RenderAligningShiftedBox.debugFillProperties

func (*RenderAligningShiftedBox) ResolvedAlignment

func (a *RenderAligningShiftedBox) ResolvedAlignment() painting.Alignment

ResolvedAlignment is the alignment resolved with the text direction.

Flutter: rendering/shifted_box.dart RenderAligningShiftedBox.resolvedAlignment

func (*RenderAligningShiftedBox) SetAlignment

func (a *RenderAligningShiftedBox) SetAlignment(value painting.AlignmentGeometry)

SetAlignment changes the alignment and marks the box as needing layout.

Flutter: rendering/shifted_box.dart RenderAligningShiftedBox.alignment

func (*RenderAligningShiftedBox) SetTextDirection

func (a *RenderAligningShiftedBox) SetTextDirection(value ui.TextDirection)

SetTextDirection changes the direction and marks the box as needing layout.

Flutter: rendering/shifted_box.dart RenderAligningShiftedBox.textDirection

func (*RenderAligningShiftedBox) TextDirection

func (a *RenderAligningShiftedBox) TextDirection() ui.TextDirection

TextDirection resolves a directional alignment.

Flutter: rendering/shifted_box.dart RenderAligningShiftedBox.textDirection

type RenderAnimatedOpacity

type RenderAnimatedOpacity struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderAnimatedOpacity makes its child partially transparent, driven by an animation: the opacity layer is updated when the animation changes, and the child is not repainted.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacity

func NewRenderAnimatedOpacity

func NewRenderAnimatedOpacity(opacity animation.Animation[float64], child Box, opts ...RenderAnimatedOpacityOpts) *RenderAnimatedOpacity

NewRenderAnimatedOpacity creates the box. The opacity animation drives the alpha of the child once the box is attached; before that, the alpha is read once, when the box is created.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacity.new

func (*RenderAnimatedOpacity) AlwaysIncludeSemantics

func (r *RenderAnimatedOpacity) AlwaysIncludeSemantics() bool

AlwaysIncludeSemantics is whether the semantics of the child are kept when the child is not visible.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.alwaysIncludeSemantics

func (*RenderAnimatedOpacity) Attach

func (r *RenderAnimatedOpacity) Attach(owner *PipelineOwner)

Attach starts listening to the opacity animation.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.attach

func (*RenderAnimatedOpacity) DebugFillProperties

DebugFillProperties adds the opacity animation and the semantics flag.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.debugFillProperties

func (*RenderAnimatedOpacity) Detach

func (r *RenderAnimatedOpacity) Detach()

Detach stops listening to the opacity animation.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.detach

func (*RenderAnimatedOpacity) IsRepaintBoundary

func (r *RenderAnimatedOpacity) IsRepaintBoundary() bool

IsRepaintBoundary is true if there is a child and the alpha is not 0.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.isRepaintBoundary

func (*RenderAnimatedOpacity) Opacity

Opacity is the animation that drives the opacity of the child.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.opacity

func (*RenderAnimatedOpacity) Paint

func (r *RenderAnimatedOpacity) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the child unless it is invisible.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.paint

func (*RenderAnimatedOpacity) PaintsChild

func (r *RenderAnimatedOpacity) PaintsChild(child RenderObject) bool

PaintsChild is true if the opacity is not 0.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.paintsChild

func (*RenderAnimatedOpacity) SetAlwaysIncludeSemantics

func (r *RenderAnimatedOpacity) SetAlwaysIncludeSemantics(value bool)

SetAlwaysIncludeSemantics changes the flag.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.alwaysIncludeSemantics

func (*RenderAnimatedOpacity) SetOpacity

func (r *RenderAnimatedOpacity) SetOpacity(value animation.Animation[float64])

SetOpacity changes the animation. The box listens to it while it is attached.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.opacity

func (*RenderAnimatedOpacity) UpdateCompositedLayer

func (r *RenderAnimatedOpacity) UpdateCompositedLayer(oldLayer OffsetLayerLike) OffsetLayerLike

UpdateCompositedLayer sets the alpha of the opacity layer.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.updateCompositedLayer

func (*RenderAnimatedOpacity) VisitChildrenForSemantics

func (r *RenderAnimatedOpacity) VisitChildrenForSemantics(visitor RenderObjectVisitor)

VisitChildrenForSemantics visits the child only if it is visible or AlwaysIncludeSemantics.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.visitChildrenForSemantics

type RenderAnimatedOpacityOpts

type RenderAnimatedOpacityOpts struct {
	// AlwaysIncludeSemantics keeps the semantics of the child when it is not
	// visible.
	AlwaysIncludeSemantics bool
}

RenderAnimatedOpacityOpts are the optional parameters of NewRenderAnimatedOpacity.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacity.new

type RenderAnimatedSize

type RenderAnimatedSize struct {
	RenderAligningShiftedBox
	// contains filtered or unexported fields
}

RenderAnimatedSize is a render object that animates its size to its child's size over a given duration and with a given curve. If the child's size changes in the middle of the animation, the animation is restarted from the current size.

Flutter: rendering/animated_size.dart RenderAnimatedSize

func NewRenderAnimatedSize

func NewRenderAnimatedSize(vsync scheduler.TickerProvider, duration time.Duration, child Box, opts ...RenderAnimatedSizeOpts) *RenderAnimatedSize

NewRenderAnimatedSize creates the box; the child may be nil.

Flutter: rendering/animated_size.dart RenderAnimatedSize.new

func (*RenderAnimatedSize) Attach

func (r *RenderAnimatedSize) Attach(owner *PipelineOwner)

Attach starts listening to the status of the animation, and resumes an interrupted resizing.

Flutter: rendering/animated_size.dart RenderAnimatedSize.attach

func (*RenderAnimatedSize) ClipBehavior

func (r *RenderAnimatedSize) ClipBehavior() ui.Clip

ClipBehavior is how the child is clipped while it overflows.

Flutter: rendering/animated_size.dart RenderAnimatedSize.clipBehavior

func (*RenderAnimatedSize) ComputeDryBaseline

func (r *RenderAnimatedSize) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the child's baseline plus the offset of the aligned child in the animated size.

Flutter: rendering/animated_size.dart RenderAnimatedSize.computeDryBaseline

func (*RenderAnimatedSize) ComputeDryLayout

func (r *RenderAnimatedSize) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size of the current step of the animation, without changing the state.

Flutter: rendering/animated_size.dart RenderAnimatedSize.computeDryLayout

func (*RenderAnimatedSize) Curve

func (r *RenderAnimatedSize) Curve() animation.Curve

Curve is the curve of the animation.

Flutter: rendering/animated_size.dart RenderAnimatedSize.curve

func (*RenderAnimatedSize) DebugAnimation

func (r *RenderAnimatedSize) DebugAnimation() *animation.CurvedAnimation

DebugAnimation is the curved animation, in debug builds.

Flutter: rendering/animated_size.dart RenderAnimatedSize.debugAnimation

func (*RenderAnimatedSize) DebugController

func (r *RenderAnimatedSize) DebugController() *animation.AnimationController

DebugController is the animation controller, in debug builds.

Flutter: rendering/animated_size.dart RenderAnimatedSize.debugController

func (*RenderAnimatedSize) Detach

func (r *RenderAnimatedSize) Detach()

Detach stops the animation.

Flutter: rendering/animated_size.dart RenderAnimatedSize.detach

func (*RenderAnimatedSize) Dispose

func (r *RenderAnimatedSize) Dispose()

Dispose releases the controller, the animation and the clip layer.

Flutter: rendering/animated_size.dart RenderAnimatedSize.dispose

func (*RenderAnimatedSize) Duration

func (r *RenderAnimatedSize) Duration() time.Duration

Duration is the duration of the animation.

Flutter: rendering/animated_size.dart RenderAnimatedSize.duration

func (*RenderAnimatedSize) IsAnimating

func (r *RenderAnimatedSize) IsAnimating() bool

IsAnimating is whether the size is animating.

Flutter: rendering/animated_size.dart RenderAnimatedSize.isAnimating

func (*RenderAnimatedSize) OnEnd

func (r *RenderAnimatedSize) OnEnd() func()

OnEnd is called when the animation completes.

Flutter: rendering/animated_size.dart RenderAnimatedSize.onEnd

func (*RenderAnimatedSize) Paint

func (r *RenderAnimatedSize) Paint(context *PaintingContext, offset ui.Offset)

Paint clips the child while it overflows the animated size.

Flutter: rendering/animated_size.dart RenderAnimatedSize.paint

func (*RenderAnimatedSize) PerformLayout

func (r *RenderAnimatedSize) PerformLayout()

PerformLayout lays the child out and works out the size of this step of the animation.

Flutter: rendering/animated_size.dart RenderAnimatedSize.performLayout

func (*RenderAnimatedSize) ReverseDuration

func (r *RenderAnimatedSize) ReverseDuration() foundation.Opt[time.Duration]

ReverseDuration is the duration of the animation when the size shrinks.

Flutter: rendering/animated_size.dart RenderAnimatedSize.reverseDuration

func (*RenderAnimatedSize) SetClipBehavior

func (r *RenderAnimatedSize) SetClipBehavior(value ui.Clip)

SetClipBehavior changes the clip behavior and marks the box as needing paint.

Flutter: rendering/animated_size.dart RenderAnimatedSize.clipBehavior

func (*RenderAnimatedSize) SetCurve

func (r *RenderAnimatedSize) SetCurve(value animation.Curve)

SetCurve changes the curve of the animation.

Flutter: rendering/animated_size.dart RenderAnimatedSize.curve

func (*RenderAnimatedSize) SetDuration

func (r *RenderAnimatedSize) SetDuration(value time.Duration)

SetDuration changes the duration of the animation.

Flutter: rendering/animated_size.dart RenderAnimatedSize.duration

func (*RenderAnimatedSize) SetOnEnd

func (r *RenderAnimatedSize) SetOnEnd(value func())

SetOnEnd changes the callback.

Flutter: rendering/animated_size.dart RenderAnimatedSize.onEnd

func (*RenderAnimatedSize) SetReverseDuration

func (r *RenderAnimatedSize) SetReverseDuration(value foundation.Opt[time.Duration])

SetReverseDuration changes the duration of the animation when the size shrinks.

Flutter: rendering/animated_size.dart RenderAnimatedSize.reverseDuration

func (*RenderAnimatedSize) SetVsync

func (r *RenderAnimatedSize) SetVsync(value scheduler.TickerProvider)

SetVsync changes the provider; the running animation moves to its ticker.

Flutter: rendering/animated_size.dart RenderAnimatedSize.vsync

func (*RenderAnimatedSize) State

State is the state of the box.

Flutter: rendering/animated_size.dart RenderAnimatedSize.state

func (*RenderAnimatedSize) Vsync

Vsync is the provider of the ticker of the animation.

Flutter: rendering/animated_size.dart RenderAnimatedSize.vsync

type RenderAnimatedSizeOpts

type RenderAnimatedSizeOpts struct {
	// ReverseDuration is the duration when the size shrinks; the default is the
	// duration.
	ReverseDuration foundation.Opt[time.Duration]
	// Curve is the curve of the animation; the default is Curves.Linear.
	Curve animation.Curve
	// Alignment is how to align the child while the size animates; the default is
	// the center.
	Alignment painting.AlignmentGeometry
	// TextDirection resolves a directional alignment.
	TextDirection ui.TextDirection
	// ClipBehavior is how the child is clipped while it overflows; the default is
	// ClipHardEdge.
	ClipBehavior ui.Clip
	// OnEnd is called when the animation completes.
	OnEnd func()
}

RenderAnimatedSizeOpts are the optional parameters of NewRenderAnimatedSize.

Flutter: rendering/animated_size.dart RenderAnimatedSize.new

type RenderAnimatedSizeState

type RenderAnimatedSizeState int

RenderAnimatedSizeState is the state of a RenderAnimatedSize.

Flutter: rendering/animated_size.dart RenderAnimatedSizeState

const (
	// RenderAnimatedSizeStateUnspecified is the zero value; it is not a real state.
	//
	// Flutter: no counterpart
	RenderAnimatedSizeStateUnspecified RenderAnimatedSizeState = iota
	// RenderAnimatedSizeStateStart is the initial state: the box has not seen the
	// child's size yet.
	//
	// Flutter: rendering/animated_size.dart RenderAnimatedSizeState.start
	RenderAnimatedSizeStateStart
	// RenderAnimatedSizeStateStable means the child's size has not changed since
	// the last layout.
	//
	// Flutter: rendering/animated_size.dart RenderAnimatedSizeState.stable
	RenderAnimatedSizeStateStable
	// RenderAnimatedSizeStateChanged means the child's size changed, and the box
	// is animating to it.
	//
	// Flutter: rendering/animated_size.dart RenderAnimatedSizeState.changed
	RenderAnimatedSizeStateChanged
	// RenderAnimatedSizeStateUnstable means the child's size changed more than
	// once in a row; the box follows it without animating.
	//
	// Flutter: rendering/animated_size.dart RenderAnimatedSizeState.unstable
	RenderAnimatedSizeStateUnstable
)

The states of a RenderAnimatedSize.

func (RenderAnimatedSizeState) String

func (s RenderAnimatedSizeState) String() string

String is the name of the state, such as "RenderAnimatedSizeState.stable".

Flutter: rendering/animated_size.dart RenderAnimatedSizeState

type RenderAnnotatedRegion

type RenderAnnotatedRegion struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderAnnotatedRegion annotates a region of the layer tree with a value.

Deviation: the value is an any, not a type parameter (SPEC §12.10, like AnnotatedRegionLayer).

Flutter: rendering/proxy_box.dart RenderAnnotatedRegion

func NewRenderAnnotatedRegion

func NewRenderAnnotatedRegion(value any, sized bool, child Box) *RenderAnnotatedRegion

NewRenderAnnotatedRegion creates the box. A sized region only covers the box itself.

Flutter: rendering/proxy_box.dart RenderAnnotatedRegion.new

func (*RenderAnnotatedRegion) AlwaysNeedsCompositing

func (r *RenderAnnotatedRegion) AlwaysNeedsCompositing() bool

AlwaysNeedsCompositing is true.

Flutter: rendering/proxy_box.dart RenderAnnotatedRegion.alwaysNeedsCompositing

func (*RenderAnnotatedRegion) Dispose

func (r *RenderAnnotatedRegion) Dispose()

Dispose lets the layer go.

Flutter: rendering/proxy_box.dart RenderAnnotatedRegion.dispose

func (*RenderAnnotatedRegion) Paint

func (r *RenderAnnotatedRegion) Paint(context *PaintingContext, offset ui.Offset)

Paint pushes an annotated region layer.

Flutter: rendering/proxy_box.dart RenderAnnotatedRegion.paint

func (*RenderAnnotatedRegion) SetSized

func (r *RenderAnnotatedRegion) SetSized(v bool)

SetSized changes the flag and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderAnnotatedRegion.sized

func (*RenderAnnotatedRegion) SetValue

func (r *RenderAnnotatedRegion) SetValue(v any)

SetValue changes the value and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderAnnotatedRegion.value

func (*RenderAnnotatedRegion) Sized

func (r *RenderAnnotatedRegion) Sized() bool

Sized is whether the region is limited to the size of the box.

Flutter: rendering/proxy_box.dart RenderAnnotatedRegion.sized

func (*RenderAnnotatedRegion) Value

func (r *RenderAnnotatedRegion) Value() any

Value is the value that is provided for the region.

Flutter: rendering/proxy_box.dart RenderAnnotatedRegion.value

type RenderAspectRatio

type RenderAspectRatio struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderAspectRatio attempts to size its child to a given aspect ratio.

Flutter: rendering/proxy_box.dart RenderAspectRatio

func NewRenderAspectRatio

func NewRenderAspectRatio(aspectRatio float64, child Box) *RenderAspectRatio

NewRenderAspectRatio creates a box with the aspect ratio (width over height). A ratio that is not positive and finite panics with AspectRatioInvalid in debug builds.

Flutter: rendering/proxy_box.dart RenderAspectRatio.new

func (*RenderAspectRatio) AspectRatio

func (r *RenderAspectRatio) AspectRatio() float64

AspectRatio is the ratio of width to height.

Flutter: rendering/proxy_box.dart RenderAspectRatio.aspectRatio

func (*RenderAspectRatio) ComputeDryBaseline

func (r *RenderAspectRatio) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the child's baseline for tight constraints of the size.

Flutter: rendering/proxy_box.dart RenderAspectRatio.computeDryBaseline

func (*RenderAspectRatio) ComputeDryLayout

func (r *RenderAspectRatio) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size that fits the aspect ratio.

Flutter: rendering/proxy_box.dart RenderAspectRatio.computeDryLayout

func (*RenderAspectRatio) ComputeMaxIntrinsicHeight

func (r *RenderAspectRatio) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the width over the ratio, or the child's when the width is infinite.

Flutter: rendering/proxy_box.dart RenderAspectRatio.computeMaxIntrinsicHeight

func (*RenderAspectRatio) ComputeMaxIntrinsicWidth

func (r *RenderAspectRatio) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is the height times the ratio, or the child's when the height is infinite.

Flutter: rendering/proxy_box.dart RenderAspectRatio.computeMaxIntrinsicWidth

func (*RenderAspectRatio) ComputeMinIntrinsicHeight

func (r *RenderAspectRatio) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the width over the ratio, or the child's when the width is infinite.

Flutter: rendering/proxy_box.dart RenderAspectRatio.computeMinIntrinsicHeight

func (*RenderAspectRatio) ComputeMinIntrinsicWidth

func (r *RenderAspectRatio) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is the height times the ratio, or the child's when the height is infinite.

Flutter: rendering/proxy_box.dart RenderAspectRatio.computeMinIntrinsicWidth

func (*RenderAspectRatio) DebugFillProperties

func (r *RenderAspectRatio) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the aspect ratio.

Flutter: rendering/proxy_box.dart RenderAspectRatio.debugFillProperties

func (*RenderAspectRatio) PerformLayout

func (r *RenderAspectRatio) PerformLayout()

PerformLayout sizes the box to the ratio and lays the child out tight in it.

Flutter: rendering/proxy_box.dart RenderAspectRatio.performLayout

func (*RenderAspectRatio) SetAspectRatio

func (r *RenderAspectRatio) SetAspectRatio(value float64)

SetAspectRatio changes the ratio and marks the box as needing layout.

Flutter: rendering/proxy_box.dart RenderAspectRatio.aspectRatio

type RenderBackdropFilter

type RenderBackdropFilter struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderBackdropFilter applies a filter to the existing painted content and then paints the child.

Flutter: rendering/proxy_box.dart RenderBackdropFilter

func NewRenderBackdropFilter

func NewRenderBackdropFilter(filter ui.ImageFilter, child Box, opts ...RenderBackdropFilterOpts) *RenderBackdropFilter

NewRenderBackdropFilter creates the box.

Deviation: Flutter takes an ImageFilterConfig (a filter that is created from the bounds); this takes the filter (SPEC §12.10).

Flutter: rendering/proxy_box.dart RenderBackdropFilter.new

func (*RenderBackdropFilter) AlwaysNeedsCompositing

func (r *RenderBackdropFilter) AlwaysNeedsCompositing() bool

AlwaysNeedsCompositing is true if there is a child.

Flutter: rendering/proxy_box.dart RenderBackdropFilter.alwaysNeedsCompositing

func (*RenderBackdropFilter) BackdropKey

func (r *RenderBackdropFilter) BackdropKey() foundation.Opt[BackdropKey]

BackdropKey is the key that shares the backdrop between filters.

Flutter: rendering/proxy_box.dart RenderBackdropFilter.backdropKey

func (*RenderBackdropFilter) BlendMode

func (r *RenderBackdropFilter) BlendMode() ui.BlendMode

BlendMode is the blend mode of the filtered backdrop.

Flutter: rendering/proxy_box.dart RenderBackdropFilter.blendMode

func (*RenderBackdropFilter) DebugFillProperties

func (r *RenderBackdropFilter) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the filter, the blend mode and the flag.

Flutter: rendering/proxy_box.dart RenderBackdropFilter.debugFillProperties

func (*RenderBackdropFilter) Enabled

func (r *RenderBackdropFilter) Enabled() bool

Enabled is whether the filter is applied.

Flutter: rendering/proxy_box.dart RenderBackdropFilter.enabled

func (*RenderBackdropFilter) Filter

func (r *RenderBackdropFilter) Filter() ui.ImageFilter

Filter is the image filter that is applied to the backdrop.

Flutter: rendering/proxy_box.dart RenderBackdropFilter.filter

func (*RenderBackdropFilter) Paint

func (r *RenderBackdropFilter) Paint(context *PaintingContext, offset ui.Offset)

Paint pushes a backdrop filter layer around the child.

Flutter: rendering/proxy_box.dart RenderBackdropFilter.paint

func (*RenderBackdropFilter) SetBackdropKey

func (r *RenderBackdropFilter) SetBackdropKey(value foundation.Opt[BackdropKey])

SetBackdropKey changes the key and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderBackdropFilter.backdropKey

func (*RenderBackdropFilter) SetBlendMode

func (r *RenderBackdropFilter) SetBlendMode(value ui.BlendMode)

SetBlendMode changes the blend mode and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderBackdropFilter.blendMode

func (*RenderBackdropFilter) SetEnabled

func (r *RenderBackdropFilter) SetEnabled(value bool)

SetEnabled changes the flag and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderBackdropFilter.enabled

func (*RenderBackdropFilter) SetFilter

func (r *RenderBackdropFilter) SetFilter(value ui.ImageFilter)

SetFilter changes the filter and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderBackdropFilter.filter

type RenderBackdropFilterOpts

type RenderBackdropFilterOpts struct {
	// BlendMode defaults to BlendModeSrcOver.
	BlendMode ui.BlendMode
	// Enabled defaults to true.
	Enabled foundation.Opt[bool]
	// BackdropKey shares the backdrop with other filters that have the same key.
	BackdropKey foundation.Opt[BackdropKey]
}

RenderBackdropFilterOpts are the optional parameters of NewRenderBackdropFilter.

Flutter: rendering/proxy_box.dart RenderBackdropFilter.new

type RenderBaseline

type RenderBaseline struct {
	RenderShiftedBox
	// contains filtered or unexported fields
}

RenderBaseline shifts its child vertically based on the child's baseline.

Flutter: rendering/shifted_box.dart RenderBaseline

func NewRenderBaseline

func NewRenderBaseline(baseline float64, baselineType ui.TextBaseline, child Box) *RenderBaseline

NewRenderBaseline creates the box: the child's baseline of the given type is put at the distance from the top.

Flutter: rendering/shifted_box.dart RenderBaseline.new

func (*RenderBaseline) Baseline

func (r *RenderBaseline) Baseline() float64

Baseline is the number of logical pixels from the top of this box at which to position the child's baseline.

Flutter: rendering/shifted_box.dart RenderBaseline.baseline

func (*RenderBaseline) BaselineType

func (r *RenderBaseline) BaselineType() ui.TextBaseline

BaselineType is the type of baseline to use.

Flutter: rendering/shifted_box.dart RenderBaseline.baselineType

func (*RenderBaseline) ComputeDryBaseline

func (r *RenderBaseline) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the requested baseline adjusted by the child's baselines.

Flutter: rendering/shifted_box.dart RenderBaseline.computeDryBaseline

func (*RenderBaseline) ComputeDryLayout

func (r *RenderBaseline) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size for the child's dry layout.

Flutter: rendering/shifted_box.dart RenderBaseline.computeDryLayout

func (*RenderBaseline) DebugFillProperties

func (r *RenderBaseline) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the baseline and its type.

Flutter: rendering/shifted_box.dart RenderBaseline.debugFillProperties

func (*RenderBaseline) PerformLayout

func (r *RenderBaseline) PerformLayout()

PerformLayout lays the child out and shifts it so that its baseline is at the requested distance.

Flutter: rendering/shifted_box.dart RenderBaseline.performLayout

func (*RenderBaseline) SetBaseline

func (r *RenderBaseline) SetBaseline(value float64)

SetBaseline changes the baseline and marks the box as needing layout.

Flutter: rendering/shifted_box.dart RenderBaseline.baseline

func (*RenderBaseline) SetBaselineType

func (r *RenderBaseline) SetBaselineType(value ui.TextBaseline)

SetBaselineType changes the type and marks the box as needing layout.

Flutter: rendering/shifted_box.dart RenderBaseline.baselineType

type RenderBlockSemantics

type RenderBlockSemantics struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderBlockSemantics drops the semantics of all the earlier render objects below the same semantic boundary.

Flutter: rendering/proxy_box.dart RenderBlockSemantics

func NewRenderBlockSemantics

func NewRenderBlockSemantics(child Box, opts ...RenderBlockSemanticsOpts) *RenderBlockSemantics

NewRenderBlockSemantics creates the box.

Flutter: rendering/proxy_box.dart RenderBlockSemantics.new

func (*RenderBlockSemantics) Blocking

func (r *RenderBlockSemantics) Blocking() bool

Blocking is whether the object drops the semantics of the render objects painted before it, below a common semantic boundary.

Flutter: rendering/proxy_box.dart RenderBlockSemantics.blocking

func (*RenderBlockSemantics) DebugFillProperties

func (r *RenderBlockSemantics) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the flag.

Flutter: rendering/proxy_box.dart RenderBlockSemantics.debugFillProperties

func (*RenderBlockSemantics) DescribeSemanticsConfiguration

func (r *RenderBlockSemantics) DescribeSemanticsConfiguration(config *semantics.SemanticsConfiguration)

DescribeSemanticsConfiguration sets the blocking flag.

Flutter: rendering/proxy_box.dart RenderBlockSemantics.describeSemanticsConfiguration

func (*RenderBlockSemantics) SetBlocking

func (r *RenderBlockSemantics) SetBlocking(value bool)

SetBlocking changes the flag.

Flutter: rendering/proxy_box.dart RenderBlockSemantics.blocking

type RenderBlockSemanticsOpts

type RenderBlockSemanticsOpts struct {
	// Blocking defaults to true.
	Blocking foundation.Opt[bool]
}

RenderBlockSemanticsOpts are the optional parameters of NewRenderBlockSemantics.

Flutter: rendering/proxy_box.dart RenderBlockSemantics.new

type RenderBox

type RenderBox struct {
	RenderObjectBase
	// contains filtered or unexported fields
}

RenderBox is a render object that has a rectangular size and is laid out with BoxConstraints. A box type embeds it and calls InitRenderBox(&r.RenderBox, r).

Flutter: rendering/box.dart RenderBox

func (*RenderBox) ApplyPaintTransform

func (r *RenderBox) ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)

ApplyPaintTransform translates the transform by the offset in the child's BoxParentData. A child with other parent data panics in debug builds with ApplyPaintTransformParentData.

Flutter: rendering/box.dart RenderBox.applyPaintTransform

func (*RenderBox) AsRenderBox

func (r *RenderBox) AsRenderBox() *RenderBox

AsRenderBox returns the box itself.

func (*RenderBox) BoxConstraints

func (r *RenderBox) BoxConstraints() BoxConstraints

BoxConstraints are the constraints that the parent gave at the last layout.

Flutter: rendering/box.dart RenderBox.constraints

func (*RenderBox) ComputeDistanceToActualBaseline

func (r *RenderBox) ComputeDistanceToActualBaseline(ui.TextBaseline) foundation.Opt[float64]

ComputeDistanceToActualBaseline is None: the box has no baseline.

Flutter: rendering/box.dart RenderBox.computeDistanceToActualBaseline

func (*RenderBox) ComputeDryBaseline

func (r *RenderBox) ComputeDryBaseline(BoxConstraints, ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline reports in debug builds, with the tag DryLayoutUnsupported, that the box does not implement it, and returns None.

Flutter: rendering/box.dart RenderBox.computeDryBaseline

func (*RenderBox) ComputeDryLayout

func (r *RenderBox) ComputeDryLayout(BoxConstraints) ui.Size

ComputeDryLayout reports in debug builds, with the tag DryLayoutUnsupported, that the box does not implement it, and returns the zero size.

Flutter: rendering/box.dart RenderBox.computeDryLayout

func (*RenderBox) ComputeMaxIntrinsicHeight

func (r *RenderBox) ComputeMaxIntrinsicHeight(float64) float64

ComputeMaxIntrinsicHeight is 0.

Flutter: rendering/box.dart RenderBox.computeMaxIntrinsicHeight

func (*RenderBox) ComputeMaxIntrinsicWidth

func (r *RenderBox) ComputeMaxIntrinsicWidth(float64) float64

ComputeMaxIntrinsicWidth is 0.

Flutter: rendering/box.dart RenderBox.computeMaxIntrinsicWidth

func (*RenderBox) ComputeMinIntrinsicHeight

func (r *RenderBox) ComputeMinIntrinsicHeight(float64) float64

ComputeMinIntrinsicHeight is 0.

Flutter: rendering/box.dart RenderBox.computeMinIntrinsicHeight

func (*RenderBox) ComputeMinIntrinsicWidth

func (r *RenderBox) ComputeMinIntrinsicWidth(float64) float64

ComputeMinIntrinsicWidth is 0.

Flutter: rendering/box.dart RenderBox.computeMinIntrinsicWidth

func (*RenderBox) DebugAdoptSize

func (r *RenderBox) DebugAdoptSize(value ui.Size) ui.Size

DebugAdoptSize returns the size unchanged.

Deviation: Flutter wraps the size to remember which box it came from, to check that a parent only uses sizes it asked for; sizes are plain values here (SPEC §12.10).

Flutter: rendering/box.dart RenderBox.debugAdoptSize

func (*RenderBox) DebugAssertDoesMeetConstraints

func (r *RenderBox) DebugAssertDoesMeetConstraints()

DebugAssertDoesMeetConstraints panics in debug builds, with BoxSizeNotSet, BoxSizeInfinite or BoxSizeViolatesConstraints, if the size is missing, infinite or outside the constraints. With DebugOptions.CheckIntrinsicSizes it also checks the intrinsic sizes and the dry layout (BoxIntrinsicsInvalid, BoxDryLayoutMismatch).

Flutter: rendering/box.dart RenderBox.debugAssertDoesMeetConstraints

func (*RenderBox) DebugCannotComputeDryLayout

func (r *RenderBox) DebugCannotComputeDryLayout(reason string) bool

DebugCannotComputeDryLayout is called by a box that can not compute its dry layout. Outside the intrinsic checks it panics with DryLayoutUnsupported in debug builds; during them it marks the dry layout as not comparable.

Flutter: rendering/box.dart RenderBox.debugCannotComputeDryLayout

func (*RenderBox) DebugFillProperties

func (r *RenderBox) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the size.

Flutter: rendering/box.dart RenderBox.debugFillProperties

func (*RenderBox) DebugHandleEvent

func (r *RenderBox) DebugHandleEvent(event gestures.PointerEvent, entry gestures.HitTestEntry) bool

DebugHandleEvent counts the pointers that are down, to paint them when DebugOptions.PaintPointersEnabled is set. It returns true.

Flutter: rendering/box.dart RenderBox.debugHandleEvent

func (*RenderBox) DebugPaint

func (r *RenderBox) DebugPaint(context *PaintingContext, offset ui.Offset)

DebugPaint paints the debug overlays that DebugOptions asks for.

Flutter: rendering/box.dart RenderBox.debugPaint

func (*RenderBox) DebugPaintBaselines

func (r *RenderBox) DebugPaintBaselines(context *PaintingContext, offset ui.Offset)

DebugPaintBaselines paints the baselines: ideographic in yellow, alphabetic in green.

Flutter: rendering/box.dart RenderBox.debugPaintBaselines

func (*RenderBox) DebugPaintPointers

func (r *RenderBox) DebugPaintPointers(context *PaintingContext, offset ui.Offset)

DebugPaintPointers paints a color over the box while pointers are down on it.

Flutter: rendering/box.dart RenderBox.debugPaintPointers

func (*RenderBox) DebugPaintSize

func (r *RenderBox) DebugPaintSize(context *PaintingContext, offset ui.Offset)

DebugPaintSize paints a cyan outline of the box.

Flutter: rendering/box.dart RenderBox.debugPaintSize

func (*RenderBox) DebugResetSize

func (r *RenderBox) DebugResetSize()

DebugResetSize sets the size to itself, which checks it against the constraints.

Flutter: rendering/box.dart RenderBox.debugResetSize

func (*RenderBox) GetDistanceToActualBaseline

func (r *RenderBox) GetDistanceToActualBaseline(baseline ui.TextBaseline) foundation.Opt[float64]

GetDistanceToActualBaseline calls ComputeDistanceToActualBaseline and caches the result. Only GetDistanceToBaseline and the parent's helpers call it.

Flutter: rendering/box.dart RenderBox.getDistanceToActualBaseline

func (*RenderBox) GetDistanceToBaseline

func (r *RenderBox) GetDistanceToBaseline(baseline ui.TextBaseline, opts ...BaselineOpts) foundation.Opt[float64]

GetDistanceToBaseline is the distance from the top of the box to the baseline; without OnlyReal it is the height when the box has no baseline. It can only be called by the parent, during its layout or paint, with the box laid out.

Flutter: rendering/box.dart RenderBox.getDistanceToBaseline

func (*RenderBox) GetDryBaseline

func (r *RenderBox) GetDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

GetDryBaseline calls ComputeDryBaseline and caches the result.

Flutter: rendering/box.dart RenderBox.getDryBaseline

func (*RenderBox) GetDryLayout

func (r *RenderBox) GetDryLayout(constraints BoxConstraints) ui.Size

GetDryLayout calls ComputeDryLayout and caches the result.

Flutter: rendering/box.dart RenderBox.getDryLayout

func (*RenderBox) GetMaxIntrinsicHeight

func (r *RenderBox) GetMaxIntrinsicHeight(width float64) float64

GetMaxIntrinsicHeight calls ComputeMaxIntrinsicHeight and caches the result. A negative width panics with IntrinsicArgumentNegative in debug builds.

Flutter: rendering/box.dart RenderBox.getMaxIntrinsicHeight

func (*RenderBox) GetMaxIntrinsicWidth

func (r *RenderBox) GetMaxIntrinsicWidth(height float64) float64

GetMaxIntrinsicWidth calls ComputeMaxIntrinsicWidth and caches the result. A negative height panics with IntrinsicArgumentNegative in debug builds.

Flutter: rendering/box.dart RenderBox.getMaxIntrinsicWidth

func (*RenderBox) GetMinIntrinsicHeight

func (r *RenderBox) GetMinIntrinsicHeight(width float64) float64

GetMinIntrinsicHeight calls ComputeMinIntrinsicHeight and caches the result. A negative width panics with IntrinsicArgumentNegative in debug builds.

Flutter: rendering/box.dart RenderBox.getMinIntrinsicHeight

func (*RenderBox) GetMinIntrinsicWidth

func (r *RenderBox) GetMinIntrinsicWidth(height float64) float64

GetMinIntrinsicWidth calls ComputeMinIntrinsicWidth and caches the result. A negative height panics with IntrinsicArgumentNegative in debug builds.

Flutter: rendering/box.dart RenderBox.getMinIntrinsicWidth

func (*RenderBox) GlobalToLocal

func (r *RenderBox) GlobalToLocal(point ui.Offset, ancestor RenderObject) ui.Offset

GlobalToLocal converts a point from the global coordinates (those of the ancestor, or of the root if nil) to the box's.

Flutter: rendering/box.dart RenderBox.globalToLocal

func (*RenderBox) HandleEvent

HandleEvent does nothing here; DebugHandleEvent is for the pointer paint debugging.

Flutter: rendering/box.dart RenderBox.handleEvent

func (*RenderBox) HasSize

func (r *RenderBox) HasSize() bool

HasSize reports whether the box has a size.

Flutter: rendering/box.dart RenderBox.hasSize

func (*RenderBox) HitTest

func (r *RenderBox) HitTest(result *BoxHitTestResult, position ui.Offset) bool

HitTest adds the box to the result if the position is inside its size and it or a child is hit. Hit testing a box that has no size panics with BoxHitTestNoSize in debug builds.

Flutter: rendering/box.dart RenderBox.hitTest

func (*RenderBox) HitTestChildren

func (r *RenderBox) HitTestChildren(*BoxHitTestResult, ui.Offset) bool

HitTestChildren is false: no child is hit.

Flutter: rendering/box.dart RenderBox.hitTestChildren

func (*RenderBox) HitTestSelf

func (r *RenderBox) HitTestSelf(ui.Offset) bool

HitTestSelf is false: the box is not hit by itself.

Flutter: rendering/box.dart RenderBox.hitTestSelf

func (*RenderBox) LocalToGlobal

func (r *RenderBox) LocalToGlobal(point ui.Offset, ancestor RenderObject) ui.Offset

LocalToGlobal converts a point from the box's coordinates to the global ones (those of the ancestor, or of the root if nil).

Flutter: rendering/box.dart RenderBox.localToGlobal

func (*RenderBox) MarkNeedsLayout

func (r *RenderBox) MarkNeedsLayout()

MarkNeedsLayout clears the caches of the intrinsic sizes, dry layouts and baselines. If there was anything cached the parent may have used it, so the parent needs layout too.

Flutter: rendering/box.dart RenderBox.markNeedsLayout

func (*RenderBox) PaintBounds

func (r *RenderBox) PaintBounds() ui.Rect

PaintBounds are the bounds of the box: its size at the origin.

Flutter: rendering/box.dart RenderBox.paintBounds

func (*RenderBox) PerformLayout

func (r *RenderBox) PerformLayout()

PerformLayout panics in debug builds, with BoxPerformLayoutMissing, if the box is not SizedByParent: it must override PerformLayout then.

Flutter: rendering/box.dart RenderBox.performLayout

func (*RenderBox) PerformResize

func (r *RenderBox) PerformResize()

PerformResize sets the size to the dry layout for the constraints.

Flutter: rendering/box.dart RenderBox.performResize

func (*RenderBox) SemanticBounds

func (r *RenderBox) SemanticBounds() ui.Rect

SemanticBounds are the bounds of the box: its size at the origin.

Flutter: rendering/box.dart RenderBox.semanticBounds

func (*RenderBox) SetSize

func (r *RenderBox) SetSize(value ui.Size)

SetSize sets the size of the box. Only the box itself may call it, from PerformResize if it is SizedByParent and from PerformLayout otherwise; a debug build panics with BoxSizeSetterInvalid anywhere else.

Flutter: rendering/box.dart RenderBox.size

func (*RenderBox) SetupParentData

func (r *RenderBox) SetupParentData(child RenderObject)

SetupParentData gives the child a BoxParentData if it has none of that kind.

Flutter: rendering/box.dart RenderBox.setupParentData

func (*RenderBox) Size

func (r *RenderBox) Size() ui.Size

Size is the size of the box. In debug builds it panics with BoxNotLaidOut if the box has no size, and with BoxSizeAccessInvalid if the size is read at a time the layout protocol does not allow: only the box itself, or its parent when the box was laid out with ParentUsesSize, may read it during layout.

Flutter: rendering/box.dart RenderBox.size

func (*RenderBox) ToStringShort

func (r *RenderBox) ToStringShort() string

ToStringShort is the description of the object; render boxes use the base one.

type RenderClipOval

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

RenderClipOval clips its child using an oval.

Flutter: rendering/proxy_box.dart RenderClipOval

func NewRenderClipOval

func NewRenderClipOval(child Box, opts ...RenderClipRectOpts) *RenderClipOval

NewRenderClipOval creates the box.

Flutter: rendering/proxy_box.dart RenderClipOval.new

func (*RenderClipOval) Attach

func (c *RenderClipOval) Attach(owner *PipelineOwner)

Attach starts listening to the clipper.

Flutter: rendering/proxy_box.dart _RenderCustomClip.attach

func (*RenderClipOval) ClipBehavior

func (c *RenderClipOval) ClipBehavior() ui.Clip

ClipBehavior is how the clip is applied.

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipBehavior

func (*RenderClipOval) Clipper

func (c *RenderClipOval) Clipper() CustomClipper[T]

Clipper creates the clip from the size of the box; nil means the default clip (the whole box, or the rounded rectangle of the object).

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipper

func (*RenderClipOval) DebugPaintSize

func (r *RenderClipOval) DebugPaintSize(context *PaintingContext, offset ui.Offset)

DebugPaintSize paints the clip oval.

Flutter: rendering/proxy_box.dart RenderClipOval.debugPaintSize

func (*RenderClipOval) DescribeApproximatePaintClip

func (c *RenderClipOval) DescribeApproximatePaintClip(RenderObject) foundation.Opt[ui.Rect]

DescribeApproximatePaintClip is the approximate rectangle of the clip, unless the clip behavior is none.

Flutter: rendering/proxy_box.dart _RenderCustomClip.describeApproximatePaintClip

func (*RenderClipOval) Detach

func (c *RenderClipOval) Detach()

Detach stops listening to the clipper.

Flutter: rendering/proxy_box.dart _RenderCustomClip.detach

func (*RenderClipOval) HitTest

func (r *RenderClipOval) HitTest(result *BoxHitTestResult, position ui.Offset) bool

HitTest hits inside the oval of the clip.

Flutter: rendering/proxy_box.dart RenderClipOval.hitTest

func (*RenderClipOval) Paint

func (r *RenderClipOval) Paint(context *PaintingContext, offset ui.Offset)

Paint pushes a clip path layer for the oval.

Flutter: rendering/proxy_box.dart RenderClipOval.paint

func (*RenderClipOval) PerformLayout

func (c *RenderClipOval) PerformLayout()

PerformLayout lays out as a proxy box and drops the clip if the size changed.

Flutter: rendering/proxy_box.dart _RenderCustomClip.performLayout

func (*RenderClipOval) SetClipBehavior

func (c *RenderClipOval) SetClipBehavior(value ui.Clip)

SetClipBehavior changes the clip behavior and marks the box as needing paint.

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipBehavior

func (*RenderClipOval) SetClipper

func (c *RenderClipOval) SetClipper(newClipper CustomClipper[T])

SetClipper changes the clipper. The clip is computed again when the clipper differs and says it should reclip.

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipper

type RenderClipPath

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

RenderClipPath clips its child using a path.

Flutter: rendering/proxy_box.dart RenderClipPath

func NewRenderClipPath

func NewRenderClipPath(child Box, opts ...RenderClipPathOpts) *RenderClipPath

NewRenderClipPath creates the box.

Flutter: rendering/proxy_box.dart RenderClipPath.new

func (*RenderClipPath) Attach

func (c *RenderClipPath) Attach(owner *PipelineOwner)

Attach starts listening to the clipper.

Flutter: rendering/proxy_box.dart _RenderCustomClip.attach

func (*RenderClipPath) ClipBehavior

func (c *RenderClipPath) ClipBehavior() ui.Clip

ClipBehavior is how the clip is applied.

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipBehavior

func (*RenderClipPath) Clipper

func (c *RenderClipPath) Clipper() CustomClipper[T]

Clipper creates the clip from the size of the box; nil means the default clip (the whole box, or the rounded rectangle of the object).

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipper

func (*RenderClipPath) DebugPaintSize

func (r *RenderClipPath) DebugPaintSize(context *PaintingContext, offset ui.Offset)

DebugPaintSize paints the clip path.

Flutter: rendering/proxy_box.dart RenderClipPath.debugPaintSize

func (*RenderClipPath) DescribeApproximatePaintClip

func (c *RenderClipPath) DescribeApproximatePaintClip(RenderObject) foundation.Opt[ui.Rect]

DescribeApproximatePaintClip is the approximate rectangle of the clip, unless the clip behavior is none.

Flutter: rendering/proxy_box.dart _RenderCustomClip.describeApproximatePaintClip

func (*RenderClipPath) Detach

func (c *RenderClipPath) Detach()

Detach stops listening to the clipper.

Flutter: rendering/proxy_box.dart _RenderCustomClip.detach

func (*RenderClipPath) HitTest

func (r *RenderClipPath) HitTest(result *BoxHitTestResult, position ui.Offset) bool

HitTest only hits inside the clip path if there is a clipper.

Flutter: rendering/proxy_box.dart RenderClipPath.hitTest

func (*RenderClipPath) Paint

func (r *RenderClipPath) Paint(context *PaintingContext, offset ui.Offset)

Paint pushes a clip path layer.

Flutter: rendering/proxy_box.dart RenderClipPath.paint

func (*RenderClipPath) PerformLayout

func (c *RenderClipPath) PerformLayout()

PerformLayout lays out as a proxy box and drops the clip if the size changed.

Flutter: rendering/proxy_box.dart _RenderCustomClip.performLayout

func (*RenderClipPath) SetClipBehavior

func (c *RenderClipPath) SetClipBehavior(value ui.Clip)

SetClipBehavior changes the clip behavior and marks the box as needing paint.

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipBehavior

func (*RenderClipPath) SetClipper

func (c *RenderClipPath) SetClipper(newClipper CustomClipper[T])

SetClipper changes the clipper. The clip is computed again when the clipper differs and says it should reclip.

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipper

type RenderClipPathOpts

type RenderClipPathOpts struct {
	// Clipper creates the clip; nil clips to the box.
	Clipper CustomClipper[*ui.Path]
	// ClipBehavior defaults to ClipAntiAlias.
	ClipBehavior ui.Clip
}

RenderClipPathOpts are the optional parameters of NewRenderClipPath.

Flutter: rendering/proxy_box.dart RenderClipPath.new

type RenderClipRRect

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

RenderClipRRect clips its child using a rounded rectangle.

Flutter: rendering/proxy_box.dart RenderClipRRect

func NewRenderClipRRect

func NewRenderClipRRect(child Box, opts ...RenderClipRRectOpts) *RenderClipRRect

NewRenderClipRRect creates the box.

Flutter: rendering/proxy_box.dart RenderClipRRect.new

func (*RenderClipRRect) Attach

func (c *RenderClipRRect) Attach(owner *PipelineOwner)

Attach starts listening to the clipper.

Flutter: rendering/proxy_box.dart _RenderCustomClip.attach

func (*RenderClipRRect) BorderRadius

func (r *RenderClipRRect) BorderRadius() painting.BorderRadiusGeometry

BorderRadius is the border radius of the rounded corners.

Flutter: rendering/proxy_box.dart RenderClipRRect.borderRadius

func (*RenderClipRRect) ClipBehavior

func (c *RenderClipRRect) ClipBehavior() ui.Clip

ClipBehavior is how the clip is applied.

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipBehavior

func (*RenderClipRRect) Clipper

func (c *RenderClipRRect) Clipper() CustomClipper[T]

Clipper creates the clip from the size of the box; nil means the default clip (the whole box, or the rounded rectangle of the object).

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipper

func (*RenderClipRRect) DebugPaintSize

func (r *RenderClipRRect) DebugPaintSize(context *PaintingContext, offset ui.Offset)

DebugPaintSize paints the clip rounded rectangle.

Flutter: rendering/proxy_box.dart RenderClipRRect.debugPaintSize

func (*RenderClipRRect) DescribeApproximatePaintClip

func (c *RenderClipRRect) DescribeApproximatePaintClip(RenderObject) foundation.Opt[ui.Rect]

DescribeApproximatePaintClip is the approximate rectangle of the clip, unless the clip behavior is none.

Flutter: rendering/proxy_box.dart _RenderCustomClip.describeApproximatePaintClip

func (*RenderClipRRect) Detach

func (c *RenderClipRRect) Detach()

Detach stops listening to the clipper.

Flutter: rendering/proxy_box.dart _RenderCustomClip.detach

func (*RenderClipRRect) HitTest

func (r *RenderClipRRect) HitTest(result *BoxHitTestResult, position ui.Offset) bool

HitTest only hits inside the clip if there is a clipper.

Flutter: rendering/proxy_box.dart RenderClipRRect.hitTest

func (*RenderClipRRect) Paint

func (r *RenderClipRRect) Paint(context *PaintingContext, offset ui.Offset)

Paint pushes a clip rounded rectangle layer.

Flutter: rendering/proxy_box.dart RenderClipRRect.paint

func (*RenderClipRRect) PerformLayout

func (c *RenderClipRRect) PerformLayout()

PerformLayout lays out as a proxy box and drops the clip if the size changed.

Flutter: rendering/proxy_box.dart _RenderCustomClip.performLayout

func (*RenderClipRRect) SetBorderRadius

func (r *RenderClipRRect) SetBorderRadius(value painting.BorderRadiusGeometry)

SetBorderRadius changes the radius and drops the clip.

Flutter: rendering/proxy_box.dart RenderClipRRect.borderRadius

func (*RenderClipRRect) SetClipBehavior

func (c *RenderClipRRect) SetClipBehavior(value ui.Clip)

SetClipBehavior changes the clip behavior and marks the box as needing paint.

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipBehavior

func (*RenderClipRRect) SetClipper

func (c *RenderClipRRect) SetClipper(newClipper CustomClipper[T])

SetClipper changes the clipper. The clip is computed again when the clipper differs and says it should reclip.

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipper

func (*RenderClipRRect) SetTextDirection

func (r *RenderClipRRect) SetTextDirection(value ui.TextDirection)

SetTextDirection changes the direction and drops the clip.

Flutter: rendering/proxy_box.dart RenderClipRRect.textDirection

func (*RenderClipRRect) TextDirection

func (r *RenderClipRRect) TextDirection() ui.TextDirection

TextDirection resolves a directional border radius.

Flutter: rendering/proxy_box.dart RenderClipRRect.textDirection

type RenderClipRRectOpts

type RenderClipRRectOpts struct {
	// BorderRadius defaults to painting.BorderRadiusZero.
	BorderRadius painting.BorderRadiusGeometry
	// Clipper creates the clip; nil uses the border radius.
	Clipper CustomClipper[ui.RRect]
	// ClipBehavior defaults to ClipAntiAlias.
	ClipBehavior ui.Clip
	// TextDirection resolves a directional border radius.
	TextDirection ui.TextDirection
}

RenderClipRRectOpts are the optional parameters of NewRenderClipRRect.

Flutter: rendering/proxy_box.dart RenderClipRRect.new

type RenderClipRSuperellipse

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

RenderClipRSuperellipse clips its child using a rounded superellipse.

Flutter: rendering/proxy_box.dart RenderClipRSuperellipse

func NewRenderClipRSuperellipse

func NewRenderClipRSuperellipse(child Box, opts ...RenderClipRSuperellipseOpts) *RenderClipRSuperellipse

NewRenderClipRSuperellipse creates the box.

Flutter: rendering/proxy_box.dart RenderClipRSuperellipse.new

func (*RenderClipRSuperellipse) Attach

func (c *RenderClipRSuperellipse) Attach(owner *PipelineOwner)

Attach starts listening to the clipper.

Flutter: rendering/proxy_box.dart _RenderCustomClip.attach

func (*RenderClipRSuperellipse) BorderRadius

BorderRadius is the border radius of the rounded corners.

Flutter: rendering/proxy_box.dart RenderClipRSuperellipse.borderRadius

func (*RenderClipRSuperellipse) ClipBehavior

func (c *RenderClipRSuperellipse) ClipBehavior() ui.Clip

ClipBehavior is how the clip is applied.

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipBehavior

func (*RenderClipRSuperellipse) Clipper

func (c *RenderClipRSuperellipse) Clipper() CustomClipper[T]

Clipper creates the clip from the size of the box; nil means the default clip (the whole box, or the rounded rectangle of the object).

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipper

func (*RenderClipRSuperellipse) DebugPaintSize

func (r *RenderClipRSuperellipse) DebugPaintSize(context *PaintingContext, offset ui.Offset)

DebugPaintSize paints the clip shape.

Flutter: rendering/proxy_box.dart RenderClipRSuperellipse.debugPaintSize

func (*RenderClipRSuperellipse) DescribeApproximatePaintClip

func (c *RenderClipRSuperellipse) DescribeApproximatePaintClip(RenderObject) foundation.Opt[ui.Rect]

DescribeApproximatePaintClip is the approximate rectangle of the clip, unless the clip behavior is none.

Flutter: rendering/proxy_box.dart _RenderCustomClip.describeApproximatePaintClip

func (*RenderClipRSuperellipse) Detach

func (c *RenderClipRSuperellipse) Detach()

Detach stops listening to the clipper.

Flutter: rendering/proxy_box.dart _RenderCustomClip.detach

func (*RenderClipRSuperellipse) HitTest

func (r *RenderClipRSuperellipse) HitTest(result *BoxHitTestResult, position ui.Offset) bool

HitTest only hits inside the outer rectangle of the clip if there is a clipper.

Flutter: rendering/proxy_box.dart RenderClipRSuperellipse.hitTest

func (*RenderClipRSuperellipse) Paint

func (r *RenderClipRSuperellipse) Paint(context *PaintingContext, offset ui.Offset)

Paint pushes a clip rounded superellipse layer.

Flutter: rendering/proxy_box.dart RenderClipRSuperellipse.paint

func (*RenderClipRSuperellipse) PerformLayout

func (c *RenderClipRSuperellipse) PerformLayout()

PerformLayout lays out as a proxy box and drops the clip if the size changed.

Flutter: rendering/proxy_box.dart _RenderCustomClip.performLayout

func (*RenderClipRSuperellipse) SetBorderRadius

func (r *RenderClipRSuperellipse) SetBorderRadius(value painting.BorderRadiusGeometry)

SetBorderRadius changes the radius and drops the clip.

Flutter: rendering/proxy_box.dart RenderClipRSuperellipse.borderRadius

func (*RenderClipRSuperellipse) SetClipBehavior

func (c *RenderClipRSuperellipse) SetClipBehavior(value ui.Clip)

SetClipBehavior changes the clip behavior and marks the box as needing paint.

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipBehavior

func (*RenderClipRSuperellipse) SetClipper

func (c *RenderClipRSuperellipse) SetClipper(newClipper CustomClipper[T])

SetClipper changes the clipper. The clip is computed again when the clipper differs and says it should reclip.

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipper

func (*RenderClipRSuperellipse) SetTextDirection

func (r *RenderClipRSuperellipse) SetTextDirection(value ui.TextDirection)

SetTextDirection changes the direction and drops the clip.

Flutter: rendering/proxy_box.dart RenderClipRSuperellipse.textDirection

func (*RenderClipRSuperellipse) TextDirection

func (r *RenderClipRSuperellipse) TextDirection() ui.TextDirection

TextDirection resolves a directional border radius.

Flutter: rendering/proxy_box.dart RenderClipRSuperellipse.textDirection

type RenderClipRSuperellipseOpts

type RenderClipRSuperellipseOpts struct {
	// BorderRadius defaults to painting.BorderRadiusZero.
	BorderRadius painting.BorderRadiusGeometry
	// Clipper creates the clip; nil uses the border radius.
	Clipper CustomClipper[ui.RSuperellipse]
	// ClipBehavior defaults to ClipAntiAlias.
	ClipBehavior ui.Clip
	// TextDirection resolves a directional border radius.
	TextDirection ui.TextDirection
}

RenderClipRSuperellipseOpts are the optional parameters of NewRenderClipRSuperellipse.

Flutter: rendering/proxy_box.dart RenderClipRSuperellipse.new

type RenderClipRect

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

RenderClipRect clips its child using a rectangle.

Flutter: rendering/proxy_box.dart RenderClipRect

func NewRenderClipRect

func NewRenderClipRect(child Box, opts ...RenderClipRectOpts) *RenderClipRect

NewRenderClipRect creates the box.

Flutter: rendering/proxy_box.dart RenderClipRect.new

func (*RenderClipRect) Attach

func (c *RenderClipRect) Attach(owner *PipelineOwner)

Attach starts listening to the clipper.

Flutter: rendering/proxy_box.dart _RenderCustomClip.attach

func (*RenderClipRect) ClipBehavior

func (c *RenderClipRect) ClipBehavior() ui.Clip

ClipBehavior is how the clip is applied.

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipBehavior

func (*RenderClipRect) Clipper

func (c *RenderClipRect) Clipper() CustomClipper[T]

Clipper creates the clip from the size of the box; nil means the default clip (the whole box, or the rounded rectangle of the object).

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipper

func (*RenderClipRect) DebugPaintSize

func (r *RenderClipRect) DebugPaintSize(context *PaintingContext, offset ui.Offset)

DebugPaintSize paints the clip rectangle.

Flutter: rendering/proxy_box.dart RenderClipRect.debugPaintSize

func (*RenderClipRect) DescribeApproximatePaintClip

func (c *RenderClipRect) DescribeApproximatePaintClip(RenderObject) foundation.Opt[ui.Rect]

DescribeApproximatePaintClip is the approximate rectangle of the clip, unless the clip behavior is none.

Flutter: rendering/proxy_box.dart _RenderCustomClip.describeApproximatePaintClip

func (*RenderClipRect) Detach

func (c *RenderClipRect) Detach()

Detach stops listening to the clipper.

Flutter: rendering/proxy_box.dart _RenderCustomClip.detach

func (*RenderClipRect) HitTest

func (r *RenderClipRect) HitTest(result *BoxHitTestResult, position ui.Offset) bool

HitTest only hits inside the clip if there is a clipper.

Flutter: rendering/proxy_box.dart RenderClipRect.hitTest

func (*RenderClipRect) Paint

func (r *RenderClipRect) Paint(context *PaintingContext, offset ui.Offset)

Paint pushes a clip rectangle layer.

Flutter: rendering/proxy_box.dart RenderClipRect.paint

func (*RenderClipRect) PerformLayout

func (c *RenderClipRect) PerformLayout()

PerformLayout lays out as a proxy box and drops the clip if the size changed.

Flutter: rendering/proxy_box.dart _RenderCustomClip.performLayout

func (*RenderClipRect) SetClipBehavior

func (c *RenderClipRect) SetClipBehavior(value ui.Clip)

SetClipBehavior changes the clip behavior and marks the box as needing paint.

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipBehavior

func (*RenderClipRect) SetClipper

func (c *RenderClipRect) SetClipper(newClipper CustomClipper[T])

SetClipper changes the clipper. The clip is computed again when the clipper differs and says it should reclip.

Flutter: rendering/proxy_box.dart _RenderCustomClip.clipper

type RenderClipRectOpts

type RenderClipRectOpts struct {
	// Clipper creates the clip; nil clips to the box.
	Clipper CustomClipper[ui.Rect]
	// ClipBehavior defaults to ClipAntiAlias.
	ClipBehavior ui.Clip
}

RenderClipRectOpts are the optional parameters of NewRenderClipRect.

Flutter: rendering/proxy_box.dart _RenderCustomClip.new

type RenderConstrainedBox

type RenderConstrainedBox struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderConstrainedBox imposes additional constraints on its child.

Flutter: rendering/proxy_box.dart RenderConstrainedBox

func NewRenderConstrainedBox

func NewRenderConstrainedBox(additionalConstraints BoxConstraints, child Box) *RenderConstrainedBox

NewRenderConstrainedBox creates a box that enforces the additional constraints on the child (nil for none).

Flutter: rendering/proxy_box.dart RenderConstrainedBox.new

func (*RenderConstrainedBox) AdditionalConstraints

func (r *RenderConstrainedBox) AdditionalConstraints() BoxConstraints

AdditionalConstraints are the constraints that are enforced on the child.

Flutter: rendering/proxy_box.dart RenderConstrainedBox.additionalConstraints

func (*RenderConstrainedBox) ComputeDryBaseline

func (r *RenderConstrainedBox) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the child's baseline for the enforced constraints.

Flutter: rendering/proxy_box.dart RenderConstrainedBox.computeDryBaseline

func (*RenderConstrainedBox) ComputeDryLayout

func (r *RenderConstrainedBox) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is PerformLayout without the layout.

Flutter: rendering/proxy_box.dart RenderConstrainedBox.computeDryLayout

func (*RenderConstrainedBox) ComputeMaxIntrinsicHeight

func (r *RenderConstrainedBox) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is like ComputeMinIntrinsicHeight for the maximum.

Flutter: rendering/proxy_box.dart RenderConstrainedBox.computeMaxIntrinsicHeight

func (*RenderConstrainedBox) ComputeMaxIntrinsicWidth

func (r *RenderConstrainedBox) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is like ComputeMinIntrinsicWidth for the maximum.

Flutter: rendering/proxy_box.dart RenderConstrainedBox.computeMaxIntrinsicWidth

func (*RenderConstrainedBox) ComputeMinIntrinsicHeight

func (r *RenderConstrainedBox) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the minimum height of the additional constraints if they are tight, otherwise the child's height constrained by them.

Flutter: rendering/proxy_box.dart RenderConstrainedBox.computeMinIntrinsicHeight

func (*RenderConstrainedBox) ComputeMinIntrinsicWidth

func (r *RenderConstrainedBox) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is the minimum width of the additional constraints if they are tight, otherwise the child's width constrained by them.

Flutter: rendering/proxy_box.dart RenderConstrainedBox.computeMinIntrinsicWidth

func (*RenderConstrainedBox) DebugFillProperties

func (r *RenderConstrainedBox) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the additional constraints.

Flutter: rendering/proxy_box.dart RenderConstrainedBox.debugFillProperties

func (*RenderConstrainedBox) DebugPaintSize

func (r *RenderConstrainedBox) DebugPaintSize(context *PaintingContext, offset ui.Offset)

DebugPaintSize also paints a gray box over a box that has no (or an empty) child.

Flutter: rendering/proxy_box.dart RenderConstrainedBox.debugPaintSize

func (*RenderConstrainedBox) PerformLayout

func (r *RenderConstrainedBox) PerformLayout()

PerformLayout lays out the child with the additional constraints enforced.

Flutter: rendering/proxy_box.dart RenderConstrainedBox.performLayout

func (*RenderConstrainedBox) SetAdditionalConstraints

func (r *RenderConstrainedBox) SetAdditionalConstraints(value BoxConstraints)

SetAdditionalConstraints changes the constraints and marks the box as needing layout.

Flutter: rendering/proxy_box.dart RenderConstrainedBox.additionalConstraints

type RenderConstrainedOverflowBox

type RenderConstrainedOverflowBox struct {
	RenderAligningShiftedBox
	// contains filtered or unexported fields
}

RenderConstrainedOverflowBox imposes different constraints on its child than it gets from its parent, possibly allowing the child to overflow.

Flutter: rendering/shifted_box.dart RenderConstrainedOverflowBox

func NewRenderConstrainedOverflowBox

func NewRenderConstrainedOverflowBox(child Box, opts ...RenderConstrainedOverflowBoxOpts) *RenderConstrainedOverflowBox

NewRenderConstrainedOverflowBox creates the box.

Flutter: rendering/shifted_box.dart RenderConstrainedOverflowBox.new

func (*RenderConstrainedOverflowBox) ComputeDryBaseline

func (r *RenderConstrainedOverflowBox) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the child's baseline plus the aligned offset.

Flutter: rendering/shifted_box.dart RenderConstrainedOverflowBox.computeDryBaseline

func (*RenderConstrainedOverflowBox) ComputeDryLayout

func (r *RenderConstrainedOverflowBox) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the biggest size for the max fit, the child's otherwise.

Flutter: rendering/shifted_box.dart RenderConstrainedOverflowBox.computeDryLayout

func (*RenderConstrainedOverflowBox) DebugFillProperties

DebugFillProperties adds the constraints and the fit.

Flutter: rendering/shifted_box.dart RenderConstrainedOverflowBox.debugFillProperties

func (*RenderConstrainedOverflowBox) Fit

Fit is how the box sizes itself.

Flutter: rendering/shifted_box.dart RenderConstrainedOverflowBox.fit

func (*RenderConstrainedOverflowBox) MaxHeight

MaxHeight replaces the maximum height constraint of the child, if set.

Flutter: rendering/shifted_box.dart RenderConstrainedOverflowBox.maxHeight

func (*RenderConstrainedOverflowBox) MaxWidth

MaxWidth replaces the maximum width constraint of the child, if set.

Flutter: rendering/shifted_box.dart RenderConstrainedOverflowBox.maxWidth

func (*RenderConstrainedOverflowBox) MinHeight

MinHeight replaces the minimum height constraint of the child, if set.

Flutter: rendering/shifted_box.dart RenderConstrainedOverflowBox.minHeight

func (*RenderConstrainedOverflowBox) MinWidth

MinWidth replaces the minimum width constraint of the child, if set.

Flutter: rendering/shifted_box.dart RenderConstrainedOverflowBox.minWidth

func (*RenderConstrainedOverflowBox) PerformLayout

func (r *RenderConstrainedOverflowBox) PerformLayout()

PerformLayout lays the child out with the replaced constraints.

Flutter: rendering/shifted_box.dart RenderConstrainedOverflowBox.performLayout

func (*RenderConstrainedOverflowBox) SetFit

SetFit changes the fit; the box is sized by its parent when it is max.

Flutter: rendering/shifted_box.dart RenderConstrainedOverflowBox.fit

func (*RenderConstrainedOverflowBox) SetMaxHeight

func (r *RenderConstrainedOverflowBox) SetMaxHeight(value foundation.Opt[float64])

SetMaxHeight changes the constraint and marks the box as needing layout.

Flutter: rendering/shifted_box.dart RenderConstrainedOverflowBox.maxHeight

func (*RenderConstrainedOverflowBox) SetMaxWidth

func (r *RenderConstrainedOverflowBox) SetMaxWidth(value foundation.Opt[float64])

SetMaxWidth changes the constraint and marks the box as needing layout.

Flutter: rendering/shifted_box.dart RenderConstrainedOverflowBox.maxWidth

func (*RenderConstrainedOverflowBox) SetMinHeight

func (r *RenderConstrainedOverflowBox) SetMinHeight(value foundation.Opt[float64])

SetMinHeight changes the constraint and marks the box as needing layout.

Flutter: rendering/shifted_box.dart RenderConstrainedOverflowBox.minHeight

func (*RenderConstrainedOverflowBox) SetMinWidth

func (r *RenderConstrainedOverflowBox) SetMinWidth(value foundation.Opt[float64])

SetMinWidth changes the constraint and marks the box as needing layout.

Flutter: rendering/shifted_box.dart RenderConstrainedOverflowBox.minWidth

func (*RenderConstrainedOverflowBox) SizedByParent

func (r *RenderConstrainedOverflowBox) SizedByParent() bool

SizedByParent is true for the max fit.

Flutter: rendering/shifted_box.dart RenderConstrainedOverflowBox.sizedByParent

type RenderConstrainedOverflowBoxOpts

type RenderConstrainedOverflowBoxOpts struct {
	// MinWidth replaces the minimum width constraint, if set.
	MinWidth foundation.Opt[float64]
	// MaxWidth replaces the maximum width constraint, if set.
	MaxWidth foundation.Opt[float64]
	// MinHeight replaces the minimum height constraint, if set.
	MinHeight foundation.Opt[float64]
	// MaxHeight replaces the maximum height constraint, if set.
	MaxHeight foundation.Opt[float64]
	// Fit defaults to OverflowBoxFitMax.
	Fit OverflowBoxFit
	// Alignment defaults to painting.AlignmentCenter.
	Alignment painting.AlignmentGeometry
	// TextDirection resolves a directional alignment.
	TextDirection ui.TextDirection
}

RenderConstrainedOverflowBoxOpts are the optional parameters of NewRenderConstrainedOverflowBox.

Flutter: rendering/shifted_box.dart RenderConstrainedOverflowBox.new

type RenderConstraintsTransformBox

type RenderConstraintsTransformBox struct {
	RenderAligningShiftedBox
	DebugOverflowIndicator
	// contains filtered or unexported fields
}

RenderConstraintsTransformBox transforms the constraints that its parent gives, with a function, before they reach its child, and clips (or marks) the overflow.

Flutter: rendering/shifted_box.dart RenderConstraintsTransformBox

func NewRenderConstraintsTransformBox

func NewRenderConstraintsTransformBox(alignment painting.AlignmentGeometry, textDirection ui.TextDirection,
	constraintsTransform BoxConstraintsTransform, child Box, opts ...RenderConstraintsTransformBoxOpts) *RenderConstraintsTransformBox

NewRenderConstraintsTransformBox creates the box.

Flutter: rendering/shifted_box.dart RenderConstraintsTransformBox.new

func (*RenderConstraintsTransformBox) ClipBehavior

func (r *RenderConstraintsTransformBox) ClipBehavior() ui.Clip

ClipBehavior is how the overflow is clipped.

Flutter: rendering/shifted_box.dart RenderConstraintsTransformBox.clipBehavior

func (*RenderConstraintsTransformBox) ComputeDryBaseline

func (r *RenderConstraintsTransformBox) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the child's baseline plus the aligned offset.

Flutter: rendering/shifted_box.dart RenderConstraintsTransformBox.computeDryBaseline

func (*RenderConstraintsTransformBox) ComputeDryLayout

func (r *RenderConstraintsTransformBox) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the child's size for the transformed constraints.

Flutter: rendering/shifted_box.dart RenderConstraintsTransformBox.computeDryLayout

func (*RenderConstraintsTransformBox) ComputeMaxIntrinsicHeight

func (r *RenderConstraintsTransformBox) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight transforms the width.

Flutter: rendering/shifted_box.dart RenderConstraintsTransformBox.computeMaxIntrinsicHeight

func (*RenderConstraintsTransformBox) ComputeMaxIntrinsicWidth

func (r *RenderConstraintsTransformBox) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth transforms the height.

Flutter: rendering/shifted_box.dart RenderConstraintsTransformBox.computeMaxIntrinsicWidth

func (*RenderConstraintsTransformBox) ComputeMinIntrinsicHeight

func (r *RenderConstraintsTransformBox) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight transforms the width.

Flutter: rendering/shifted_box.dart RenderConstraintsTransformBox.computeMinIntrinsicHeight

func (*RenderConstraintsTransformBox) ComputeMinIntrinsicWidth

func (r *RenderConstraintsTransformBox) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth transforms the height.

Flutter: rendering/shifted_box.dart RenderConstraintsTransformBox.computeMinIntrinsicWidth

func (*RenderConstraintsTransformBox) ConstraintsTransform

func (r *RenderConstraintsTransformBox) ConstraintsTransform() BoxConstraintsTransform

ConstraintsTransform turns the parent's constraints into the child's.

Flutter: rendering/shifted_box.dart RenderConstraintsTransformBox.constraintsTransform

func (*RenderConstraintsTransformBox) DescribeApproximatePaintClip

func (r *RenderConstraintsTransformBox) DescribeApproximatePaintClip(RenderObject) foundation.Opt[ui.Rect]

DescribeApproximatePaintClip is the box if the child overflows and is clipped.

Flutter: rendering/shifted_box.dart RenderConstraintsTransformBox.describeApproximatePaintClip

func (*RenderConstraintsTransformBox) Dispose

func (r *RenderConstraintsTransformBox) Dispose()

Dispose lets the clip layer go.

Flutter: rendering/shifted_box.dart RenderConstraintsTransformBox.dispose

func (*RenderConstraintsTransformBox) Paint

func (r *RenderConstraintsTransformBox) Paint(context *PaintingContext, offset ui.Offset)

Paint clips the child if it overflows, and marks the overflow in debug builds.

Flutter: rendering/shifted_box.dart RenderConstraintsTransformBox.paint

func (*RenderConstraintsTransformBox) PerformLayout

func (r *RenderConstraintsTransformBox) PerformLayout()

PerformLayout lays the child out with the transformed constraints and works out whether it overflows.

Flutter: rendering/shifted_box.dart RenderConstraintsTransformBox.performLayout

func (*RenderConstraintsTransformBox) Reassemble

func (r *RenderConstraintsTransformBox) Reassemble()

Reassemble makes the overflow be reported again.

Flutter: rendering/debug_overflow_indicator.dart DebugOverflowIndicatorMixin.reassemble

func (*RenderConstraintsTransformBox) SetClipBehavior

func (r *RenderConstraintsTransformBox) SetClipBehavior(value ui.Clip)

SetClipBehavior changes the clip behavior and marks the box as needing paint.

Flutter: rendering/shifted_box.dart RenderConstraintsTransformBox.clipBehavior

func (*RenderConstraintsTransformBox) SetConstraintsTransform

func (r *RenderConstraintsTransformBox) SetConstraintsTransform(value BoxConstraintsTransform)

SetConstraintsTransform changes the function; layout is needed if the child's constraints change.

Deviation: Dart skips an equal function; Go functions can not be compared, so the new constraints are compared instead (SPEC §12.10).

Flutter: rendering/shifted_box.dart RenderConstraintsTransformBox.constraintsTransform

func (*RenderConstraintsTransformBox) ToStringShort

func (r *RenderConstraintsTransformBox) ToStringShort() string

ToStringShort adds OVERFLOWING when the child overflows (debug builds).

Flutter: rendering/shifted_box.dart RenderConstraintsTransformBox.toStringShort

type RenderConstraintsTransformBoxOpts

type RenderConstraintsTransformBoxOpts struct {
	// ClipBehavior defaults to ClipNone.
	ClipBehavior ui.Clip
}

RenderConstraintsTransformBoxOpts are the optional parameters of NewRenderConstraintsTransformBox.

Flutter: rendering/shifted_box.dart RenderConstraintsTransformBox.new

type RenderCustomMultiChildLayoutBox

type RenderCustomMultiChildLayoutBox struct {
	RenderBox
	ContainerRenderObject[Box]
	// contains filtered or unexported fields
}

RenderCustomMultiChildLayoutBox uses a delegate to size and position multiple children.

Flutter: rendering/custom_layout.dart RenderCustomMultiChildLayoutBox

func NewRenderCustomMultiChildLayoutBox

func NewRenderCustomMultiChildLayoutBox(delegate MultiChildLayoutDelegate, children []Box) *RenderCustomMultiChildLayoutBox

NewRenderCustomMultiChildLayoutBox creates the box with the children (nil for none).

Flutter: rendering/custom_layout.dart RenderCustomMultiChildLayoutBox.new

func (*RenderCustomMultiChildLayoutBox) Attach

Attach starts listening to the delegate's relayout listenable.

Flutter: rendering/custom_layout.dart RenderCustomMultiChildLayoutBox.attach

func (*RenderCustomMultiChildLayoutBox) ComputeDryLayout

func (r *RenderCustomMultiChildLayoutBox) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size the delegate gives.

Flutter: rendering/custom_layout.dart RenderCustomMultiChildLayoutBox.computeDryLayout

func (*RenderCustomMultiChildLayoutBox) ComputeMaxIntrinsicHeight

func (r *RenderCustomMultiChildLayoutBox) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the delegate's height for the width, or 0 if it is not finite.

Flutter: rendering/custom_layout.dart RenderCustomMultiChildLayoutBox.computeMaxIntrinsicHeight

func (*RenderCustomMultiChildLayoutBox) ComputeMaxIntrinsicWidth

func (r *RenderCustomMultiChildLayoutBox) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is the delegate's width for the height, or 0 if it is not finite.

Flutter: rendering/custom_layout.dart RenderCustomMultiChildLayoutBox.computeMaxIntrinsicWidth

func (*RenderCustomMultiChildLayoutBox) ComputeMinIntrinsicHeight

func (r *RenderCustomMultiChildLayoutBox) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the delegate's height for the width, or 0 if it is not finite.

Flutter: rendering/custom_layout.dart RenderCustomMultiChildLayoutBox.computeMinIntrinsicHeight

func (*RenderCustomMultiChildLayoutBox) ComputeMinIntrinsicWidth

func (r *RenderCustomMultiChildLayoutBox) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is the delegate's width for the height, or 0 if it is not finite.

Flutter: rendering/custom_layout.dart RenderCustomMultiChildLayoutBox.computeMinIntrinsicWidth

func (*RenderCustomMultiChildLayoutBox) Delegate

Delegate controls the layout of the children.

Flutter: rendering/custom_layout.dart RenderCustomMultiChildLayoutBox.delegate

func (*RenderCustomMultiChildLayoutBox) Detach

func (r *RenderCustomMultiChildLayoutBox) Detach()

Detach stops listening to the delegate's relayout listenable.

Flutter: rendering/custom_layout.dart RenderCustomMultiChildLayoutBox.detach

func (*RenderCustomMultiChildLayoutBox) HitTestChildren

func (r *RenderCustomMultiChildLayoutBox) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren hit tests the children from the front.

Flutter: rendering/custom_layout.dart RenderCustomMultiChildLayoutBox.hitTestChildren

func (*RenderCustomMultiChildLayoutBox) Paint

func (r *RenderCustomMultiChildLayoutBox) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the children in order.

Flutter: rendering/custom_layout.dart RenderCustomMultiChildLayoutBox.paint

func (*RenderCustomMultiChildLayoutBox) PerformLayout

func (r *RenderCustomMultiChildLayoutBox) PerformLayout()

PerformLayout sizes the box and lets the delegate lay the children out.

Flutter: rendering/custom_layout.dart RenderCustomMultiChildLayoutBox.performLayout

func (*RenderCustomMultiChildLayoutBox) SetDelegate

func (r *RenderCustomMultiChildLayoutBox) SetDelegate(newDelegate MultiChildLayoutDelegate)

SetDelegate changes the delegate. The box needs layout if the new delegate is of another type or says so.

Flutter: rendering/custom_layout.dart RenderCustomMultiChildLayoutBox.delegate

func (*RenderCustomMultiChildLayoutBox) SetupParentData

func (r *RenderCustomMultiChildLayoutBox) SetupParentData(child RenderObject)

SetupParentData gives the child a MultiChildLayoutParentData if it has none.

Flutter: rendering/custom_layout.dart RenderCustomMultiChildLayoutBox.setupParentData

type RenderCustomPaint

type RenderCustomPaint struct {
	RenderProxyBox

	IsComplex  bool
	WillChange bool
	// contains filtered or unexported fields
}

RenderCustomPaint provides a canvas on which to draw during the paint phase.

Flutter: rendering/custom_paint.dart RenderCustomPaint

func NewRenderCustomPaint

func NewRenderCustomPaint(child Box, opts ...RenderCustomPaintOpts) *RenderCustomPaint

NewRenderCustomPaint creates the box.

Flutter: rendering/custom_paint.dart RenderCustomPaint.new

func (*RenderCustomPaint) AssembleSemanticsNode

func (r *RenderCustomPaint) AssembleSemanticsNode(node *semantics.SemanticsNode, config *semantics.SemanticsConfiguration, children []*semantics.SemanticsNode)

AssembleSemanticsNode gives the node the children of the painters around those of the child. In debug builds it panics with the tag CustomPaintSemanticsNoChild if the object has no child but gets children.

Flutter: rendering/custom_paint.dart RenderCustomPaint.assembleSemanticsNode

func (*RenderCustomPaint) Attach

func (r *RenderCustomPaint) Attach(owner *PipelineOwner)

Attach starts listening to the painters.

Flutter: rendering/custom_paint.dart RenderCustomPaint.attach

func (*RenderCustomPaint) ClearSemantics

func (r *RenderCustomPaint) ClearSemantics()

ClearSemantics forgets the nodes of the painters too.

Flutter: rendering/custom_paint.dart RenderCustomPaint.clearSemantics

func (*RenderCustomPaint) ComputeMaxIntrinsicHeight

func (r *RenderCustomPaint) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the child's, or the preferred height if finite.

Flutter: rendering/custom_paint.dart RenderCustomPaint.computeMaxIntrinsicHeight

func (*RenderCustomPaint) ComputeMaxIntrinsicWidth

func (r *RenderCustomPaint) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is the child's, or the preferred width if finite.

Flutter: rendering/custom_paint.dart RenderCustomPaint.computeMaxIntrinsicWidth

func (*RenderCustomPaint) ComputeMinIntrinsicHeight

func (r *RenderCustomPaint) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the child's, or the preferred height if finite.

Flutter: rendering/custom_paint.dart RenderCustomPaint.computeMinIntrinsicHeight

func (*RenderCustomPaint) ComputeMinIntrinsicWidth

func (r *RenderCustomPaint) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is the child's, or the preferred width if finite.

Flutter: rendering/custom_paint.dart RenderCustomPaint.computeMinIntrinsicWidth

func (*RenderCustomPaint) ComputeSizeForNoChild

func (r *RenderCustomPaint) ComputeSizeForNoChild(constraints BoxConstraints) ui.Size

ComputeSizeForNoChild is the preferred size, constrained.

Flutter: rendering/custom_paint.dart RenderCustomPaint.computeSizeForNoChild

func (*RenderCustomPaint) DebugFillProperties

func (r *RenderCustomPaint) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the painters, the preferred size and the hints.

Flutter: rendering/custom_paint.dart RenderCustomPaint.debugFillProperties

func (*RenderCustomPaint) DescribeSemanticsConfiguration

func (r *RenderCustomPaint) DescribeSemanticsConfiguration(config *semantics.SemanticsConfiguration)

DescribeSemanticsConfiguration makes the object a semantic boundary if a painter has a semantics builder.

Flutter: rendering/custom_paint.dart RenderCustomPaint.describeSemanticsConfiguration

func (*RenderCustomPaint) Detach

func (r *RenderCustomPaint) Detach()

Detach stops listening to the painters.

Flutter: rendering/custom_paint.dart RenderCustomPaint.detach

func (*RenderCustomPaint) ForegroundPainter

func (r *RenderCustomPaint) ForegroundPainter() CustomPainter

ForegroundPainter paints after the child.

Flutter: rendering/custom_paint.dart RenderCustomPaint.foregroundPainter

func (*RenderCustomPaint) HitTestChildren

func (r *RenderCustomPaint) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren is true if the foreground painter says the position is hit, otherwise the child's.

Flutter: rendering/custom_paint.dart RenderCustomPaint.hitTestChildren

func (*RenderCustomPaint) HitTestSelf

func (r *RenderCustomPaint) HitTestSelf(position ui.Offset) bool

HitTestSelf is whether the background painter says the position is hit.

Flutter: rendering/custom_paint.dart RenderCustomPaint.hitTestSelf

func (*RenderCustomPaint) Paint

func (r *RenderCustomPaint) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the background painter, the child and the foreground painter.

Flutter: rendering/custom_paint.dart RenderCustomPaint.paint

func (*RenderCustomPaint) Painter

func (r *RenderCustomPaint) Painter() CustomPainter

Painter paints before the child.

Flutter: rendering/custom_paint.dart RenderCustomPaint.painter

func (*RenderCustomPaint) PerformLayout

func (r *RenderCustomPaint) PerformLayout()

PerformLayout lays out as a proxy box.

Flutter: rendering/custom_paint.dart RenderCustomPaint.performLayout

func (*RenderCustomPaint) PreferredSize

func (r *RenderCustomPaint) PreferredSize() ui.Size

PreferredSize is the size that this render object would like to be when it has no child.

Flutter: rendering/custom_paint.dart RenderCustomPaint.preferredSize

func (*RenderCustomPaint) SetForegroundPainter

func (r *RenderCustomPaint) SetForegroundPainter(value CustomPainter)

SetForegroundPainter changes the painter; the box repaints if the painter should.

Flutter: rendering/custom_paint.dart RenderCustomPaint.foregroundPainter

func (*RenderCustomPaint) SetPainter

func (r *RenderCustomPaint) SetPainter(value CustomPainter)

SetPainter changes the painter; the box repaints if the painter should.

Flutter: rendering/custom_paint.dart RenderCustomPaint.painter

func (*RenderCustomPaint) SetPreferredSize

func (r *RenderCustomPaint) SetPreferredSize(value ui.Size)

SetPreferredSize changes the size and marks the box as needing layout.

Flutter: rendering/custom_paint.dart RenderCustomPaint.preferredSize

type RenderCustomPaintOpts

type RenderCustomPaintOpts struct {
	// Painter paints before the child.
	Painter CustomPainter
	// ForegroundPainter paints after the child.
	ForegroundPainter CustomPainter
	// PreferredSize is the size of the box when it has no child.
	PreferredSize ui.Size
	// IsComplex hints that the painting is expensive to rasterize.
	IsComplex bool
	// WillChange hints that the painting will change in the next frame.
	WillChange bool
}

RenderCustomPaintOpts are the optional parameters of NewRenderCustomPaint.

Flutter: rendering/custom_paint.dart RenderCustomPaint.new

type RenderCustomSingleChildLayoutBox

type RenderCustomSingleChildLayoutBox struct {
	RenderShiftedBox
	// contains filtered or unexported fields
}

RenderCustomSingleChildLayoutBox defers the layout of its single child to a delegate.

Flutter: rendering/shifted_box.dart RenderCustomSingleChildLayoutBox

func NewRenderCustomSingleChildLayoutBox

func NewRenderCustomSingleChildLayoutBox(delegate SingleChildLayoutDelegate, child Box) *RenderCustomSingleChildLayoutBox

NewRenderCustomSingleChildLayoutBox creates the box.

Flutter: rendering/shifted_box.dart RenderCustomSingleChildLayoutBox.new

func (*RenderCustomSingleChildLayoutBox) Attach

Attach starts listening to the delegate.

Flutter: rendering/shifted_box.dart RenderCustomSingleChildLayoutBox.attach

func (*RenderCustomSingleChildLayoutBox) ComputeDryBaseline

func (r *RenderCustomSingleChildLayoutBox) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the child's baseline plus the delegate's position.

Flutter: rendering/shifted_box.dart RenderCustomSingleChildLayoutBox.computeDryBaseline

func (*RenderCustomSingleChildLayoutBox) ComputeDryLayout

func (r *RenderCustomSingleChildLayoutBox) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the delegate's size.

Flutter: rendering/shifted_box.dart RenderCustomSingleChildLayoutBox.computeDryLayout

func (*RenderCustomSingleChildLayoutBox) ComputeMaxIntrinsicHeight

func (r *RenderCustomSingleChildLayoutBox) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the delegate's height for the width, or 0.

Flutter: rendering/shifted_box.dart RenderCustomSingleChildLayoutBox.computeMaxIntrinsicHeight

func (*RenderCustomSingleChildLayoutBox) ComputeMaxIntrinsicWidth

func (r *RenderCustomSingleChildLayoutBox) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is the delegate's width for the height, or 0.

Flutter: rendering/shifted_box.dart RenderCustomSingleChildLayoutBox.computeMaxIntrinsicWidth

func (*RenderCustomSingleChildLayoutBox) ComputeMinIntrinsicHeight

func (r *RenderCustomSingleChildLayoutBox) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the delegate's height for the width, or 0.

Flutter: rendering/shifted_box.dart RenderCustomSingleChildLayoutBox.computeMinIntrinsicHeight

func (*RenderCustomSingleChildLayoutBox) ComputeMinIntrinsicWidth

func (r *RenderCustomSingleChildLayoutBox) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is the delegate's width for the height, or 0.

Flutter: rendering/shifted_box.dart RenderCustomSingleChildLayoutBox.computeMinIntrinsicWidth

func (*RenderCustomSingleChildLayoutBox) Delegate

Delegate controls the layout of the child.

Flutter: rendering/shifted_box.dart RenderCustomSingleChildLayoutBox.delegate

func (*RenderCustomSingleChildLayoutBox) Detach

Detach stops listening to the delegate.

Flutter: rendering/shifted_box.dart RenderCustomSingleChildLayoutBox.detach

func (*RenderCustomSingleChildLayoutBox) PerformLayout

func (r *RenderCustomSingleChildLayoutBox) PerformLayout()

PerformLayout takes the delegate's size and lays the child out as it says.

Flutter: rendering/shifted_box.dart RenderCustomSingleChildLayoutBox.performLayout

func (*RenderCustomSingleChildLayoutBox) SetDelegate

func (r *RenderCustomSingleChildLayoutBox) SetDelegate(newDelegate SingleChildLayoutDelegate)

SetDelegate changes the delegate; layout is needed if the delegate is of another type or says so.

Flutter: rendering/shifted_box.dart RenderCustomSingleChildLayoutBox.delegate

type RenderDecoratedBox

type RenderDecoratedBox struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderDecoratedBox paints a decoration before or after its child.

Flutter: rendering/proxy_box.dart RenderDecoratedBox

func NewRenderDecoratedBox

func NewRenderDecoratedBox(decoration painting.Decoration, child Box, opts ...RenderDecoratedBoxOpts) *RenderDecoratedBox

NewRenderDecoratedBox creates the box.

Flutter: rendering/proxy_box.dart RenderDecoratedBox.new

func (*RenderDecoratedBox) Configuration

func (r *RenderDecoratedBox) Configuration() painting.ImageConfiguration

Configuration is the settings to pass to the decoration when painting.

Flutter: rendering/proxy_box.dart RenderDecoratedBox.configuration

func (*RenderDecoratedBox) DebugFillProperties

func (r *RenderDecoratedBox) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the decoration and the configuration.

Flutter: rendering/proxy_box.dart RenderDecoratedBox.debugFillProperties

func (*RenderDecoratedBox) Decoration

func (r *RenderDecoratedBox) Decoration() painting.Decoration

Decoration is what to paint.

Flutter: rendering/proxy_box.dart RenderDecoratedBox.decoration

func (*RenderDecoratedBox) Detach

func (r *RenderDecoratedBox) Detach()

Detach disposes the painter.

Flutter: rendering/proxy_box.dart RenderDecoratedBox.detach

func (*RenderDecoratedBox) Dispose

func (r *RenderDecoratedBox) Dispose()

Dispose disposes the painter.

Flutter: rendering/proxy_box.dart RenderDecoratedBox.dispose

func (*RenderDecoratedBox) HitTestSelf

func (r *RenderDecoratedBox) HitTestSelf(position ui.Offset) bool

HitTestSelf asks the decoration.

Flutter: rendering/proxy_box.dart RenderDecoratedBox.hitTestSelf

func (*RenderDecoratedBox) Paint

func (r *RenderDecoratedBox) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the decoration and the child.

Flutter: rendering/proxy_box.dart RenderDecoratedBox.paint

func (*RenderDecoratedBox) Position

func (r *RenderDecoratedBox) Position() DecorationPosition

Position is whether the decoration is painted behind or in front of the child.

Flutter: rendering/proxy_box.dart RenderDecoratedBox.position

func (*RenderDecoratedBox) SetConfiguration

func (r *RenderDecoratedBox) SetConfiguration(value painting.ImageConfiguration)

SetConfiguration changes the configuration and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderDecoratedBox.configuration

func (*RenderDecoratedBox) SetDecoration

func (r *RenderDecoratedBox) SetDecoration(value painting.Decoration)

SetDecoration changes the decoration and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderDecoratedBox.decoration

func (*RenderDecoratedBox) SetPosition

func (r *RenderDecoratedBox) SetPosition(value DecorationPosition)

SetPosition changes the position and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderDecoratedBox.position

type RenderDecoratedBoxOpts

type RenderDecoratedBoxOpts struct {
	// Position defaults to DecorationPositionBackground.
	Position DecorationPosition
	// Configuration defaults to painting.ImageConfigurationEmpty.
	Configuration painting.ImageConfiguration
}

RenderDecoratedBoxOpts are the optional parameters of NewRenderDecoratedBox.

Flutter: rendering/proxy_box.dart RenderDecoratedBox.new

type RenderEditable

type RenderEditable struct {
	RenderBox
	ContainerRenderObject[Box]
	// contains filtered or unexported fields
}

RenderEditable displays some text that can be edited: it paints the text, the selection and the caret, scrolls the text in its box along one axis, and turns taps into a selection. The widget EditableText wraps it.

Deviation: the floating cursor of iOS is not ported (SPEC §12.10).

Flutter: rendering/editable.dart RenderEditable

func NewRenderEditable

func NewRenderEditable(textDirection ui.TextDirection, startHandleLayerLink, endHandleLayerLink *LayerLink, offset ViewportOffset,
	textSelectionDelegate services.TextSelectionDelegate, opts ...RenderEditableOpts) *RenderEditable

NewRenderEditable creates an editable. textDirection, the layer links of the selection handles, the offset of the viewport and the text selection delegate are required.

Flutter: rendering/editable.dart RenderEditable.new

func (*RenderEditable) ApplyPaintTransform

func (r *RenderEditable) ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)

ApplyPaintTransform leaves the transform alone for the painters' render objects, and translates it by the offset of an inline child.

Flutter: rendering/editable.dart RenderEditable.applyPaintTransform

func (*RenderEditable) AssembleSemanticsNode

func (r *RenderEditable) AssembleSemanticsNode(node *semantics.SemanticsNode, config *semantics.SemanticsConfiguration, children []*semantics.SemanticsNode)

AssembleSemanticsNode makes a node for each text span (the case of a read only editable with recognizers), and puts the nodes of the placeholders in order.

Flutter: rendering/editable.dart RenderEditable.assembleSemanticsNode

func (*RenderEditable) Attach

func (r *RenderEditable) Attach(owner *PipelineOwner)

Attach attaches the painters' render objects and creates the recognizers.

Flutter: rendering/editable.dart RenderEditable.attach

func (*RenderEditable) BackgroundCursorColor

func (r *RenderEditable) BackgroundCursorColor() foundation.Opt[ui.Color]

BackgroundCursorColor is the color of the caret while the floating cursor is shown (never, in Glutter).

Flutter: rendering/editable.dart RenderEditable.backgroundCursorColor

func (*RenderEditable) ClearSemantics

func (r *RenderEditable) ClearSemantics()

ClearSemantics forgets the nodes of the spans too.

Flutter: rendering/editable.dart RenderEditable.clearSemantics

func (*RenderEditable) ClipBehavior

func (r *RenderEditable) ClipBehavior() ui.Clip

ClipBehavior is how the text is clipped when it overflows.

Flutter: rendering/editable.dart RenderEditable.clipBehavior

func (*RenderEditable) ComputeDistanceToActualBaseline

func (r *RenderEditable) ComputeDistanceToActualBaseline(baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDistanceToActualBaseline is the distance to the baseline of the first line.

Flutter: rendering/editable.dart RenderEditable.computeDistanceToActualBaseline

func (*RenderEditable) ComputeDryBaseline

func (r *RenderEditable) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the baseline of the first line at the constraints.

Flutter: rendering/editable.dart RenderEditable.computeDryBaseline

func (*RenderEditable) ComputeDryLayout

func (r *RenderEditable) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size the editable takes at the constraints.

Flutter: rendering/editable.dart RenderEditable.computeDryLayout

func (*RenderEditable) ComputeMaxIntrinsicHeight

func (r *RenderEditable) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the height of the text at the width.

Flutter: rendering/editable.dart RenderEditable.computeMaxIntrinsicHeight

func (*RenderEditable) ComputeMaxIntrinsicWidth

func (r *RenderEditable) ComputeMaxIntrinsicWidth(float64) float64

ComputeMaxIntrinsicWidth is the width at which the text takes one line, with the room for the caret.

Flutter: rendering/editable.dart RenderEditable.computeMaxIntrinsicWidth

func (*RenderEditable) ComputeMinIntrinsicHeight

func (r *RenderEditable) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the height of the text at the width.

Flutter: rendering/editable.dart RenderEditable.computeMinIntrinsicHeight

func (*RenderEditable) ComputeMinIntrinsicWidth

func (r *RenderEditable) ComputeMinIntrinsicWidth(float64) float64

ComputeMinIntrinsicWidth is the minimum width of the text.

Flutter: rendering/editable.dart RenderEditable.computeMinIntrinsicWidth

func (*RenderEditable) CursorColor

func (r *RenderEditable) CursorColor() foundation.Opt[ui.Color]

CursorColor is the color of the caret.

Flutter: rendering/editable.dart RenderEditable.cursorColor

func (*RenderEditable) CursorHeight

func (r *RenderEditable) CursorHeight() float64

CursorHeight is the height of the caret: by default the preferred line height of the text.

Flutter: rendering/editable.dart RenderEditable.cursorHeight

func (*RenderEditable) CursorOffset

func (r *RenderEditable) CursorOffset() ui.Offset

CursorOffset is how far the caret is moved from where the text puts it.

Flutter: rendering/editable.dart RenderEditable.cursorOffset

func (*RenderEditable) CursorRadius

func (r *RenderEditable) CursorRadius() foundation.Opt[ui.Radius]

CursorRadius rounds the corners of the caret.

Flutter: rendering/editable.dart RenderEditable.cursorRadius

func (*RenderEditable) CursorWidth

func (r *RenderEditable) CursorWidth() float64

CursorWidth is the width of the caret.

Flutter: rendering/editable.dart RenderEditable.cursorWidth

func (*RenderEditable) DebugDescribeChildren

func (r *RenderEditable) DebugDescribeChildren() []foundation.DiagnosticsNode

DebugDescribeChildren describes the text.

Flutter: rendering/editable.dart RenderEditable.debugDescribeChildren

func (*RenderEditable) DebugFillProperties

func (r *RenderEditable) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the properties of the editable.

Flutter: rendering/editable.dart RenderEditable.debugFillProperties

func (*RenderEditable) DescribeApproximatePaintClip

func (r *RenderEditable) DescribeApproximatePaintClip(RenderObject) foundation.Opt[ui.Rect]

DescribeApproximatePaintClip is the box of the editable when it clips.

Flutter: rendering/editable.dart RenderEditable.describeApproximatePaintClip

func (*RenderEditable) DescribeSemanticsConfiguration

func (r *RenderEditable) DescribeSemanticsConfiguration(config *semantics.SemanticsConfiguration)

DescribeSemanticsConfiguration describes a text field: its value, its focus, the selection and the actions that move the cursor. Selectable rich text with recognizers makes a semantics node for each text fragment instead.

Flutter: rendering/editable.dart RenderEditable.describeSemanticsConfiguration

func (*RenderEditable) Detach

func (r *RenderEditable) Detach()

Detach disposes the recognizers and detaches the painters' render objects.

Flutter: rendering/editable.dart RenderEditable.detach

func (*RenderEditable) DevicePixelRatio

func (r *RenderEditable) DevicePixelRatio() float64

DevicePixelRatio is the ratio of device pixels to logical pixels, used to put the caret on a physical pixel.

Flutter: rendering/editable.dart RenderEditable.devicePixelRatio

func (*RenderEditable) Dispose

func (r *RenderEditable) Dispose()

Dispose releases the painters, the text painters and the layers.

Flutter: rendering/editable.dart RenderEditable.dispose

func (*RenderEditable) EnableInteractiveSelection

func (r *RenderEditable) EnableInteractiveSelection() foundation.Opt[bool]

EnableInteractiveSelection says whether the user can change the selection; None means unless the text is obscured.

Flutter: rendering/editable.dart RenderEditable.enableInteractiveSelection

func (r *RenderEditable) EndHandleLayerLink() *LayerLink

EndHandleLayerLink links the end of the selection to the handle and the toolbar that follow it.

Flutter: rendering/editable.dart RenderEditable.endHandleLayerLink

func (*RenderEditable) Expands

func (r *RenderEditable) Expands() bool

Expands is whether the editable is as tall as its constraints allow.

Flutter: rendering/editable.dart RenderEditable.expands

func (*RenderEditable) ForceLine

func (r *RenderEditable) ForceLine() bool

ForceLine is whether the editable is as wide as its constraints allow.

Flutter: rendering/editable.dart RenderEditable.forceLine

func (*RenderEditable) ForegroundPainter

func (r *RenderEditable) ForegroundPainter() RenderEditablePainter

ForegroundPainter is the painter that paints above the text.

Flutter: rendering/editable.dart RenderEditable.foregroundPainter

func (*RenderEditable) GetBoxesForSelection

func (r *RenderEditable) GetBoxesForSelection(selection services.TextSelection) []ui.TextBox

GetBoxesForSelection returns the boxes that the selection covers, in the coordinates of the editable.

Flutter: rendering/editable.dart RenderEditable.getBoxesForSelection

func (*RenderEditable) GetEndpointsForSelection

func (r *RenderEditable) GetEndpointsForSelection(selection services.TextSelection) []TextSelectionPoint

GetEndpointsForSelection returns the points at the bottom of the start and of the end of the selection (one point when it is collapsed), in the coordinates of the editable. The handles and the toolbar go there.

Flutter: rendering/editable.dart RenderEditable.getEndpointsForSelection

func (*RenderEditable) GetLineAtOffset

func (r *RenderEditable) GetLineAtOffset(position ui.TextPosition) services.TextSelection

GetLineAtOffset returns the line that the position is on, as a selection. When the text is obscured the whole text is one line.

Flutter: rendering/editable.dart RenderEditable.getLineAtOffset

func (*RenderEditable) GetLocalRectForCaret

func (r *RenderEditable) GetLocalRectForCaret(caretPosition ui.TextPosition) ui.Rect

GetLocalRectForCaret returns the rectangle of the caret at the position, in the coordinates of the editable, moved to a physical pixel.

Flutter: rendering/editable.dart RenderEditable.getLocalRectForCaret

func (*RenderEditable) GetPositionForPoint

func (r *RenderEditable) GetPositionForPoint(globalPosition ui.Offset) ui.TextPosition

GetPositionForPoint returns the position in the text that is closest to the point, given in global coordinates.

Flutter: rendering/editable.dart RenderEditable.getPositionForPoint

func (*RenderEditable) GetRectForComposingRange

func (r *RenderEditable) GetRectForComposingRange(rng ui.TextRange) (ui.Rect, bool)

GetRectForComposingRange returns the rectangle that contains the composing text, or false if the range is not valid or is empty.

Flutter: rendering/editable.dart RenderEditable.getRectForComposingRange

func (*RenderEditable) GetTextPositionAbove

func (r *RenderEditable) GetTextPositionAbove(position ui.TextPosition) ui.TextPosition

GetTextPositionAbove returns the position on the line above, at the same horizontal offset.

Flutter: rendering/editable.dart RenderEditable.getTextPositionAbove

func (*RenderEditable) GetTextPositionBelow

func (r *RenderEditable) GetTextPositionBelow(position ui.TextPosition) ui.TextPosition

GetTextPositionBelow returns the position on the line below, at the same horizontal offset.

Flutter: rendering/editable.dart RenderEditable.getTextPositionBelow

func (*RenderEditable) GetWordAtOffset

func (r *RenderEditable) GetWordAtOffset(position ui.TextPosition) services.TextSelection

GetWordAtOffset returns the selection of the word at the position. Past the end of the text it is a caret at the end; for obscured text the whole text is the word.

Flutter: rendering/editable.dart RenderEditable.getWordAtOffset

func (*RenderEditable) GetWordBoundary

func (r *RenderEditable) GetWordBoundary(position ui.TextPosition) ui.TextRange

GetWordBoundary returns the word that the position is in.

Flutter: rendering/editable.dart RenderEditable.getWordBoundary

func (*RenderEditable) HandleDoubleTap

func (r *RenderEditable) HandleDoubleTap()

HandleDoubleTap selects the word at the last tap down.

Flutter: rendering/editable.dart RenderEditable.handleDoubleTap

func (*RenderEditable) HandleEvent

func (r *RenderEditable) HandleEvent(event gestures.PointerEvent, entry gestures.HitTestEntry)

HandleEvent hands a pointer-down to the tap and long-press recognizers.

Flutter: rendering/editable.dart RenderEditable.handleEvent

func (*RenderEditable) HandleLongPress

func (r *RenderEditable) HandleLongPress()

HandleLongPress selects the word at the last tap down.

Flutter: rendering/editable.dart RenderEditable.handleLongPress

func (*RenderEditable) HandleSecondaryTapDown

func (r *RenderEditable) HandleSecondaryTapDown(details gestures.TapDownDetails)

HandleSecondaryTapDown records the position of a secondary tap down, for the selection and the context menu.

Flutter: rendering/editable.dart RenderEditable.handleSecondaryTapDown

func (*RenderEditable) HandleTap

func (r *RenderEditable) HandleTap()

HandleTap selects the position of the last tap down.

Flutter: rendering/editable.dart RenderEditable.handleTap

func (*RenderEditable) HandleTapDown

func (r *RenderEditable) HandleTapDown(details gestures.TapDownDetails)

HandleTapDown records the position of a tap down, for the selection that follows.

Flutter: rendering/editable.dart RenderEditable.handleTapDown

func (*RenderEditable) HasFocus

func (r *RenderEditable) HasFocus() bool

HasFocus is whether the editable has the focus.

Flutter: rendering/editable.dart RenderEditable.hasFocus

func (*RenderEditable) HitTestChildren

func (r *RenderEditable) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren adds the span under the position to the result if it is a hit test target, else hit tests the inline children.

Flutter: rendering/editable.dart RenderEditable.hitTestChildren

func (*RenderEditable) HitTestSelf

func (r *RenderEditable) HitTestSelf(ui.Offset) bool

HitTestSelf is true: the editable is hit anywhere.

Flutter: rendering/editable.dart RenderEditable.hitTestSelf

func (*RenderEditable) IgnorePointer

func (r *RenderEditable) IgnorePointer() bool

IgnorePointer is whether the editable ignores taps and long presses.

Flutter: rendering/editable.dart RenderEditable.ignorePointer

func (*RenderEditable) LastSecondaryTapDownPosition

func (r *RenderEditable) LastSecondaryTapDownPosition() foundation.Opt[ui.Offset]

LastSecondaryTapDownPosition is the global position of the last secondary tap down (a right click); None before there was one.

Flutter: rendering/editable.dart RenderEditable.lastSecondaryTapDownPosition

func (*RenderEditable) Locale

func (r *RenderEditable) Locale() foundation.Opt[ui.Locale]

Locale selects region-specific glyphs.

Flutter: rendering/editable.dart RenderEditable.locale

func (*RenderEditable) MarkNeedsPaint

func (r *RenderEditable) MarkNeedsPaint()

MarkNeedsPaint also asks the painters to paint again, because the layout of the text may have changed.

Flutter: rendering/editable.dart RenderEditable.markNeedsPaint

func (*RenderEditable) MaxLines

func (r *RenderEditable) MaxLines() foundation.Opt[int]

MaxLines is the maximum number of lines; None is no limit.

Flutter: rendering/editable.dart RenderEditable.maxLines

func (*RenderEditable) MaxScrollExtent

func (r *RenderEditable) MaxScrollExtent() float64

MaxScrollExtent is how far the text can be scrolled.

Flutter: rendering/editable.dart RenderEditable.maxScrollExtent

func (*RenderEditable) MinLines

func (r *RenderEditable) MinLines() foundation.Opt[int]

MinLines is the minimum number of lines.

Flutter: rendering/editable.dart RenderEditable.minLines

func (*RenderEditable) ObscureText

func (r *RenderEditable) ObscureText() bool

ObscureText is whether the text is hidden.

Flutter: rendering/editable.dart RenderEditable.obscureText

func (*RenderEditable) ObscuredText

func (r *RenderEditable) ObscuredText() foundation.Opt[string]

ObscuredText is the text of the field that the text of the editable stands for while ObscureText is true; None when the text of the editable is the text of the field, which is the case for every use that does not replace the text with the obscuring characters itself.

Flutter: no counterpart

func (*RenderEditable) ObscuringCharacter

func (r *RenderEditable) ObscuringCharacter() string

ObscuringCharacter is the character that replaces the text when it is obscured.

Flutter: rendering/editable.dart RenderEditable.obscuringCharacter

func (*RenderEditable) Offset

func (r *RenderEditable) Offset() ViewportOffset

Offset is the offset of the viewport: how far the text is scrolled.

Flutter: rendering/editable.dart RenderEditable.offset

func (*RenderEditable) Paint

func (r *RenderEditable) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the text, the selection and the caret, clipped when the text overflows, and puts the layers that the selection handles follow.

Flutter: rendering/editable.dart RenderEditable.paint

func (*RenderEditable) PaintCursorAboveText

func (r *RenderEditable) PaintCursorAboveText() bool

PaintCursorAboveText is whether the caret is painted over the text.

Flutter: rendering/editable.dart RenderEditable.paintCursorAboveText

func (*RenderEditable) Painter

Painter is the painter that paints below the text.

Flutter: rendering/editable.dart RenderEditable.painter

func (*RenderEditable) PerformLayout

func (r *RenderEditable) PerformLayout()

PerformLayout lays out the inline children and the text, sizes the editable and tells the offset how far the text can scroll.

Flutter: rendering/editable.dart RenderEditable.performLayout

func (*RenderEditable) PlainText

func (r *RenderEditable) PlainText() string

PlainText is the text without the styles, as a string.

Flutter: rendering/editable.dart RenderEditable.plainText

func (*RenderEditable) PreferredLineHeight

func (r *RenderEditable) PreferredLineHeight() float64

PreferredLineHeight is the height of a line of the text.

Flutter: rendering/editable.dart RenderEditable.preferredLineHeight

func (*RenderEditable) PromptRectColor

func (r *RenderEditable) PromptRectColor() foundation.Opt[ui.Color]

PromptRectColor is the color of the highlight of the autocorrect prompt.

Flutter: rendering/editable.dart RenderEditable.promptRectColor

func (*RenderEditable) ReadOnly

func (r *RenderEditable) ReadOnly() bool

ReadOnly is whether the text can not be edited.

Flutter: rendering/editable.dart RenderEditable.readOnly

func (*RenderEditable) RedepthChildren

func (r *RenderEditable) RedepthChildren()

RedepthChildren updates the depth of the painters' render objects too.

Flutter: rendering/editable.dart RenderEditable.redepthChildren

func (*RenderEditable) SelectPosition

func (r *RenderEditable) SelectPosition(cause services.SelectionChangedCause)

SelectPosition moves the caret to the position of the last tap down.

Flutter: rendering/editable.dart RenderEditable.selectPosition

func (*RenderEditable) SelectPositionAt

func (r *RenderEditable) SelectPositionAt(from ui.Offset, to foundation.Opt[ui.Offset], cause services.SelectionChangedCause)

SelectPositionAt selects from the global position from to the global position to (a caret at from when to is None).

Flutter: rendering/editable.dart RenderEditable.selectPositionAt

func (*RenderEditable) SelectWord

func (r *RenderEditable) SelectWord(cause services.SelectionChangedCause)

SelectWord selects the word at the position of the last tap down.

Flutter: rendering/editable.dart RenderEditable.selectWord

func (*RenderEditable) SelectWordEdge

func (r *RenderEditable) SelectWordEdge(cause services.SelectionChangedCause)

SelectWordEdge moves the caret to the edge of the word at the last tap down that is nearest to it.

Flutter: rendering/editable.dart RenderEditable.selectWordEdge

func (*RenderEditable) SelectWordsInRange

func (r *RenderEditable) SelectWordsInRange(from ui.Offset, to foundation.Opt[ui.Offset], cause services.SelectionChangedCause)

SelectWordsInRange selects from the word at the global position from to the word at the global position to (just the first word when to is None).

Flutter: rendering/editable.dart RenderEditable.selectWordsInRange

func (*RenderEditable) Selection

Selection is the selection to paint; None for no selection.

Flutter: rendering/editable.dart RenderEditable.selection

func (*RenderEditable) SelectionColor

func (r *RenderEditable) SelectionColor() foundation.Opt[ui.Color]

SelectionColor is the color of the selected text's background.

Flutter: rendering/editable.dart RenderEditable.selectionColor

func (*RenderEditable) SelectionEnabled

func (r *RenderEditable) SelectionEnabled() bool

SelectionEnabled is whether the user can select text.

Flutter: rendering/editable.dart RenderEditable.selectionEnabled

func (*RenderEditable) SelectionEndInViewport

func (r *RenderEditable) SelectionEndInViewport() foundation.ValueListenable[bool]

SelectionEndInViewport is true while the end of the selection is visible.

Flutter: rendering/editable.dart RenderEditable.selectionEndInViewport

func (*RenderEditable) SelectionHeightStyle

func (r *RenderEditable) SelectionHeightStyle() ui.BoxHeightStyle

SelectionHeightStyle controls how tall the selection highlight boxes are.

Flutter: rendering/editable.dart RenderEditable.selectionHeightStyle

func (*RenderEditable) SelectionStartInViewport

func (r *RenderEditable) SelectionStartInViewport() foundation.ValueListenable[bool]

SelectionStartInViewport is true while the start of the selection is visible.

Flutter: rendering/editable.dart RenderEditable.selectionStartInViewport

func (*RenderEditable) SelectionWidthStyle

func (r *RenderEditable) SelectionWidthStyle() ui.BoxWidthStyle

SelectionWidthStyle controls how wide the selection highlight boxes are.

Flutter: rendering/editable.dart RenderEditable.selectionWidthStyle

func (*RenderEditable) SetBackgroundCursorColor

func (r *RenderEditable) SetBackgroundCursorColor(value foundation.Opt[ui.Color])

SetBackgroundCursorColor changes the color of the background cursor.

Flutter: rendering/editable.dart RenderEditable.backgroundCursorColor

func (*RenderEditable) SetClipBehavior

func (r *RenderEditable) SetClipBehavior(value ui.Clip)

SetClipBehavior changes how the overflow is clipped.

Flutter: rendering/editable.dart RenderEditable.clipBehavior

func (*RenderEditable) SetCursorColor

func (r *RenderEditable) SetCursorColor(value foundation.Opt[ui.Color])

SetCursorColor changes the color of the caret.

Flutter: rendering/editable.dart RenderEditable.cursorColor

func (*RenderEditable) SetCursorHeight

func (r *RenderEditable) SetCursorHeight(value foundation.Opt[float64])

SetCursorHeight changes the height of the caret; None is the preferred line height.

Flutter: rendering/editable.dart RenderEditable.cursorHeight

func (*RenderEditable) SetCursorOffset

func (r *RenderEditable) SetCursorOffset(value ui.Offset)

SetCursorOffset changes the offset of the caret.

Flutter: rendering/editable.dart RenderEditable.cursorOffset

func (*RenderEditable) SetCursorRadius

func (r *RenderEditable) SetCursorRadius(value foundation.Opt[ui.Radius])

SetCursorRadius changes the radius of the caret's corners.

Flutter: rendering/editable.dart RenderEditable.cursorRadius

func (*RenderEditable) SetCursorWidth

func (r *RenderEditable) SetCursorWidth(value float64)

SetCursorWidth changes the width of the caret.

Flutter: rendering/editable.dart RenderEditable.cursorWidth

func (*RenderEditable) SetDevicePixelRatio

func (r *RenderEditable) SetDevicePixelRatio(value float64)

SetDevicePixelRatio changes the pixel ratio.

Flutter: rendering/editable.dart RenderEditable.devicePixelRatio

func (*RenderEditable) SetEnableInteractiveSelection

func (r *RenderEditable) SetEnableInteractiveSelection(value foundation.Opt[bool])

SetEnableInteractiveSelection changes whether the user can select.

Flutter: rendering/editable.dart RenderEditable.enableInteractiveSelection

func (r *RenderEditable) SetEndHandleLayerLink(value *LayerLink)

SetEndHandleLayerLink changes the layer link of the end handle.

Flutter: rendering/editable.dart RenderEditable.endHandleLayerLink

func (*RenderEditable) SetExpands

func (r *RenderEditable) SetExpands(value bool)

SetExpands changes whether the editable fills its constraints.

Flutter: rendering/editable.dart RenderEditable.expands

func (*RenderEditable) SetForceLine

func (r *RenderEditable) SetForceLine(value bool)

SetForceLine changes whether the editable is as wide as it can be.

Flutter: rendering/editable.dart RenderEditable.forceLine

func (*RenderEditable) SetForegroundPainter

func (r *RenderEditable) SetForegroundPainter(p RenderEditablePainter)

SetForegroundPainter changes the painter that paints above the text.

Flutter: rendering/editable.dart RenderEditable.foregroundPainter

func (*RenderEditable) SetHasFocus

func (r *RenderEditable) SetHasFocus(value bool)

SetHasFocus changes whether the editable has the focus.

Flutter: rendering/editable.dart RenderEditable.hasFocus

func (*RenderEditable) SetIgnorePointer

func (r *RenderEditable) SetIgnorePointer(value bool)

SetIgnorePointer changes whether taps and long presses are ignored.

Flutter: rendering/editable.dart RenderEditable.ignorePointer

func (*RenderEditable) SetLocale

func (r *RenderEditable) SetLocale(value foundation.Opt[ui.Locale])

SetLocale changes the locale.

Flutter: rendering/editable.dart RenderEditable.locale

func (*RenderEditable) SetMaxLines

func (r *RenderEditable) SetMaxLines(value foundation.Opt[int])

SetMaxLines changes the maximum number of lines; None is no limit (Flutter's null).

Flutter: rendering/editable.dart RenderEditable.maxLines

func (*RenderEditable) SetMinLines

func (r *RenderEditable) SetMinLines(value foundation.Opt[int])

SetMinLines changes the minimum number of lines.

Flutter: rendering/editable.dart RenderEditable.minLines

func (*RenderEditable) SetObscureText

func (r *RenderEditable) SetObscureText(value bool)

SetObscureText changes whether the text is hidden.

Flutter: rendering/editable.dart RenderEditable.obscureText

func (*RenderEditable) SetObscuredText

func (r *RenderEditable) SetObscuredText(value foundation.Opt[string])

SetObscuredText changes the text of the field that the obscured text of the editable stands for. The grapheme boundaries of the text are worked out here, when the text changes, not for every query.

Flutter: no counterpart

func (*RenderEditable) SetObscuringCharacter

func (r *RenderEditable) SetObscuringCharacter(value string)

SetObscuringCharacter changes the obscuring character, which must be one character.

Flutter: rendering/editable.dart RenderEditable.obscuringCharacter

func (*RenderEditable) SetOffset

func (r *RenderEditable) SetOffset(value ViewportOffset)

SetOffset changes the offset of the viewport.

Flutter: rendering/editable.dart RenderEditable.offset

func (*RenderEditable) SetPaintCursorAboveText

func (r *RenderEditable) SetPaintCursorAboveText(value bool)

SetPaintCursorAboveText changes whether the caret is painted over the text.

Flutter: rendering/editable.dart RenderEditable.paintCursorAboveText

func (*RenderEditable) SetPainter

func (r *RenderEditable) SetPainter(p RenderEditablePainter)

SetPainter changes the painter that paints below the text.

Flutter: rendering/editable.dart RenderEditable.painter

func (*RenderEditable) SetPromptRectColor

func (r *RenderEditable) SetPromptRectColor(value foundation.Opt[ui.Color])

SetPromptRectColor changes the color of the autocorrect highlight.

Flutter: rendering/editable.dart RenderEditable.promptRectColor

func (*RenderEditable) SetPromptRectRange

func (r *RenderEditable) SetPromptRectRange(newRange foundation.Opt[ui.TextRange])

SetPromptRectRange changes the range that is highlighted for the autocorrect prompt; None for no highlight.

Flutter: rendering/editable.dart RenderEditable.setPromptRectRange

func (*RenderEditable) SetReadOnly

func (r *RenderEditable) SetReadOnly(value bool)

SetReadOnly changes whether the text can be edited.

Flutter: rendering/editable.dart RenderEditable.readOnly

func (*RenderEditable) SetSelection

func (r *RenderEditable) SetSelection(value foundation.Opt[services.TextSelection])

SetSelection changes the selection to paint.

Flutter: rendering/editable.dart RenderEditable.selection

func (*RenderEditable) SetSelectionColor

func (r *RenderEditable) SetSelectionColor(value foundation.Opt[ui.Color])

SetSelectionColor changes the color of the selection.

Flutter: rendering/editable.dart RenderEditable.selectionColor

func (*RenderEditable) SetSelectionHeightStyle

func (r *RenderEditable) SetSelectionHeightStyle(value ui.BoxHeightStyle)

SetSelectionHeightStyle changes the height style of the selection boxes.

Flutter: rendering/editable.dart RenderEditable.selectionHeightStyle

func (*RenderEditable) SetSelectionWidthStyle

func (r *RenderEditable) SetSelectionWidthStyle(value ui.BoxWidthStyle)

SetSelectionWidthStyle changes the width style of the selection boxes.

Flutter: rendering/editable.dart RenderEditable.selectionWidthStyle

func (*RenderEditable) SetShowCursor

func (r *RenderEditable) SetShowCursor(value *foundation.ValueNotifier[bool])

SetShowCursor changes the notifier that says whether to paint the caret.

Flutter: rendering/editable.dart RenderEditable.showCursor

func (r *RenderEditable) SetStartHandleLayerLink(value *LayerLink)

SetStartHandleLayerLink changes the layer link of the start handle.

Flutter: rendering/editable.dart RenderEditable.startHandleLayerLink

func (*RenderEditable) SetStrutStyle

func (r *RenderEditable) SetStrutStyle(value *painting.StrutStyle)

SetStrutStyle changes the strut.

Flutter: rendering/editable.dart RenderEditable.strutStyle

func (*RenderEditable) SetText

func (r *RenderEditable) SetText(value painting.InlineSpan)

SetText changes the text.

Flutter: rendering/editable.dart RenderEditable.text

func (*RenderEditable) SetTextAlign

func (r *RenderEditable) SetTextAlign(value ui.TextAlign)

SetTextAlign changes how the text is aligned.

Flutter: rendering/editable.dart RenderEditable.textAlign

func (*RenderEditable) SetTextDirection

func (r *RenderEditable) SetTextDirection(value ui.TextDirection)

SetTextDirection changes the default directionality.

Flutter: rendering/editable.dart RenderEditable.textDirection

func (*RenderEditable) SetTextHeightBehavior

func (r *RenderEditable) SetTextHeightBehavior(value *ui.TextHeightBehavior)

SetTextHeightBehavior changes the behavior of the line height.

Flutter: rendering/editable.dart RenderEditable.textHeightBehavior

func (*RenderEditable) SetTextScaler

func (r *RenderEditable) SetTextScaler(value painting.TextScaler)

SetTextScaler changes how the font sizes are scaled.

Flutter: rendering/editable.dart RenderEditable.textScaler

func (*RenderEditable) SetTextSelectionDelegate

func (r *RenderEditable) SetTextSelectionDelegate(value services.TextSelectionDelegate)

SetTextSelectionDelegate changes the field that owns the value of the text.

Flutter: rendering/editable.dart RenderEditable.textSelectionDelegate

func (*RenderEditable) SetTextWidthBasis

func (r *RenderEditable) SetTextWidthBasis(value painting.TextWidthBasis)

SetTextWidthBasis changes how the width is measured.

Flutter: rendering/editable.dart RenderEditable.textWidthBasis

func (*RenderEditable) SetupParentData

func (r *RenderEditable) SetupParentData(child RenderObject)

SetupParentData gives the child a TextParentData if it has none.

Flutter: rendering/paragraph.dart RenderInlineChildrenContainerDefaults.setupParentData

func (*RenderEditable) ShowCursor

func (r *RenderEditable) ShowCursor() *foundation.ValueNotifier[bool]

ShowCursor says whether to paint the caret.

Flutter: rendering/editable.dart RenderEditable.showCursor

func (r *RenderEditable) StartHandleLayerLink() *LayerLink

StartHandleLayerLink links the start of the selection to the handle and the toolbar that follow it.

Flutter: rendering/editable.dart RenderEditable.startHandleLayerLink

func (*RenderEditable) StartVerticalCaretMovement

func (r *RenderEditable) StartVerticalCaretMovement(startPosition ui.TextPosition) *VerticalCaretMovementRun

StartVerticalCaretMovement starts a run of vertical caret movements at the position.

Flutter: rendering/editable.dart RenderEditable.startVerticalCaretMovement

func (*RenderEditable) StrutStyle

func (r *RenderEditable) StrutStyle() *painting.StrutStyle

StrutStyle is the strut of the text.

Flutter: rendering/editable.dart RenderEditable.strutStyle

func (*RenderEditable) SystemFontsDidChange

func (r *RenderEditable) SystemFontsDidChange()

SystemFontsDidChange lays the editable out again, because the fonts of the system changed.

Flutter: rendering/object.dart RelayoutWhenSystemFontsChangeMixin.systemFontsDidChange

func (*RenderEditable) Text

Text is the text to display.

Flutter: rendering/editable.dart RenderEditable.text

func (*RenderEditable) TextAlign

func (r *RenderEditable) TextAlign() ui.TextAlign

TextAlign is how the text is aligned horizontally.

Flutter: rendering/editable.dart RenderEditable.textAlign

func (*RenderEditable) TextDirection

func (r *RenderEditable) TextDirection() ui.TextDirection

TextDirection is the default directionality of the text.

Flutter: rendering/editable.dart RenderEditable.textDirection

func (*RenderEditable) TextHeightBehavior

func (r *RenderEditable) TextHeightBehavior() *ui.TextHeightBehavior

TextHeightBehavior says how the line height applies to the first and last lines.

Flutter: rendering/editable.dart RenderEditable.textHeightBehavior

func (*RenderEditable) TextScaler

func (r *RenderEditable) TextScaler() painting.TextScaler

TextScaler scales the font sizes.

Flutter: rendering/editable.dart RenderEditable.textScaler

func (*RenderEditable) TextSelectionDelegate

func (r *RenderEditable) TextSelectionDelegate() services.TextSelectionDelegate

TextSelectionDelegate is the field that owns the value of the text.

Flutter: rendering/editable.dart RenderEditable.textSelectionDelegate

func (*RenderEditable) TextWidthBasis

func (r *RenderEditable) TextWidthBasis() painting.TextWidthBasis

TextWidthBasis is how the width of the text is measured.

Flutter: rendering/editable.dart RenderEditable.textWidthBasis

func (*RenderEditable) VisitChildren

func (r *RenderEditable) VisitChildren(visitor RenderObjectVisitor)

VisitChildren visits the render objects of the painters, then the inline children.

Flutter: rendering/editable.dart RenderEditable.visitChildren

func (*RenderEditable) WordBoundaries

func (r *RenderEditable) WordBoundaries() *painting.WordBoundary

WordBoundaries gives the boundaries of the words of the text.

Flutter: rendering/editable.dart RenderEditable.wordBoundaries

type RenderEditableOpts

type RenderEditableOpts struct {
	// TextEngine lays out the text. Deviation: Flutter reaches the engine
	// through dart:ui; the widgets pass the engine of the PlatformDispatcher.
	TextEngine ui.ParagraphFactory
	// Gestures is the gesture binding that the tap and the long press of the
	// editable use. Deviation: Flutter's recognizers use GestureBinding.instance
	// (SPEC §12.10). Without it the editable does not recognize gestures.
	Gestures *gestures.GestureBinding
	// Text is the text to display.
	Text painting.InlineSpan
	// TextAlign defaults to start.
	TextAlign ui.TextAlign
	// CursorColor is the color of the caret.
	CursorColor foundation.Opt[ui.Color]
	// BackgroundCursorColor is the color of the caret when the floating cursor
	// is shown. Deviation: the floating cursor is not ported, so it is kept
	// and never used.
	BackgroundCursorColor foundation.Opt[ui.Color]
	// ShowCursor tells whether to paint the caret; the editable makes one that
	// is false when there is none.
	ShowCursor *foundation.ValueNotifier[bool]
	// HasFocus is whether the editable has the focus.
	HasFocus bool
	// MaxLines is the maximum number of lines: unset is 1 (Flutter's default),
	// MaxLinesUnlimited is no limit (Flutter's null), a positive number is that
	// many lines.
	MaxLines foundation.Opt[int]
	// MinLines is the minimum number of lines; it must be positive and not
	// greater than MaxLines.
	MinLines foundation.Opt[int]
	// Expands makes the editable as tall as its constraints allow; MaxLines and
	// MinLines must then be unlimited and unset.
	Expands bool
	// StrutStyle is the strut of the text.
	StrutStyle *painting.StrutStyle
	// SelectionColor is the color of the selected text's background.
	SelectionColor foundation.Opt[ui.Color]
	// TextScaler defaults to painting.TextScalerNoScaling. Deviation: the
	// deprecated textScaleFactor is not ported.
	TextScaler painting.TextScaler
	// Selection is the selection to paint.
	Selection foundation.Opt[services.TextSelection]
	// IgnorePointer makes the editable ignore taps and long presses.
	IgnorePointer bool
	// ReadOnly makes the text not editable.
	ReadOnly bool
	// DisableForceLine lets the editable be narrower than its constraints
	// when the text is short. Flutter's forceLine is true by default.
	DisableForceLine bool
	// TextHeightBehavior says how the line height applies to the first and last
	// lines.
	TextHeightBehavior *ui.TextHeightBehavior
	// TextWidthBasis defaults to painting.TextWidthBasisParent.
	TextWidthBasis painting.TextWidthBasis
	// ObscuringCharacter is the character that replaces the text when
	// obscured; it must be one character. The default is '•'.
	ObscuringCharacter string
	// ObscureText hides the text.
	ObscureText bool
	// ObscuredText is the text of the field when Text is that text with every
	// grapheme replaced by the obscuring character (what EditableText does); the
	// selection and the offsets are then offsets of ObscuredText, and the editable
	// maps them to the offsets of Text. None means Text is the text of the field.
	ObscuredText foundation.Opt[string]
	// Locale selects region-specific glyphs.
	Locale foundation.Opt[ui.Locale]
	// CursorWidth is the width of the caret; the default is 1.
	CursorWidth foundation.Opt[float64]
	// CursorHeight is the height of the caret; the default is the preferred
	// line height.
	CursorHeight foundation.Opt[float64]
	// CursorRadius rounds the corners of the caret.
	CursorRadius foundation.Opt[ui.Radius]
	// PaintCursorAboveText paints the caret over the text.
	PaintCursorAboveText bool
	// CursorOffset is how far the caret is moved from where the text puts it.
	CursorOffset ui.Offset
	// DevicePixelRatio is used to put the caret on a physical pixel; the
	// default is 1.
	DevicePixelRatio foundation.Opt[float64]
	// SelectionHeightStyle defaults to BoxHeightStyleMax.
	SelectionHeightStyle ui.BoxHeightStyle
	// SelectionWidthStyle defaults to BoxWidthStyleMax.
	SelectionWidthStyle ui.BoxWidthStyle
	// EnableInteractiveSelection says whether the user can select; None is
	// "unless the text is obscured".
	EnableInteractiveSelection foundation.Opt[bool]
	// PromptRectRange is the range of text that is highlighted, for the
	// autocorrect prompt.
	PromptRectRange foundation.Opt[ui.TextRange]
	// PromptRectColor is the color of the highlight of PromptRectRange.
	PromptRectColor foundation.Opt[ui.Color]
	// ClipBehavior defaults to ui.ClipHardEdge.
	ClipBehavior ui.Clip
	// Painter paints below the text, after the built-in painters.
	Painter RenderEditablePainter
	// ForegroundPainter paints above the text, after the built-in foreground
	// painters.
	ForegroundPainter RenderEditablePainter
	// Children are the inline children, in the order of the placeholders.
	Children []Box
}

RenderEditableOpts are the optional parameters of NewRenderEditable.

Flutter: rendering/editable.dart RenderEditable.new

type RenderEditablePainter

type RenderEditablePainter interface {
	foundation.Listenable
	// ShouldRepaint says whether this painter paints differently from the old
	// one (nil when there was none), so that the editable has to paint again.
	//
	// Flutter: rendering/editable.dart RenderEditablePainter.shouldRepaint
	ShouldRepaint(oldDelegate RenderEditablePainter) bool
	// Paint paints on the canvas, in the coordinate space of the viewport of
	// the editable, which has the given size.
	//
	// Flutter: rendering/editable.dart RenderEditablePainter.paint
	Paint(canvas *ui.Canvas, size ui.Size, renderEditable *RenderEditable)
}

RenderEditablePainter paints on the canvas of a RenderEditable, below or above its text. It is a Listenable: the editable paints again when it notifies.

Flutter: rendering/editable.dart RenderEditablePainter

type RenderErrorBox

type RenderErrorBox struct {
	RenderBox

	// Padding is the space around the text, used when the box is large enough.
	//
	// Deviation: Flutter has a mutable static; here it is a field set at
	// construction (SPEC §12.10).
	//
	// Flutter: rendering/error.dart RenderErrorBox.padding
	Padding painting.EdgeInsets
	// MinimumWidth is the width the text needs for the padding to be used.
	//
	// Flutter: rendering/error.dart RenderErrorBox.minimumWidth
	MinimumWidth float64
	// BackgroundColor is the color of the box.
	//
	// Flutter: rendering/error.dart RenderErrorBox.backgroundColor
	BackgroundColor ui.Color
	// contains filtered or unexported fields
}

RenderErrorBox is a render object that draws a red box with the text of an error, used by the ErrorWidget that replaces a widget that failed to build. It uses the low-level text API on purpose, to depend on as little as possible of a framework that may be in a bad state.

Flutter: rendering/error.dart RenderErrorBox

func NewRenderErrorBox

func NewRenderErrorBox(message string, opts ...RenderErrorBoxOpts) *RenderErrorBox

NewRenderErrorBox creates the box. In debug builds it is dark red with yellow monospace bold text; in release builds it is gray with dark text.

Flutter: rendering/error.dart RenderErrorBox.new

func (*RenderErrorBox) ComputeDryLayout

func (b *RenderErrorBox) ComputeDryLayout(c BoxConstraints) ui.Size

ComputeDryLayout is the largest size the constraints allow, up to a very large size.

Flutter: rendering/error.dart RenderErrorBox.computeDryLayout

func (*RenderErrorBox) ComputeMaxIntrinsicHeight

func (b *RenderErrorBox) ComputeMaxIntrinsicHeight(float64) float64

ComputeMaxIntrinsicHeight is very large.

Flutter: rendering/error.dart RenderErrorBox.computeMaxIntrinsicHeight

func (*RenderErrorBox) ComputeMaxIntrinsicWidth

func (b *RenderErrorBox) ComputeMaxIntrinsicWidth(float64) float64

ComputeMaxIntrinsicWidth is very large.

Flutter: rendering/error.dart RenderErrorBox.computeMaxIntrinsicWidth

func (*RenderErrorBox) HitTestSelf

func (b *RenderErrorBox) HitTestSelf(ui.Offset) bool

HitTestSelf is true.

Flutter: rendering/error.dart RenderErrorBox.hitTestSelf

func (*RenderErrorBox) Message

func (b *RenderErrorBox) Message() string

Message is the text of the box.

Flutter: rendering/error.dart RenderErrorBox.message

func (*RenderErrorBox) Paint

func (b *RenderErrorBox) Paint(context *PaintingContext, offset ui.Offset)

Paint draws the background and the text.

Flutter: rendering/error.dart RenderErrorBox.paint

func (*RenderErrorBox) SizedByParent

func (b *RenderErrorBox) SizedByParent() bool

SizedByParent is true: the box takes as much room as it is given.

Flutter: rendering/error.dart RenderErrorBox.sizedByParent

type RenderErrorBoxOpts

type RenderErrorBoxOpts struct {
	// TextEngine makes the paragraph. Without it the box has a background and no
	// text.
	TextEngine ui.ParagraphFactory
}

RenderErrorBoxOpts are the optional parameters of NewRenderErrorBox.

Flutter: rendering/error.dart RenderErrorBox.new

type RenderExcludeSemantics

type RenderExcludeSemantics struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderExcludeSemantics excludes its subtree from the semantics tree when excluding.

Flutter: rendering/proxy_box.dart RenderExcludeSemantics

func NewRenderExcludeSemantics

func NewRenderExcludeSemantics(child Box, opts ...RenderExcludeSemanticsOpts) *RenderExcludeSemantics

NewRenderExcludeSemantics creates the box.

Flutter: rendering/proxy_box.dart RenderExcludeSemantics.new

func (*RenderExcludeSemantics) DebugFillProperties

DebugFillProperties adds the flag.

Flutter: rendering/proxy_box.dart RenderExcludeSemantics.debugFillProperties

func (*RenderExcludeSemantics) Excluding

func (r *RenderExcludeSemantics) Excluding() bool

Excluding is whether the subtree is excluded from the semantics tree.

Flutter: rendering/proxy_box.dart RenderExcludeSemantics.excluding

func (*RenderExcludeSemantics) SetExcluding

func (r *RenderExcludeSemantics) SetExcluding(value bool)

SetExcluding changes the flag.

Flutter: rendering/proxy_box.dart RenderExcludeSemantics.excluding

func (*RenderExcludeSemantics) VisitChildrenForSemantics

func (r *RenderExcludeSemantics) VisitChildrenForSemantics(visitor RenderObjectVisitor)

VisitChildrenForSemantics visits no child when excluding.

Flutter: rendering/proxy_box.dart RenderExcludeSemantics.visitChildrenForSemantics

type RenderExcludeSemanticsOpts

type RenderExcludeSemanticsOpts struct {
	// Excluding defaults to true.
	Excluding foundation.Opt[bool]
}

RenderExcludeSemanticsOpts are the optional parameters of NewRenderExcludeSemantics.

Flutter: rendering/proxy_box.dart RenderExcludeSemantics.new

type RenderExclusiveMouseRegion

type RenderExclusiveMouseRegion struct {
	RenderMouseRegion
	// contains filtered or unexported fields
}

RenderExclusiveMouseRegion is a mouse region that only the innermost of the regions of its kind that are hit receives mouse events: the outer ones are hit, but do not register with the mouse tracker.

Deviation: Flutter defines it in widgets/raw_tooltip.dart as the private _RenderExclusiveMouseRegion; it lives in rendering here because it embeds RenderMouseRegion (SPEC §12.10).

Flutter: widgets/raw_tooltip.dart _RenderExclusiveMouseRegion

func NewRenderExclusiveMouseRegion

func NewRenderExclusiveMouseRegion(state *ExclusiveMouseRegionState, child Box, opts ...RenderMouseRegionOpts) *RenderExclusiveMouseRegion

NewRenderExclusiveMouseRegion creates the box.

Flutter: widgets/raw_tooltip.dart _RenderExclusiveMouseRegion.new

func (*RenderExclusiveMouseRegion) HitTest

func (r *RenderExclusiveMouseRegion) HitTest(result *BoxHitTestResult, position ui.Offset) bool

HitTest registers the region only if it is the innermost one hit.

Flutter: widgets/raw_tooltip.dart _RenderExclusiveMouseRegion.hitTest

type RenderFittedBox

type RenderFittedBox struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderFittedBox scales and positions its child within itself according to a fit.

Flutter: rendering/proxy_box.dart RenderFittedBox

func NewRenderFittedBox

func NewRenderFittedBox(child Box, opts ...RenderFittedBoxOpts) *RenderFittedBox

NewRenderFittedBox creates the box.

Flutter: rendering/proxy_box.dart RenderFittedBox.new

func (*RenderFittedBox) Alignment

Alignment is how to align the child within its parent's bounds.

Flutter: rendering/proxy_box.dart RenderFittedBox.alignment

func (*RenderFittedBox) ApplyPaintTransform

func (r *RenderFittedBox) ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)

ApplyPaintTransform applies the fitting transform.

Flutter: rendering/proxy_box.dart RenderFittedBox.applyPaintTransform

func (*RenderFittedBox) ClipBehavior

func (r *RenderFittedBox) ClipBehavior() ui.Clip

ClipBehavior is how the overflow is clipped.

Flutter: rendering/proxy_box.dart RenderFittedBox.clipBehavior

func (*RenderFittedBox) ComputeDryBaseline

func (r *RenderFittedBox) ComputeDryBaseline(_ BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the child's baseline for unconstrained constraints.

Flutter: rendering/proxy_box.dart RenderFittedBox.computeDryBaseline

func (*RenderFittedBox) ComputeDryLayout

func (r *RenderFittedBox) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size for the child's unconstrained size.

Flutter: rendering/proxy_box.dart RenderFittedBox.computeDryLayout

func (*RenderFittedBox) DebugFillProperties

func (r *RenderFittedBox) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the fit and the alignment.

Flutter: rendering/proxy_box.dart RenderFittedBox.debugFillProperties

func (*RenderFittedBox) Fit

func (r *RenderFittedBox) Fit() painting.BoxFit

Fit is how the child is inscribed into the available space.

Flutter: rendering/proxy_box.dart RenderFittedBox.fit

func (*RenderFittedBox) HitTestChildren

func (r *RenderFittedBox) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren hit tests the child in the fitted coordinates.

Flutter: rendering/proxy_box.dart RenderFittedBox.hitTestChildren

func (*RenderFittedBox) Paint

func (r *RenderFittedBox) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the child scaled and positioned.

Flutter: rendering/proxy_box.dart RenderFittedBox.paint

func (*RenderFittedBox) PaintsChild

func (r *RenderFittedBox) PaintsChild(child RenderObject) bool

PaintsChild is true unless the box or the child is empty.

Flutter: rendering/proxy_box.dart RenderFittedBox.paintsChild

func (*RenderFittedBox) PerformLayout

func (r *RenderFittedBox) PerformLayout()

PerformLayout lays the child out unconstrained and sizes the box to fit it.

Flutter: rendering/proxy_box.dart RenderFittedBox.performLayout

func (*RenderFittedBox) SetAlignment

func (r *RenderFittedBox) SetAlignment(value painting.AlignmentGeometry)

SetAlignment changes the alignment and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderFittedBox.alignment

func (*RenderFittedBox) SetClipBehavior

func (r *RenderFittedBox) SetClipBehavior(value ui.Clip)

SetClipBehavior changes the clip behavior and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderFittedBox.clipBehavior

func (*RenderFittedBox) SetFit

func (r *RenderFittedBox) SetFit(value painting.BoxFit)

SetFit changes the fit; layout is needed if either fit is scaleDown.

Flutter: rendering/proxy_box.dart RenderFittedBox.fit

func (*RenderFittedBox) SetTextDirection

func (r *RenderFittedBox) SetTextDirection(value ui.TextDirection)

SetTextDirection changes the direction and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderFittedBox.textDirection

func (*RenderFittedBox) TextDirection

func (r *RenderFittedBox) TextDirection() ui.TextDirection

TextDirection resolves a directional alignment.

Flutter: rendering/proxy_box.dart RenderFittedBox.textDirection

type RenderFittedBoxOpts

type RenderFittedBoxOpts struct {
	// Fit defaults to BoxFitContain.
	Fit painting.BoxFit
	// Alignment defaults to painting.AlignmentCenter.
	Alignment painting.AlignmentGeometry
	// TextDirection resolves a directional alignment.
	TextDirection ui.TextDirection
	// ClipBehavior defaults to ClipNone.
	ClipBehavior ui.Clip
}

RenderFittedBoxOpts are the optional parameters of NewRenderFittedBox.

Flutter: rendering/proxy_box.dart RenderFittedBox.new

type RenderFlex

type RenderFlex struct {
	RenderBox
	ContainerRenderObject[Box]
	DebugOverflowIndicator
	// contains filtered or unexported fields
}

RenderFlex displays its children in a one-dimensional array.

Flutter: rendering/flex.dart RenderFlex

func NewRenderFlex

func NewRenderFlex(children []Box, opts ...RenderFlexOpts) *RenderFlex

NewRenderFlex creates a flex with the children (nil for none).

Flutter: rendering/flex.dart RenderFlex.new

func (*RenderFlex) ClipBehavior

func (r *RenderFlex) ClipBehavior() ui.Clip

ClipBehavior is how the content is clipped when it overflows.

Flutter: rendering/flex.dart RenderFlex.clipBehavior

func (*RenderFlex) ComputeDistanceToActualBaseline

func (r *RenderFlex) ComputeDistanceToActualBaseline(baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDistanceToActualBaseline is the highest baseline of a row and the first baseline of a column.

Flutter: rendering/flex.dart RenderFlex.computeDistanceToActualBaseline

func (*RenderFlex) ComputeDryBaseline

func (r *RenderFlex) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the baseline of the layout the constraints would give.

Flutter: rendering/flex.dart RenderFlex.computeDryBaseline

func (*RenderFlex) ComputeDryLayout

func (r *RenderFlex) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size the constraints would give. A flex whose constraints are invalid (flexible children in an unbounded direction) can not compute its dry layout.

Flutter: rendering/flex.dart RenderFlex.computeDryLayout

func (*RenderFlex) ComputeMaxIntrinsicHeight

func (r *RenderFlex) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the height the children want.

Flutter: rendering/flex.dart RenderFlex.computeMaxIntrinsicHeight

func (*RenderFlex) ComputeMaxIntrinsicWidth

func (r *RenderFlex) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is the width the children want.

Flutter: rendering/flex.dart RenderFlex.computeMaxIntrinsicWidth

func (*RenderFlex) ComputeMinIntrinsicHeight

func (r *RenderFlex) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the minimum height the children need.

Flutter: rendering/flex.dart RenderFlex.computeMinIntrinsicHeight

func (*RenderFlex) ComputeMinIntrinsicWidth

func (r *RenderFlex) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is the minimum width the children need.

Flutter: rendering/flex.dart RenderFlex.computeMinIntrinsicWidth

func (*RenderFlex) CrossAxisAlignment

func (r *RenderFlex) CrossAxisAlignment() CrossAxisAlignment

CrossAxisAlignment is how the children are placed along the cross axis.

Flutter: rendering/flex.dart RenderFlex.crossAxisAlignment

func (*RenderFlex) DebugFillProperties

func (r *RenderFlex) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the direction, the alignments and the spacing.

Flutter: rendering/flex.dart RenderFlex.debugFillProperties

func (*RenderFlex) DescribeApproximatePaintClip

func (r *RenderFlex) DescribeApproximatePaintClip(RenderObject) foundation.Opt[ui.Rect]

DescribeApproximatePaintClip is the flex's box when it overflows and clips.

Flutter: rendering/flex.dart RenderFlex.describeApproximatePaintClip

func (*RenderFlex) Direction

func (r *RenderFlex) Direction() painting.Axis

Direction is the direction to use as the main axis.

Flutter: rendering/flex.dart RenderFlex.direction

func (*RenderFlex) Dispose

func (r *RenderFlex) Dispose()

Dispose lets the clip layer go.

Flutter: rendering/flex.dart RenderFlex.dispose

func (*RenderFlex) HitTestChildren

func (r *RenderFlex) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren hit tests the children from the front.

Flutter: rendering/flex.dart RenderFlex.hitTestChildren

func (*RenderFlex) MainAxisAlignment

func (r *RenderFlex) MainAxisAlignment() MainAxisAlignment

MainAxisAlignment is how the children are placed along the main axis.

Flutter: rendering/flex.dart RenderFlex.mainAxisAlignment

func (*RenderFlex) MainAxisSize

func (r *RenderFlex) MainAxisSize() MainAxisSize

MainAxisSize is how much space the flex takes along the main axis.

Flutter: rendering/flex.dart RenderFlex.mainAxisSize

func (*RenderFlex) Paint

func (r *RenderFlex) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the children, clipped to the flex if they overflow it, and marks the overflow in debug builds.

Flutter: rendering/flex.dart RenderFlex.paint

func (*RenderFlex) PerformLayout

func (r *RenderFlex) PerformLayout()

PerformLayout sizes the inflexible children, divides the free space among the flexible ones, and positions them along the axes.

Flutter: rendering/flex.dart RenderFlex.performLayout

func (*RenderFlex) Reassemble

func (r *RenderFlex) Reassemble()

Reassemble makes the overflow be reported again.

Flutter: rendering/debug_overflow_indicator.dart DebugOverflowIndicatorMixin.reassemble

func (*RenderFlex) SetClipBehavior

func (r *RenderFlex) SetClipBehavior(value ui.Clip)

SetClipBehavior marks the flex as needing paint when the value changes.

Flutter: rendering/flex.dart RenderFlex.clipBehavior

func (*RenderFlex) SetCrossAxisAlignment

func (r *RenderFlex) SetCrossAxisAlignment(value CrossAxisAlignment)

SetCrossAxisAlignment marks the flex as needing layout when the value changes.

Flutter: rendering/flex.dart RenderFlex.crossAxisAlignment

func (*RenderFlex) SetDirection

func (r *RenderFlex) SetDirection(value painting.Axis)

SetDirection changes the main axis and marks the flex as needing layout.

Flutter: rendering/flex.dart RenderFlex.direction

func (*RenderFlex) SetMainAxisAlignment

func (r *RenderFlex) SetMainAxisAlignment(value MainAxisAlignment)

SetMainAxisAlignment marks the flex as needing layout when the value changes.

Flutter: rendering/flex.dart RenderFlex.mainAxisAlignment

func (*RenderFlex) SetMainAxisSize

func (r *RenderFlex) SetMainAxisSize(value MainAxisSize)

SetMainAxisSize marks the flex as needing layout when the value changes.

Flutter: rendering/flex.dart RenderFlex.mainAxisSize

func (*RenderFlex) SetSpacing

func (r *RenderFlex) SetSpacing(value float64)

SetSpacing marks the flex as needing layout when the value changes.

Flutter: rendering/flex.dart RenderFlex.spacing

func (*RenderFlex) SetTextBaseline

func (r *RenderFlex) SetTextBaseline(value ui.TextBaseline)

SetTextBaseline marks the flex as needing layout when the value changes. In debug builds it panics with FlexBaselineMissing if the cross axis alignment is baseline and the value is unspecified.

Flutter: rendering/flex.dart RenderFlex.textBaseline

func (*RenderFlex) SetTextDirection

func (r *RenderFlex) SetTextDirection(value ui.TextDirection)

SetTextDirection marks the flex as needing layout when the value changes.

Flutter: rendering/flex.dart RenderFlex.textDirection

func (*RenderFlex) SetVerticalDirection

func (r *RenderFlex) SetVerticalDirection(value painting.VerticalDirection)

SetVerticalDirection marks the flex as needing layout when the value changes.

Flutter: rendering/flex.dart RenderFlex.verticalDirection

func (*RenderFlex) SetupParentData

func (r *RenderFlex) SetupParentData(child RenderObject)

SetupParentData gives the child a FlexParentData if it has none.

Flutter: rendering/flex.dart RenderFlex.setupParentData

func (*RenderFlex) Spacing

func (r *RenderFlex) Spacing() float64

Spacing is how much space to place between children in the main axis.

Flutter: rendering/flex.dart RenderFlex.spacing

func (*RenderFlex) TextBaseline

func (r *RenderFlex) TextBaseline() ui.TextBaseline

TextBaseline is the baseline to use when aligning children with CrossAxisAlignmentBaseline. Unspecified is null.

Flutter: rendering/flex.dart RenderFlex.textBaseline

func (*RenderFlex) TextDirection

func (r *RenderFlex) TextDirection() ui.TextDirection

TextDirection determines the order to lay children out horizontally and how to interpret start and end in the horizontal direction. Unspecified is null.

Flutter: rendering/flex.dart RenderFlex.textDirection

func (*RenderFlex) ToStringShort

func (r *RenderFlex) ToStringShort() string

ToStringShort adds OVERFLOWING when the children overflow (debug builds).

Flutter: rendering/flex.dart RenderFlex.toStringShort

func (*RenderFlex) VerticalDirection

func (r *RenderFlex) VerticalDirection() painting.VerticalDirection

VerticalDirection determines the order to lay children out vertically and how to interpret start and end in the vertical direction.

Flutter: rendering/flex.dart RenderFlex.verticalDirection

type RenderFlexOpts

type RenderFlexOpts struct {
	// Direction defaults to painting.AxisHorizontal.
	Direction painting.Axis
	// MainAxisSize defaults to MainAxisSizeMax.
	MainAxisSize MainAxisSize
	// MainAxisAlignment defaults to MainAxisAlignmentStart.
	MainAxisAlignment MainAxisAlignment
	// CrossAxisAlignment defaults to CrossAxisAlignmentCenter.
	CrossAxisAlignment CrossAxisAlignment
	// TextDirection is the order of a horizontal flex; unspecified is null.
	TextDirection ui.TextDirection
	// VerticalDirection defaults to painting.VerticalDirectionDown.
	VerticalDirection painting.VerticalDirection
	// TextBaseline is the baseline to align with; unspecified is null.
	TextBaseline ui.TextBaseline
	// ClipBehavior defaults to ui.ClipNone.
	ClipBehavior ui.Clip
	// Spacing is the space between the children; it must not be negative.
	Spacing float64
}

RenderFlexOpts are the optional parameters of NewRenderFlex.

Flutter: rendering/flex.dart RenderFlex.new

type RenderFlow

type RenderFlow struct {
	RenderBox
	ContainerRenderObject[Box]
	// contains filtered or unexported fields
}

RenderFlow implements the flow layout algorithm: a delegate positions the children by painting them with transforms.

Flutter: rendering/flow.dart RenderFlow

func NewRenderFlow

func NewRenderFlow(delegate FlowDelegate, children []Box, opts ...RenderFlowOpts) *RenderFlow

NewRenderFlow creates a flow with the children (nil for none).

Flutter: rendering/flow.dart RenderFlow.new

func (*RenderFlow) ApplyPaintTransform

func (r *RenderFlow) ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)

ApplyPaintTransform applies the transform the child was painted with.

Flutter: rendering/flow.dart RenderFlow.applyPaintTransform

func (*RenderFlow) Attach

func (r *RenderFlow) Attach(owner *PipelineOwner)

Attach starts listening to the delegate's repaint listenable.

Flutter: rendering/flow.dart RenderFlow.attach

func (*RenderFlow) ClipBehavior

func (r *RenderFlow) ClipBehavior() ui.Clip

ClipBehavior is how the content that overflows is clipped.

Flutter: rendering/flow.dart RenderFlow.clipBehavior

func (*RenderFlow) ComputeDryLayout

func (r *RenderFlow) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size the delegate gives.

Flutter: rendering/flow.dart RenderFlow.computeDryLayout

func (*RenderFlow) ComputeMaxIntrinsicHeight

func (r *RenderFlow) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the delegate's height for the width, or 0 if it is not finite.

Flutter: rendering/flow.dart RenderFlow.computeMaxIntrinsicHeight

func (*RenderFlow) ComputeMaxIntrinsicWidth

func (r *RenderFlow) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is the delegate's width for the height, or 0 if it is not finite.

Flutter: rendering/flow.dart RenderFlow.computeMaxIntrinsicWidth

func (*RenderFlow) ComputeMinIntrinsicHeight

func (r *RenderFlow) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the delegate's height for the width, or 0 if it is not finite.

Flutter: rendering/flow.dart RenderFlow.computeMinIntrinsicHeight

func (*RenderFlow) ComputeMinIntrinsicWidth

func (r *RenderFlow) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is the delegate's width for the height, or 0 if it is not finite.

Flutter: rendering/flow.dart RenderFlow.computeMinIntrinsicWidth

func (*RenderFlow) Delegate

func (r *RenderFlow) Delegate() FlowDelegate

Delegate controls the layout and paint of the children.

Flutter: rendering/flow.dart RenderFlow.delegate

func (*RenderFlow) Detach

func (r *RenderFlow) Detach()

Detach stops listening to the delegate's repaint listenable.

Flutter: rendering/flow.dart RenderFlow.detach

func (*RenderFlow) Dispose

func (r *RenderFlow) Dispose()

Dispose lets the clip layer go.

Flutter: rendering/flow.dart RenderFlow.dispose

func (*RenderFlow) GetChildSize

func (r *RenderFlow) GetChildSize(i int) foundation.Opt[ui.Size]

GetChildSize is the size of the i-th child, or None.

Flutter: rendering/flow.dart RenderFlow.getChildSize

func (*RenderFlow) HitTestChildren

func (r *RenderFlow) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren hit tests the children that were painted, last painted first, through their paint transforms.

Flutter: rendering/flow.dart RenderFlow.hitTestChildren

func (*RenderFlow) IsRepaintBoundary

func (r *RenderFlow) IsRepaintBoundary() bool

IsRepaintBoundary is true.

Flutter: rendering/flow.dart RenderFlow.isRepaintBoundary

func (*RenderFlow) Paint

func (r *RenderFlow) Paint(context *PaintingContext, offset ui.Offset)

Paint lets the delegate paint the children, clipped to the flow.

Flutter: rendering/flow.dart RenderFlow.paint

func (*RenderFlow) PaintChildAt

func (r *RenderFlow) PaintChildAt(i int, opts ...FlowPaintChildOpts)

PaintChildAt paints the i-th child with the transform and the opacity. In debug builds it panics with FlowChildPaintedTwice if the child was painted already during this paint.

Flutter: rendering/flow.dart RenderFlow.paintChild

func (*RenderFlow) PerformLayout

func (r *RenderFlow) PerformLayout()

PerformLayout sizes the flow and lays out the children with the constraints the delegate gives.

Flutter: rendering/flow.dart RenderFlow.performLayout

func (*RenderFlow) SetClipBehavior

func (r *RenderFlow) SetClipBehavior(value ui.Clip)

SetClipBehavior marks the flow as needing paint when the value changes.

Flutter: rendering/flow.dart RenderFlow.clipBehavior

func (*RenderFlow) SetDelegate

func (r *RenderFlow) SetDelegate(newDelegate FlowDelegate)

SetDelegate changes the delegate. The flow needs layout if the new delegate is of another type or says so, and needs paint if it says so.

Flutter: rendering/flow.dart RenderFlow.delegate

func (*RenderFlow) SetupParentData

func (r *RenderFlow) SetupParentData(child RenderObject)

SetupParentData gives the child a FlowParentData, or resets the transform of the one it has.

Flutter: rendering/flow.dart RenderFlow.setupParentData

type RenderFlowOpts

type RenderFlowOpts struct {
	// ClipBehavior defaults to ui.ClipHardEdge.
	ClipBehavior ui.Clip
}

RenderFlowOpts are the optional parameters of NewRenderFlow.

Flutter: rendering/flow.dart RenderFlow.new

type RenderFollowerLayer

type RenderFollowerLayer struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderFollowerLayer transforms its child so that it follows a RenderLeaderLayer.

Flutter: rendering/proxy_box.dart RenderFollowerLayer

func NewRenderFollowerLayer

func NewRenderFollowerLayer(link *LayerLink, child Box, opts ...RenderFollowerLayerOpts) *RenderFollowerLayer

NewRenderFollowerLayer creates the box.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.new

func (*RenderFollowerLayer) AlwaysNeedsCompositing

func (r *RenderFollowerLayer) AlwaysNeedsCompositing() bool

AlwaysNeedsCompositing is true.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.alwaysNeedsCompositing

func (*RenderFollowerLayer) ApplyPaintTransform

func (r *RenderFollowerLayer) ApplyPaintTransform(_ RenderObject, transform *ui.Matrix4)

ApplyPaintTransform applies the followed transform.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.applyPaintTransform

func (*RenderFollowerLayer) DebugFillProperties

func (r *RenderFollowerLayer) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the link, the flag, the offset and the transform.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.debugFillProperties

func (*RenderFollowerLayer) Detach

func (r *RenderFollowerLayer) Detach()

Detach lets the layer go.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.detach

func (*RenderFollowerLayer) FollowerAnchor

func (r *RenderFollowerLayer) FollowerAnchor() painting.Alignment

FollowerAnchor is the anchor point on the follower that is linked to the leader.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.followerAnchor

func (*RenderFollowerLayer) GetCurrentTransform

func (r *RenderFollowerLayer) GetCurrentTransform() *ui.Matrix4

GetCurrentTransform is the transform that was applied the last time the layer was composited, or the identity.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.getCurrentTransform

func (*RenderFollowerLayer) HitTest

func (r *RenderFollowerLayer) HitTest(result *BoxHitTestResult, position ui.Offset) bool

HitTest is false for an unlinked follower that is not shown.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.hitTest

func (*RenderFollowerLayer) HitTestChildren

func (r *RenderFollowerLayer) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren hit tests the child in the followed coordinates.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.hitTestChildren

func (*RenderFollowerLayer) LeaderAnchor

func (r *RenderFollowerLayer) LeaderAnchor() painting.Alignment

LeaderAnchor is the anchor point on the leader that is linked to the follower.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.leaderAnchor

func (r *RenderFollowerLayer) Link() *LayerLink

Link is the link object that connects this follower with a leader.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.link

func (*RenderFollowerLayer) Offset

func (r *RenderFollowerLayer) Offset() ui.Offset

Offset is the offset to apply to the follower relative to the anchors.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.offset

func (*RenderFollowerLayer) Paint

func (r *RenderFollowerLayer) Paint(context *PaintingContext, offset ui.Offset)

Paint pushes a follower layer.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.paint

func (*RenderFollowerLayer) SetFollowerAnchor

func (r *RenderFollowerLayer) SetFollowerAnchor(value painting.Alignment)

SetFollowerAnchor changes the anchor and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.followerAnchor

func (*RenderFollowerLayer) SetLeaderAnchor

func (r *RenderFollowerLayer) SetLeaderAnchor(value painting.Alignment)

SetLeaderAnchor changes the anchor and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.leaderAnchor

func (r *RenderFollowerLayer) SetLink(value *LayerLink)

SetLink changes the link and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.link

func (*RenderFollowerLayer) SetOffset

func (r *RenderFollowerLayer) SetOffset(value ui.Offset)

SetOffset changes the offset and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.offset

func (*RenderFollowerLayer) SetShowWhenUnlinked

func (r *RenderFollowerLayer) SetShowWhenUnlinked(value bool)

SetShowWhenUnlinked changes the flag and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.showWhenUnlinked

func (*RenderFollowerLayer) ShowWhenUnlinked

func (r *RenderFollowerLayer) ShowWhenUnlinked() bool

ShowWhenUnlinked is whether the child is shown when the link has no leader.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.showWhenUnlinked

type RenderFollowerLayerOpts

type RenderFollowerLayerOpts struct {
	// ShowWhenUnlinked defaults to true.
	ShowWhenUnlinked foundation.Opt[bool]
	// Offset is the additional offset to apply to the follower.
	Offset ui.Offset
	// LeaderAnchor is the anchor on the leader; the default is the top left.
	LeaderAnchor foundation.Opt[painting.Alignment]
	// FollowerAnchor is the anchor on the follower; the default is the top left.
	FollowerAnchor foundation.Opt[painting.Alignment]
}

RenderFollowerLayerOpts are the optional parameters of NewRenderFollowerLayer.

Flutter: rendering/proxy_box.dart RenderFollowerLayer.new

type RenderFractionalTranslation

type RenderFractionalTranslation struct {
	RenderProxyBox
	// TransformHitTests says whether hit tests are translated too.
	//
	// Flutter: rendering/proxy_box.dart RenderFractionalTranslation.transformHitTests
	TransformHitTests bool
	// contains filtered or unexported fields
}

RenderFractionalTranslation translates its child's painting by a fraction of its size.

Flutter: rendering/proxy_box.dart RenderFractionalTranslation

func NewRenderFractionalTranslation

func NewRenderFractionalTranslation(translation ui.Offset, child Box, opts ...RenderFractionalTranslationOpts) *RenderFractionalTranslation

NewRenderFractionalTranslation creates the box.

Flutter: rendering/proxy_box.dart RenderFractionalTranslation.new

func (*RenderFractionalTranslation) ApplyPaintTransform

func (r *RenderFractionalTranslation) ApplyPaintTransform(_ RenderObject, transform *ui.Matrix4)

ApplyPaintTransform translates by the fraction of the size.

Flutter: rendering/proxy_box.dart RenderFractionalTranslation.applyPaintTransform

func (*RenderFractionalTranslation) DebugFillProperties

DebugFillProperties adds the translation.

Flutter: rendering/proxy_box.dart RenderFractionalTranslation.debugFillProperties

func (*RenderFractionalTranslation) HitTest

func (r *RenderFractionalTranslation) HitTest(result *BoxHitTestResult, position ui.Offset) bool

HitTest hit tests the children without checking the box's own size.

Flutter: rendering/proxy_box.dart RenderFractionalTranslation.hitTest

func (*RenderFractionalTranslation) HitTestChildren

func (r *RenderFractionalTranslation) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren hit tests the child in the translated coordinates.

Flutter: rendering/proxy_box.dart RenderFractionalTranslation.hitTestChildren

func (*RenderFractionalTranslation) Paint

func (r *RenderFractionalTranslation) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the child translated.

Flutter: rendering/proxy_box.dart RenderFractionalTranslation.paint

func (*RenderFractionalTranslation) SetTranslation

func (r *RenderFractionalTranslation) SetTranslation(value ui.Offset)

SetTranslation changes the translation and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderFractionalTranslation.translation

func (*RenderFractionalTranslation) Translation

func (r *RenderFractionalTranslation) Translation() ui.Offset

Translation is the translation, as a fraction of the size of the box.

Flutter: rendering/proxy_box.dart RenderFractionalTranslation.translation

type RenderFractionalTranslationOpts

type RenderFractionalTranslationOpts struct {
	// TransformHitTests defaults to true.
	TransformHitTests foundation.Opt[bool]
}

RenderFractionalTranslationOpts are the optional parameters of NewRenderFractionalTranslation.

Flutter: rendering/proxy_box.dart RenderFractionalTranslation.new

type RenderFractionallySizedOverflowBox

type RenderFractionallySizedOverflowBox struct {
	RenderAligningShiftedBox
	// contains filtered or unexported fields
}

RenderFractionallySizedOverflowBox sizes its child to a fraction of the parent's size and lets it overflow.

Flutter: rendering/shifted_box.dart RenderFractionallySizedOverflowBox

func NewRenderFractionallySizedOverflowBox

func NewRenderFractionallySizedOverflowBox(child Box, opts ...RenderFractionallySizedOverflowBoxOpts) *RenderFractionallySizedOverflowBox

NewRenderFractionallySizedOverflowBox creates the box. A negative factor panics with SizeFactorNegative in debug builds.

Flutter: rendering/shifted_box.dart RenderFractionallySizedOverflowBox.new

func (*RenderFractionallySizedOverflowBox) ComputeDryBaseline

func (r *RenderFractionallySizedOverflowBox) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the child's baseline plus the aligned offset.

Flutter: rendering/shifted_box.dart RenderFractionallySizedOverflowBox.computeDryBaseline

func (*RenderFractionallySizedOverflowBox) ComputeDryLayout

func (r *RenderFractionallySizedOverflowBox) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the child's dry size for the fractional constraints.

Flutter: rendering/shifted_box.dart RenderFractionallySizedOverflowBox.computeDryLayout

func (*RenderFractionallySizedOverflowBox) ComputeMaxIntrinsicHeight

func (r *RenderFractionallySizedOverflowBox) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the child's, scaled by the factors.

Flutter: rendering/shifted_box.dart RenderFractionallySizedOverflowBox.computeMaxIntrinsicHeight

func (*RenderFractionallySizedOverflowBox) ComputeMaxIntrinsicWidth

func (r *RenderFractionallySizedOverflowBox) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is the child's, scaled by the factors.

Flutter: rendering/shifted_box.dart RenderFractionallySizedOverflowBox.computeMaxIntrinsicWidth

func (*RenderFractionallySizedOverflowBox) ComputeMinIntrinsicHeight

func (r *RenderFractionallySizedOverflowBox) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the child's, scaled by the factors.

Flutter: rendering/shifted_box.dart RenderFractionallySizedOverflowBox.computeMinIntrinsicHeight

func (*RenderFractionallySizedOverflowBox) ComputeMinIntrinsicWidth

func (r *RenderFractionallySizedOverflowBox) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is the child's, scaled by the factors.

Flutter: rendering/shifted_box.dart RenderFractionallySizedOverflowBox.computeMinIntrinsicWidth

func (*RenderFractionallySizedOverflowBox) DebugFillProperties

DebugFillProperties adds the factors.

Flutter: rendering/shifted_box.dart RenderFractionallySizedOverflowBox.debugFillProperties

func (*RenderFractionallySizedOverflowBox) HeightFactor

HeightFactor is the fraction of the parent's height, if set.

Flutter: rendering/shifted_box.dart RenderFractionallySizedOverflowBox.heightFactor

func (*RenderFractionallySizedOverflowBox) PerformLayout

func (r *RenderFractionallySizedOverflowBox) PerformLayout()

PerformLayout lays the child out with the fractional constraints.

Flutter: rendering/shifted_box.dart RenderFractionallySizedOverflowBox.performLayout

func (*RenderFractionallySizedOverflowBox) SetHeightFactor

func (r *RenderFractionallySizedOverflowBox) SetHeightFactor(value foundation.Opt[float64])

SetHeightFactor changes the factor and marks the box as needing layout.

Flutter: rendering/shifted_box.dart RenderFractionallySizedOverflowBox.heightFactor

func (*RenderFractionallySizedOverflowBox) SetWidthFactor

func (r *RenderFractionallySizedOverflowBox) SetWidthFactor(value foundation.Opt[float64])

SetWidthFactor changes the factor and marks the box as needing layout.

Flutter: rendering/shifted_box.dart RenderFractionallySizedOverflowBox.widthFactor

func (*RenderFractionallySizedOverflowBox) WidthFactor

WidthFactor is the fraction of the parent's width, if set.

Flutter: rendering/shifted_box.dart RenderFractionallySizedOverflowBox.widthFactor

type RenderFractionallySizedOverflowBoxOpts

type RenderFractionallySizedOverflowBoxOpts struct {
	// WidthFactor is the fraction of the parent's width; unset passes it through.
	WidthFactor foundation.Opt[float64]
	// HeightFactor is the fraction of the parent's height; unset passes it
	// through.
	HeightFactor foundation.Opt[float64]
	// Alignment defaults to painting.AlignmentCenter.
	Alignment painting.AlignmentGeometry
	// TextDirection resolves a directional alignment.
	TextDirection ui.TextDirection
}

RenderFractionallySizedOverflowBoxOpts are the optional parameters of NewRenderFractionallySizedOverflowBox.

Flutter: rendering/shifted_box.dart RenderFractionallySizedOverflowBox.new

type RenderIgnoreBaseline

type RenderIgnoreBaseline struct {
	RenderProxyBox
}

RenderIgnoreBaseline makes its child's baseline unavailable to the parent.

Flutter: rendering/proxy_box.dart RenderIgnoreBaseline

func NewRenderIgnoreBaseline

func NewRenderIgnoreBaseline(child Box) *RenderIgnoreBaseline

NewRenderIgnoreBaseline creates the box.

Flutter: rendering/proxy_box.dart RenderIgnoreBaseline.new

func (*RenderIgnoreBaseline) ComputeDistanceToActualBaseline

func (r *RenderIgnoreBaseline) ComputeDistanceToActualBaseline(ui.TextBaseline) foundation.Opt[float64]

ComputeDistanceToActualBaseline is none.

Flutter: rendering/proxy_box.dart RenderIgnoreBaseline.computeDistanceToActualBaseline

func (*RenderIgnoreBaseline) ComputeDryBaseline

ComputeDryBaseline is none.

Flutter: rendering/proxy_box.dart RenderIgnoreBaseline.computeDryBaseline

type RenderIgnorePointer

type RenderIgnorePointer struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderIgnorePointer is invisible to hit testing when ignoring.

Deviation: the deprecated ignoringSemantics parameter is not ported, so it is always null: the pointer-ignoring subtree blocks user actions and keeps its semantics (SPEC §12.10).

Flutter: rendering/proxy_box.dart RenderIgnorePointer

func NewRenderIgnorePointer

func NewRenderIgnorePointer(child Box, opts ...RenderIgnorePointerOpts) *RenderIgnorePointer

NewRenderIgnorePointer creates the box.

Flutter: rendering/proxy_box.dart RenderIgnorePointer.new

func (*RenderIgnorePointer) DebugFillProperties

func (r *RenderIgnorePointer) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the flag.

Flutter: rendering/proxy_box.dart RenderIgnorePointer.debugFillProperties

func (*RenderIgnorePointer) DescribeSemanticsConfiguration

func (r *RenderIgnorePointer) DescribeSemanticsConfiguration(config *semantics.SemanticsConfiguration)

DescribeSemanticsConfiguration blocks the user actions of the subtree when ignoring.

Flutter: rendering/proxy_box.dart RenderIgnorePointer.describeSemanticsConfiguration

func (*RenderIgnorePointer) HitTest

func (r *RenderIgnorePointer) HitTest(result *BoxHitTestResult, position ui.Offset) bool

HitTest is false when ignoring.

Flutter: rendering/proxy_box.dart RenderIgnorePointer.hitTest

func (*RenderIgnorePointer) Ignoring

func (r *RenderIgnorePointer) Ignoring() bool

Ignoring is whether this render object is ignored during hit testing.

Flutter: rendering/proxy_box.dart RenderIgnorePointer.ignoring

func (*RenderIgnorePointer) SetIgnoring

func (r *RenderIgnorePointer) SetIgnoring(value bool)

SetIgnoring changes the flag.

Flutter: rendering/proxy_box.dart RenderIgnorePointer.ignoring

type RenderIgnorePointerOpts

type RenderIgnorePointerOpts struct {
	// Ignoring defaults to true.
	Ignoring foundation.Opt[bool]
}

RenderIgnorePointerOpts are the optional parameters of NewRenderIgnorePointer.

Flutter: rendering/proxy_box.dart RenderIgnorePointer.new

type RenderImage

type RenderImage struct {
	RenderBox
	// contains filtered or unexported fields
}

RenderImage paints an image into its box.

Flutter: rendering/image.dart RenderImage

func NewRenderImage

func NewRenderImage(opts ...RenderImageOpts) *RenderImage

NewRenderImage creates the box.

Flutter: rendering/image.dart RenderImage.new

func (*RenderImage) Alignment

func (r *RenderImage) Alignment() painting.AlignmentGeometry

Alignment is how the image is aligned in the box.

Flutter: rendering/image.dart RenderImage.alignment

func (*RenderImage) Attach

func (r *RenderImage) Attach(owner *PipelineOwner)

Attach starts listening to the opacity.

Flutter: rendering/image.dart RenderImage.attach

func (*RenderImage) CenterSlice

func (r *RenderImage) CenterSlice() foundation.Opt[ui.Rect]

CenterSlice is the center slice of a nine-patch image.

Flutter: rendering/image.dart RenderImage.centerSlice

func (*RenderImage) Color

func (r *RenderImage) Color() foundation.Opt[ui.Color]

Color is the color that is blended with the image.

Flutter: rendering/image.dart RenderImage.color

func (*RenderImage) ColorBlendMode

func (r *RenderImage) ColorBlendMode() ui.BlendMode

ColorBlendMode is how the color is blended with the image.

Flutter: rendering/image.dart RenderImage.colorBlendMode

func (*RenderImage) ComputeDryLayout

func (r *RenderImage) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size the constraints would give.

Flutter: rendering/image.dart RenderImage.computeDryLayout

func (*RenderImage) ComputeMaxIntrinsicHeight

func (r *RenderImage) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the height the box would have for the width.

Flutter: rendering/image.dart RenderImage.computeMaxIntrinsicHeight

func (*RenderImage) ComputeMaxIntrinsicWidth

func (r *RenderImage) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is the width the box would have for the height.

Flutter: rendering/image.dart RenderImage.computeMaxIntrinsicWidth

func (*RenderImage) ComputeMinIntrinsicHeight

func (r *RenderImage) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is 0 if the box has no size of its own, else the height it would have for the width.

Flutter: rendering/image.dart RenderImage.computeMinIntrinsicHeight

func (*RenderImage) ComputeMinIntrinsicWidth

func (r *RenderImage) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is 0 if the box has no size of its own, else the width it would have for the height.

Flutter: rendering/image.dart RenderImage.computeMinIntrinsicWidth

func (*RenderImage) DebugFillProperties

func (r *RenderImage) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the image and its settings.

Flutter: rendering/image.dart RenderImage.debugFillProperties

func (*RenderImage) DebugImageLabel

func (r *RenderImage) DebugImageLabel() string

DebugImageLabel is a description of the image, for debugging.

Flutter: rendering/image.dart RenderImage.debugImageLabel

func (*RenderImage) Detach

func (r *RenderImage) Detach()

Detach stops listening to the opacity.

Flutter: rendering/image.dart RenderImage.detach

func (*RenderImage) Dispose

func (r *RenderImage) Dispose()

Dispose disposes the image.

Flutter: rendering/image.dart RenderImage.dispose

func (*RenderImage) FilterQuality

func (r *RenderImage) FilterQuality() ui.FilterQuality

FilterQuality is the quality of sampling when the image is scaled.

Flutter: rendering/image.dart RenderImage.filterQuality

func (*RenderImage) Fit

func (r *RenderImage) Fit() painting.BoxFit

Fit is how the image is inscribed into the box.

Flutter: rendering/image.dart RenderImage.fit

func (*RenderImage) Height

func (r *RenderImage) Height() foundation.Opt[float64]

Height is the height the box is required to have, if the constraints allow it.

Flutter: rendering/image.dart RenderImage.height

func (*RenderImage) HitTestSelf

func (r *RenderImage) HitTestSelf(ui.Offset) bool

HitTestSelf is true: the box is hit anywhere.

Flutter: rendering/image.dart RenderImage.hitTestSelf

func (*RenderImage) Image

func (r *RenderImage) Image() *ui.Image

Image is the image to display.

Flutter: rendering/image.dart RenderImage.image

func (*RenderImage) InvertColors

func (r *RenderImage) InvertColors() bool

InvertColors says whether the colors of the image are inverted.

Flutter: rendering/image.dart RenderImage.invertColors

func (*RenderImage) IsAntiAlias

func (r *RenderImage) IsAntiAlias() bool

IsAntiAlias says whether the image is painted with anti-aliasing.

Flutter: rendering/image.dart RenderImage.isAntiAlias

func (*RenderImage) MatchTextDirection

func (r *RenderImage) MatchTextDirection() bool

MatchTextDirection says whether the image is mirrored in a right-to-left context.

Flutter: rendering/image.dart RenderImage.matchTextDirection

func (*RenderImage) Opacity

Opacity is the opacity of the image, or nil.

Flutter: rendering/image.dart RenderImage.opacity

func (*RenderImage) Paint

func (r *RenderImage) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the image.

Flutter: rendering/image.dart RenderImage.paint

func (*RenderImage) PerformLayout

func (r *RenderImage) PerformLayout()

PerformLayout sizes the box as the image, within the constraints.

Flutter: rendering/image.dart RenderImage.performLayout

func (*RenderImage) Repeat

func (r *RenderImage) Repeat() painting.ImageRepeat

Repeat is how the image repeats in the area it does not cover.

Flutter: rendering/image.dart RenderImage.repeat

func (*RenderImage) Scale

func (r *RenderImage) Scale() float64

Scale is the number of image pixels per logical pixel.

Flutter: rendering/image.dart RenderImage.scale

func (*RenderImage) SetAlignment

func (r *RenderImage) SetAlignment(value painting.AlignmentGeometry)

SetAlignment marks the box as needing paint when the value changes.

Flutter: rendering/image.dart RenderImage.alignment

func (*RenderImage) SetCenterSlice

func (r *RenderImage) SetCenterSlice(value foundation.Opt[ui.Rect])

SetCenterSlice marks the box as needing paint when the value changes.

Flutter: rendering/image.dart RenderImage.centerSlice

func (*RenderImage) SetColor

func (r *RenderImage) SetColor(value foundation.Opt[ui.Color])

SetColor marks the box as needing paint when the value changes.

Flutter: rendering/image.dart RenderImage.color

func (*RenderImage) SetColorBlendMode

func (r *RenderImage) SetColorBlendMode(value ui.BlendMode)

SetColorBlendMode marks the box as needing paint when the value changes.

Flutter: rendering/image.dart RenderImage.colorBlendMode

func (*RenderImage) SetDebugImageLabel

func (r *RenderImage) SetDebugImageLabel(value string)

SetDebugImageLabel changes the label.

Flutter: rendering/image.dart RenderImage.debugImageLabel

func (*RenderImage) SetFilterQuality

func (r *RenderImage) SetFilterQuality(value ui.FilterQuality)

SetFilterQuality marks the box as needing paint when the value changes.

Flutter: rendering/image.dart RenderImage.filterQuality

func (*RenderImage) SetFit

func (r *RenderImage) SetFit(value painting.BoxFit)

SetFit marks the box as needing paint when the value changes.

Flutter: rendering/image.dart RenderImage.fit

func (*RenderImage) SetHeight

func (r *RenderImage) SetHeight(value foundation.Opt[float64])

SetHeight marks the box as needing layout when the value changes.

Flutter: rendering/image.dart RenderImage.height

func (*RenderImage) SetImage

func (r *RenderImage) SetImage(value *ui.Image)

SetImage changes the image. The box takes the ownership of the image and disposes the previous one, unless the new one is a clone of it, which is disposed instead.

Flutter: rendering/image.dart RenderImage.image

func (*RenderImage) SetInvertColors

func (r *RenderImage) SetInvertColors(value bool)

SetInvertColors marks the box as needing paint when the value changes.

Flutter: rendering/image.dart RenderImage.invertColors

func (*RenderImage) SetIsAntiAlias

func (r *RenderImage) SetIsAntiAlias(value bool)

SetIsAntiAlias marks the box as needing paint when the value changes.

Flutter: rendering/image.dart RenderImage.isAntiAlias

func (*RenderImage) SetMatchTextDirection

func (r *RenderImage) SetMatchTextDirection(value bool)

SetMatchTextDirection marks the box as needing paint when the value changes.

Flutter: rendering/image.dart RenderImage.matchTextDirection

func (*RenderImage) SetOpacity

func (r *RenderImage) SetOpacity(value foundation.ValueListenable[float64])

SetOpacity changes the opacity; the box repaints when it notifies.

Flutter: rendering/image.dart RenderImage.opacity

func (*RenderImage) SetRepeat

func (r *RenderImage) SetRepeat(value painting.ImageRepeat)

SetRepeat marks the box as needing paint when the value changes.

Flutter: rendering/image.dart RenderImage.repeat

func (*RenderImage) SetScale

func (r *RenderImage) SetScale(value float64)

SetScale marks the box as needing layout when the value changes.

Flutter: rendering/image.dart RenderImage.scale

func (*RenderImage) SetTextDirection

func (r *RenderImage) SetTextDirection(value ui.TextDirection)

SetTextDirection marks the box as needing paint when the value changes.

Flutter: rendering/image.dart RenderImage.textDirection

func (*RenderImage) SetWidth

func (r *RenderImage) SetWidth(value foundation.Opt[float64])

SetWidth marks the box as needing layout when the value changes.

Flutter: rendering/image.dart RenderImage.width

func (*RenderImage) TextDirection

func (r *RenderImage) TextDirection() ui.TextDirection

TextDirection resolves the alignment and the mirroring. Unspecified is null.

Flutter: rendering/image.dart RenderImage.textDirection

func (*RenderImage) Width

func (r *RenderImage) Width() foundation.Opt[float64]

Width is the width the box is required to have, if the constraints allow it.

Flutter: rendering/image.dart RenderImage.width

type RenderImageOpts

type RenderImageOpts struct {
	// Image is the image to display; nil for none.
	Image *ui.Image
	// DebugImageLabel is a description of the image, for debugging.
	DebugImageLabel string
	// Width, if set, requires the box to have this width, if the constraints
	// allow it.
	Width foundation.Opt[float64]
	// Height, if set, requires the box to have this height, if the constraints
	// allow it.
	Height foundation.Opt[float64]
	// Scale is the number of image pixels per logical pixel; the default is 1.
	Scale foundation.Opt[float64]
	// Color, if set, is blended with the image with ColorBlendMode.
	Color foundation.Opt[ui.Color]
	// Opacity, if set, gives the opacity of the image, between 0 and 1.
	// Deviation: Flutter takes an Animation<double>, which implements
	// ValueListenable<double>; the animation library arrives in step 8.1.
	Opacity foundation.ValueListenable[float64]
	// ColorBlendMode is how Color is blended; the default is srcIn.
	ColorBlendMode ui.BlendMode
	// Fit is how the image is inscribed into the box; unspecified is the null
	// of Flutter.
	Fit painting.BoxFit
	// Alignment is how the image is aligned in the box; the default is center.
	Alignment painting.AlignmentGeometry
	// Repeat is how the image repeats in the area it does not cover.
	Repeat painting.ImageRepeat
	// CenterSlice, if set, makes the image a nine-patch.
	CenterSlice foundation.Opt[ui.Rect]
	// MatchTextDirection mirrors the image in a right-to-left context.
	MatchTextDirection bool
	// TextDirection resolves the alignment and the mirroring; unspecified is
	// null.
	TextDirection ui.TextDirection
	// InvertColors inverts the colors of the image.
	InvertColors bool
	// IsAntiAlias paints the image with anti-aliasing.
	IsAntiAlias bool
	// FilterQuality defaults to ui.FilterQualityMedium.
	FilterQuality ui.FilterQuality
}

RenderImageOpts are the optional parameters of NewRenderImage.

Flutter: rendering/image.dart RenderImage.new

type RenderIndexedSemantics

type RenderIndexedSemantics struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderIndexedSemantics annotates the semantics of its child with an index. Widgets such as scroll views use the index of the first visible child to set the scroll index.

Flutter: rendering/proxy_box.dart RenderIndexedSemantics

func NewRenderIndexedSemantics

func NewRenderIndexedSemantics(index int, child Box) *RenderIndexedSemantics

NewRenderIndexedSemantics creates the box.

Flutter: rendering/proxy_box.dart RenderIndexedSemantics.new

func (*RenderIndexedSemantics) DebugFillProperties

DebugFillProperties adds the index.

Flutter: rendering/proxy_box.dart RenderIndexedSemantics.debugFillProperties

func (*RenderIndexedSemantics) DescribeSemanticsConfiguration

func (r *RenderIndexedSemantics) DescribeSemanticsConfiguration(config *semantics.SemanticsConfiguration)

DescribeSemanticsConfiguration sets the index in the parent.

Flutter: rendering/proxy_box.dart RenderIndexedSemantics.describeSemanticsConfiguration

func (*RenderIndexedSemantics) Index

func (r *RenderIndexedSemantics) Index() int

Index is the index of the child.

Flutter: rendering/proxy_box.dart RenderIndexedSemantics.index

func (*RenderIndexedSemantics) SetIndex

func (r *RenderIndexedSemantics) SetIndex(value int)

SetIndex changes the index.

Flutter: rendering/proxy_box.dart RenderIndexedSemantics.index

type RenderIndexedStack

type RenderIndexedStack struct {
	RenderStack
	// contains filtered or unexported fields
}

RenderIndexedStack shows a single child from a list of children.

Flutter: rendering/stack.dart RenderIndexedStack

func NewRenderIndexedStack

func NewRenderIndexedStack(children []Box, opts ...RenderIndexedStackOpts) *RenderIndexedStack

NewRenderIndexedStack creates an indexed stack with the children (nil for none).

Flutter: rendering/stack.dart RenderIndexedStack.new

func (*RenderIndexedStack) ComputeDistanceToActualBaseline

func (s *RenderIndexedStack) ComputeDistanceToActualBaseline(baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDistanceToActualBaseline is the baseline of the displayed child.

Flutter: rendering/stack.dart RenderIndexedStack.computeDistanceToActualBaseline

func (*RenderIndexedStack) ComputeDryBaseline

func (s *RenderIndexedStack) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the baseline of the displayed child.

Flutter: rendering/stack.dart RenderIndexedStack.computeDryBaseline

func (*RenderIndexedStack) DebugDescribeChildren

func (s *RenderIndexedStack) DebugDescribeChildren() []foundation.DiagnosticsNode

DebugDescribeChildren describes the children, the hidden ones with the offstage style.

Flutter: rendering/stack.dart RenderIndexedStack.debugDescribeChildren

func (*RenderIndexedStack) DebugFillProperties

func (s *RenderIndexedStack) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the index.

Flutter: rendering/stack.dart RenderIndexedStack.debugFillProperties

func (*RenderIndexedStack) HitTestChildren

func (s *RenderIndexedStack) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren hit tests the displayed child only.

Flutter: rendering/stack.dart RenderIndexedStack.hitTestChildren

func (*RenderIndexedStack) Index

func (s *RenderIndexedStack) Index() foundation.Opt[int]

Index is the index of the child to show, or None for none.

Flutter: rendering/stack.dart RenderIndexedStack.index

func (*RenderIndexedStack) PaintStack

func (s *RenderIndexedStack) PaintStack(context *PaintingContext, offset ui.Offset)

PaintStack paints the displayed child only.

Flutter: rendering/stack.dart RenderIndexedStack.paintStack

func (*RenderIndexedStack) SetIndex

func (s *RenderIndexedStack) SetIndex(value foundation.Opt[int])

SetIndex marks the stack as needing layout when the value changes.

Flutter: rendering/stack.dart RenderIndexedStack.index

func (*RenderIndexedStack) VisitChildrenForSemantics

func (s *RenderIndexedStack) VisitChildrenForSemantics(visitor RenderObjectVisitor)

VisitChildrenForSemantics visits only the displayed child.

Flutter: rendering/stack.dart RenderIndexedStack.visitChildrenForSemantics

type RenderIndexedStackOpts

type RenderIndexedStackOpts struct {
	RenderStackOpts
	// Index is the index of the child to show. None is the default, 0; use
	// SetIndex(None) to show no child (Flutter's null).
	Index foundation.Opt[int]
}

RenderIndexedStackOpts are the optional parameters of NewRenderIndexedStack.

Flutter: rendering/stack.dart RenderIndexedStack.new

type RenderIntrinsicHeight

type RenderIntrinsicHeight struct {
	RenderProxyBox
}

RenderIntrinsicHeight sizes its child to the child's intrinsic height.

Flutter: rendering/proxy_box.dart RenderIntrinsicHeight

func NewRenderIntrinsicHeight

func NewRenderIntrinsicHeight(child Box) *RenderIntrinsicHeight

NewRenderIntrinsicHeight creates the box.

Flutter: rendering/proxy_box.dart RenderIntrinsicHeight.new

func (*RenderIntrinsicHeight) ComputeDryBaseline

func (r *RenderIntrinsicHeight) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the child's baseline for the intrinsic constraints.

Flutter: rendering/proxy_box.dart RenderIntrinsicHeight.computeDryBaseline

func (*RenderIntrinsicHeight) ComputeDryLayout

func (r *RenderIntrinsicHeight) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size for the constraints.

Flutter: rendering/proxy_box.dart RenderIntrinsicHeight.computeDryLayout

func (*RenderIntrinsicHeight) ComputeMaxIntrinsicWidth

func (r *RenderIntrinsicHeight) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is the child's maximum intrinsic width at its intrinsic height.

Flutter: rendering/proxy_box.dart RenderIntrinsicHeight.computeMaxIntrinsicWidth

func (*RenderIntrinsicHeight) ComputeMinIntrinsicHeight

func (r *RenderIntrinsicHeight) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the maximum intrinsic height.

Flutter: rendering/proxy_box.dart RenderIntrinsicHeight.computeMinIntrinsicHeight

func (*RenderIntrinsicHeight) ComputeMinIntrinsicWidth

func (r *RenderIntrinsicHeight) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is the child's minimum intrinsic width at its intrinsic height.

Flutter: rendering/proxy_box.dart RenderIntrinsicHeight.computeMinIntrinsicWidth

func (*RenderIntrinsicHeight) PerformLayout

func (r *RenderIntrinsicHeight) PerformLayout()

PerformLayout lays out the child at its intrinsic height.

Flutter: rendering/proxy_box.dart RenderIntrinsicHeight.performLayout

type RenderIntrinsicWidth

type RenderIntrinsicWidth struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderIntrinsicWidth sizes its child to the child's maximum intrinsic width.

Flutter: rendering/proxy_box.dart RenderIntrinsicWidth

func NewRenderIntrinsicWidth

func NewRenderIntrinsicWidth(child Box, opts ...RenderIntrinsicWidthOpts) *RenderIntrinsicWidth

NewRenderIntrinsicWidth creates the box. A step that is not positive panics with IntrinsicStepInvalid in debug builds.

Flutter: rendering/proxy_box.dart RenderIntrinsicWidth.new

func (*RenderIntrinsicWidth) ComputeDryBaseline

func (r *RenderIntrinsicWidth) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the child's baseline for the intrinsic constraints.

Flutter: rendering/proxy_box.dart RenderIntrinsicWidth.computeDryBaseline

func (*RenderIntrinsicWidth) ComputeDryLayout

func (r *RenderIntrinsicWidth) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size for the constraints.

Flutter: rendering/proxy_box.dart RenderIntrinsicWidth.computeDryLayout

func (*RenderIntrinsicWidth) ComputeMaxIntrinsicHeight

func (r *RenderIntrinsicWidth) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the child's maximum intrinsic height at the intrinsic width, rounded up to the step.

Flutter: rendering/proxy_box.dart RenderIntrinsicWidth.computeMaxIntrinsicHeight

func (*RenderIntrinsicWidth) ComputeMaxIntrinsicWidth

func (r *RenderIntrinsicWidth) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is the child's maximum intrinsic width rounded up to the step.

Flutter: rendering/proxy_box.dart RenderIntrinsicWidth.computeMaxIntrinsicWidth

func (*RenderIntrinsicWidth) ComputeMinIntrinsicHeight

func (r *RenderIntrinsicWidth) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the child's minimum intrinsic height at the intrinsic width, rounded up to the step.

Flutter: rendering/proxy_box.dart RenderIntrinsicWidth.computeMinIntrinsicHeight

func (*RenderIntrinsicWidth) ComputeMinIntrinsicWidth

func (r *RenderIntrinsicWidth) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is the maximum intrinsic width.

Flutter: rendering/proxy_box.dart RenderIntrinsicWidth.computeMinIntrinsicWidth

func (*RenderIntrinsicWidth) DebugFillProperties

func (r *RenderIntrinsicWidth) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the steps.

Flutter: rendering/proxy_box.dart RenderIntrinsicWidth.debugFillProperties

func (*RenderIntrinsicWidth) PerformLayout

func (r *RenderIntrinsicWidth) PerformLayout()

PerformLayout lays out the child at its intrinsic width.

Flutter: rendering/proxy_box.dart RenderIntrinsicWidth.performLayout

func (*RenderIntrinsicWidth) SetStepHeight

func (r *RenderIntrinsicWidth) SetStepHeight(value foundation.Opt[float64])

SetStepHeight changes the step and marks the box as needing layout.

Flutter: rendering/proxy_box.dart RenderIntrinsicWidth.stepHeight

func (*RenderIntrinsicWidth) SetStepWidth

func (r *RenderIntrinsicWidth) SetStepWidth(value foundation.Opt[float64])

SetStepWidth changes the step and marks the box as needing layout.

Flutter: rendering/proxy_box.dart RenderIntrinsicWidth.stepWidth

func (*RenderIntrinsicWidth) StepHeight

func (r *RenderIntrinsicWidth) StepHeight() foundation.Opt[float64]

StepHeight is the step that the height is a multiple of.

Flutter: rendering/proxy_box.dart RenderIntrinsicWidth.stepHeight

func (*RenderIntrinsicWidth) StepWidth

func (r *RenderIntrinsicWidth) StepWidth() foundation.Opt[float64]

StepWidth is the step that the width is a multiple of.

Flutter: rendering/proxy_box.dart RenderIntrinsicWidth.stepWidth

type RenderIntrinsicWidthOpts

type RenderIntrinsicWidthOpts struct {
	// StepWidth rounds the width up to a multiple of it, if set.
	StepWidth foundation.Opt[float64]
	// StepHeight rounds the height up to a multiple of it, if set.
	StepHeight foundation.Opt[float64]
}

RenderIntrinsicWidthOpts are the optional parameters of NewRenderIntrinsicWidth.

Flutter: rendering/proxy_box.dart RenderIntrinsicWidth.new

type RenderLeaderLayer

type RenderLeaderLayer struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderLeaderLayer provides an anchor for a RenderFollowerLayer.

Flutter: rendering/proxy_box.dart RenderLeaderLayer

func NewRenderLeaderLayer

func NewRenderLeaderLayer(link *LayerLink, child Box) *RenderLeaderLayer

NewRenderLeaderLayer creates the box.

Flutter: rendering/proxy_box.dart RenderLeaderLayer.new

func (*RenderLeaderLayer) AlwaysNeedsCompositing

func (r *RenderLeaderLayer) AlwaysNeedsCompositing() bool

AlwaysNeedsCompositing is true.

Flutter: rendering/proxy_box.dart RenderLeaderLayer.alwaysNeedsCompositing

func (*RenderLeaderLayer) DebugFillProperties

func (r *RenderLeaderLayer) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the link.

Flutter: rendering/proxy_box.dart RenderLeaderLayer.debugFillProperties

func (r *RenderLeaderLayer) Link() *LayerLink

Link is the link object that connects this leader with followers.

Flutter: rendering/proxy_box.dart RenderLeaderLayer.link

func (*RenderLeaderLayer) Paint

func (r *RenderLeaderLayer) Paint(context *PaintingContext, offset ui.Offset)

Paint pushes a leader layer.

Flutter: rendering/proxy_box.dart RenderLeaderLayer.paint

func (*RenderLeaderLayer) PerformLayout

func (r *RenderLeaderLayer) PerformLayout()

PerformLayout lays out as a proxy box and tells the link the size.

Flutter: rendering/proxy_box.dart RenderLeaderLayer.performLayout

func (r *RenderLeaderLayer) SetLink(value *LayerLink)

SetLink changes the link and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderLeaderLayer.link

type RenderLimitedBox

type RenderLimitedBox struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderLimitedBox limits its size only when it is unconstrained.

Flutter: rendering/proxy_box.dart RenderLimitedBox

func NewRenderLimitedBox

func NewRenderLimitedBox(child Box, opts ...RenderLimitedBoxOpts) *RenderLimitedBox

NewRenderLimitedBox creates a box that limits its child to the maximum size when the constraints are unbounded. Negative limits panic with LimitedBoxNegative in debug builds.

Flutter: rendering/proxy_box.dart RenderLimitedBox.new

func (*RenderLimitedBox) ComputeDryLayout

func (r *RenderLimitedBox) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size for the constraints.

Flutter: rendering/proxy_box.dart RenderLimitedBox.computeDryLayout

func (*RenderLimitedBox) DebugFillProperties

func (r *RenderLimitedBox) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the limits.

Flutter: rendering/proxy_box.dart RenderLimitedBox.debugFillProperties

func (*RenderLimitedBox) MaxHeight

func (r *RenderLimitedBox) MaxHeight() float64

MaxHeight is the maximum height when the height is unconstrained.

Flutter: rendering/proxy_box.dart RenderLimitedBox.maxHeight

func (*RenderLimitedBox) MaxWidth

func (r *RenderLimitedBox) MaxWidth() float64

MaxWidth is the maximum width when the width is unconstrained.

Flutter: rendering/proxy_box.dart RenderLimitedBox.maxWidth

func (*RenderLimitedBox) PerformLayout

func (r *RenderLimitedBox) PerformLayout()

PerformLayout lays out the child with the limited constraints.

Flutter: rendering/proxy_box.dart RenderLimitedBox.performLayout

func (*RenderLimitedBox) SetMaxHeight

func (r *RenderLimitedBox) SetMaxHeight(value float64)

SetMaxHeight changes the limit and marks the box as needing layout.

Flutter: rendering/proxy_box.dart RenderLimitedBox.maxHeight

func (*RenderLimitedBox) SetMaxWidth

func (r *RenderLimitedBox) SetMaxWidth(value float64)

SetMaxWidth changes the limit and marks the box as needing layout.

Flutter: rendering/proxy_box.dart RenderLimitedBox.maxWidth

type RenderLimitedBoxOpts

type RenderLimitedBoxOpts struct {
	// MaxWidth defaults to infinity.
	MaxWidth foundation.Opt[float64]
	// MaxHeight defaults to infinity.
	MaxHeight foundation.Opt[float64]
}

RenderLimitedBoxOpts are the optional parameters of NewRenderLimitedBox.

Flutter: rendering/proxy_box.dart RenderLimitedBox.new

type RenderListBody

type RenderListBody struct {
	RenderBox
	ContainerRenderObject[Box]
	// contains filtered or unexported fields
}

RenderListBody arranges its children in a line, without clipping or resizing them: the main axis is unbounded and the children fill the cross axis.

Flutter: rendering/list_body.dart RenderListBody

func NewRenderListBody

func NewRenderListBody(children []Box, opts ...RenderListBodyOpts) *RenderListBody

NewRenderListBody creates a list body with the children (nil for none).

Flutter: rendering/list_body.dart RenderListBody.new

func (*RenderListBody) AxisDirection

func (r *RenderListBody) AxisDirection() painting.AxisDirection

AxisDirection is the direction in which the children are laid out.

Flutter: rendering/list_body.dart RenderListBody.axisDirection

func (*RenderListBody) ComputeDistanceToActualBaseline

func (r *RenderListBody) ComputeDistanceToActualBaseline(baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDistanceToActualBaseline is the first baseline among the children.

Flutter: rendering/list_body.dart RenderListBody.computeDistanceToActualBaseline

func (*RenderListBody) ComputeDryBaseline

func (r *RenderListBody) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the first baseline found along the main axis, or the highest one for a horizontal list.

Flutter: rendering/list_body.dart RenderListBody.computeDryBaseline

func (*RenderListBody) ComputeDryLayout

func (r *RenderListBody) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size the constraints would give.

Flutter: rendering/list_body.dart RenderListBody.computeDryLayout

func (*RenderListBody) ComputeMaxIntrinsicHeight

func (r *RenderListBody) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the sum (horizontal) or the maximum (vertical) of the children's.

Flutter: rendering/list_body.dart RenderListBody.computeMaxIntrinsicHeight

func (*RenderListBody) ComputeMaxIntrinsicWidth

func (r *RenderListBody) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is the sum (horizontal) or the maximum (vertical) of the children's.

Flutter: rendering/list_body.dart RenderListBody.computeMaxIntrinsicWidth

func (*RenderListBody) ComputeMinIntrinsicHeight

func (r *RenderListBody) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the sum (horizontal) or the maximum (vertical) of the children's.

Flutter: rendering/list_body.dart RenderListBody.computeMinIntrinsicHeight

func (*RenderListBody) ComputeMinIntrinsicWidth

func (r *RenderListBody) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is the sum (horizontal) or the maximum (vertical) of the children's.

Flutter: rendering/list_body.dart RenderListBody.computeMinIntrinsicWidth

func (*RenderListBody) DebugFillProperties

func (r *RenderListBody) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the axis direction.

Flutter: rendering/list_body.dart RenderListBody.debugFillProperties

func (*RenderListBody) HitTestChildren

func (r *RenderListBody) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren hit tests the children from the front.

Flutter: rendering/list_body.dart RenderListBody.hitTestChildren

func (*RenderListBody) MainAxis

func (r *RenderListBody) MainAxis() painting.Axis

MainAxis is the axis of the axis direction.

Flutter: rendering/list_body.dart RenderListBody.mainAxis

func (*RenderListBody) Paint

func (r *RenderListBody) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the children in order.

Flutter: rendering/list_body.dart RenderListBody.paint

func (*RenderListBody) PerformLayout

func (r *RenderListBody) PerformLayout()

PerformLayout lays the children out one after the other along the main axis, each as wide (or tall) as the list body.

Flutter: rendering/list_body.dart RenderListBody.performLayout

func (*RenderListBody) SetAxisDirection

func (r *RenderListBody) SetAxisDirection(value painting.AxisDirection)

SetAxisDirection marks the list body as needing layout when the value changes.

Flutter: rendering/list_body.dart RenderListBody.axisDirection

func (*RenderListBody) SetupParentData

func (r *RenderListBody) SetupParentData(child RenderObject)

SetupParentData gives the child a ListBodyParentData if it has none.

Flutter: rendering/list_body.dart RenderListBody.setupParentData

type RenderListBodyOpts

type RenderListBodyOpts struct {
	// AxisDirection defaults to painting.AxisDirectionDown.
	AxisDirection painting.AxisDirection
}

RenderListBodyOpts are the optional parameters of NewRenderListBody.

Flutter: rendering/list_body.dart RenderListBody.new

type RenderListWheelViewport

type RenderListWheelViewport struct {
	RenderBox
	ContainerRenderObject[Box]
	// contains filtered or unexported fields
}

RenderListWheelViewport renders a vertical list of children laid out on the surface of a cylinder, like the wheel of a slot machine.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport

func NewRenderListWheelViewport

func NewRenderListWheelViewport(childManager ListWheelChildManager, offset ViewportOffset, itemExtent float64, opts ...RenderListWheelViewportOpts) *RenderListWheelViewport

NewRenderListWheelViewport creates the viewport. In debug builds it panics with the tag ListWheelViewportInvalid when a value is out of its range.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.new

func (*RenderListWheelViewport) ApplyPaintTransform

func (r *RenderListWheelViewport) ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)

ApplyPaintTransform multiplies by the transform that the child was painted with.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.applyPaintTransform

func (*RenderListWheelViewport) Attach

func (r *RenderListWheelViewport) Attach(owner *PipelineOwner)

Attach listens to the offset.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.attach

func (*RenderListWheelViewport) ChildManager

ChildManager creates and removes the children.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.childManager

func (*RenderListWheelViewport) ClipBehavior

func (r *RenderListWheelViewport) ClipBehavior() ui.Clip

ClipBehavior is how the viewport clips.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.clipBehavior

func (*RenderListWheelViewport) ComputeDryLayout

func (r *RenderListWheelViewport) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the biggest size.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.computeDryLayout

func (*RenderListWheelViewport) ComputeMaxIntrinsicHeight

func (r *RenderListWheelViewport) ComputeMaxIntrinsicHeight(float64) float64

ComputeMaxIntrinsicHeight is the extent of all the children.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.computeMaxIntrinsicHeight

func (*RenderListWheelViewport) ComputeMaxIntrinsicWidth

func (r *RenderListWheelViewport) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is the largest child.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.computeMaxIntrinsicWidth

func (*RenderListWheelViewport) ComputeMinIntrinsicHeight

func (r *RenderListWheelViewport) ComputeMinIntrinsicHeight(float64) float64

ComputeMinIntrinsicHeight is the extent of all the children.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.computeMinIntrinsicHeight

func (*RenderListWheelViewport) ComputeMinIntrinsicWidth

func (r *RenderListWheelViewport) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is the largest child.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.computeMinIntrinsicWidth

func (*RenderListWheelViewport) DescribeApproximatePaintClip

func (r *RenderListWheelViewport) DescribeApproximatePaintClip(RenderObject) foundation.Opt[ui.Rect]

DescribeApproximatePaintClip is the viewport, if the children overflow it.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.describeApproximatePaintClip

func (*RenderListWheelViewport) Detach

func (r *RenderListWheelViewport) Detach()

Detach stops listening to the offset.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.detach

func (*RenderListWheelViewport) DiameterRatio

func (r *RenderListWheelViewport) DiameterRatio() float64

DiameterRatio is the ratio of the diameter of the cylinder to the viewport extent.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.diameterRatio

func (*RenderListWheelViewport) Dispose

func (r *RenderListWheelViewport) Dispose()

Dispose lets the layers go.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.dispose

func (*RenderListWheelViewport) GetOffsetToReveal

func (r *RenderListWheelViewport) GetOffsetToReveal(target RenderObject, _ float64, opts ...GetOffsetToRevealOpts) RevealedOffset

GetOffsetToReveal is the scroll offset that puts the target at the center of the wheel; only the vertical axis is supported.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.getOffsetToReveal

func (*RenderListWheelViewport) HitTestChildren

func (r *RenderListWheelViewport) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren hit tests the children with the transforms that they were painted with, last first.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.hitTestChildren

func (*RenderListWheelViewport) IndexOf

func (r *RenderListWheelViewport) IndexOf(child Box) int

IndexOf is the index of the child in the list.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.indexOf

func (*RenderListWheelViewport) IndexToScrollOffset

func (r *RenderListWheelViewport) IndexToScrollOffset(index int) float64

IndexToScrollOffset is the scroll offset of the child at the index.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.indexToScrollOffset

func (*RenderListWheelViewport) IsRepaintBoundary

func (r *RenderListWheelViewport) IsRepaintBoundary() bool

IsRepaintBoundary is true.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.isRepaintBoundary

func (*RenderListWheelViewport) ItemExtent

func (r *RenderListWheelViewport) ItemExtent() float64

ItemExtent is the extent of every child along the main axis.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.itemExtent

func (*RenderListWheelViewport) Magnification

func (r *RenderListWheelViewport) Magnification() float64

Magnification is how much the center item is magnified.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.magnification

func (*RenderListWheelViewport) OffAxisFraction

func (r *RenderListWheelViewport) OffAxisFraction() float64

OffAxisFraction is how far the cylinder is off the center of the viewport.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.offAxisFraction

func (*RenderListWheelViewport) Offset

Offset is the offset of the viewport.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.offset

func (*RenderListWheelViewport) OverAndUnderCenterOpacity

func (r *RenderListWheelViewport) OverAndUnderCenterOpacity() float64

OverAndUnderCenterOpacity is the opacity of the items outside of the center.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.overAndUnderCenterOpacity

func (*RenderListWheelViewport) Paint

func (r *RenderListWheelViewport) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the children on the cylinder.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.paint

func (*RenderListWheelViewport) PerformLayout

func (r *RenderListWheelViewport) PerformLayout()

PerformLayout builds and lays out the children that are visible, and tells the offset about the extents.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.performLayout

func (*RenderListWheelViewport) Perspective

func (r *RenderListWheelViewport) Perspective() float64

Perspective is how much the cylinder is distorted by the perspective.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.perspective

func (*RenderListWheelViewport) RenderChildrenOutsideViewport

func (r *RenderListWheelViewport) RenderChildrenOutsideViewport() bool

RenderChildrenOutsideViewport is whether children outside of the viewport are built and painted.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.renderChildrenOutsideViewport

func (*RenderListWheelViewport) ScrollOffsetToIndex

func (r *RenderListWheelViewport) ScrollOffsetToIndex(scrollOffset float64) int

ScrollOffsetToIndex is the index of the child that the scroll offset is in.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.scrollOffsetToIndex

func (*RenderListWheelViewport) SetClipBehavior

func (r *RenderListWheelViewport) SetClipBehavior(value ui.Clip)

SetClipBehavior changes how the viewport clips.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.clipBehavior

func (*RenderListWheelViewport) SetDiameterRatio

func (r *RenderListWheelViewport) SetDiameterRatio(value float64)

SetDiameterRatio changes the ratio.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.diameterRatio

func (*RenderListWheelViewport) SetItemExtent

func (r *RenderListWheelViewport) SetItemExtent(value float64)

SetItemExtent changes the extent and marks the viewport as needing layout.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.itemExtent

func (*RenderListWheelViewport) SetMagnification

func (r *RenderListWheelViewport) SetMagnification(value float64)

SetMagnification changes the magnification.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.magnification

func (*RenderListWheelViewport) SetOffAxisFraction

func (r *RenderListWheelViewport) SetOffAxisFraction(value float64)

SetOffAxisFraction changes the fraction.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.offAxisFraction

func (*RenderListWheelViewport) SetOffset

func (r *RenderListWheelViewport) SetOffset(value ViewportOffset)

SetOffset changes the offset and marks the viewport as needing layout.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.offset

func (*RenderListWheelViewport) SetOverAndUnderCenterOpacity

func (r *RenderListWheelViewport) SetOverAndUnderCenterOpacity(value float64)

SetOverAndUnderCenterOpacity changes the opacity.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.overAndUnderCenterOpacity

func (*RenderListWheelViewport) SetPerspective

func (r *RenderListWheelViewport) SetPerspective(value float64)

SetPerspective changes the perspective.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.perspective

func (*RenderListWheelViewport) SetRenderChildrenOutsideViewport

func (r *RenderListWheelViewport) SetRenderChildrenOutsideViewport(value bool)

SetRenderChildrenOutsideViewport changes whether children outside of the viewport are built and painted.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.renderChildrenOutsideViewport

func (*RenderListWheelViewport) SetSqueeze

func (r *RenderListWheelViewport) SetSqueeze(value float64)

SetSqueeze changes the squeeze and marks the viewport as needing layout.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.squeeze

func (*RenderListWheelViewport) SetUseMagnifier

func (r *RenderListWheelViewport) SetUseMagnifier(value bool)

SetUseMagnifier changes whether the center is magnified.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.useMagnifier

func (*RenderListWheelViewport) SetupParentData

func (r *RenderListWheelViewport) SetupParentData(child RenderObject)

SetupParentData gives the child a ListWheelParentData if it has none.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.setupParentData

func (*RenderListWheelViewport) ShowOnScreen

func (r *RenderListWheelViewport) ShowOnScreen(opts ShowOnScreenOpts)

ShowOnScreen scrolls the descendant to the center of the wheel, then asks the parent to show the rectangle.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.showOnScreen

func (*RenderListWheelViewport) SizedByParent

func (r *RenderListWheelViewport) SizedByParent() bool

SizedByParent is true.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.sizedByParent

func (*RenderListWheelViewport) Squeeze

func (r *RenderListWheelViewport) Squeeze() float64

Squeeze is how tightly the children are packed on the cylinder.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.squeeze

func (*RenderListWheelViewport) UseMagnifier

func (r *RenderListWheelViewport) UseMagnifier() bool

UseMagnifier is whether the item in the center is magnified.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.useMagnifier

type RenderListWheelViewportOpts

type RenderListWheelViewportOpts struct {
	// DiameterRatio is the ratio of the diameter of the cylinder to the viewport
	// extent; the default is 2.
	DiameterRatio foundation.Opt[float64]
	// Perspective is how much the cylinder is distorted by the perspective; the
	// default is 0.003.
	Perspective foundation.Opt[float64]
	// OffAxisFraction is how far the cylinder is off the center of the viewport
	// horizontally.
	OffAxisFraction float64
	// UseMagnifier is whether to magnify the item in the center.
	UseMagnifier bool
	// Magnification is how much the center item is magnified; the default is 1.
	Magnification foundation.Opt[float64]
	// OverAndUnderCenterOpacity is the opacity of the items outside of the center
	// magnifier; the default is 1.
	OverAndUnderCenterOpacity foundation.Opt[float64]
	// Squeeze is how tightly the children are packed on the cylinder; the default
	// is 1.
	Squeeze foundation.Opt[float64]
	// RenderChildrenOutsideViewport is whether to build and paint children outside
	// of the viewport.
	RenderChildrenOutsideViewport bool
	// ClipBehavior is how the viewport clips; the default is ClipNone.
	ClipBehavior ui.Clip
	// Children are the initial children.
	Children []Box
}

RenderListWheelViewportOpts are the optional parameters of NewRenderListWheelViewport.

Flutter: rendering/list_wheel_viewport.dart RenderListWheelViewport.new

type RenderMergeSemantics

type RenderMergeSemantics struct {
	RenderProxyBox
}

RenderMergeSemantics merges the semantics of all its descendants into its node, so that the whole subtree becomes one leaf of the semantics tree.

Flutter: rendering/proxy_box.dart RenderMergeSemantics

func NewRenderMergeSemantics

func NewRenderMergeSemantics(child Box) *RenderMergeSemantics

NewRenderMergeSemantics creates the box.

Flutter: rendering/proxy_box.dart RenderMergeSemantics.new

func (*RenderMergeSemantics) DescribeSemanticsConfiguration

func (r *RenderMergeSemantics) DescribeSemanticsConfiguration(config *semantics.SemanticsConfiguration)

DescribeSemanticsConfiguration makes the object a boundary that merges its descendants.

Flutter: rendering/proxy_box.dart RenderMergeSemantics.describeSemanticsConfiguration

type RenderMetaData

type RenderMetaData struct {
	RenderProxyBoxWithHitTestBehavior
	// MetaData is opaque meta data ignored by the render tree.
	//
	// Flutter: rendering/proxy_box.dart RenderMetaData.metaData
	MetaData any
}

RenderMetaData holds opaque meta data in the render tree.

Flutter: rendering/proxy_box.dart RenderMetaData

func NewRenderMetaData

func NewRenderMetaData(child Box, opts ...RenderMetaDataOpts) *RenderMetaData

NewRenderMetaData creates the box.

Flutter: rendering/proxy_box.dart RenderMetaData.new

func (*RenderMetaData) DebugFillProperties

func (r *RenderMetaData) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the meta data.

Flutter: rendering/proxy_box.dart RenderMetaData.debugFillProperties

type RenderMetaDataOpts

type RenderMetaDataOpts struct {
	// MetaData is the meta data.
	MetaData any
	// Behavior defaults to HitTestBehaviorDeferToChild.
	Behavior HitTestBehavior
}

RenderMetaDataOpts are the optional parameters of NewRenderMetaData.

Flutter: rendering/proxy_box.dart RenderMetaData.new

type RenderMouseRegion

type RenderMouseRegion struct {
	RenderProxyBoxWithHitTestBehavior
	// contains filtered or unexported fields
}

RenderMouseRegion tracks mouse pointers entering, hovering over and leaving the region. It is a services.MouseTrackerAnnotation.

Flutter: rendering/proxy_box.dart RenderMouseRegion

func NewRenderMouseRegion

func NewRenderMouseRegion(child Box, opts ...RenderMouseRegionOpts) *RenderMouseRegion

NewRenderMouseRegion creates the box.

Flutter: rendering/proxy_box.dart RenderMouseRegion.new

func (*RenderMouseRegion) Attach

func (r *RenderMouseRegion) Attach(owner *PipelineOwner)

Attach makes the region valid for the mouse tracker.

Flutter: rendering/proxy_box.dart RenderMouseRegion.attach

func (*RenderMouseRegion) ComputeSizeForNoChild

func (r *RenderMouseRegion) ComputeSizeForNoChild(constraints BoxConstraints) ui.Size

ComputeSizeForNoChild is the biggest size.

Flutter: rendering/proxy_box.dart RenderMouseRegion.computeSizeForNoChild

func (*RenderMouseRegion) Cursor

Cursor is the mouse cursor over the region.

Flutter: rendering/proxy_box.dart RenderMouseRegion.cursor

func (*RenderMouseRegion) DebugFillProperties

func (r *RenderMouseRegion) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the listeners, the cursor and the flags.

Flutter: rendering/proxy_box.dart RenderMouseRegion.debugFillProperties

func (*RenderMouseRegion) Detach

func (r *RenderMouseRegion) Detach()

Detach makes the region invalid for the mouse tracker.

Flutter: rendering/proxy_box.dart RenderMouseRegion.detach

func (*RenderMouseRegion) HandleEvent

func (r *RenderMouseRegion) HandleEvent(event gestures.PointerEvent, entry gestures.HitTestEntry)

HandleEvent calls the hover listener.

Flutter: rendering/proxy_box.dart RenderMouseRegion.handleEvent

func (*RenderMouseRegion) HitTest

func (r *RenderMouseRegion) HitTest(result *BoxHitTestResult, position ui.Offset) bool

HitTest also requires the region to be opaque.

Flutter: rendering/proxy_box.dart RenderMouseRegion.hitTest

func (*RenderMouseRegion) HitTestBehavior

func (r *RenderMouseRegion) HitTestBehavior() HitTestBehavior

HitTestBehavior is the hit test behavior of the region.

Flutter: rendering/proxy_box.dart RenderMouseRegion.hitTestBehavior

func (*RenderMouseRegion) HoldCursorWhilePressed

func (r *RenderMouseRegion) HoldCursorWhilePressed() bool

HoldCursorWhilePressed is whether a mouse that was pressed inside the region keeps the region's cursor until the button is released, whatever the mouse moves over.

Deviation: Flutter's cursor follows the regions under the pointer even while a button is held (SPEC §12.10).

Flutter: no counterpart

func (*RenderMouseRegion) OnEnter

OnEnter is called when a mouse pointer enters the region.

Flutter: rendering/proxy_box.dart RenderMouseRegion.onEnter

func (*RenderMouseRegion) OnExit

OnExit is called when a mouse pointer leaves the region.

Flutter: rendering/proxy_box.dart RenderMouseRegion.onExit

func (*RenderMouseRegion) OnHover

OnHover is called when a mouse pointer moves over the region.

Flutter: rendering/proxy_box.dart RenderMouseRegion.onHover

func (*RenderMouseRegion) Opaque

func (r *RenderMouseRegion) Opaque() bool

Opaque is whether this region prevents other mouse regions behind it from detecting the mouse.

Flutter: rendering/proxy_box.dart RenderMouseRegion.opaque

func (*RenderMouseRegion) SetCursor

func (r *RenderMouseRegion) SetCursor(value services.MouseCursor)

SetCursor changes the cursor and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderMouseRegion.cursor

func (*RenderMouseRegion) SetHitTestBehavior

func (r *RenderMouseRegion) SetHitTestBehavior(value HitTestBehavior)

SetHitTestBehavior changes the behavior (the zero value is opaque) and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderMouseRegion.hitTestBehavior

func (*RenderMouseRegion) SetHoldCursorWhilePressed

func (r *RenderMouseRegion) SetHoldCursorWhilePressed(value bool)

SetHoldCursorWhilePressed changes HoldCursorWhilePressed. A hold that is going on ends with the next press.

Flutter: no counterpart

func (*RenderMouseRegion) SetOnEnter

SetOnEnter changes the enter listener.

Flutter: rendering/proxy_box.dart RenderMouseRegion.onEnter

func (*RenderMouseRegion) SetOnExit

SetOnExit changes the exit listener.

Flutter: rendering/proxy_box.dart RenderMouseRegion.onExit

func (*RenderMouseRegion) SetOnHover

SetOnHover changes the hover listener.

Flutter: rendering/proxy_box.dart RenderMouseRegion.onHover

func (*RenderMouseRegion) SetOpaque

func (r *RenderMouseRegion) SetOpaque(value bool)

SetOpaque changes the flag and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderMouseRegion.opaque

func (*RenderMouseRegion) ValidForMouseTracker

func (r *RenderMouseRegion) ValidForMouseTracker() bool

ValidForMouseTracker is false for a detached region.

Flutter: rendering/proxy_box.dart RenderMouseRegion.validForMouseTracker

type RenderMouseRegionOpts

type RenderMouseRegionOpts struct {
	// OnEnter is called when a mouse pointer enters the region.
	OnEnter services.PointerEnterEventListener
	// OnHover is called when a mouse pointer moves over the region.
	OnHover services.PointerHoverEventListener
	// OnExit is called when a mouse pointer leaves the region.
	OnExit services.PointerExitEventListener
	// Cursor defaults to services.MouseCursorDefer.
	Cursor services.MouseCursor
	// ValidForMouseTracker defaults to true.
	ValidForMouseTracker foundation.Opt[bool]
	// Opaque defaults to true.
	Opaque foundation.Opt[bool]
	// HitTestBehavior defaults to HitTestBehaviorOpaque.
	HitTestBehavior HitTestBehavior
	// HoldCursorWhilePressed keeps this region as the source of the cursor of a mouse
	// that was pressed inside it, until the button is released.
	HoldCursorWhilePressed bool
}

RenderMouseRegionOpts are the optional parameters of NewRenderMouseRegion.

Flutter: rendering/proxy_box.dart RenderMouseRegion.new

type RenderObject

type RenderObject interface {
	foundation.DiagnosticableTree
	gestures.HitTestTarget

	// AsRenderObject returns the RenderObjectBase that the object embeds.
	AsRenderObject() *RenderObjectBase

	// SetupParentData gives the child the kind of parent data this object
	// needs.
	//
	// Flutter: rendering/object.dart RenderObject.setupParentData
	SetupParentData(child RenderObject)
	// VisitChildren calls the visitor with each child.
	//
	// Flutter: rendering/object.dart RenderObject.visitChildren
	VisitChildren(visitor RenderObjectVisitor)
	// Attach attaches the object and its children to the owner.
	//
	// Flutter: rendering/object.dart RenderObject.attach
	Attach(owner *PipelineOwner)
	// Detach detaches the object and its children from the owner.
	//
	// Flutter: rendering/object.dart RenderObject.detach
	Detach()
	// RedepthChildren updates the depth of the children.
	//
	// Flutter: rendering/object.dart RenderObject.redepthChildren
	RedepthChildren()
	// Dispose releases the object's resources.
	//
	// Flutter: rendering/object.dart RenderObject.dispose
	Dispose()
	// MarkNeedsLayout marks the object as needing layout.
	//
	// Flutter: rendering/object.dart RenderObject.markNeedsLayout
	MarkNeedsLayout()
	// SizedByParent says that the size depends only on the constraints, so
	// PerformResize sets it and PerformLayout only lays out the children.
	//
	// Flutter: rendering/object.dart RenderObject.sizedByParent
	SizedByParent() bool
	// PerformResize sets the size from the constraints, for an object that is
	// SizedByParent.
	//
	// Flutter: rendering/object.dart RenderObject.performResize
	PerformResize()
	// PerformLayout lays out the children and, unless SizedByParent, sets the
	// size.
	//
	// Flutter: rendering/object.dart RenderObject.performLayout
	PerformLayout()
	// DebugAssertDoesMeetConstraints panics in debug builds if the geometry
	// does not satisfy the constraints.
	//
	// Flutter: rendering/object.dart RenderObject.debugAssertDoesMeetConstraints
	DebugAssertDoesMeetConstraints()
	// DebugResetSize sets the size again, to check it against the new constraints.
	//
	// Flutter: rendering/object.dart RenderObject.debugResetSize
	DebugResetSize()
	// IsRepaintBoundary says whether the object paints into its own layer.
	//
	// Flutter: rendering/object.dart RenderObject.isRepaintBoundary
	IsRepaintBoundary() bool
	// AlwaysNeedsCompositing says whether the object must be composited, even
	// with no repaint boundary below it.
	//
	// Flutter: rendering/object.dart RenderObject.alwaysNeedsCompositing
	AlwaysNeedsCompositing() bool
	// UpdateCompositedLayer creates the layer of a repaint boundary, or updates
	// the old one (and returns it).
	//
	// Flutter: rendering/object.dart RenderObject.updateCompositedLayer
	UpdateCompositedLayer(oldLayer OffsetLayerLike) OffsetLayerLike
	// DebugRegisterRepaintBoundaryPaint is called when a repaint boundary
	// paints, for the benefit of tests.
	//
	// Flutter: rendering/object.dart RenderObject.debugRegisterRepaintBoundaryPaint
	DebugRegisterRepaintBoundaryPaint(includedParent, includedChild bool)
	// Paint paints the object at the offset.
	//
	// Flutter: rendering/object.dart RenderObject.paint
	Paint(context *PaintingContext, offset ui.Offset)
	// DebugPaint paints the debug overlays.
	//
	// Flutter: rendering/object.dart RenderObject.debugPaint
	DebugPaint(context *PaintingContext, offset ui.Offset)
	// PaintBounds are the bounds that the object paints in, in its own
	// coordinates.
	//
	// Flutter: rendering/object.dart RenderObject.paintBounds
	PaintBounds() ui.Rect
	// ApplyPaintTransform applies to the transform the transformation that
	// paints the child.
	//
	// Flutter: rendering/object.dart RenderObject.applyPaintTransform
	ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)
	// PaintsChild says whether the child is painted.
	//
	// Flutter: rendering/object.dart RenderObject.paintsChild
	PaintsChild(child RenderObject) bool
	// DescribeApproximatePaintClip is the area that the child is clipped to.
	//
	// Flutter: rendering/object.dart RenderObject.describeApproximatePaintClip
	DescribeApproximatePaintClip(child RenderObject) foundation.Opt[ui.Rect]
	// SemanticBounds are the bounds of the object for semantics.
	//
	// Flutter: rendering/object.dart RenderObject.semanticBounds
	SemanticBounds() ui.Rect
	// DebugOptions are the debug flags of the owner.
	DebugOptions() *DebugOptions

	// Layout lays out the object for the constraints.
	//
	// Flutter: rendering/object.dart RenderObject.layout
	Layout(constraints Constraints, opts ...LayoutOpts)
	// MarkNeedsPaint marks the object as needing paint.
	//
	// Flutter: rendering/object.dart RenderObject.markNeedsPaint
	MarkNeedsPaint()
	// MarkParentNeedsLayout marks the object and its parent as needing layout.
	//
	// Flutter: rendering/object.dart RenderObject.markParentNeedsLayout
	MarkParentNeedsLayout()
	// MarkNeedsCompositingBitsUpdate marks the compositing bits as dirty.
	//
	// Flutter: rendering/object.dart RenderObject.markNeedsCompositingBitsUpdate
	MarkNeedsCompositingBitsUpdate()
	// Parent is the parent render object, or nil.
	//
	// Flutter: rendering/object.dart RenderObject.parent
	Parent() RenderObject
	// DebugLayoutParent is the parent in the layout protocol (debug builds);
	// it differs from Parent for a render object that is laid out by another
	// one than the one it is a child of.
	//
	// Flutter: rendering/object.dart RenderObject.debugLayoutParent
	DebugLayoutParent() RenderObject
	// ParentData is the data the parent stores on the object.
	//
	// Flutter: rendering/object.dart RenderObject.parentData
	ParentData() ParentData
	// Owner is the pipeline owner, or nil.
	//
	// Flutter: rendering/object.dart RenderObject.owner
	Owner() *PipelineOwner
	// Attached reports whether the object has an owner.
	//
	// Flutter: rendering/object.dart RenderObject.attached
	Attached() bool
	// Depth is the distance from the root.
	//
	// Flutter: rendering/object.dart RenderObject.depth
	Depth() int
	// DebugNeedsLayout reports whether the object needs layout (debug builds).
	//
	// Flutter: rendering/object.dart RenderObject.debugNeedsLayout
	DebugNeedsLayout() bool
	// NeedsCompositing reports whether the object needs compositing.
	//
	// Flutter: rendering/object.dart RenderObject.needsCompositing
	NeedsCompositing() bool
	// GetTransformTo is the transform to the target's coordinates.
	//
	// Flutter: rendering/object.dart RenderObject.getTransformTo
	GetTransformTo(target RenderObject) *ui.Matrix4
	// DebugDoingThisLayoutWithCallback reports whether a layout callback runs.
	//
	// Flutter: rendering/object.dart RenderObject.debugDoingThisLayoutWithCallback
	DebugDoingThisLayoutWithCallback() bool

	// MarkNeedsSemanticsUpdate marks the semantics of the object as changed.
	//
	// Flutter: rendering/object.dart RenderObject.markNeedsSemanticsUpdate
	MarkNeedsSemanticsUpdate()
	// DescribeSemanticsConfiguration fills the configuration with the
	// semantics of the object.
	//
	// Flutter: rendering/object.dart RenderObject.describeSemanticsConfiguration
	DescribeSemanticsConfiguration(config *semantics.SemanticsConfiguration)
	// VisitChildrenForSemantics visits the children that take part in
	// semantics, in paint order.
	//
	// Flutter: rendering/object.dart RenderObject.visitChildrenForSemantics
	VisitChildrenForSemantics(visitor RenderObjectVisitor)
	// AssembleSemanticsNode gives the node its configuration and children.
	//
	// Flutter: rendering/object.dart RenderObject.assembleSemanticsNode
	AssembleSemanticsNode(node *semantics.SemanticsNode, config *semantics.SemanticsConfiguration, children []*semantics.SemanticsNode)
	// DescribeSemanticsClip is the clip of the semantics of the child.
	//
	// Flutter: rendering/object.dart RenderObject.describeSemanticsClip
	DescribeSemanticsClip(child RenderObject) foundation.Opt[ui.Rect]
	// ClearSemantics throws away the semantics of the object and its subtree.
	//
	// Flutter: rendering/object.dart RenderObject.clearSemantics
	ClearSemantics()
	// ShowOnScreen asks the ancestors to scroll the object into view.
	//
	// Flutter: rendering/object.dart RenderObject.showOnScreen
	ShowOnScreen(opts ShowOnScreenOpts)
	// SendSemanticsEvent sends the event about the object.
	//
	// Flutter: rendering/object.dart RenderObject.sendSemanticsEvent
	SendSemanticsEvent(event semantics.SemanticsEvent)
}

RenderObject is a node of the render tree: it lays out, paints and hit tests a part of the UI. A render object type embeds RenderBox (or another base struct of this package) and calls the matching Init function, which gives the base the pointer to the outer object that its virtual calls go through (SPEC §12.5). The methods below are the ones that are overridden or called across types; RenderObjectBase gives them default implementations.

Flutter: rendering/object.dart RenderObject

type RenderObjectBase

type RenderObjectBase struct {

	// DebugCreator is the object that created this render object, such as the
	// widget's element, for debug output.
	//
	// Flutter: rendering/object.dart RenderObject.debugCreator
	DebugCreator any
	// contains filtered or unexported fields
}

RenderObjectBase is the state and the default behavior that every render object embeds (through RenderBox).

Flutter: rendering/object.dart RenderObject

func (*RenderObjectBase) AdoptChild

func (b *RenderObjectBase) AdoptChild(child RenderObject)

AdoptChild makes the object the parent of the child: it sets up the parent data and marks the object for layout, compositing bits and semantics. Call it when a child is added. In debug builds it panics with RenderObjectCycle when the child is an ancestor, and with RenderObjectHasParent when it has a parent.

Flutter: rendering/object.dart RenderObject.adoptChild

func (*RenderObjectBase) AlwaysNeedsCompositing

func (b *RenderObjectBase) AlwaysNeedsCompositing() bool

AlwaysNeedsCompositing is false.

Flutter: rendering/object.dart RenderObject.alwaysNeedsCompositing

func (*RenderObjectBase) ApplyPaintTransform

func (b *RenderObjectBase) ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)

ApplyPaintTransform does nothing: the child is painted without a transform.

Flutter: rendering/object.dart RenderObject.applyPaintTransform

func (*RenderObjectBase) AsRenderObject

func (b *RenderObjectBase) AsRenderObject() *RenderObjectBase

AsRenderObject returns the base itself.

func (*RenderObjectBase) AssembleSemanticsNode

func (b *RenderObjectBase) AssembleSemanticsNode(node *semantics.SemanticsNode, config *semantics.SemanticsConfiguration, children []*semantics.SemanticsNode)

AssembleSemanticsNode gives the node its configuration and its children. An object that adds nodes of its own overrides it.

Flutter: rendering/object.dart RenderObject.assembleSemanticsNode

func (*RenderObjectBase) Attach

func (b *RenderObjectBase) Attach(owner *PipelineOwner)

Attach attaches the object to the owner, and its children through the child model. Dirty flags that were set while detached are set again, so that the new owner hears of them.

Flutter: rendering/object.dart RenderObject.attach

func (*RenderObjectBase) Attached

func (b *RenderObjectBase) Attached() bool

Attached reports whether the object has an owner.

Flutter: rendering/object.dart RenderObject.attached

func (*RenderObjectBase) ClearSemantics

func (b *RenderObjectBase) ClearSemantics()

ClearSemantics throws away the semantics of the object and of its subtree.

Flutter: rendering/object.dart RenderObject.clearSemantics

func (*RenderObjectBase) Constraints

func (b *RenderObjectBase) Constraints() Constraints

Constraints are the constraints that the parent gave at the last layout. It panics with RenderObjectNoConstraints before the first layout.

Flutter: rendering/object.dart RenderObject.constraints

func (*RenderObjectBase) DebugActiveLayout

func (b *RenderObjectBase) DebugActiveLayout() RenderObject

DebugActiveLayout is the render object whose layout is running, in the tree of this object (debug builds).

Flutter: rendering/object.dart RenderObject.debugActiveLayout

func (*RenderObjectBase) DebugActivePaint

func (b *RenderObjectBase) DebugActivePaint() RenderObject

DebugActivePaint is the render object that is painting, in the tree of this object (debug builds).

Flutter: rendering/object.dart RenderObject.debugActivePaint

func (*RenderObjectBase) DebugAssertDoesMeetConstraints

func (b *RenderObjectBase) DebugAssertDoesMeetConstraints()

DebugAssertDoesMeetConstraints does nothing; a box checks its size.

Flutter: rendering/object.dart RenderObject.debugAssertDoesMeetConstraints

func (*RenderObjectBase) DebugCanParentUseSize

func (b *RenderObjectBase) DebugCanParentUseSize() bool

DebugCanParentUseSize reports whether the parent said it uses the size (debug builds).

Flutter: rendering/object.dart RenderObject.debugCanParentUseSize

func (*RenderObjectBase) DebugDescribeChildren

func (b *RenderObjectBase) DebugDescribeChildren() []foundation.DiagnosticsNode

DebugDescribeChildren describes the children through the child model.

Flutter: rendering/object.dart RenderObject.debugDescribeChildren

func (*RenderObjectBase) DebugDisposed

func (b *RenderObjectBase) DebugDisposed() bool

DebugDisposed reports whether the object was disposed (debug builds only).

Flutter: rendering/object.dart RenderObject.debugDisposed

func (*RenderObjectBase) DebugDoingThisLayout

func (b *RenderObjectBase) DebugDoingThisLayout() bool

DebugDoingThisLayout reports whether PerformLayout is running (debug builds).

Flutter: rendering/object.dart RenderObject.debugDoingThisLayout

func (*RenderObjectBase) DebugDoingThisLayoutWithCallback

func (b *RenderObjectBase) DebugDoingThisLayoutWithCallback() bool

DebugDoingThisLayoutWithCallback reports whether the object runs a layout callback.

Flutter: rendering/object.dart RenderObject.debugDoingThisLayoutWithCallback

func (*RenderObjectBase) DebugDoingThisPaint

func (b *RenderObjectBase) DebugDoingThisPaint() bool

DebugDoingThisPaint reports whether Paint is running (debug builds).

Flutter: rendering/object.dart RenderObject.debugDoingThisPaint

func (*RenderObjectBase) DebugDoingThisResize

func (b *RenderObjectBase) DebugDoingThisResize() bool

DebugDoingThisResize reports whether PerformResize is running (debug builds).

Flutter: rendering/object.dart RenderObject.debugDoingThisResize

func (*RenderObjectBase) DebugFillProperties

func (b *RenderObjectBase) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the compositing flag, the creator, the parent data, the constraints and the layer.

Flutter: rendering/object.dart RenderObject.debugFillProperties

func (*RenderObjectBase) DebugLayer

func (b *RenderObjectBase) DebugLayer() ContainerLayerLike

DebugLayer is the layer of the object (debug builds only; nil otherwise).

Flutter: rendering/object.dart RenderObject.debugLayer

func (*RenderObjectBase) DebugLayoutParent

func (b *RenderObjectBase) DebugLayoutParent() RenderObject

DebugLayoutParent is the parent in the layout protocol (debug builds).

Flutter: rendering/object.dart RenderObject.debugLayoutParent

func (*RenderObjectBase) DebugNeedsCompositedLayerUpdate

func (b *RenderObjectBase) DebugNeedsCompositedLayerUpdate() bool

DebugNeedsCompositedLayerUpdate reports whether the layer of the repaint boundary needs to be updated (debug builds only).

Flutter: rendering/object.dart RenderObject.debugNeedsCompositedLayerUpdate

func (*RenderObjectBase) DebugNeedsLayout

func (b *RenderObjectBase) DebugNeedsLayout() bool

DebugNeedsLayout reports whether the object needs layout (debug builds only).

Flutter: rendering/object.dart RenderObject.debugNeedsLayout

func (*RenderObjectBase) DebugNeedsPaint

func (b *RenderObjectBase) DebugNeedsPaint() bool

DebugNeedsPaint reports whether the object needs paint (debug builds only).

Flutter: rendering/object.dart RenderObject.debugNeedsPaint

func (*RenderObjectBase) DebugNeedsSemanticsUpdate

func (b *RenderObjectBase) DebugNeedsSemanticsUpdate() bool

DebugNeedsSemanticsUpdate reports whether the semantics need an update (debug builds only).

Flutter: rendering/object.dart RenderObject.debugNeedsSemanticsUpdate

func (*RenderObjectBase) DebugOptions

func (b *RenderObjectBase) DebugOptions() *DebugOptions

DebugOptions are the debug flags of the owner; they are all off while the object has no owner.

Flutter: rendering/debug.dart

func (*RenderObjectBase) DebugPaint

func (b *RenderObjectBase) DebugPaint(*PaintingContext, ui.Offset)

DebugPaint does nothing; a box paints the debug overlays.

Flutter: rendering/object.dart RenderObject.debugPaint

func (*RenderObjectBase) DebugRegisterRepaintBoundaryPaint

func (b *RenderObjectBase) DebugRegisterRepaintBoundaryPaint(includedParent, includedChild bool)

DebugRegisterRepaintBoundaryPaint does nothing.

Flutter: rendering/object.dart RenderObject.debugRegisterRepaintBoundaryPaint

func (*RenderObjectBase) DebugResetSize

func (b *RenderObjectBase) DebugResetSize()

DebugResetSize does nothing; a box sets its size again to check it.

Flutter: rendering/object.dart RenderObject.debugResetSize

func (*RenderObjectBase) DebugSemantics

func (b *RenderObjectBase) DebugSemantics() *semantics.SemanticsNode

DebugSemantics is the semantics node of the object, if it formed one (debug builds only).

Flutter: rendering/object.dart RenderObject.debugSemantics

func (*RenderObjectBase) Depth

func (b *RenderObjectBase) Depth() int

Depth is the distance from the root of the tree; a parent has a smaller depth.

Flutter: rendering/object.dart RenderObject.depth

func (*RenderObjectBase) DescribeApproximatePaintClip

func (b *RenderObjectBase) DescribeApproximatePaintClip(RenderObject) foundation.Opt[ui.Rect]

DescribeApproximatePaintClip is nothing: the child is not clipped.

Flutter: rendering/object.dart RenderObject.describeApproximatePaintClip

func (*RenderObjectBase) DescribeForError

DescribeForError describes the object as a node, for an error's metadata.

Flutter: rendering/object.dart RenderObject.describeForError

func (*RenderObjectBase) DescribeSemanticsClip

func (b *RenderObjectBase) DescribeSemanticsClip(RenderObject) foundation.Opt[ui.Rect]

DescribeSemanticsClip is the clip that the object applies to the semantics of a child, in its own coordinates, when that differs from the paint clip; None if it is the same. A viewport overrides it to include children that are just off screen.

Flutter: rendering/object.dart RenderObject.describeSemanticsClip

func (*RenderObjectBase) DescribeSemanticsConfiguration

func (b *RenderObjectBase) DescribeSemanticsConfiguration(*semantics.SemanticsConfiguration)

DescribeSemanticsConfiguration fills the configuration with the semantics of the object. The default adds nothing; an object that has semantics of its own overrides it.

Flutter: rendering/object.dart RenderObject.describeSemanticsConfiguration

func (*RenderObjectBase) Detach

func (b *RenderObjectBase) Detach()

Detach clears the owner of the object and of its children.

Flutter: rendering/object.dart RenderObject.detach

func (*RenderObjectBase) Dispose

func (b *RenderObjectBase) Dispose()

Dispose lets go of the layer. A disposed object must not be used again; a second call panics with RenderObjectDisposedTwice in debug builds.

Flutter: rendering/object.dart RenderObject.dispose

func (*RenderObjectBase) DropChild

func (b *RenderObjectBase) DropChild(child RenderObject)

DropChild removes the child from the object: it detaches the parent data and marks the object for layout, compositing bits and semantics. Call it when a child is removed.

Flutter: rendering/object.dart RenderObject.dropChild

func (*RenderObjectBase) GetTransformTo

func (b *RenderObjectBase) GetTransformTo(target RenderObject) *ui.Matrix4

GetTransformTo returns the transform from the coordinates of this object to those of the target, an ancestor or any object in the same tree; nil means the root. The object must be attached. If the transform can not be inverted it returns the zero matrix.

Flutter: rendering/object.dart RenderObject.getTransformTo

func (*RenderObjectBase) HandleEvent

HandleEvent does nothing; a render object that reacts to pointer events overrides it.

Flutter: rendering/object.dart RenderObject.handleEvent

func (*RenderObjectBase) InvokeLayoutCallback

func (b *RenderObjectBase) InvokeLayoutCallback(callback LayoutCallback)

InvokeLayoutCallback runs the callback with the constraints, and lets it change the subtree of the object, which layout forbids otherwise. Call it from PerformLayout.

Flutter: rendering/object.dart RenderObject.invokeLayoutCallback

func (*RenderObjectBase) IsRepaintBoundary

func (b *RenderObjectBase) IsRepaintBoundary() bool

IsRepaintBoundary is false: the object paints into its parent's layer.

Flutter: rendering/object.dart RenderObject.isRepaintBoundary

func (*RenderObjectBase) Layer

Layer is the layer of the object: that of a repaint boundary, or the one that a non-boundary object keeps with SetLayer.

Flutter: rendering/object.dart RenderObject.layer

func (*RenderObjectBase) Layout

func (b *RenderObjectBase) Layout(constraints Constraints, opts ...LayoutOpts)

Layout computes the layout of the object for the constraints. The parent calls it on each child from its own PerformLayout. Pass ParentUsesSize when the parent reads the size of the child.

Layout is a recovery point (SPEC §14.2): a panic in PerformResize or PerformLayout is reported through the debug options' ReportError with the tag LayoutPanicked, and the layout goes on.

Flutter: rendering/object.dart RenderObject.layout

func (*RenderObjectBase) MarkNeedsCompositedLayerUpdate

func (b *RenderObjectBase) MarkNeedsCompositedLayerUpdate()

MarkNeedsCompositedLayerUpdate marks a repaint boundary as needing only an update of its layer's properties, not a repaint.

Flutter: rendering/object.dart RenderObject.markNeedsCompositedLayerUpdate

func (*RenderObjectBase) MarkNeedsCompositingBitsUpdate

func (b *RenderObjectBase) MarkNeedsCompositingBitsUpdate()

MarkNeedsCompositingBitsUpdate marks the object so that the next flush recomputes whether it needs compositing.

Flutter: rendering/object.dart RenderObject.markNeedsCompositingBitsUpdate

func (*RenderObjectBase) MarkNeedsLayout

func (b *RenderObjectBase) MarkNeedsLayout()

MarkNeedsLayout marks the object as needing layout. If it is a relayout boundary it asks its owner to lay it out; otherwise it marks its parent too.

Flutter: rendering/object.dart RenderObject.markNeedsLayout

func (*RenderObjectBase) MarkNeedsLayoutForSizedByParentChange

func (b *RenderObjectBase) MarkNeedsLayoutForSizedByParentChange()

MarkNeedsLayoutForSizedByParentChange marks the object and its parent for layout; call it when SizedByParent changes.

Flutter: rendering/object.dart RenderObject.markNeedsLayoutForSizedByParentChange

func (*RenderObjectBase) MarkNeedsPaint

func (b *RenderObjectBase) MarkNeedsPaint()

MarkNeedsPaint marks the object as needing paint: the nearest repaint boundary above it (or itself) is added to the owner's list. A debug build panics with MarkNeedsPaintDuringPaint if the owner is painting.

Flutter: rendering/object.dart RenderObject.markNeedsPaint

func (*RenderObjectBase) MarkNeedsPaintQuietly

func (b *RenderObjectBase) MarkNeedsPaintQuietly()

MarkNeedsPaintQuietly marks the object as needing paint like MarkNeedsPaint, but does not ask for a frame: the next frame that something else asks for paints it. It is for what shows data that arrives between frames and must not keep the app drawing (the performance overlay).

Flutter: no counterpart

func (*RenderObjectBase) MarkNeedsSemanticsUpdate

func (b *RenderObjectBase) MarkNeedsSemanticsUpdate()

MarkNeedsSemanticsUpdate marks the semantics of the object as changed: call it when what DescribeSemanticsConfiguration reports changes. It does nothing while the object has no owner or its owner has no semantics.

Flutter: rendering/object.dart RenderObject.markNeedsSemanticsUpdate

func (*RenderObjectBase) MarkParentNeedsLayout

func (b *RenderObjectBase) MarkParentNeedsLayout()

MarkParentNeedsLayout marks the object and its parent as needing layout.

Flutter: rendering/object.dart RenderObject.markParentNeedsLayout

func (*RenderObjectBase) NeedsCompositing

func (b *RenderObjectBase) NeedsCompositing() bool

NeedsCompositing reports whether the object or a descendant needs a layer; it panics with RenderObjectCompositingBitsDirty in debug builds if the bit is dirty.

Flutter: rendering/object.dart RenderObject.needsCompositing

func (*RenderObjectBase) Owner

func (b *RenderObjectBase) Owner() *PipelineOwner

Owner is the pipeline owner that the object is attached to, or nil.

Flutter: rendering/object.dart RenderObject.owner

func (*RenderObjectBase) Paint

Paint does nothing: an object with nothing to paint, or only children whose parent paints them.

Flutter: rendering/object.dart RenderObject.paint

func (*RenderObjectBase) PaintBounds

func (b *RenderObjectBase) PaintBounds() ui.Rect

PaintBounds is abstract: it panics with RenderObjectAbstractMethod.

Flutter: rendering/object.dart RenderObject.paintBounds

func (*RenderObjectBase) PaintsChild

func (b *RenderObjectBase) PaintsChild(child RenderObject) bool

PaintsChild is true: the child is painted.

Flutter: rendering/object.dart RenderObject.paintsChild

func (*RenderObjectBase) Parent

func (b *RenderObjectBase) Parent() RenderObject

Parent is the parent render object, or nil for the root.

Flutter: rendering/object.dart RenderObject.parent

func (*RenderObjectBase) ParentData

func (b *RenderObjectBase) ParentData() ParentData

ParentData is the data that the parent stores on this object.

Flutter: rendering/object.dart RenderObject.parentData

func (*RenderObjectBase) PerformLayout

func (b *RenderObjectBase) PerformLayout()

PerformLayout is abstract: it panics with RenderObjectAbstractMethod.

Flutter: rendering/object.dart RenderObject.performLayout

func (*RenderObjectBase) PerformResize

func (b *RenderObjectBase) PerformResize()

PerformResize is abstract: it panics with RenderObjectAbstractMethod.

Flutter: rendering/object.dart RenderObject.performResize

func (*RenderObjectBase) Reassemble

func (b *RenderObjectBase) Reassemble()

Reassemble marks the object and its subtree as needing layout, compositing bits and paint, for a hot reload.

Flutter: rendering/object.dart RenderObject.reassemble

func (*RenderObjectBase) RedepthChild

func (b *RenderObjectBase) RedepthChild(child RenderObject)

RedepthChild makes the child deeper than this object, if it is not.

Flutter: rendering/object.dart RenderObject.redepthChild

func (*RenderObjectBase) RedepthChildren

func (b *RenderObjectBase) RedepthChildren()

RedepthChildren updates the depth of the children, through the child model.

Flutter: rendering/object.dart RenderObject.redepthChildren

func (*RenderObjectBase) ReplaceRootLayer

func (b *RenderObjectBase) ReplaceRootLayer(rootLayer OffsetLayerLike)

ReplaceRootLayer replaces the layer of the root render object, after the first ScheduleInitialPaint.

Flutter: rendering/object.dart RenderObject.replaceRootLayer

func (*RenderObjectBase) ScheduleInitialLayout

func (b *RenderObjectBase) ScheduleInitialLayout()

ScheduleInitialLayout lays out the root of a tree for the first time, on the next flush. The object must be attached, have no parent, and have never been laid out.

Flutter: rendering/object.dart RenderObject.scheduleInitialLayout

func (*RenderObjectBase) ScheduleInitialPaint

func (b *RenderObjectBase) ScheduleInitialPaint(rootLayer ContainerLayerLike)

ScheduleInitialPaint paints the root of a tree for the first time, into the root layer, on the next flush.

Flutter: rendering/object.dart RenderObject.scheduleInitialPaint

func (*RenderObjectBase) ScheduleInitialSemantics

func (b *RenderObjectBase) ScheduleInitialSemantics()

ScheduleInitialSemantics starts the semantics of a root object: it marks the object as needing a semantics update. The owner calls it when it gets a semantics owner.

Flutter: rendering/object.dart RenderObject.scheduleInitialSemantics

func (*RenderObjectBase) SemanticBounds

func (b *RenderObjectBase) SemanticBounds() ui.Rect

SemanticBounds is abstract: it panics with RenderObjectAbstractMethod.

Flutter: rendering/object.dart RenderObject.semanticBounds

func (*RenderObjectBase) SendSemanticsEvent

func (b *RenderObjectBase) SendSemanticsEvent(event semantics.SemanticsEvent)

SendSemanticsEvent sends the event about this object: to its semantics node, or to the nearest ancestor with one.

Flutter: rendering/object.dart RenderObject.sendSemanticsEvent

func (*RenderObjectBase) SetLayer

func (b *RenderObjectBase) SetLayer(l ContainerLayerLike)

SetLayer sets the layer of an object that is not a repaint boundary. Pass nil to let it go. A repaint boundary panics with RenderObjectBoundaryLayer in debug builds: the framework gives it its layer.

Flutter: rendering/object.dart RenderObject.layer

func (*RenderObjectBase) SetParentData

func (b *RenderObjectBase) SetParentData(d ParentData)

SetParentData replaces the parent data. A parent calls it from SetupParentData.

Flutter: rendering/object.dart RenderObject.parentData

func (*RenderObjectBase) SetupParentData

func (b *RenderObjectBase) SetupParentData(child RenderObject)

SetupParentData gives the child a plain ParentData if it has none.

Flutter: rendering/object.dart RenderObject.setupParentData

func (*RenderObjectBase) ShowOnScreen

func (b *RenderObjectBase) ShowOnScreen(opts ShowOnScreenOpts)

ShowOnScreen scrolls the object into view: it asks its parent, which can be a viewport. Without a parent that scrolls it does nothing.

Flutter: rendering/object.dart RenderObject.showOnScreen

func (*RenderObjectBase) SizedByParent

func (b *RenderObjectBase) SizedByParent() bool

SizedByParent is false: the object computes its size in PerformLayout.

Flutter: rendering/object.dart RenderObject.sizedByParent

func (*RenderObjectBase) String

func (b *RenderObjectBase) String() string

String is ToStringShort.

Flutter: rendering/object.dart RenderObject.toString

func (*RenderObjectBase) ToStringDeep

func (b *RenderObjectBase) ToStringDeep(opts ...foundation.ToStringDeepOpts) string

ToStringDeep dumps the object and its descendants, with the debug-only layout state cleared, as Flutter does.

Flutter: rendering/object.dart RenderObject.toStringDeep

func (*RenderObjectBase) ToStringShort

func (b *RenderObjectBase) ToStringShort() string

ToStringShort describes the object and its state: "NEEDS-LAYOUT", "NEEDS-PAINT", its relayout boundary distance, and so on.

Flutter: rendering/object.dart RenderObject.toStringShort

func (*RenderObjectBase) UpdateCompositedLayer

func (b *RenderObjectBase) UpdateCompositedLayer(oldLayer OffsetLayerLike) OffsetLayerLike

UpdateCompositedLayer returns the old layer, or a new OffsetLayer. An object that is a repaint boundary overrides it to set properties on its layer.

Flutter: rendering/object.dart RenderObject.updateCompositedLayer

func (*RenderObjectBase) VisitChildren

func (b *RenderObjectBase) VisitChildren(visitor RenderObjectVisitor)

VisitChildren calls the visitor with each child, through the child model.

Flutter: rendering/object.dart RenderObject.visitChildren

func (*RenderObjectBase) VisitChildrenForSemantics

func (b *RenderObjectBase) VisitChildrenForSemantics(visitor RenderObjectVisitor)

VisitChildrenForSemantics visits the children that take part in semantics, in paint order: the children of VisitChildren, unless an object hides some.

Flutter: rendering/object.dart RenderObject.visitChildrenForSemantics

type RenderObjectVisitor

type RenderObjectVisitor func(child RenderObject)

RenderObjectVisitor is called with a render object, such as each child.

Flutter: rendering/object.dart RenderObjectVisitor

type RenderObjectWithChild

type RenderObjectWithChild[C RenderObject] struct {
	// contains filtered or unexported fields
}

RenderObjectWithChild holds one child of type C for a render object: embed it and call InitRenderObjectWithChild in the constructor. It adopts and drops the child, and takes part in attach, detach, redepth, visiting and diagnostics.

Flutter: rendering/object.dart RenderObjectWithChildMixin

func (*RenderObjectWithChild[C]) Child

func (m *RenderObjectWithChild[C]) Child() C

Child is the child, or the zero value (nil).

Flutter: rendering/object.dart RenderObjectWithChildMixin.child

func (*RenderObjectWithChild[C]) ChildObject

func (m *RenderObjectWithChild[C]) ChildObject() RenderObject

ChildObject is the child as a RenderObject, or nil. The widgets library uses it to reach the child of a render object without knowing its type.

Flutter: no counterpart (RenderObjectWithChildMixin<RenderObject>.child)

func (*RenderObjectWithChild[C]) SetChild

func (m *RenderObjectWithChild[C]) SetChild(value C)

SetChild replaces the child: the old one is dropped, the new one adopted. Pass the zero value (nil) for none.

Flutter: rendering/object.dart RenderObjectWithChildMixin.child

func (*RenderObjectWithChild[C]) SetChildObject

func (m *RenderObjectWithChild[C]) SetChildObject(child RenderObject)

SetChildObject replaces the child with a RenderObject that must be a C, or nil for none. It panics with the tag RenderChildTypeMismatch in debug builds when the child is of the wrong type.

Flutter: widgets/framework.dart SingleChildRenderObjectElement.insertRenderObjectChild

type RenderOffstage

type RenderOffstage struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderOffstage lays out its child as if it was in the tree, but does not paint it and does not let it hit test.

Flutter: rendering/proxy_box.dart RenderOffstage

func NewRenderOffstage

func NewRenderOffstage(child Box, opts ...RenderOffstageOpts) *RenderOffstage

NewRenderOffstage creates the box.

Flutter: rendering/proxy_box.dart RenderOffstage.new

func (*RenderOffstage) ComputeDistanceToActualBaseline

func (r *RenderOffstage) ComputeDistanceToActualBaseline(baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDistanceToActualBaseline is none when offstage.

Flutter: rendering/proxy_box.dart RenderOffstage.computeDistanceToActualBaseline

func (*RenderOffstage) ComputeDryBaseline

func (r *RenderOffstage) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is none when offstage.

Flutter: rendering/proxy_box.dart RenderOffstage.computeDryBaseline

func (*RenderOffstage) ComputeDryLayout

func (r *RenderOffstage) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the smallest size when offstage.

Flutter: rendering/proxy_box.dart RenderOffstage.computeDryLayout

func (*RenderOffstage) ComputeMaxIntrinsicHeight

func (r *RenderOffstage) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is 0 when offstage.

Flutter: rendering/proxy_box.dart RenderOffstage.computeMaxIntrinsicHeight

func (*RenderOffstage) ComputeMaxIntrinsicWidth

func (r *RenderOffstage) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is 0 when offstage.

Flutter: rendering/proxy_box.dart RenderOffstage.computeMaxIntrinsicWidth

func (*RenderOffstage) ComputeMinIntrinsicHeight

func (r *RenderOffstage) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is 0 when offstage.

Flutter: rendering/proxy_box.dart RenderOffstage.computeMinIntrinsicHeight

func (*RenderOffstage) ComputeMinIntrinsicWidth

func (r *RenderOffstage) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is 0 when offstage.

Flutter: rendering/proxy_box.dart RenderOffstage.computeMinIntrinsicWidth

func (*RenderOffstage) DebugDescribeChildren

func (r *RenderOffstage) DebugDescribeChildren() []foundation.DiagnosticsNode

DebugDescribeChildren describes the child in the offstage style when offstage.

Flutter: rendering/proxy_box.dart RenderOffstage.debugDescribeChildren

func (*RenderOffstage) DebugFillProperties

func (r *RenderOffstage) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the flag.

Flutter: rendering/proxy_box.dart RenderOffstage.debugFillProperties

func (*RenderOffstage) HitTest

func (r *RenderOffstage) HitTest(result *BoxHitTestResult, position ui.Offset) bool

HitTest is false when offstage.

Flutter: rendering/proxy_box.dart RenderOffstage.hitTest

func (*RenderOffstage) Offstage

func (r *RenderOffstage) Offstage() bool

Offstage is whether the child is hidden from the rest of the tree.

Flutter: rendering/proxy_box.dart RenderOffstage.offstage

func (*RenderOffstage) Paint

func (r *RenderOffstage) Paint(context *PaintingContext, offset ui.Offset)

Paint paints nothing when offstage.

Flutter: rendering/proxy_box.dart RenderOffstage.paint

func (*RenderOffstage) PaintsChild

func (r *RenderOffstage) PaintsChild(child RenderObject) bool

PaintsChild is false when offstage.

Flutter: rendering/proxy_box.dart RenderOffstage.paintsChild

func (*RenderOffstage) PerformLayout

func (r *RenderOffstage) PerformLayout()

PerformLayout lays the child out with the constraints even when offstage.

Flutter: rendering/proxy_box.dart RenderOffstage.performLayout

func (*RenderOffstage) PerformResize

func (r *RenderOffstage) PerformResize()

PerformResize takes the smallest size; only an offstage box is sized by its parent.

Flutter: rendering/proxy_box.dart RenderOffstage.performResize

func (*RenderOffstage) SetOffstage

func (r *RenderOffstage) SetOffstage(value bool)

SetOffstage changes the flag; the box is sized by its parent when offstage.

Flutter: rendering/proxy_box.dart RenderOffstage.offstage

func (*RenderOffstage) SizedByParent

func (r *RenderOffstage) SizedByParent() bool

SizedByParent is true when offstage.

Flutter: rendering/proxy_box.dart RenderOffstage.sizedByParent

func (*RenderOffstage) VisitChildrenForSemantics

func (r *RenderOffstage) VisitChildrenForSemantics(visitor RenderObjectVisitor)

VisitChildrenForSemantics visits no child when offstage.

Flutter: rendering/proxy_box.dart RenderOffstage.visitChildrenForSemantics

type RenderOffstageOpts

type RenderOffstageOpts struct {
	// Offstage defaults to true.
	Offstage foundation.Opt[bool]
}

RenderOffstageOpts are the optional parameters of NewRenderOffstage.

Flutter: rendering/proxy_box.dart RenderOffstage.new

type RenderOpacity

type RenderOpacity struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderOpacity makes its child partially transparent.

Flutter: rendering/proxy_box.dart RenderOpacity

func NewRenderOpacity

func NewRenderOpacity(child Box, opts ...RenderOpacityOpts) *RenderOpacity

NewRenderOpacity creates the box. An opacity outside 0..1 panics with OpacityOutOfRange in debug builds.

Flutter: rendering/proxy_box.dart RenderOpacity.new

func (*RenderOpacity) AlwaysIncludeSemantics

func (r *RenderOpacity) AlwaysIncludeSemantics() bool

AlwaysIncludeSemantics is whether the semantics of the child are kept when the child is not visible.

Flutter: rendering/proxy_box.dart RenderOpacity.alwaysIncludeSemantics

func (*RenderOpacity) AlwaysNeedsCompositing

func (r *RenderOpacity) AlwaysNeedsCompositing() bool

AlwaysNeedsCompositing is true if there is a child and the opacity is not 0.

Flutter: rendering/proxy_box.dart RenderOpacity.alwaysNeedsCompositing

func (*RenderOpacity) DebugFillProperties

func (r *RenderOpacity) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the opacity and the semantics flag.

Flutter: rendering/proxy_box.dart RenderOpacity.debugFillProperties

func (*RenderOpacity) IsRepaintBoundary

func (r *RenderOpacity) IsRepaintBoundary() bool

IsRepaintBoundary is true when it AlwaysNeedsCompositing.

Flutter: rendering/proxy_box.dart RenderOpacity.isRepaintBoundary

func (*RenderOpacity) Opacity

func (r *RenderOpacity) Opacity() float64

Opacity is the fraction to scale the child's alpha value by.

Flutter: rendering/proxy_box.dart RenderOpacity.opacity

func (*RenderOpacity) Paint

func (r *RenderOpacity) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the child unless it is invisible.

Flutter: rendering/proxy_box.dart RenderOpacity.paint

func (*RenderOpacity) PaintsChild

func (r *RenderOpacity) PaintsChild(child RenderObject) bool

PaintsChild is true if the opacity is not 0.

Flutter: rendering/proxy_box.dart RenderOpacity.paintsChild

func (*RenderOpacity) SetAlwaysIncludeSemantics

func (r *RenderOpacity) SetAlwaysIncludeSemantics(value bool)

SetAlwaysIncludeSemantics changes the flag.

Flutter: rendering/proxy_box.dart RenderOpacity.alwaysIncludeSemantics

func (*RenderOpacity) SetOpacity

func (r *RenderOpacity) SetOpacity(value float64)

SetOpacity changes the opacity; the layer is updated, not repainted.

Flutter: rendering/proxy_box.dart RenderOpacity.opacity

func (*RenderOpacity) UpdateCompositedLayer

func (r *RenderOpacity) UpdateCompositedLayer(oldLayer OffsetLayerLike) OffsetLayerLike

UpdateCompositedLayer sets the alpha of the opacity layer.

Flutter: rendering/proxy_box.dart RenderOpacity.updateCompositedLayer

func (*RenderOpacity) VisitChildrenForSemantics

func (r *RenderOpacity) VisitChildrenForSemantics(visitor RenderObjectVisitor)

VisitChildrenForSemantics visits the child only if it is visible or AlwaysIncludeSemantics.

Flutter: rendering/proxy_box.dart RenderOpacity.visitChildrenForSemantics

type RenderOpacityOpts

type RenderOpacityOpts struct {
	// Opacity defaults to 1.
	Opacity foundation.Opt[float64]
	// AlwaysIncludeSemantics keeps the semantics of the child when it is not
	// visible.
	AlwaysIncludeSemantics bool
}

RenderOpacityOpts are the optional parameters of NewRenderOpacity.

Flutter: rendering/proxy_box.dart RenderOpacity.new

type RenderOverflowBar

type RenderOverflowBar struct {
	RenderBox
	ContainerRenderObject[Box]
	// contains filtered or unexported fields
}

RenderOverflowBar lays out its children in a row with spacing, or, when they do not fit, in a column.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar

func NewRenderOverflowBar

func NewRenderOverflowBar(children []Box, opts ...RenderOverflowBarOpts) *RenderOverflowBar

NewRenderOverflowBar creates the box with the children (nil for none).

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.new

func (*RenderOverflowBar) ComputeDistanceToActualBaseline

func (r *RenderOverflowBar) ComputeDistanceToActualBaseline(baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDistanceToActualBaseline is the highest baseline of the children.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.computeDistanceToActualBaseline

func (*RenderOverflowBar) ComputeDryBaseline

func (r *RenderOverflowBar) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the baseline for the constraints.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.computeDryBaseline

func (*RenderOverflowBar) ComputeDryLayout

func (r *RenderOverflowBar) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size for the constraints.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.computeDryLayout

func (*RenderOverflowBar) ComputeMaxIntrinsicHeight

func (r *RenderOverflowBar) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the same with the maximum intrinsic heights.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.computeMaxIntrinsicHeight

func (*RenderOverflowBar) ComputeMaxIntrinsicWidth

func (r *RenderOverflowBar) ComputeMaxIntrinsicWidth(float64) float64

ComputeMaxIntrinsicWidth is the width of the row of the maximum widths.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.computeMaxIntrinsicWidth

func (*RenderOverflowBar) ComputeMinIntrinsicHeight

func (r *RenderOverflowBar) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the height of the column if the children would overflow, else the tallest child's.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.computeMinIntrinsicHeight

func (*RenderOverflowBar) ComputeMinIntrinsicWidth

func (r *RenderOverflowBar) ComputeMinIntrinsicWidth(float64) float64

ComputeMinIntrinsicWidth is the width of the row of the minimum widths.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.computeMinIntrinsicWidth

func (*RenderOverflowBar) DebugFillProperties

func (r *RenderOverflowBar) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the configuration.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.debugFillProperties

func (*RenderOverflowBar) HitTestChildren

func (r *RenderOverflowBar) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren hit tests the children.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.hitTestChildren

func (*RenderOverflowBar) Paint

func (r *RenderOverflowBar) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the children.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.paint

func (*RenderOverflowBar) PerformLayout

func (r *RenderOverflowBar) PerformLayout()

PerformLayout lays the children out in a row, or in a column when they do not fit.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.performLayout

func (*RenderOverflowBar) SetAlignment

func (r *RenderOverflowBar) SetAlignment(v foundation.Opt[MainAxisAlignment])

SetAlignment changes the alignment and marks the box as needing layout.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.alignment

func (*RenderOverflowBar) SetOverflowAlignment

func (r *RenderOverflowBar) SetOverflowAlignment(v OverflowBarAlignment)

SetOverflowAlignment changes the alignment of the column and marks the box as needing layout.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.overflowAlignment

func (*RenderOverflowBar) SetOverflowDirection

func (r *RenderOverflowBar) SetOverflowDirection(v painting.VerticalDirection)

SetOverflowDirection changes the direction of the column and marks the box as needing layout.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.overflowDirection

func (*RenderOverflowBar) SetOverflowSpacing

func (r *RenderOverflowBar) SetOverflowSpacing(v float64)

SetOverflowSpacing changes the spacing of the column and marks the box as needing layout.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.overflowSpacing

func (*RenderOverflowBar) SetSpacing

func (r *RenderOverflowBar) SetSpacing(v float64)

SetSpacing changes the spacing and marks the box as needing layout.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.spacing

func (*RenderOverflowBar) SetTextDirection

func (r *RenderOverflowBar) SetTextDirection(v ui.TextDirection)

SetTextDirection changes the text direction and marks the box as needing layout.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.textDirection

func (*RenderOverflowBar) SetupParentData

func (r *RenderOverflowBar) SetupParentData(child RenderObject)

SetupParentData gives the child an OverflowBarParentData if it has none.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.setupParentData

func (*RenderOverflowBar) Spacing

func (r *RenderOverflowBar) Spacing() float64

Spacing is the space between the children in the row.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.spacing

type RenderOverflowBarOpts

type RenderOverflowBarOpts struct {
	// Spacing is the space between the children in the row; the default is 0.
	Spacing float64
	// Alignment is how the children are placed in the row; None sizes the row to
	// its children and starts them at the start.
	Alignment foundation.Opt[MainAxisAlignment]
	// OverflowSpacing is the space between the children in the column; the
	// default is 0.
	OverflowSpacing float64
	// OverflowAlignment is how the children align in the column; the default is
	// start.
	OverflowAlignment OverflowBarAlignment
	// OverflowDirection is the direction of the column; the default is down.
	OverflowDirection painting.VerticalDirection
	// TextDirection resolves start and end; the default is left to right.
	TextDirection ui.TextDirection
}

RenderOverflowBarOpts are the optional parameters of NewRenderOverflowBar.

Flutter: widgets/overflow_bar.dart _RenderOverflowBar.new

type RenderPadding

type RenderPadding struct {
	RenderShiftedBox
	// contains filtered or unexported fields
}

RenderPadding insets its child by the given padding.

Flutter: rendering/shifted_box.dart RenderPadding

func NewRenderPadding

func NewRenderPadding(padding painting.EdgeInsetsGeometry, child Box, opts ...RenderPaddingOpts) *RenderPadding

NewRenderPadding creates the box. A negative padding panics with PaddingNegative in debug builds.

Flutter: rendering/shifted_box.dart RenderPadding.new

func (*RenderPadding) ComputeDryBaseline

func (r *RenderPadding) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the child's baseline plus the top padding.

Flutter: rendering/shifted_box.dart RenderPadding.computeDryBaseline

func (*RenderPadding) ComputeDryLayout

func (r *RenderPadding) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size of the child plus the padding.

Flutter: rendering/shifted_box.dart RenderPadding.computeDryLayout

func (*RenderPadding) ComputeMaxIntrinsicHeight

func (r *RenderPadding) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the child's plus the vertical padding.

Flutter: rendering/shifted_box.dart RenderPadding.computeMaxIntrinsicHeight

func (*RenderPadding) ComputeMaxIntrinsicWidth

func (r *RenderPadding) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is the child's plus the horizontal padding.

Flutter: rendering/shifted_box.dart RenderPadding.computeMaxIntrinsicWidth

func (*RenderPadding) ComputeMinIntrinsicHeight

func (r *RenderPadding) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the child's plus the vertical padding.

Flutter: rendering/shifted_box.dart RenderPadding.computeMinIntrinsicHeight

func (*RenderPadding) ComputeMinIntrinsicWidth

func (r *RenderPadding) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is the child's plus the horizontal padding.

Flutter: rendering/shifted_box.dart RenderPadding.computeMinIntrinsicWidth

func (*RenderPadding) DebugFillProperties

func (r *RenderPadding) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the padding and the text direction.

Flutter: rendering/shifted_box.dart RenderPadding.debugFillProperties

func (*RenderPadding) DebugPaintSize

func (r *RenderPadding) DebugPaintSize(context *PaintingContext, offset ui.Offset)

DebugPaintSize also paints the padding.

Flutter: rendering/shifted_box.dart RenderPadding.debugPaintSize

func (*RenderPadding) Padding

Padding is the amount to pad the child in each dimension.

Flutter: rendering/shifted_box.dart RenderPadding.padding

func (*RenderPadding) PerformLayout

func (r *RenderPadding) PerformLayout()

PerformLayout lays the child out in the deflated constraints.

Flutter: rendering/shifted_box.dart RenderPadding.performLayout

func (*RenderPadding) SetPadding

func (r *RenderPadding) SetPadding(value painting.EdgeInsetsGeometry)

SetPadding changes the padding and marks the box as needing layout.

Flutter: rendering/shifted_box.dart RenderPadding.padding

func (*RenderPadding) SetTextDirection

func (r *RenderPadding) SetTextDirection(value ui.TextDirection)

SetTextDirection changes the direction and marks the box as needing layout.

Flutter: rendering/shifted_box.dart RenderPadding.textDirection

func (*RenderPadding) TextDirection

func (r *RenderPadding) TextDirection() ui.TextDirection

TextDirection resolves a directional padding.

Flutter: rendering/shifted_box.dart RenderPadding.textDirection

type RenderPaddingOpts

type RenderPaddingOpts struct {
	// TextDirection resolves a directional padding.
	TextDirection ui.TextDirection
}

RenderPaddingOpts are the optional parameters of NewRenderPadding.

Flutter: rendering/shifted_box.dart RenderPadding.new

type RenderParagraph

type RenderParagraph struct {
	RenderBox
	ContainerRenderObject[Box]
	// contains filtered or unexported fields
}

RenderParagraph displays a paragraph of text, with inline children for the placeholders of its text.

Flutter: rendering/paragraph.dart RenderParagraph

func NewRenderParagraph

func NewRenderParagraph(text painting.InlineSpan, textDirection ui.TextDirection, opts ...RenderParagraphOpts) *RenderParagraph

NewRenderParagraph creates a paragraph for the text; textDirection is required.

Flutter: rendering/paragraph.dart RenderParagraph.new

func (*RenderParagraph) AlwaysNeedsCompositing

func (r *RenderParagraph) AlwaysNeedsCompositing() bool

AlwaysNeedsCompositing is true while the paragraph has selectable fragments.

Flutter: rendering/paragraph.dart RenderParagraph.alwaysNeedsCompositing

func (*RenderParagraph) ApplyPaintTransform

func (r *RenderParagraph) ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)

ApplyPaintTransform translates the transform by the offset of the inline child.

Flutter: rendering/paragraph.dart RenderParagraph.applyPaintTransform

func (*RenderParagraph) AssembleSemanticsNode

func (r *RenderParagraph) AssembleSemanticsNode(node *semantics.SemanticsNode, config *semantics.SemanticsConfiguration, children []*semantics.SemanticsNode)

AssembleSemanticsNode makes a node for each text span that has a recognizer or an identifier, and puts the nodes of the placeholders in order. A node of a span is reused when possible, so the IDs are stable.

Flutter: rendering/paragraph.dart RenderParagraph.assembleSemanticsNode

func (*RenderParagraph) ClearSemantics

func (r *RenderParagraph) ClearSemantics()

ClearSemantics forgets the nodes of the spans too.

Flutter: rendering/paragraph.dart RenderParagraph.clearSemantics

func (*RenderParagraph) ComputeDistanceToActualBaseline

func (r *RenderParagraph) ComputeDistanceToActualBaseline(ui.TextBaseline) foundation.Opt[float64]

ComputeDistanceToActualBaseline is the alphabetic baseline of the first line.

Flutter: rendering/paragraph.dart RenderParagraph.computeDistanceToActualBaseline

func (*RenderParagraph) ComputeDryBaseline

func (r *RenderParagraph) ComputeDryBaseline(constraints BoxConstraints, _ ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the alphabetic baseline of the first line at the constraints.

Flutter: rendering/paragraph.dart RenderParagraph.computeDryBaseline

func (*RenderParagraph) ComputeDryLayout

func (r *RenderParagraph) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size of the text at the constraints.

Flutter: rendering/paragraph.dart RenderParagraph.computeDryLayout

func (*RenderParagraph) ComputeMaxIntrinsicHeight

func (r *RenderParagraph) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the height of the text laid out at the width.

Flutter: rendering/paragraph.dart RenderParagraph.computeMaxIntrinsicHeight

func (*RenderParagraph) ComputeMaxIntrinsicWidth

func (r *RenderParagraph) ComputeMaxIntrinsicWidth(float64) float64

ComputeMaxIntrinsicWidth is the width of the text without wrapping.

Flutter: rendering/paragraph.dart RenderParagraph.computeMaxIntrinsicWidth

func (*RenderParagraph) ComputeMinIntrinsicHeight

func (r *RenderParagraph) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the height of the text laid out at the width.

Flutter: rendering/paragraph.dart RenderParagraph.computeMinIntrinsicHeight

func (*RenderParagraph) ComputeMinIntrinsicWidth

func (r *RenderParagraph) ComputeMinIntrinsicWidth(float64) float64

ComputeMinIntrinsicWidth is the width of the narrowest layout of the text.

Flutter: rendering/paragraph.dart RenderParagraph.computeMinIntrinsicWidth

func (*RenderParagraph) DebugDescribeChildren

func (r *RenderParagraph) DebugDescribeChildren() []foundation.DiagnosticsNode

DebugDescribeChildren describes the text.

Flutter: rendering/paragraph.dart RenderParagraph.debugDescribeChildren

func (*RenderParagraph) DebugFillProperties

func (r *RenderParagraph) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the text settings.

Flutter: rendering/paragraph.dart RenderParagraph.debugFillProperties

func (*RenderParagraph) DebugHasOverflowShader

func (r *RenderParagraph) DebugHasOverflowShader() bool

DebugHasOverflowShader says whether the paragraph fades its overflow.

Flutter: rendering/paragraph.dart RenderParagraph.debugHasOverflowShader

func (*RenderParagraph) DescribeSemanticsConfiguration

func (r *RenderParagraph) DescribeSemanticsConfiguration(config *semantics.SemanticsConfiguration)

DescribeSemanticsConfiguration gives the label of the text, or makes the paragraph a semantic boundary when a span has a recognizer or an identifier.

Flutter: rendering/paragraph.dart RenderParagraph.describeSemanticsConfiguration

func (*RenderParagraph) DevicePixelRatio

func (r *RenderParagraph) DevicePixelRatio() float64

DevicePixelRatio is the number of device pixels per logical pixel.

Flutter: rendering/paragraph.dart RenderParagraph.devicePixelRatio

func (*RenderParagraph) DidExceedMaxLines

func (r *RenderParagraph) DidExceedMaxLines() bool

DidExceedMaxLines says whether the text had more lines than maxLines allows.

Flutter: rendering/paragraph.dart RenderParagraph.didExceedMaxLines

func (*RenderParagraph) Dispose

func (r *RenderParagraph) Dispose()

Dispose disposes the fragments and the text painters.

Flutter: rendering/paragraph.dart RenderParagraph.dispose

func (*RenderParagraph) GetBoxesForSelection

func (r *RenderParagraph) GetBoxesForSelection(selection ui.TextRange, opts ...ui.BoxesForRangeOpts) []ui.TextBox

GetBoxesForSelection are the boxes that enclose the text range.

Deviation: Flutter takes a TextSelection, which is ported with the text editing of step 10.x; a TextRange does the same.

Flutter: rendering/paragraph.dart RenderParagraph.getBoxesForSelection

func (*RenderParagraph) GetFullHeightForCaret

func (r *RenderParagraph) GetFullHeightForCaret(position ui.TextPosition) float64

GetFullHeightForCaret is the full height of the caret at the position.

Flutter: rendering/paragraph.dart RenderParagraph.getFullHeightForCaret

func (*RenderParagraph) GetOffsetForCaret

func (r *RenderParagraph) GetOffsetForCaret(position ui.TextPosition, caretPrototype ui.Rect) ui.Offset

GetOffsetForCaret is the offset at which to paint a caret at the position, in the paragraph's coordinates. The paragraph must be laid out.

Flutter: rendering/paragraph.dart RenderParagraph.getOffsetForCaret

func (*RenderParagraph) GetPositionForOffset

func (r *RenderParagraph) GetPositionForOffset(offset ui.Offset) ui.TextPosition

GetPositionForOffset is the text position closest to the offset.

Flutter: rendering/paragraph.dart RenderParagraph.getPositionForOffset

func (*RenderParagraph) GetWordBoundary

func (r *RenderParagraph) GetWordBoundary(position ui.TextPosition) ui.TextRange

GetWordBoundary is the range of the word at the position.

Flutter: rendering/paragraph.dart RenderParagraph.getWordBoundary

func (*RenderParagraph) HitTestChildren

func (r *RenderParagraph) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren adds the span under the position to the result if it is a hit test target (for example, a TextSpan with a recognizer), else hit tests the inline children.

Flutter: rendering/paragraph.dart RenderParagraph.hitTestChildren

func (*RenderParagraph) HitTestSelf

func (r *RenderParagraph) HitTestSelf(ui.Offset) bool

HitTestSelf is true: the paragraph is hit anywhere.

Flutter: rendering/paragraph.dart RenderParagraph.hitTestSelf

func (*RenderParagraph) Locale

func (r *RenderParagraph) Locale() foundation.Opt[ui.Locale]

Locale selects region-specific glyphs.

Flutter: rendering/paragraph.dart RenderParagraph.locale

func (*RenderParagraph) MarkNeedsLayout

func (r *RenderParagraph) MarkNeedsLayout()

MarkNeedsLayout tells the fragments that the layout changes.

Flutter: rendering/paragraph.dart RenderParagraph.markNeedsLayout

func (*RenderParagraph) MaxLines

func (r *RenderParagraph) MaxLines() foundation.Opt[int]

MaxLines is the maximum number of lines, if set.

Flutter: rendering/paragraph.dart RenderParagraph.maxLines

func (*RenderParagraph) Overflow

func (r *RenderParagraph) Overflow() painting.TextOverflow

Overflow is how the visual overflow is handled.

Flutter: rendering/paragraph.dart RenderParagraph.overflow

func (*RenderParagraph) Paint

func (r *RenderParagraph) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the selection, the text and the inline children, clipped or faded if the text overflows.

Flutter: rendering/paragraph.dart RenderParagraph.paint

func (*RenderParagraph) PerformLayout

func (r *RenderParagraph) PerformLayout()

PerformLayout lays out the inline children, then the text around them, and works out how the overflow is handled.

Flutter: rendering/paragraph.dart RenderParagraph.performLayout

func (*RenderParagraph) PreferredLineHeight

func (r *RenderParagraph) PreferredLineHeight() float64

PreferredLineHeight is the height of a line of the text's first style.

Flutter: rendering/paragraph.dart RenderParagraph.preferredLineHeight

func (*RenderParagraph) Registrar

func (r *RenderParagraph) Registrar() SelectionRegistrar

Registrar is where the selectable fragments of the text register.

Flutter: rendering/paragraph.dart RenderParagraph.registrar

func (*RenderParagraph) SelectableBelongsToParagraph

func (r *RenderParagraph) SelectableBelongsToParagraph(selectable Selectable) bool

SelectableBelongsToParagraph says whether the selectable is one of the fragments of this paragraph.

Flutter: rendering/paragraph.dart RenderParagraph.selectableBelongsToParagraph

func (*RenderParagraph) SelectionColor

func (r *RenderParagraph) SelectionColor() foundation.Opt[ui.Color]

SelectionColor is the color of the selected text.

Flutter: rendering/paragraph.dart RenderParagraph.selectionColor

func (*RenderParagraph) Selections

func (r *RenderParagraph) Selections() []services.TextSelection

Selections are the ongoing selections in this paragraph, one for each fragment that has one. They do not include selections in placeholders.

Flutter: rendering/paragraph.dart RenderParagraph.selections

func (*RenderParagraph) SetDevicePixelRatio

func (r *RenderParagraph) SetDevicePixelRatio(value float64)

SetDevicePixelRatio changes the ratio. Deviation: Flutter repaints only on the web, where text is positioned in device pixels; here nothing repaints.

Flutter: rendering/paragraph.dart RenderParagraph.devicePixelRatio

func (*RenderParagraph) SetLocale

func (r *RenderParagraph) SetLocale(value foundation.Opt[ui.Locale])

SetLocale marks the paragraph as needing layout when the value changes.

Flutter: rendering/paragraph.dart RenderParagraph.locale

func (*RenderParagraph) SetMaxLines

func (r *RenderParagraph) SetMaxLines(value foundation.Opt[int])

SetMaxLines marks the paragraph as needing layout when the value changes. In debug builds a value that is not positive panics with ParagraphMaxLinesInvalid.

Flutter: rendering/paragraph.dart RenderParagraph.maxLines

func (*RenderParagraph) SetOverflow

func (r *RenderParagraph) SetOverflow(value painting.TextOverflow)

SetOverflow marks the paragraph as needing layout when the value changes.

Flutter: rendering/paragraph.dart RenderParagraph.overflow

func (*RenderParagraph) SetRegistrar

func (r *RenderParagraph) SetRegistrar(value SelectionRegistrar)

SetRegistrar changes the registrar; the fragments of the text register with the new one.

Flutter: rendering/paragraph.dart RenderParagraph.registrar

func (*RenderParagraph) SetSelectionColor

func (r *RenderParagraph) SetSelectionColor(value foundation.Opt[ui.Color])

SetSelectionColor repaints the paragraph if some of it is selected.

Flutter: rendering/paragraph.dart RenderParagraph.selectionColor

func (*RenderParagraph) SetSoftWrap

func (r *RenderParagraph) SetSoftWrap(value bool)

SetSoftWrap marks the paragraph as needing layout when the value changes.

Flutter: rendering/paragraph.dart RenderParagraph.softWrap

func (*RenderParagraph) SetStrutStyle

func (r *RenderParagraph) SetStrutStyle(value *painting.StrutStyle)

SetStrutStyle marks the paragraph as needing layout when the value changes.

Flutter: rendering/paragraph.dart RenderParagraph.strutStyle

func (*RenderParagraph) SetText

func (r *RenderParagraph) SetText(value painting.InlineSpan)

SetText changes the text. What the paragraph does depends on how the new text compares to the old: nothing, a semantics update, a repaint or a new layout.

Flutter: rendering/paragraph.dart RenderParagraph.text

func (*RenderParagraph) SetTextAlign

func (r *RenderParagraph) SetTextAlign(value ui.TextAlign)

SetTextAlign marks the paragraph as needing paint when the value changes.

Flutter: rendering/paragraph.dart RenderParagraph.textAlign

func (*RenderParagraph) SetTextDirection

func (r *RenderParagraph) SetTextDirection(value ui.TextDirection)

SetTextDirection marks the paragraph as needing layout when the value changes.

Flutter: rendering/paragraph.dart RenderParagraph.textDirection

func (*RenderParagraph) SetTextHeightBehavior

func (r *RenderParagraph) SetTextHeightBehavior(value *ui.TextHeightBehavior)

SetTextHeightBehavior marks the paragraph as needing layout when the value changes.

Flutter: rendering/paragraph.dart RenderParagraph.textHeightBehavior

func (*RenderParagraph) SetTextScaler

func (r *RenderParagraph) SetTextScaler(value painting.TextScaler)

SetTextScaler marks the paragraph as needing layout when the value changes.

Flutter: rendering/paragraph.dart RenderParagraph.textScaler

func (*RenderParagraph) SetTextWidthBasis

func (r *RenderParagraph) SetTextWidthBasis(value painting.TextWidthBasis)

SetTextWidthBasis marks the paragraph as needing layout when the value changes.

Flutter: rendering/paragraph.dart RenderParagraph.textWidthBasis

func (*RenderParagraph) SetupParentData

func (r *RenderParagraph) SetupParentData(child RenderObject)

SetupParentData gives the child a TextParentData if it has none.

Flutter: rendering/paragraph.dart RenderInlineChildrenContainerDefaults.setupParentData

func (*RenderParagraph) SoftWrap

func (r *RenderParagraph) SoftWrap() bool

SoftWrap says whether the text wraps at the width of the box.

Flutter: rendering/paragraph.dart RenderParagraph.softWrap

func (*RenderParagraph) StrutStyle

func (r *RenderParagraph) StrutStyle() *painting.StrutStyle

StrutStyle is the strut of the paragraph.

Flutter: rendering/paragraph.dart RenderParagraph.strutStyle

func (*RenderParagraph) SystemFontsDidChange

func (r *RenderParagraph) SystemFontsDidChange()

SystemFontsDidChange lays the paragraph out again, because the fonts of the system changed.

Flutter: rendering/object.dart RelayoutWhenSystemFontsChangeMixin.systemFontsDidChange

func (*RenderParagraph) Text

Text is the text to display.

Flutter: rendering/paragraph.dart RenderParagraph.text

func (*RenderParagraph) TextAlign

func (r *RenderParagraph) TextAlign() ui.TextAlign

TextAlign is how the text is aligned horizontally.

Flutter: rendering/paragraph.dart RenderParagraph.textAlign

func (*RenderParagraph) TextDirection

func (r *RenderParagraph) TextDirection() ui.TextDirection

TextDirection is the direction of the text.

Flutter: rendering/paragraph.dart RenderParagraph.textDirection

func (*RenderParagraph) TextHeightBehavior

func (r *RenderParagraph) TextHeightBehavior() *ui.TextHeightBehavior

TextHeightBehavior says how the line height applies to the first and last lines.

Flutter: rendering/paragraph.dart RenderParagraph.textHeightBehavior

func (*RenderParagraph) TextScaler

func (r *RenderParagraph) TextScaler() painting.TextScaler

TextScaler is how the font sizes are scaled.

Flutter: rendering/paragraph.dart RenderParagraph.textScaler

func (*RenderParagraph) TextSize

func (r *RenderParagraph) TextSize() ui.Size

TextSize is the size of the text, which can differ from the size of the box.

Flutter: rendering/paragraph.dart RenderParagraph.textSize

func (*RenderParagraph) TextWidthBasis

func (r *RenderParagraph) TextWidthBasis() painting.TextWidthBasis

TextWidthBasis is how the width of the text is measured.

Flutter: rendering/paragraph.dart RenderParagraph.textWidthBasis

type RenderParagraphOpts

type RenderParagraphOpts struct {
	// TextEngine lays out the text. Deviation: Flutter reaches the engine
	// through dart:ui; the widgets pass the engine of the PlatformDispatcher.
	TextEngine ui.ParagraphFactory
	// TextAlign defaults to start.
	TextAlign ui.TextAlign
	// SoftWrap, if None, is true.
	SoftWrap foundation.Opt[bool]
	// Overflow defaults to painting.TextOverflowClip.
	Overflow painting.TextOverflow
	// TextScaler defaults to painting.TextScalerNoScaling. Deviation: the
	// deprecated textScaleFactor is not ported.
	TextScaler painting.TextScaler
	// MaxLines, if set, limits the number of lines; it must be positive.
	MaxLines foundation.Opt[int]
	// Locale selects region-specific glyphs.
	Locale foundation.Opt[ui.Locale]
	// StrutStyle is the strut of the paragraph.
	StrutStyle *painting.StrutStyle
	// TextWidthBasis defaults to painting.TextWidthBasisParent.
	TextWidthBasis painting.TextWidthBasis
	// TextHeightBehavior says how the line height applies to the first and last
	// lines.
	TextHeightBehavior *ui.TextHeightBehavior
	// Children are the inline children, in the order of the placeholders.
	Children []Box
	// SelectionColor is the color of the selected text.
	SelectionColor foundation.Opt[ui.Color]
	// Registrar is where the selectable fragments of the text register.
	Registrar SelectionRegistrar
	// DevicePixelRatio defaults to 1.
	DevicePixelRatio foundation.Opt[float64]
}

RenderParagraphOpts are the optional parameters of NewRenderParagraph.

Flutter: rendering/paragraph.dart RenderParagraph.new

type RenderPerformanceOverlay

type RenderPerformanceOverlay struct {
	RenderBox
	// contains filtered or unexported fields
}

RenderPerformanceOverlay displays the frame times of the app: a graph and the statistics of the time to build each frame and of the time to draw it.

Deviation: Flutter paints a PerformanceOverlayLayer that the engine fills in; this paints the graphs with the canvas, from the timings that the engine reports (ui.PlatformDispatcher.OnReportTimings), and is a repaint boundary so that a new frame's timing repaints only the overlay. The timings are added without asking for a frame (MarkNeedsPaintQuietly): the overlay shows them with the next frame that something else asks for, and does not keep the app drawing (SPEC §12.10).

Flutter: rendering/performance_overlay.dart RenderPerformanceOverlay

func NewRenderPerformanceOverlay

func NewRenderPerformanceOverlay(opts ...RenderPerformanceOverlayOpts) *RenderPerformanceOverlay

NewRenderPerformanceOverlay creates the overlay.

Flutter: rendering/performance_overlay.dart RenderPerformanceOverlay.new

func (*RenderPerformanceOverlay) AlwaysNeedsCompositing

func (r *RenderPerformanceOverlay) AlwaysNeedsCompositing() bool

AlwaysNeedsCompositing is true.

Flutter: rendering/performance_overlay.dart RenderPerformanceOverlay.alwaysNeedsCompositing

func (*RenderPerformanceOverlay) Attach

func (r *RenderPerformanceOverlay) Attach(owner *PipelineOwner)

Attach starts listening to the frame timings.

Flutter: rendering/object.dart RenderObject.attach

func (*RenderPerformanceOverlay) ComputeDryLayout

func (r *RenderPerformanceOverlay) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is as wide as the constraints allow and as high as the graphs.

Flutter: rendering/performance_overlay.dart RenderPerformanceOverlay.computeDryLayout

func (*RenderPerformanceOverlay) ComputeMaxIntrinsicHeight

func (r *RenderPerformanceOverlay) ComputeMaxIntrinsicHeight(float64) float64

ComputeMaxIntrinsicHeight is the height of the graphs.

Flutter: rendering/performance_overlay.dart RenderPerformanceOverlay.computeMaxIntrinsicHeight

func (*RenderPerformanceOverlay) ComputeMaxIntrinsicWidth

func (r *RenderPerformanceOverlay) ComputeMaxIntrinsicWidth(float64) float64

ComputeMaxIntrinsicWidth is 0.

Flutter: rendering/performance_overlay.dart RenderPerformanceOverlay.computeMaxIntrinsicWidth

func (*RenderPerformanceOverlay) ComputeMinIntrinsicHeight

func (r *RenderPerformanceOverlay) ComputeMinIntrinsicHeight(float64) float64

ComputeMinIntrinsicHeight is the height of the graphs.

Flutter: rendering/performance_overlay.dart RenderPerformanceOverlay.computeMinIntrinsicHeight

func (*RenderPerformanceOverlay) ComputeMinIntrinsicWidth

func (r *RenderPerformanceOverlay) ComputeMinIntrinsicWidth(float64) float64

ComputeMinIntrinsicWidth is 0.

Flutter: rendering/performance_overlay.dart RenderPerformanceOverlay.computeMinIntrinsicWidth

func (*RenderPerformanceOverlay) Detach

func (r *RenderPerformanceOverlay) Detach()

Detach stops listening.

Flutter: rendering/object.dart RenderObject.detach

func (*RenderPerformanceOverlay) History

History is the timings the overlay shows.

Flutter: no counterpart

func (*RenderPerformanceOverlay) IsRepaintBoundary

func (r *RenderPerformanceOverlay) IsRepaintBoundary() bool

IsRepaintBoundary is true.

func (*RenderPerformanceOverlay) OptionsMask

func (r *RenderPerformanceOverlay) OptionsMask() int

OptionsMask is the bits of the options that are shown.

Flutter: rendering/performance_overlay.dart RenderPerformanceOverlay.optionsMask

func (*RenderPerformanceOverlay) Paint

func (r *RenderPerformanceOverlay) Paint(context *PaintingContext, offset ui.Offset)

Paint draws the graph of the raster times and then the one of the build times.

Flutter: rendering/performance_overlay.dart RenderPerformanceOverlay.paint

func (*RenderPerformanceOverlay) SetFrameBudget

func (r *RenderPerformanceOverlay) SetFrameBudget(value time.Duration)

SetFrameBudget sets how long a frame may take, and repaints if it changed.

Flutter: no counterpart

func (*RenderPerformanceOverlay) SetOptionsMask

func (r *RenderPerformanceOverlay) SetOptionsMask(value int)

SetOptionsMask sets the options and repaints if they changed.

Flutter: rendering/performance_overlay.dart RenderPerformanceOverlay.optionsMask

func (*RenderPerformanceOverlay) SetTextEngine

func (r *RenderPerformanceOverlay) SetTextEngine(engine ui.ParagraphFactory)

SetTextEngine sets the engine that lays out the labels.

Flutter: no counterpart

func (*RenderPerformanceOverlay) SizedByParent

func (r *RenderPerformanceOverlay) SizedByParent() bool

SizedByParent is true.

Flutter: rendering/performance_overlay.dart RenderPerformanceOverlay.sizedByParent

type RenderPerformanceOverlayOpts

type RenderPerformanceOverlayOpts struct {
	// OptionsMask has the bits of the PerformanceOverlayOption values to show.
	OptionsMask int
	// Scheduler is where the frame timings come from: the overlay listens while it is
	// attached. Without one the overlay shows what History is given with Add.
	//
	// Deviation: Flutter's engine draws the overlay from its own measurements; this one
	// draws it from the timings the engine reports (SPEC §12.10).
	Scheduler *scheduler.SchedulerBinding
	// TextEngine lays out the labels; without one the graphs have no text.
	TextEngine ui.ParagraphFactory
	// FrameBudget is how long a frame may take: the bars of longer frames are red. The
	// default is a 60th of a second.
	FrameBudget time.Duration
	// History is the timings to show; the default is a new history of
	// DefaultFrameTimingCapacity frames.
	History *FrameTimingHistory
}

RenderPerformanceOverlayOpts are the optional parameters of NewRenderPerformanceOverlay.

Flutter: rendering/performance_overlay.dart RenderPerformanceOverlay.new

type RenderPhysicalModel

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

RenderPhysicalModel clips its child to a rectangle or a circle and draws a shadow below it.

Flutter: rendering/proxy_box.dart RenderPhysicalModel

func NewRenderPhysicalModel

func NewRenderPhysicalModel(color ui.Color, child Box, opts ...RenderPhysicalModelOpts) *RenderPhysicalModel

NewRenderPhysicalModel creates the box.

Flutter: rendering/proxy_box.dart RenderPhysicalModel.new

func (*RenderPhysicalModel) BorderRadius

BorderRadius is the radius of the corners of a rectangle.

Flutter: rendering/proxy_box.dart RenderPhysicalModel.borderRadius

func (*RenderPhysicalModel) Color

func (p *RenderPhysicalModel) Color() ui.Color

Color is the background color.

Flutter: rendering/proxy_box.dart _RenderPhysicalModelBase.color

func (*RenderPhysicalModel) DebugFillProperties

func (r *RenderPhysicalModel) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the shape and the border radius.

Flutter: rendering/proxy_box.dart RenderPhysicalModel.debugFillProperties

func (*RenderPhysicalModel) Elevation

func (p *RenderPhysicalModel) Elevation() float64

Elevation is the z-coordinate of the box relative to the parent.

Flutter: rendering/proxy_box.dart _RenderPhysicalModelBase.elevation

func (*RenderPhysicalModel) HitTest

func (r *RenderPhysicalModel) HitTest(result *BoxHitTestResult, position ui.Offset) bool

HitTest only hits inside the clip if there is a clipper.

Flutter: rendering/proxy_box.dart RenderPhysicalModel.hitTest

func (*RenderPhysicalModel) Paint

func (r *RenderPhysicalModel) Paint(context *PaintingContext, offset ui.Offset)

Paint draws the shadow and the background and pushes a clip layer.

Flutter: rendering/proxy_box.dart RenderPhysicalModel.paint

func (*RenderPhysicalModel) SetBorderRadius

func (r *RenderPhysicalModel) SetBorderRadius(value foundation.Opt[painting.BorderRadius])

SetBorderRadius changes the radius and drops the clip.

Flutter: rendering/proxy_box.dart RenderPhysicalModel.borderRadius

func (*RenderPhysicalModel) SetColor

func (p *RenderPhysicalModel) SetColor(value ui.Color)

SetColor changes the background color.

Flutter: rendering/proxy_box.dart _RenderPhysicalModelBase.color

func (*RenderPhysicalModel) SetElevation

func (p *RenderPhysicalModel) SetElevation(value float64)

SetElevation changes the elevation.

Flutter: rendering/proxy_box.dart _RenderPhysicalModelBase.elevation

func (*RenderPhysicalModel) SetShadowColor

func (p *RenderPhysicalModel) SetShadowColor(value ui.Color)

SetShadowColor changes the shadow color.

Flutter: rendering/proxy_box.dart _RenderPhysicalModelBase.shadowColor

func (*RenderPhysicalModel) SetShape

func (r *RenderPhysicalModel) SetShape(value painting.BoxShape)

SetShape changes the shape and drops the clip.

Flutter: rendering/proxy_box.dart RenderPhysicalModel.shape

func (*RenderPhysicalModel) ShadowColor

func (p *RenderPhysicalModel) ShadowColor() ui.Color

ShadowColor is the color of the shadow.

Flutter: rendering/proxy_box.dart _RenderPhysicalModelBase.shadowColor

func (*RenderPhysicalModel) Shape

Shape is the shape of the clip.

Flutter: rendering/proxy_box.dart RenderPhysicalModel.shape

type RenderPhysicalModelOpts

type RenderPhysicalModelOpts struct {
	// Shape defaults to BoxShapeRectangle.
	Shape painting.BoxShape
	// ClipBehavior defaults to ClipNone.
	ClipBehavior ui.Clip
	// BorderRadius is the radius of a rectangle; none by default.
	BorderRadius foundation.Opt[painting.BorderRadius]
	// Elevation defaults to 0.
	Elevation float64
	// ShadowColor defaults to opaque black.
	ShadowColor foundation.Opt[ui.Color]
}

RenderPhysicalModelOpts are the optional parameters of NewRenderPhysicalModel.

Flutter: rendering/proxy_box.dart RenderPhysicalModel.new

type RenderPhysicalShape

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

RenderPhysicalShape clips its child to a custom shape and draws a shadow below it.

Flutter: rendering/proxy_box.dart RenderPhysicalShape

func NewRenderPhysicalShape

func NewRenderPhysicalShape(clipper CustomClipper[*ui.Path], color ui.Color, child Box, opts ...RenderPhysicalModelOpts) *RenderPhysicalShape

NewRenderPhysicalShape creates the box with the clipper that makes its shape.

Flutter: rendering/proxy_box.dart RenderPhysicalShape.new

func (*RenderPhysicalShape) Color

func (p *RenderPhysicalShape) Color() ui.Color

Color is the background color.

Flutter: rendering/proxy_box.dart _RenderPhysicalModelBase.color

func (*RenderPhysicalShape) DebugFillProperties

func (r *RenderPhysicalShape) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the clipper.

Flutter: rendering/proxy_box.dart RenderPhysicalShape.debugFillProperties

func (*RenderPhysicalShape) Elevation

func (p *RenderPhysicalShape) Elevation() float64

Elevation is the z-coordinate of the box relative to the parent.

Flutter: rendering/proxy_box.dart _RenderPhysicalModelBase.elevation

func (*RenderPhysicalShape) HitTest

func (r *RenderPhysicalShape) HitTest(result *BoxHitTestResult, position ui.Offset) bool

HitTest only hits inside the shape if there is a clipper.

Flutter: rendering/proxy_box.dart RenderPhysicalShape.hitTest

func (*RenderPhysicalShape) Paint

func (r *RenderPhysicalShape) Paint(context *PaintingContext, offset ui.Offset)

Paint draws the shadow and the background and pushes a clip path layer.

Flutter: rendering/proxy_box.dart RenderPhysicalShape.paint

func (*RenderPhysicalShape) SetColor

func (p *RenderPhysicalShape) SetColor(value ui.Color)

SetColor changes the background color.

Flutter: rendering/proxy_box.dart _RenderPhysicalModelBase.color

func (*RenderPhysicalShape) SetElevation

func (p *RenderPhysicalShape) SetElevation(value float64)

SetElevation changes the elevation.

Flutter: rendering/proxy_box.dart _RenderPhysicalModelBase.elevation

func (*RenderPhysicalShape) SetShadowColor

func (p *RenderPhysicalShape) SetShadowColor(value ui.Color)

SetShadowColor changes the shadow color.

Flutter: rendering/proxy_box.dart _RenderPhysicalModelBase.shadowColor

func (*RenderPhysicalShape) ShadowColor

func (p *RenderPhysicalShape) ShadowColor() ui.Color

ShadowColor is the color of the shadow.

Flutter: rendering/proxy_box.dart _RenderPhysicalModelBase.shadowColor

type RenderPointerListener

type RenderPointerListener struct {
	RenderProxyBoxWithHitTestBehavior
	// OnPointerDown is called when a pointer comes into contact with the screen
	// at this box.
	//
	// Flutter: rendering/proxy_box.dart RenderPointerListener.onPointerDown
	OnPointerDown PointerDownEventListener
	// OnPointerMove is called when a pointer that is in contact with the screen
	// and started at this box moves.
	//
	// Flutter: rendering/proxy_box.dart RenderPointerListener.onPointerMove
	OnPointerMove PointerMoveEventListener
	// OnPointerUp is called when a pointer that started at this box stops being
	// in contact with the screen.
	//
	// Flutter: rendering/proxy_box.dart RenderPointerListener.onPointerUp
	OnPointerUp PointerUpEventListener
	// OnPointerHover is called when a pointer that has not triggered an
	// on-pointer-down event changes.
	//
	// Flutter: rendering/proxy_box.dart RenderPointerListener.onPointerHover
	OnPointerHover services.PointerHoverEventListener
	// OnPointerCancel is called when the input from a pointer is no longer
	// directed towards this box.
	//
	// Flutter: rendering/proxy_box.dart RenderPointerListener.onPointerCancel
	OnPointerCancel PointerCancelEventListener
	// OnPointerPanZoomStart is called when a pan/zoom begins.
	//
	// Flutter: rendering/proxy_box.dart RenderPointerListener.onPointerPanZoomStart
	OnPointerPanZoomStart PointerPanZoomStartEventListener
	// OnPointerPanZoomUpdate is called when a pan/zoom is updated.
	//
	// Flutter: rendering/proxy_box.dart RenderPointerListener.onPointerPanZoomUpdate
	OnPointerPanZoomUpdate PointerPanZoomUpdateEventListener
	// OnPointerPanZoomEnd is called when a pan/zoom ends.
	//
	// Flutter: rendering/proxy_box.dart RenderPointerListener.onPointerPanZoomEnd
	OnPointerPanZoomEnd PointerPanZoomEndEventListener
	// OnPointerSignal is called when a pointer signal occurs over this box.
	//
	// Flutter: rendering/proxy_box.dart RenderPointerListener.onPointerSignal
	OnPointerSignal PointerSignalEventListener
}

RenderPointerListener calls callbacks in response to common pointer events.

Flutter: rendering/proxy_box.dart RenderPointerListener

func NewRenderPointerListener

func NewRenderPointerListener(child Box, opts ...RenderPointerListenerOpts) *RenderPointerListener

NewRenderPointerListener creates the box.

Flutter: rendering/proxy_box.dart RenderPointerListener.new

func (*RenderPointerListener) ComputeSizeForNoChild

func (r *RenderPointerListener) ComputeSizeForNoChild(constraints BoxConstraints) ui.Size

ComputeSizeForNoChild is the biggest size: a listener without a child fills the space.

Flutter: rendering/proxy_box.dart RenderPointerListener.computeSizeForNoChild

func (*RenderPointerListener) DebugFillProperties

DebugFillProperties adds the listeners.

Flutter: rendering/proxy_box.dart RenderPointerListener.debugFillProperties

func (*RenderPointerListener) HandleEvent

func (r *RenderPointerListener) HandleEvent(event gestures.PointerEvent, entry gestures.HitTestEntry)

HandleEvent calls the listener for the event.

Flutter: rendering/proxy_box.dart RenderPointerListener.handleEvent

type RenderPointerListenerOpts

type RenderPointerListenerOpts struct {
	// Behavior defaults to HitTestBehaviorDeferToChild.
	Behavior HitTestBehavior
}

RenderPointerListenerOpts are the optional parameters of NewRenderPointerListener. The listeners are fields of the render object, and can be changed at any time.

Flutter: rendering/proxy_box.dart RenderPointerListener.new

type RenderPositionedBox

type RenderPositionedBox struct {
	RenderAligningShiftedBox
	// contains filtered or unexported fields
}

RenderPositionedBox positions its child using an alignment within itself.

Flutter: rendering/shifted_box.dart RenderPositionedBox

func NewRenderPositionedBox

func NewRenderPositionedBox(child Box, opts ...RenderPositionedBoxOpts) *RenderPositionedBox

NewRenderPositionedBox creates the box. A negative factor panics with SizeFactorNegative in debug builds.

Flutter: rendering/shifted_box.dart RenderPositionedBox.new

func (*RenderPositionedBox) ComputeDryBaseline

func (r *RenderPositionedBox) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the child's baseline plus the aligned offset.

Flutter: rendering/shifted_box.dart RenderPositionedBox.computeDryBaseline

func (*RenderPositionedBox) ComputeDryLayout

func (r *RenderPositionedBox) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size for the child's loosened dry layout.

Flutter: rendering/shifted_box.dart RenderPositionedBox.computeDryLayout

func (*RenderPositionedBox) ComputeMaxIntrinsicHeight

func (r *RenderPositionedBox) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the child's times the height factor.

Flutter: rendering/shifted_box.dart RenderPositionedBox.computeMaxIntrinsicHeight

func (*RenderPositionedBox) ComputeMaxIntrinsicWidth

func (r *RenderPositionedBox) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is the child's times the width factor.

Flutter: rendering/shifted_box.dart RenderPositionedBox.computeMaxIntrinsicWidth

func (*RenderPositionedBox) ComputeMinIntrinsicHeight

func (r *RenderPositionedBox) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the child's times the height factor.

Flutter: rendering/shifted_box.dart RenderPositionedBox.computeMinIntrinsicHeight

func (*RenderPositionedBox) ComputeMinIntrinsicWidth

func (r *RenderPositionedBox) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is the child's times the width factor.

Flutter: rendering/shifted_box.dart RenderPositionedBox.computeMinIntrinsicWidth

func (*RenderPositionedBox) DebugFillProperties

func (r *RenderPositionedBox) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the factors.

Flutter: rendering/shifted_box.dart RenderPositionedBox.debugFillProperties

func (*RenderPositionedBox) DebugPaintSize

func (r *RenderPositionedBox) DebugPaintSize(context *PaintingContext, offset ui.Offset)

DebugPaintSize paints arrows that show the free space around the child.

Flutter: rendering/shifted_box.dart RenderPositionedBox.debugPaintSize

func (*RenderPositionedBox) HeightFactor

func (r *RenderPositionedBox) HeightFactor() foundation.Opt[float64]

HeightFactor sizes the box to the child's height times it, if set.

Flutter: rendering/shifted_box.dart RenderPositionedBox.heightFactor

func (*RenderPositionedBox) PerformLayout

func (r *RenderPositionedBox) PerformLayout()

PerformLayout lays the child out loosely and aligns it.

Flutter: rendering/shifted_box.dart RenderPositionedBox.performLayout

func (*RenderPositionedBox) SetHeightFactor

func (r *RenderPositionedBox) SetHeightFactor(value foundation.Opt[float64])

SetHeightFactor changes the factor and marks the box as needing layout.

Flutter: rendering/shifted_box.dart RenderPositionedBox.heightFactor

func (*RenderPositionedBox) SetWidthFactor

func (r *RenderPositionedBox) SetWidthFactor(value foundation.Opt[float64])

SetWidthFactor changes the factor and marks the box as needing layout.

Flutter: rendering/shifted_box.dart RenderPositionedBox.widthFactor

func (*RenderPositionedBox) WidthFactor

func (r *RenderPositionedBox) WidthFactor() foundation.Opt[float64]

WidthFactor sizes the box to the child's width times it, if set.

Flutter: rendering/shifted_box.dart RenderPositionedBox.widthFactor

type RenderPositionedBoxOpts

type RenderPositionedBoxOpts struct {
	// WidthFactor sizes the box to the child's width times it, if set.
	WidthFactor foundation.Opt[float64]
	// HeightFactor sizes the box to the child's height times it, if set.
	HeightFactor foundation.Opt[float64]
	// Alignment defaults to painting.AlignmentCenter.
	Alignment painting.AlignmentGeometry
	// TextDirection resolves a directional alignment.
	TextDirection ui.TextDirection
}

RenderPositionedBoxOpts are the optional parameters of NewRenderPositionedBox.

Flutter: rendering/shifted_box.dart RenderPositionedBox.new

type RenderProxyBox

type RenderProxyBox struct {
	RenderBox
	RenderObjectWithChild[Box]
}

RenderProxyBox is a render box that has the size of its single child, lays it out with the same constraints, and paints and hit tests it as is. Embed it in the render boxes that change one of these, and call InitRenderProxyBox in the constructor.

Flutter: rendering/proxy_box.dart RenderProxyBox, RenderProxyBoxMixin

func NewRenderProxyBox

func NewRenderProxyBox(child Box) *RenderProxyBox

NewRenderProxyBox creates a proxy box with the child (nil for none).

Flutter: rendering/proxy_box.dart RenderProxyBox.new

func (*RenderProxyBox) ApplyPaintTransform

func (p *RenderProxyBox) ApplyPaintTransform(RenderObject, *ui.Matrix4)

ApplyPaintTransform does nothing: the child is painted at the same offset.

Flutter: rendering/proxy_box.dart RenderProxyBoxMixin.applyPaintTransform

func (*RenderProxyBox) ComputeDistanceToActualBaseline

func (p *RenderProxyBox) ComputeDistanceToActualBaseline(baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDistanceToActualBaseline is the child's, or the default.

Flutter: rendering/proxy_box.dart RenderProxyBoxMixin.computeDistanceToActualBaseline

func (*RenderProxyBox) ComputeDryBaseline

func (p *RenderProxyBox) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the child's, or the default.

Flutter: rendering/proxy_box.dart RenderProxyBoxMixin.computeDryBaseline

func (*RenderProxyBox) ComputeDryLayout

func (p *RenderProxyBox) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the child's dry layout, or the size for no child.

Flutter: rendering/proxy_box.dart RenderProxyBoxMixin.computeDryLayout

func (*RenderProxyBox) ComputeMaxIntrinsicHeight

func (p *RenderProxyBox) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the child's, or 0.

Flutter: rendering/proxy_box.dart RenderProxyBoxMixin.computeMaxIntrinsicHeight

func (*RenderProxyBox) ComputeMaxIntrinsicWidth

func (p *RenderProxyBox) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is the child's, or 0.

Flutter: rendering/proxy_box.dart RenderProxyBoxMixin.computeMaxIntrinsicWidth

func (*RenderProxyBox) ComputeMinIntrinsicHeight

func (p *RenderProxyBox) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the child's, or 0.

Flutter: rendering/proxy_box.dart RenderProxyBoxMixin.computeMinIntrinsicHeight

func (*RenderProxyBox) ComputeMinIntrinsicWidth

func (p *RenderProxyBox) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is the child's, or 0.

Flutter: rendering/proxy_box.dart RenderProxyBoxMixin.computeMinIntrinsicWidth

func (*RenderProxyBox) ComputeSizeForNoChild

func (p *RenderProxyBox) ComputeSizeForNoChild(constraints BoxConstraints) ui.Size

ComputeSizeForNoChild is the size of the box without a child: the smallest size.

Flutter: rendering/proxy_box.dart RenderProxyBoxMixin.computeSizeForNoChild

func (*RenderProxyBox) HitTestChildren

func (p *RenderProxyBox) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren hit tests the child.

Flutter: rendering/proxy_box.dart RenderProxyBoxMixin.hitTestChildren

func (*RenderProxyBox) Paint

func (p *RenderProxyBox) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the child.

Flutter: rendering/proxy_box.dart RenderProxyBoxMixin.paint

func (*RenderProxyBox) PerformLayout

func (p *RenderProxyBox) PerformLayout()

PerformLayout lays out the child with the constraints and takes its size.

Flutter: rendering/proxy_box.dart RenderProxyBoxMixin.performLayout

func (*RenderProxyBox) SetupParentData

func (p *RenderProxyBox) SetupParentData(child RenderObject)

SetupParentData gives the child a ParentData if it has none.

Flutter: rendering/proxy_box.dart RenderProxyBoxMixin.setupParentData

type RenderProxyBoxWithHitTestBehavior

type RenderProxyBoxWithHitTestBehavior struct {
	RenderProxyBox
	// Behavior is how the box behaves during hit testing; the zero value is
	// HitTestBehaviorDeferToChild.
	Behavior HitTestBehavior
}

RenderProxyBoxWithHitTestBehavior is a proxy box that can be targeted by hit testing in more ways than its child.

Flutter: rendering/proxy_box.dart RenderProxyBoxWithHitTestBehavior

func (*RenderProxyBoxWithHitTestBehavior) DebugFillProperties

DebugFillProperties adds the behavior.

Flutter: rendering/proxy_box.dart RenderProxyBoxWithHitTestBehavior.debugFillProperties

func (*RenderProxyBoxWithHitTestBehavior) HitTest

func (p *RenderProxyBoxWithHitTestBehavior) HitTest(result *BoxHitTestResult, position ui.Offset) bool

HitTest hits the box if the position is inside it and a child is hit, or the box is opaque; a translucent box also adds itself when it is not hit.

Flutter: rendering/proxy_box.dart RenderProxyBoxWithHitTestBehavior.hitTest

func (*RenderProxyBoxWithHitTestBehavior) HitTestSelf

HitTestSelf is true if the box is opaque.

Flutter: rendering/proxy_box.dart RenderProxyBoxWithHitTestBehavior.hitTestSelf

type RenderProxySliver

type RenderProxySliver struct {
	RenderSliver
	RenderObjectWithChild[Sliver]
}

RenderProxySliver is a render sliver that has the geometry of its single sliver child, lays it out with the same constraints, and paints and hit tests it as is. Embed it in the slivers that change one of these, and call InitRenderProxySliver in the constructor.

Flutter: rendering/proxy_sliver.dart RenderProxySliver

func (*RenderProxySliver) ApplyPaintTransform

func (p *RenderProxySliver) ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)

ApplyPaintTransform translates by the paint offset of the child.

Flutter: rendering/proxy_sliver.dart RenderProxySliver.applyPaintTransform

func (*RenderProxySliver) ChildMainAxisPosition

func (p *RenderProxySliver) ChildMainAxisPosition(RenderObject) float64

ChildMainAxisPosition is zero.

Flutter: rendering/proxy_sliver.dart RenderProxySliver.childMainAxisPosition

func (*RenderProxySliver) HitTestChildren

func (p *RenderProxySliver) HitTestChildren(result *SliverHitTestResult, mainAxisPosition, crossAxisPosition float64) bool

HitTestChildren hit tests the child, if its hit test extent reaches.

Flutter: rendering/proxy_sliver.dart RenderProxySliver.hitTestChildren

func (*RenderProxySliver) Paint

func (p *RenderProxySliver) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the child.

Flutter: rendering/proxy_sliver.dart RenderProxySliver.paint

func (*RenderProxySliver) PerformLayout

func (p *RenderProxySliver) PerformLayout()

PerformLayout lays the child out with the constraints and takes its geometry. In debug builds it panics with the tag ProxySliverChildMissing without a child.

Flutter: rendering/proxy_sliver.dart RenderProxySliver.performLayout

func (*RenderProxySliver) SemanticBounds

func (p *RenderProxySliver) SemanticBounds() ui.Rect

SemanticBounds are the semantic bounds of the child, if there is one.

Flutter: rendering/proxy_sliver.dart RenderProxySliver.semanticBounds

func (*RenderProxySliver) SetupParentData

func (p *RenderProxySliver) SetupParentData(child RenderObject)

SetupParentData gives the child a SliverPhysicalParentData if it has none.

Flutter: rendering/proxy_sliver.dart RenderProxySliver.setupParentData

type RenderRepaintBoundary

type RenderRepaintBoundary struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderRepaintBoundary creates a separate display list for its child.

Flutter: rendering/proxy_box.dart RenderRepaintBoundary

func NewRenderRepaintBoundary

func NewRenderRepaintBoundary(child Box) *RenderRepaintBoundary

NewRenderRepaintBoundary creates the box.

Flutter: rendering/proxy_box.dart RenderRepaintBoundary.new

func (*RenderRepaintBoundary) DebugAsymmetricPaintCount

func (r *RenderRepaintBoundary) DebugAsymmetricPaintCount() int

DebugAsymmetricPaintCount is the number of times that this repaint boundary repainted without its parent (debug builds only).

Flutter: rendering/proxy_box.dart RenderRepaintBoundary.debugAsymmetricPaintCount

func (*RenderRepaintBoundary) DebugFillProperties

DebugFillProperties adds the usefulness of the boundary.

Flutter: rendering/proxy_box.dart RenderRepaintBoundary.debugFillProperties

func (*RenderRepaintBoundary) DebugRegisterRepaintBoundaryPaint

func (r *RenderRepaintBoundary) DebugRegisterRepaintBoundaryPaint(includedParent, includedChild bool)

DebugRegisterRepaintBoundaryPaint counts a paint of the boundary.

Flutter: rendering/proxy_box.dart RenderRepaintBoundary.debugRegisterRepaintBoundaryPaint

func (*RenderRepaintBoundary) DebugResetMetrics

func (r *RenderRepaintBoundary) DebugResetMetrics()

DebugResetMetrics clears the paint counts.

Flutter: rendering/proxy_box.dart RenderRepaintBoundary.debugResetMetrics

func (*RenderRepaintBoundary) DebugSymmetricPaintCount

func (r *RenderRepaintBoundary) DebugSymmetricPaintCount() int

DebugSymmetricPaintCount is the number of times that this repaint boundary repainted at the same time as its parent (debug builds only).

Flutter: rendering/proxy_box.dart RenderRepaintBoundary.debugSymmetricPaintCount

func (*RenderRepaintBoundary) IsRepaintBoundary

func (r *RenderRepaintBoundary) IsRepaintBoundary() bool

IsRepaintBoundary is true.

Flutter: rendering/proxy_box.dart RenderRepaintBoundary.isRepaintBoundary

func (*RenderRepaintBoundary) ToImage

func (r *RenderRepaintBoundary) ToImage(pixelRatio float64, opts ...ui.ToImageOpts) (*ui.Image, error)

ToImage creates an image from the contents of this render object and its children. The box must have been painted.

Flutter: rendering/proxy_box.dart RenderRepaintBoundary.toImage

func (*RenderRepaintBoundary) ToImageSync

func (r *RenderRepaintBoundary) ToImageSync(pixelRatio float64, opts ...ui.ToImageOpts) (*ui.Image, error)

ToImageSync is like ToImage but does not wait for the rasterization.

Flutter: rendering/proxy_box.dart RenderRepaintBoundary.toImageSync

type RenderRotatedBox

type RenderRotatedBox struct {
	RenderBox
	RenderObjectWithChild[Box]
	// contains filtered or unexported fields
}

RenderRotatedBox rotates its child by a whole number of quarter turns.

Flutter: rendering/rotated_box.dart RenderRotatedBox

func NewRenderRotatedBox

func NewRenderRotatedBox(quarterTurns int, child Box) *RenderRotatedBox

NewRenderRotatedBox creates the box.

Flutter: rendering/rotated_box.dart RenderRotatedBox.new

func (*RenderRotatedBox) ApplyPaintTransform

func (r *RenderRotatedBox) ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)

ApplyPaintTransform applies the rotation.

Flutter: rendering/rotated_box.dart RenderRotatedBox.applyPaintTransform

func (*RenderRotatedBox) ComputeDryLayout

func (r *RenderRotatedBox) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the child's dry size, swapped when rotated by an odd number of turns.

Flutter: rendering/rotated_box.dart RenderRotatedBox.computeDryLayout

func (*RenderRotatedBox) ComputeMaxIntrinsicHeight

func (r *RenderRotatedBox) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the child's width when rotated by an odd number of turns.

Flutter: rendering/rotated_box.dart RenderRotatedBox.computeMaxIntrinsicHeight

func (*RenderRotatedBox) ComputeMaxIntrinsicWidth

func (r *RenderRotatedBox) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is the child's height when rotated by an odd number of turns.

Flutter: rendering/rotated_box.dart RenderRotatedBox.computeMaxIntrinsicWidth

func (*RenderRotatedBox) ComputeMinIntrinsicHeight

func (r *RenderRotatedBox) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the child's width when rotated by an odd number of turns.

Flutter: rendering/rotated_box.dart RenderRotatedBox.computeMinIntrinsicHeight

func (*RenderRotatedBox) ComputeMinIntrinsicWidth

func (r *RenderRotatedBox) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is the child's height when rotated by an odd number of turns.

Flutter: rendering/rotated_box.dart RenderRotatedBox.computeMinIntrinsicWidth

func (*RenderRotatedBox) Dispose

func (r *RenderRotatedBox) Dispose()

Dispose lets the transform layer go.

Flutter: rendering/rotated_box.dart RenderRotatedBox.dispose

func (*RenderRotatedBox) HitTestChildren

func (r *RenderRotatedBox) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren hit tests the child in the rotated coordinates.

Flutter: rendering/rotated_box.dart RenderRotatedBox.hitTestChildren

func (*RenderRotatedBox) Paint

func (r *RenderRotatedBox) Paint(context *PaintingContext, offset ui.Offset)

Paint pushes a transform layer around the child.

Flutter: rendering/rotated_box.dart RenderRotatedBox.paint

func (*RenderRotatedBox) PerformLayout

func (r *RenderRotatedBox) PerformLayout()

PerformLayout lays the child out with the flipped constraints when rotated by an odd number of turns, and works out the paint transform.

Flutter: rendering/rotated_box.dart RenderRotatedBox.performLayout

func (*RenderRotatedBox) QuarterTurns

func (r *RenderRotatedBox) QuarterTurns() int

QuarterTurns is the number of clockwise quarter turns the child is rotated.

Flutter: rendering/rotated_box.dart RenderRotatedBox.quarterTurns

func (*RenderRotatedBox) SetQuarterTurns

func (r *RenderRotatedBox) SetQuarterTurns(value int)

SetQuarterTurns changes the turns and marks the box as needing layout.

Flutter: rendering/rotated_box.dart RenderRotatedBox.quarterTurns

type RenderSemanticsAnnotations

type RenderSemanticsAnnotations struct {
	RenderProxyBox
	SemanticsAnnotations
}

RenderSemanticsAnnotations adds annotations to the semantics node of its subtree.

Flutter: rendering/proxy_box.dart RenderSemanticsAnnotations

func NewRenderSemanticsAnnotations

func NewRenderSemanticsAnnotations(properties *semantics.SemanticsProperties, child Box, opts ...SemanticsAnnotationsOpts) *RenderSemanticsAnnotations

NewRenderSemanticsAnnotations creates the box. If the properties have an attributed label, a text direction should be given.

Flutter: rendering/proxy_box.dart RenderSemanticsAnnotations.new

type RenderSemanticsGestureHandler

type RenderSemanticsGestureHandler struct {
	RenderProxyBoxWithHitTestBehavior

	// ScrollFactor is the fraction of the dimension of the box to use when
	// scrolling: with 0.8, a left-scroll action of the accessibility system
	// drags a 200 pixel wide box 160 pixels to the left. The default is 0.8.
	//
	// Flutter: rendering/proxy_box.dart RenderSemanticsGestureHandler.scrollFactor
	ScrollFactor float64
	// contains filtered or unexported fields
}

RenderSemanticsGestureHandler listens for the gestures that the semantics server (an accessibility tool) asks for: tap, long press and scrolls.

Flutter: rendering/proxy_box.dart RenderSemanticsGestureHandler

func NewRenderSemanticsGestureHandler

func NewRenderSemanticsGestureHandler(child Box, opts ...RenderSemanticsGestureHandlerOpts) *RenderSemanticsGestureHandler

NewRenderSemanticsGestureHandler creates the box.

Flutter: rendering/proxy_box.dart RenderSemanticsGestureHandler.new

func (*RenderSemanticsGestureHandler) DebugFillProperties

DebugFillProperties adds the gestures that are handled.

Flutter: rendering/proxy_box.dart RenderSemanticsGestureHandler.debugFillProperties

func (*RenderSemanticsGestureHandler) DescribeSemanticsConfiguration

func (r *RenderSemanticsGestureHandler) DescribeSemanticsConfiguration(config *semantics.SemanticsConfiguration)

DescribeSemanticsConfiguration adds the handlers of the callbacks that are set and valid.

Flutter: rendering/proxy_box.dart RenderSemanticsGestureHandler.describeSemanticsConfiguration

func (*RenderSemanticsGestureHandler) OnHorizontalDragUpdate

OnHorizontalDragUpdate is called when the user scrolls left or right.

Flutter: rendering/proxy_box.dart RenderSemanticsGestureHandler.onHorizontalDragUpdate

func (*RenderSemanticsGestureHandler) OnLongPress

OnLongPress is called when the user presses on the object for a long time.

Flutter: rendering/proxy_box.dart RenderSemanticsGestureHandler.onLongPress

func (*RenderSemanticsGestureHandler) OnTap

OnTap is called when the user taps on the object.

Flutter: rendering/proxy_box.dart RenderSemanticsGestureHandler.onTap

func (*RenderSemanticsGestureHandler) OnVerticalDragUpdate

OnVerticalDragUpdate is called when the user scrolls up or down.

Flutter: rendering/proxy_box.dart RenderSemanticsGestureHandler.onVerticalDragUpdate

func (*RenderSemanticsGestureHandler) SetOnHorizontalDragUpdate

func (r *RenderSemanticsGestureHandler) SetOnHorizontalDragUpdate(value gestures.GestureDragUpdateCallback)

SetOnHorizontalDragUpdate changes the callback.

Flutter: rendering/proxy_box.dart RenderSemanticsGestureHandler.onHorizontalDragUpdate

func (*RenderSemanticsGestureHandler) SetOnLongPress

SetOnLongPress changes the callback.

Flutter: rendering/proxy_box.dart RenderSemanticsGestureHandler.onLongPress

func (*RenderSemanticsGestureHandler) SetOnTap

SetOnTap changes the callback; the semantics are updated if it becomes nil or stops being nil.

Flutter: rendering/proxy_box.dart RenderSemanticsGestureHandler.onTap

func (*RenderSemanticsGestureHandler) SetOnVerticalDragUpdate

func (r *RenderSemanticsGestureHandler) SetOnVerticalDragUpdate(value gestures.GestureDragUpdateCallback)

SetOnVerticalDragUpdate changes the callback.

Flutter: rendering/proxy_box.dart RenderSemanticsGestureHandler.onVerticalDragUpdate

func (*RenderSemanticsGestureHandler) SetValidActions

func (r *RenderSemanticsGestureHandler) SetValidActions(value map[ui.SemanticsAction]struct{})

SetValidActions changes the allowed actions; the semantics are updated if the set differs.

Flutter: rendering/proxy_box.dart RenderSemanticsGestureHandler.validActions

func (*RenderSemanticsGestureHandler) ValidActions

func (r *RenderSemanticsGestureHandler) ValidActions() map[ui.SemanticsAction]struct{}

ValidActions is the set of actions to allow, or nil for all: the others are omitted even if their callback is set.

Flutter: rendering/proxy_box.dart RenderSemanticsGestureHandler.validActions

type RenderSemanticsGestureHandlerOpts

type RenderSemanticsGestureHandlerOpts struct {
	// OnTap is called when the user taps on the object.
	OnTap gestures.GestureTapCallback
	// OnLongPress is called when the user long presses the object.
	OnLongPress gestures.GestureLongPressCallback
	// OnHorizontalDragUpdate is called when the user scrolls left or right.
	OnHorizontalDragUpdate gestures.GestureDragUpdateCallback
	// OnVerticalDragUpdate is called when the user scrolls up or down.
	OnVerticalDragUpdate gestures.GestureDragUpdateCallback
	// ScrollFactor defaults to 0.8.
	ScrollFactor foundation.Opt[float64]
	// Behavior defaults to HitTestBehaviorDeferToChild.
	Behavior HitTestBehavior
}

RenderSemanticsGestureHandlerOpts are the optional parameters of NewRenderSemanticsGestureHandler.

Flutter: rendering/proxy_box.dart RenderSemanticsGestureHandler.new

type RenderShaderMask

type RenderShaderMask struct {
	RenderProxyBox
	// contains filtered or unexported fields
}

RenderShaderMask applies a mask generated by a shader to its child.

Flutter: rendering/proxy_box.dart RenderShaderMask

func NewRenderShaderMask

func NewRenderShaderMask(shaderCallback ShaderCallback, child Box, opts ...RenderShaderMaskOpts) *RenderShaderMask

NewRenderShaderMask creates the box.

Flutter: rendering/proxy_box.dart RenderShaderMask.new

func (*RenderShaderMask) AlwaysNeedsCompositing

func (r *RenderShaderMask) AlwaysNeedsCompositing() bool

AlwaysNeedsCompositing is true if there is a child.

Flutter: rendering/proxy_box.dart RenderShaderMask.alwaysNeedsCompositing

func (*RenderShaderMask) BlendMode

func (r *RenderShaderMask) BlendMode() ui.BlendMode

BlendMode is how the shader is blended with the child.

Flutter: rendering/proxy_box.dart RenderShaderMask.blendMode

func (*RenderShaderMask) Paint

func (r *RenderShaderMask) Paint(context *PaintingContext, offset ui.Offset)

Paint pushes a shader mask layer around the child.

Flutter: rendering/proxy_box.dart RenderShaderMask.paint

func (*RenderShaderMask) SetBlendMode

func (r *RenderShaderMask) SetBlendMode(value ui.BlendMode)

SetBlendMode changes the blend mode and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderShaderMask.blendMode

func (*RenderShaderMask) SetShaderCallback

func (r *RenderShaderMask) SetShaderCallback(value ShaderCallback)

SetShaderCallback changes the callback and marks the box as needing paint.

Deviation: Dart compares the callbacks and skips an equal one; Go functions can not be compared, so the box is always repainted (SPEC §12.10).

Flutter: rendering/proxy_box.dart RenderShaderMask.shaderCallback

type RenderShaderMaskOpts

type RenderShaderMaskOpts struct {
	// BlendMode defaults to BlendModeModulate.
	BlendMode ui.BlendMode
}

RenderShaderMaskOpts are the optional parameters of NewRenderShaderMask.

Flutter: rendering/proxy_box.dart RenderShaderMask.new

type RenderShiftedBox

type RenderShiftedBox struct {
	RenderBox
	RenderObjectWithChild[Box]
}

RenderShiftedBox is a render box that contains a single child and positions it at an offset that its subclass sets in the child's BoxParentData. Embed it and call InitRenderShiftedBox in the constructor.

Flutter: rendering/shifted_box.dart RenderShiftedBox

func (*RenderShiftedBox) ComputeDistanceToActualBaseline

func (s *RenderShiftedBox) ComputeDistanceToActualBaseline(baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDistanceToActualBaseline is the child's baseline plus the child's offset.

Flutter: rendering/shifted_box.dart RenderShiftedBox.computeDistanceToActualBaseline

func (*RenderShiftedBox) ComputeDryBaseline

func (s *RenderShiftedBox) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the child's baseline for the constraints.

Flutter: rendering/shifted_box.dart RenderShiftedBox.computeDryBaseline

func (*RenderShiftedBox) ComputeMaxIntrinsicHeight

func (s *RenderShiftedBox) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the child's, or 0.

Flutter: rendering/shifted_box.dart RenderShiftedBox.computeMaxIntrinsicHeight

func (*RenderShiftedBox) ComputeMaxIntrinsicWidth

func (s *RenderShiftedBox) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is the child's, or 0.

Flutter: rendering/shifted_box.dart RenderShiftedBox.computeMaxIntrinsicWidth

func (*RenderShiftedBox) ComputeMinIntrinsicHeight

func (s *RenderShiftedBox) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the child's, or 0.

Flutter: rendering/shifted_box.dart RenderShiftedBox.computeMinIntrinsicHeight

func (*RenderShiftedBox) ComputeMinIntrinsicWidth

func (s *RenderShiftedBox) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is the child's, or 0.

Flutter: rendering/shifted_box.dart RenderShiftedBox.computeMinIntrinsicWidth

func (*RenderShiftedBox) HitTestChildren

func (s *RenderShiftedBox) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren hit tests the child at its offset.

Flutter: rendering/shifted_box.dart RenderShiftedBox.hitTestChildren

func (*RenderShiftedBox) Paint

func (s *RenderShiftedBox) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the child at its offset.

Flutter: rendering/shifted_box.dart RenderShiftedBox.paint

type RenderShrinkWrappingViewport

type RenderShrinkWrappingViewport struct {
	RenderViewportBase
	// contains filtered or unexported fields
}

RenderShrinkWrappingViewport is a viewport that is as big as its content in the main axis (up to the constraints). Its slivers all grow forward from the first.

Flutter: rendering/viewport.dart RenderShrinkWrappingViewport

func NewRenderShrinkWrappingViewport

func NewRenderShrinkWrappingViewport(crossAxisDirection painting.AxisDirection, offset ViewportOffset, opts ...RenderShrinkWrappingViewportOpts) *RenderShrinkWrappingViewport

NewRenderShrinkWrappingViewport creates the viewport.

Flutter: rendering/viewport.dart RenderShrinkWrappingViewport.new

func (*RenderShrinkWrappingViewport) ApplyPaintTransform

func (r *RenderShrinkWrappingViewport) ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)

ApplyPaintTransform translates by the paint offset of the child.

Flutter: rendering/viewport.dart RenderShrinkWrappingViewport.applyPaintTransform

func (*RenderShrinkWrappingViewport) ComputeChildMainAxisPosition

func (r *RenderShrinkWrappingViewport) ComputeChildMainAxisPosition(child Sliver, parentMainAxisPosition float64) float64

ComputeChildMainAxisPosition converts a main axis position of the viewport to that of the child.

Flutter: rendering/viewport.dart RenderShrinkWrappingViewport.computeChildMainAxisPosition

func (*RenderShrinkWrappingViewport) HasVisualOverflow

func (r *RenderShrinkWrappingViewport) HasVisualOverflow() bool

HasVisualOverflow is whether a sliver overflowed.

Flutter: rendering/viewport.dart RenderShrinkWrappingViewport.hasVisualOverflow

func (*RenderShrinkWrappingViewport) IndexOfFirstChild

func (r *RenderShrinkWrappingViewport) IndexOfFirstChild() int

IndexOfFirstChild is zero.

Flutter: rendering/viewport.dart RenderShrinkWrappingViewport.indexOfFirstChild

func (*RenderShrinkWrappingViewport) LabelForChild

func (r *RenderShrinkWrappingViewport) LabelForChild(index int) string

LabelForChild is "child N".

Flutter: rendering/viewport.dart RenderShrinkWrappingViewport.labelForChild

func (*RenderShrinkWrappingViewport) MaxScrollObstructionExtentBefore

func (r *RenderShrinkWrappingViewport) MaxScrollObstructionExtentBefore(child Sliver) float64

MaxScrollObstructionExtentBefore is how much the slivers before the child obstruct the viewport.

Flutter: rendering/viewport.dart RenderShrinkWrappingViewport.maxScrollObstructionExtentBefore

func (*RenderShrinkWrappingViewport) PaintOffsetOf

func (r *RenderShrinkWrappingViewport) PaintOffsetOf(child Sliver) ui.Offset

PaintOffsetOf is the paint offset of the sliver, from its layout offset.

Flutter: rendering/viewport.dart RenderShrinkWrappingViewport.paintOffsetOf

func (*RenderShrinkWrappingViewport) PerformLayout

func (r *RenderShrinkWrappingViewport) PerformLayout()

PerformLayout lays the slivers out until the offset accepts the viewport and content dimensions, then sizes the viewport to the content.

Flutter: rendering/viewport.dart RenderShrinkWrappingViewport.performLayout

func (*RenderShrinkWrappingViewport) ScrollOffsetOf

func (r *RenderShrinkWrappingViewport) ScrollOffsetOf(child Sliver, scrollOffsetWithinChild float64) float64

ScrollOffsetOf converts an offset within the sliver to a scroll offset.

Flutter: rendering/viewport.dart RenderShrinkWrappingViewport.scrollOffsetOf

func (*RenderShrinkWrappingViewport) SetupParentData

func (r *RenderShrinkWrappingViewport) SetupParentData(child RenderObject)

SetupParentData gives the child a SliverLogicalContainerParentData if it has none.

Flutter: rendering/viewport.dart RenderShrinkWrappingViewport.setupParentData

func (*RenderShrinkWrappingViewport) UpdateChildLayoutOffset

func (r *RenderShrinkWrappingViewport) UpdateChildLayoutOffset(child Sliver, layoutOffset float64, _ GrowthDirection)

UpdateChildLayoutOffset stores the layout offset of the sliver.

Flutter: rendering/viewport.dart RenderShrinkWrappingViewport.updateChildLayoutOffset

func (*RenderShrinkWrappingViewport) UpdateOutOfBandData

func (r *RenderShrinkWrappingViewport) UpdateOutOfBandData(_ GrowthDirection, childLayoutGeometry SliverGeometry)

UpdateOutOfBandData accumulates the scroll extent and the extent to wrap.

Flutter: rendering/viewport.dart RenderShrinkWrappingViewport.updateOutOfBandData

type RenderShrinkWrappingViewportOpts

type RenderShrinkWrappingViewportOpts struct {
	RenderViewportBaseOpts
	// Children are the slivers.
	Children []Sliver
}

RenderShrinkWrappingViewportOpts are the optional parameters of NewRenderShrinkWrappingViewport.

Flutter: rendering/viewport.dart RenderShrinkWrappingViewport.new

type RenderSizedOverflowBox

type RenderSizedOverflowBox struct {
	RenderAligningShiftedBox
	// contains filtered or unexported fields
}

RenderSizedOverflowBox is a fixed-size box that lets its child have a different size, possibly overflowing.

Flutter: rendering/shifted_box.dart RenderSizedOverflowBox

func NewRenderSizedOverflowBox

func NewRenderSizedOverflowBox(requestedSize ui.Size, child Box, opts ...RenderSizedOverflowBoxOpts) *RenderSizedOverflowBox

NewRenderSizedOverflowBox creates the box.

Flutter: rendering/shifted_box.dart RenderSizedOverflowBox.new

func (*RenderSizedOverflowBox) ComputeDistanceToActualBaseline

func (r *RenderSizedOverflowBox) ComputeDistanceToActualBaseline(baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDistanceToActualBaseline is the child's baseline plus its offset.

Flutter: rendering/shifted_box.dart RenderSizedOverflowBox.computeDistanceToActualBaseline

func (*RenderSizedOverflowBox) ComputeDryBaseline

func (r *RenderSizedOverflowBox) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the child's baseline plus the aligned offset.

Flutter: rendering/shifted_box.dart RenderSizedOverflowBox.computeDryBaseline

func (*RenderSizedOverflowBox) ComputeDryLayout

func (r *RenderSizedOverflowBox) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the requested size, constrained.

Flutter: rendering/shifted_box.dart RenderSizedOverflowBox.computeDryLayout

func (*RenderSizedOverflowBox) ComputeMaxIntrinsicHeight

func (r *RenderSizedOverflowBox) ComputeMaxIntrinsicHeight(float64) float64

ComputeMaxIntrinsicHeight is the requested height.

Flutter: rendering/shifted_box.dart RenderSizedOverflowBox.computeMaxIntrinsicHeight

func (*RenderSizedOverflowBox) ComputeMaxIntrinsicWidth

func (r *RenderSizedOverflowBox) ComputeMaxIntrinsicWidth(float64) float64

ComputeMaxIntrinsicWidth is the requested width.

Flutter: rendering/shifted_box.dart RenderSizedOverflowBox.computeMaxIntrinsicWidth

func (*RenderSizedOverflowBox) ComputeMinIntrinsicHeight

func (r *RenderSizedOverflowBox) ComputeMinIntrinsicHeight(float64) float64

ComputeMinIntrinsicHeight is the requested height.

Flutter: rendering/shifted_box.dart RenderSizedOverflowBox.computeMinIntrinsicHeight

func (*RenderSizedOverflowBox) ComputeMinIntrinsicWidth

func (r *RenderSizedOverflowBox) ComputeMinIntrinsicWidth(float64) float64

ComputeMinIntrinsicWidth is the requested width.

Flutter: rendering/shifted_box.dart RenderSizedOverflowBox.computeMinIntrinsicWidth

func (*RenderSizedOverflowBox) PerformLayout

func (r *RenderSizedOverflowBox) PerformLayout()

PerformLayout takes the requested size and lays the child out with the parent's constraints.

Flutter: rendering/shifted_box.dart RenderSizedOverflowBox.performLayout

func (*RenderSizedOverflowBox) RequestedSize

func (r *RenderSizedOverflowBox) RequestedSize() ui.Size

RequestedSize is the size this render box should attempt to be.

Flutter: rendering/shifted_box.dart RenderSizedOverflowBox.requestedSize

func (*RenderSizedOverflowBox) SetRequestedSize

func (r *RenderSizedOverflowBox) SetRequestedSize(value ui.Size)

SetRequestedSize changes the size and marks the box as needing layout.

Flutter: rendering/shifted_box.dart RenderSizedOverflowBox.requestedSize

type RenderSizedOverflowBoxOpts

type RenderSizedOverflowBoxOpts struct {
	// Alignment defaults to painting.AlignmentCenter.
	Alignment painting.AlignmentGeometry
	// TextDirection resolves a directional alignment.
	TextDirection ui.TextDirection
}

RenderSizedOverflowBoxOpts are the optional parameters of NewRenderSizedOverflowBox.

Flutter: rendering/shifted_box.dart RenderSizedOverflowBox.new

type RenderSliver

type RenderSliver struct {
	RenderObjectBase
	// contains filtered or unexported fields
}

RenderSliver is the base of the slivers: render objects that are portions of a scrollable area, laid out with SliverConstraints.

Flutter: rendering/sliver.dart RenderSliver

func (*RenderSliver) ApplyPaintTransform

func (s *RenderSliver) ApplyPaintTransform(RenderObject, *ui.Matrix4)

ApplyPaintTransform panics in debug builds: a sliver with a child must override it.

Flutter: rendering/sliver.dart RenderSliver.applyPaintTransform

func (*RenderSliver) AsRenderSliver

func (s *RenderSliver) AsRenderSliver() *RenderSliver

AsRenderSliver returns the sliver itself.

func (*RenderSliver) CalculateCacheOffset

func (s *RenderSliver) CalculateCacheOffset(constraints SliverConstraints, from, to float64) float64

CalculateCacheOffset is how much of the range from..to (scroll offsets of this sliver) is in the cache area.

Flutter: rendering/sliver.dart RenderSliver.calculateCacheOffset

func (*RenderSliver) CalculatePaintOffset

func (s *RenderSliver) CalculatePaintOffset(constraints SliverConstraints, from, to float64) float64

CalculatePaintOffset is how much of the range from..to (scroll offsets of this sliver) is visible in the viewport.

Flutter: rendering/sliver.dart RenderSliver.calculatePaintOffset

func (*RenderSliver) CenterOffsetAdjustment

func (s *RenderSliver) CenterOffsetAdjustment() float64

CenterOffsetAdjustment is zero.

Flutter: rendering/sliver.dart RenderSliver.centerOffsetAdjustment

func (*RenderSliver) ChildCrossAxisPosition

func (s *RenderSliver) ChildCrossAxisPosition(RenderObject) float64

ChildCrossAxisPosition is zero.

Flutter: rendering/sliver.dart RenderSliver.childCrossAxisPosition

func (*RenderSliver) ChildMainAxisPosition

func (s *RenderSliver) ChildMainAxisPosition(RenderObject) float64

ChildMainAxisPosition panics in debug builds: a sliver with a child must override it.

Flutter: rendering/sliver.dart RenderSliver.childMainAxisPosition

func (*RenderSliver) ChildScrollOffset

func (s *RenderSliver) ChildScrollOffset(RenderObject) foundation.Opt[float64]

ChildScrollOffset is zero.

Flutter: rendering/sliver.dart RenderSliver.childScrollOffset

func (*RenderSliver) DebugAssertDoesMeetConstraints

func (s *RenderSliver) DebugAssertDoesMeetConstraints()

DebugAssertDoesMeetConstraints checks the geometry (SliverGeometryInvalid) and that it paints inside the remaining paint extent (SliverGeometryViolatesConstraints).

Flutter: rendering/sliver.dart RenderSliver.debugAssertDoesMeetConstraints

func (*RenderSliver) DebugFillProperties

func (s *RenderSliver) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the geometry.

Flutter: rendering/sliver.dart RenderSliver.debugFillProperties

func (*RenderSliver) DebugPaint

func (s *RenderSliver) DebugPaint(context *PaintingContext, offset ui.Offset)

DebugPaint paints the arrows that show the growth direction, if DebugOptions.PaintSizeEnabled is set.

Flutter: rendering/sliver.dart RenderSliver.debugPaint

func (*RenderSliver) DebugResetSize

func (s *RenderSliver) DebugResetSize()

DebugResetSize does nothing: slivers have no size.

Flutter: rendering/sliver.dart RenderSliver.debugResetSize

func (*RenderSliver) EnsureSemantics

func (s *RenderSliver) EnsureSemantics() bool

EnsureSemantics is false.

Flutter: rendering/sliver.dart RenderSliver.ensureSemantics

func (*RenderSliver) Geometry

func (s *RenderSliver) Geometry() SliverGeometry

Geometry is the geometry that the sliver chose at the last layout. It panics with the tag SliverNotLaidOut in debug builds if there is none.

Flutter: rendering/sliver.dart RenderSliver.geometry

func (*RenderSliver) GetAbsoluteSize

func (s *RenderSliver) GetAbsoluteSize() ui.Size

GetAbsoluteSize is the size of the paint area.

Flutter: rendering/sliver.dart RenderSliver.getAbsoluteSize

func (*RenderSliver) GetAbsoluteSizeRelativeToOrigin

func (s *RenderSliver) GetAbsoluteSizeRelativeToOrigin() ui.Size

GetAbsoluteSizeRelativeToOrigin is the size of the paint area, with the sign of the direction in which it extends from the origin.

Flutter: rendering/sliver.dart RenderSliver.getAbsoluteSizeRelativeToOrigin

func (*RenderSliver) GetMaxPaintRect

func (s *RenderSliver) GetMaxPaintRect() ui.Rect

GetMaxPaintRect is the largest rectangle the sliver could paint, in its own coordinates, at the current scroll offset.

Flutter: rendering/sliver.dart RenderSliver.getMaxPaintRect

func (*RenderSliver) HandleEvent

HandleEvent does nothing.

Flutter: rendering/sliver.dart RenderSliver.handleEvent

func (*RenderSliver) HasGeometry

func (s *RenderSliver) HasGeometry() bool

HasGeometry is whether the sliver has chosen its geometry.

func (*RenderSliver) HitTest

func (s *RenderSliver) HitTest(result *SliverHitTestResult, mainAxisPosition, crossAxisPosition float64) bool

HitTest adds the sliver to the result if the position is inside its hit test extent and it or a child is hit.

Flutter: rendering/sliver.dart RenderSliver.hitTest

func (*RenderSliver) HitTestChildren

func (s *RenderSliver) HitTestChildren(*SliverHitTestResult, float64, float64) bool

HitTestChildren is false.

Flutter: rendering/sliver.dart RenderSliver.hitTestChildren

func (*RenderSliver) HitTestSelf

func (s *RenderSliver) HitTestSelf(mainAxisPosition, crossAxisPosition float64) bool

HitTestSelf is false.

Flutter: rendering/sliver.dart RenderSliver.hitTestSelf

func (*RenderSliver) PaintBounds

func (s *RenderSliver) PaintBounds() ui.Rect

PaintBounds are the bounds of the paint area: the paint extent along the main axis and the cross axis extent across it.

Flutter: rendering/sliver.dart RenderSliver.paintBounds

func (*RenderSliver) PerformResize

func (s *RenderSliver) PerformResize()

PerformResize panics: a sliver is never sized by its parent.

Flutter: rendering/sliver.dart RenderSliver.performResize

func (*RenderSliver) SemanticBounds

func (s *RenderSliver) SemanticBounds() ui.Rect

SemanticBounds are the paint bounds.

Flutter: rendering/sliver.dart RenderSliver.semanticBounds

func (*RenderSliver) SetGeometry

func (s *RenderSliver) SetGeometry(value SliverGeometry)

SetGeometry sets the geometry. Only the sliver itself may call it, from PerformLayout (or PerformResize if it is SizedByParent); a debug build panics with SliverGeometrySetterInvalid anywhere else.

Flutter: rendering/sliver.dart RenderSliver.geometry

func (*RenderSliver) SliverConstraints

func (s *RenderSliver) SliverConstraints() SliverConstraints

SliverConstraints are the constraints that the parent gave at the last layout.

Flutter: rendering/sliver.dart RenderSliver.constraints

type RenderSliverAnimatedOpacity

type RenderSliverAnimatedOpacity struct {
	RenderProxySliver
	// contains filtered or unexported fields
}

RenderSliverAnimatedOpacity makes its sliver child partially transparent, driven by an animation: the opacity layer is updated when the animation changes, and the child is not repainted.

Flutter: rendering/proxy_sliver.dart RenderSliverAnimatedOpacity

func NewRenderSliverAnimatedOpacity

func NewRenderSliverAnimatedOpacity(opacity animation.Animation[float64], sliver Sliver, opts ...RenderSliverAnimatedOpacityOpts) *RenderSliverAnimatedOpacity

NewRenderSliverAnimatedOpacity creates the sliver; the child may be nil.

Flutter: rendering/proxy_sliver.dart RenderSliverAnimatedOpacity.new

func (*RenderSliverAnimatedOpacity) AlwaysIncludeSemantics

func (r *RenderSliverAnimatedOpacity) AlwaysIncludeSemantics() bool

AlwaysIncludeSemantics is whether the semantics of the child are kept when the child is not visible.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.alwaysIncludeSemantics

func (*RenderSliverAnimatedOpacity) Attach

func (r *RenderSliverAnimatedOpacity) Attach(owner *PipelineOwner)

Attach starts listening to the opacity animation.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.attach

func (*RenderSliverAnimatedOpacity) DebugFillProperties

DebugFillProperties adds the opacity animation and the semantics flag.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.debugFillProperties

func (*RenderSliverAnimatedOpacity) Detach

func (r *RenderSliverAnimatedOpacity) Detach()

Detach stops listening to the opacity animation.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.detach

func (*RenderSliverAnimatedOpacity) IsRepaintBoundary

func (r *RenderSliverAnimatedOpacity) IsRepaintBoundary() bool

IsRepaintBoundary is true if there is a child and the alpha is not 0.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.isRepaintBoundary

func (*RenderSliverAnimatedOpacity) Opacity

Opacity is the animation that drives the opacity of the child.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.opacity

func (*RenderSliverAnimatedOpacity) Paint

func (r *RenderSliverAnimatedOpacity) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the child unless it is invisible.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.paint

func (*RenderSliverAnimatedOpacity) PaintsChild

func (r *RenderSliverAnimatedOpacity) PaintsChild(child RenderObject) bool

PaintsChild is true if the opacity is not 0.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.paintsChild

func (*RenderSliverAnimatedOpacity) SetAlwaysIncludeSemantics

func (r *RenderSliverAnimatedOpacity) SetAlwaysIncludeSemantics(value bool)

SetAlwaysIncludeSemantics changes the flag.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.alwaysIncludeSemantics

func (*RenderSliverAnimatedOpacity) SetOpacity

SetOpacity changes the animation. The sliver listens to it while it is attached.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.opacity

func (*RenderSliverAnimatedOpacity) UpdateCompositedLayer

func (r *RenderSliverAnimatedOpacity) UpdateCompositedLayer(oldLayer OffsetLayerLike) OffsetLayerLike

UpdateCompositedLayer sets the alpha of the opacity layer.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.updateCompositedLayer

func (*RenderSliverAnimatedOpacity) VisitChildrenForSemantics

func (r *RenderSliverAnimatedOpacity) VisitChildrenForSemantics(visitor RenderObjectVisitor)

VisitChildrenForSemantics visits the child only if it is visible or AlwaysIncludeSemantics.

Flutter: rendering/proxy_box.dart RenderAnimatedOpacityMixin.visitChildrenForSemantics

type RenderSliverAnimatedOpacityOpts

type RenderSliverAnimatedOpacityOpts struct {
	// AlwaysIncludeSemantics keeps the semantics of the child when it is not
	// visible.
	AlwaysIncludeSemantics bool
}

RenderSliverAnimatedOpacityOpts are the optional parameters of NewRenderSliverAnimatedOpacity.

Flutter: rendering/proxy_sliver.dart RenderSliverAnimatedOpacity.new

type RenderSliverBoxChildManager

type RenderSliverBoxChildManager interface {
	// CreateChild creates the child at the index and inserts it after the given
	// child (nil for the start). If it can not create a child, the sliver is at
	// the end of its list. The manager inserts it with the adaptor's Insert.
	//
	// Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverBoxChildManager.createChild
	CreateChild(index int, after Box)
	// RemoveChild removes the child, which was created by CreateChild.
	//
	// Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverBoxChildManager.removeChild
	RemoveChild(child Box)
	// EstimateMaxScrollOffset estimates the total scroll extent of the list, from
	// the extent of the children that are live.
	//
	// Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverBoxChildManager.estimateMaxScrollOffset
	EstimateMaxScrollOffset(constraints SliverConstraints, opts EstimateMaxScrollOffsetOpts) float64
	// ChildCount is the number of children the list has, or the number the
	// manager knows of if it does not know the last.
	//
	// Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverBoxChildManager.childCount
	ChildCount() int
	// EstimatedChildCount is the number of children if it is known, none if the
	// list is infinite or its length is not known.
	//
	// Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverBoxChildManager.estimatedChildCount
	EstimatedChildCount() foundation.Opt[int]
	// DidAdoptChild is called when the adaptor adopts the child, so that the
	// manager can record the index in the parent data.
	//
	// Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverBoxChildManager.didAdoptChild
	DidAdoptChild(child Box)
	// SetDidUnderflow says whether the list ran out of children before it filled
	// the viewport.
	//
	// Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverBoxChildManager.setDidUnderflow
	SetDidUnderflow(value bool)
	// DidStartLayout is called at the start of the layout of the adaptor.
	//
	// Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverBoxChildManager.didStartLayout
	DidStartLayout()
	// DidFinishLayout is called at the end of the layout of the adaptor.
	//
	// Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverBoxChildManager.didFinishLayout
	DidFinishLayout()
	// DebugAssertChildListLocked is true, or panics, in debug builds, when the
	// child list is not locked.
	//
	// Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverBoxChildManager.debugAssertChildListLocked
	DebugAssertChildListLocked() bool
}

RenderSliverBoxChildManager creates and removes the box children of a RenderSliverMultiBoxAdaptor, lazily, while the sliver lays itself out.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverBoxChildManager

type RenderSliverBoxChildManagerDefaults

type RenderSliverBoxChildManagerDefaults struct{}

RenderSliverBoxChildManagerDefaults is the default of the methods of a RenderSliverBoxChildManager that Flutter gives a body: an embedding manager does not have to implement them.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverBoxChildManager

func (RenderSliverBoxChildManagerDefaults) DebugAssertChildListLocked

func (RenderSliverBoxChildManagerDefaults) DebugAssertChildListLocked() bool

DebugAssertChildListLocked is true.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverBoxChildManager.debugAssertChildListLocked

func (RenderSliverBoxChildManagerDefaults) DidFinishLayout

func (RenderSliverBoxChildManagerDefaults) DidFinishLayout()

DidFinishLayout does nothing.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverBoxChildManager.didFinishLayout

func (RenderSliverBoxChildManagerDefaults) DidStartLayout

func (RenderSliverBoxChildManagerDefaults) DidStartLayout()

DidStartLayout does nothing.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverBoxChildManager.didStartLayout

func (RenderSliverBoxChildManagerDefaults) EstimatedChildCount

func (RenderSliverBoxChildManagerDefaults) EstimatedChildCount() foundation.Opt[int]

EstimatedChildCount is none.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverBoxChildManager.estimatedChildCount

type RenderSliverConstrainedCrossAxis

type RenderSliverConstrainedCrossAxis struct {
	RenderProxySliver
	// contains filtered or unexported fields
}

RenderSliverConstrainedCrossAxis limits the cross axis extent of its sliver child to a maximum.

Flutter: rendering/proxy_sliver.dart RenderSliverConstrainedCrossAxis

func NewRenderSliverConstrainedCrossAxis

func NewRenderSliverConstrainedCrossAxis(maxExtent float64, sliver Sliver) *RenderSliverConstrainedCrossAxis

NewRenderSliverConstrainedCrossAxis creates the sliver; the child may be nil. In debug builds a negative maximum panics with the tag SliverMaxExtentNegative.

Flutter: rendering/proxy_sliver.dart RenderSliverConstrainedCrossAxis.new

func (*RenderSliverConstrainedCrossAxis) MaxExtent

MaxExtent is the maximum cross axis extent.

Flutter: rendering/proxy_sliver.dart RenderSliverConstrainedCrossAxis.maxExtent

func (*RenderSliverConstrainedCrossAxis) PerformLayout

func (r *RenderSliverConstrainedCrossAxis) PerformLayout()

PerformLayout lays the child out with the limited cross axis extent.

Flutter: rendering/proxy_sliver.dart RenderSliverConstrainedCrossAxis.performLayout

func (*RenderSliverConstrainedCrossAxis) SetMaxExtent

func (r *RenderSliverConstrainedCrossAxis) SetMaxExtent(value float64)

SetMaxExtent changes the maximum and marks the sliver as needing layout.

Flutter: rendering/proxy_sliver.dart RenderSliverConstrainedCrossAxis.maxExtent

type RenderSliverCrossAxisGroup

type RenderSliverCrossAxisGroup struct {
	RenderSliver
	ContainerRenderObject[Sliver]
}

RenderSliverCrossAxisGroup places its sliver children next to each other in the cross axis.

Flutter: rendering/sliver_group.dart RenderSliverCrossAxisGroup

func NewRenderSliverCrossAxisGroup

func NewRenderSliverCrossAxisGroup(children ...Sliver) *RenderSliverCrossAxisGroup

NewRenderSliverCrossAxisGroup creates the sliver with the children.

Flutter: rendering/sliver_group.dart RenderSliverCrossAxisGroup.new

func (*RenderSliverCrossAxisGroup) ApplyPaintTransform

func (r *RenderSliverCrossAxisGroup) ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)

ApplyPaintTransform translates by the paint offset of the child.

Flutter: rendering/sliver_group.dart RenderSliverCrossAxisGroup.applyPaintTransform

func (*RenderSliverCrossAxisGroup) ChildCrossAxisPosition

func (r *RenderSliverCrossAxisGroup) ChildCrossAxisPosition(child RenderObject) float64

ChildCrossAxisPosition is the offset of the child in the cross axis.

Flutter: rendering/sliver_group.dart RenderSliverCrossAxisGroup.childCrossAxisPosition

func (*RenderSliverCrossAxisGroup) ChildMainAxisPosition

func (r *RenderSliverCrossAxisGroup) ChildMainAxisPosition(RenderObject) float64

ChildMainAxisPosition is zero.

Flutter: rendering/sliver_group.dart RenderSliverCrossAxisGroup.childMainAxisPosition

func (*RenderSliverCrossAxisGroup) HitTestChildren

func (r *RenderSliverCrossAxisGroup) HitTestChildren(result *SliverHitTestResult, mainAxisPosition, crossAxisPosition float64) bool

HitTestChildren hit tests the children, from the last.

Flutter: rendering/sliver_group.dart RenderSliverCrossAxisGroup.hitTestChildren

func (*RenderSliverCrossAxisGroup) Paint

func (r *RenderSliverCrossAxisGroup) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the children that are visible.

Flutter: rendering/sliver_group.dart RenderSliverCrossAxisGroup.paint

func (*RenderSliverCrossAxisGroup) PerformLayout

func (r *RenderSliverCrossAxisGroup) PerformLayout()

PerformLayout gives the children without a flex their cross axis extent first, and shares what remains between the others by their flex factors. In debug builds an infinite cross axis extent panics with the tag SliverCrossAxisGroupExtentInfinite, and a child that has no extent left panics with SliverCrossAxisGroupOutOfExtent.

Flutter: rendering/sliver_group.dart RenderSliverCrossAxisGroup.performLayout

func (*RenderSliverCrossAxisGroup) SetupParentData

func (r *RenderSliverCrossAxisGroup) SetupParentData(child RenderObject)

SetupParentData gives the child a SliverPhysicalContainerParentData with a cross axis flex of 1 if it has none.

Flutter: rendering/sliver_group.dart RenderSliverCrossAxisGroup.setupParentData

type RenderSliverEdgeInsetsPadding

type RenderSliverEdgeInsetsPadding struct {
	RenderSliver
	RenderObjectWithChild[Sliver]
}

RenderSliverEdgeInsetsPadding is the base of the slivers that inset a sliver child by edge insets. The concrete type embeds it, calls InitRenderSliverEdgeInsetsPadding and implements ResolvedPadding.

Flutter: rendering/sliver_padding.dart RenderSliverEdgeInsetsPadding

func (*RenderSliverEdgeInsetsPadding) AfterPadding

func (p *RenderSliverEdgeInsetsPadding) AfterPadding() float64

AfterPadding is the padding after the child along the main axis, in the growth direction.

Flutter: rendering/sliver_padding.dart RenderSliverEdgeInsetsPadding.afterPadding

func (*RenderSliverEdgeInsetsPadding) ApplyPaintTransform

func (p *RenderSliverEdgeInsetsPadding) ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)

ApplyPaintTransform translates by the paint offset of the child.

Flutter: rendering/sliver_padding.dart RenderSliverEdgeInsetsPadding.applyPaintTransform

func (*RenderSliverEdgeInsetsPadding) BeforePadding

func (p *RenderSliverEdgeInsetsPadding) BeforePadding() float64

BeforePadding is the padding before the child along the main axis, in the growth direction.

Flutter: rendering/sliver_padding.dart RenderSliverEdgeInsetsPadding.beforePadding

func (*RenderSliverEdgeInsetsPadding) ChildCrossAxisPosition

func (p *RenderSliverEdgeInsetsPadding) ChildCrossAxisPosition(RenderObject) float64

ChildCrossAxisPosition is the padding before the child in the cross axis.

Flutter: rendering/sliver_padding.dart RenderSliverEdgeInsetsPadding.childCrossAxisPosition

func (*RenderSliverEdgeInsetsPadding) ChildMainAxisPosition

func (p *RenderSliverEdgeInsetsPadding) ChildMainAxisPosition(RenderObject) float64

ChildMainAxisPosition is the paint extent of the padding before the child.

Flutter: rendering/sliver_padding.dart RenderSliverEdgeInsetsPadding.childMainAxisPosition

func (*RenderSliverEdgeInsetsPadding) ChildScrollOffset

ChildScrollOffset is the padding before the child.

Flutter: rendering/sliver_padding.dart RenderSliverEdgeInsetsPadding.childScrollOffset

func (*RenderSliverEdgeInsetsPadding) CrossAxisPadding

func (p *RenderSliverEdgeInsetsPadding) CrossAxisPadding() float64

CrossAxisPadding is the padding along the cross axis.

Flutter: rendering/sliver_padding.dart RenderSliverEdgeInsetsPadding.crossAxisPadding

func (*RenderSliverEdgeInsetsPadding) DebugPaint

func (p *RenderSliverEdgeInsetsPadding) DebugPaint(context *PaintingContext, offset ui.Offset)

DebugPaint also paints the padding.

Flutter: rendering/sliver_padding.dart RenderSliverEdgeInsetsPadding.debugPaint

func (*RenderSliverEdgeInsetsPadding) HitTestChildren

func (p *RenderSliverEdgeInsetsPadding) HitTestChildren(result *SliverHitTestResult, mainAxisPosition, crossAxisPosition float64) bool

HitTestChildren hit tests the child, if its hit test extent reaches.

Flutter: rendering/sliver_padding.dart RenderSliverEdgeInsetsPadding.hitTestChildren

func (*RenderSliverEdgeInsetsPadding) MainAxisPadding

func (p *RenderSliverEdgeInsetsPadding) MainAxisPadding() float64

MainAxisPadding is the padding along the main axis.

Flutter: rendering/sliver_padding.dart RenderSliverEdgeInsetsPadding.mainAxisPadding

func (*RenderSliverEdgeInsetsPadding) Paint

func (p *RenderSliverEdgeInsetsPadding) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the child at its paint offset if it is visible.

Flutter: rendering/sliver_padding.dart RenderSliverEdgeInsetsPadding.paint

func (*RenderSliverEdgeInsetsPadding) PerformLayout

func (p *RenderSliverEdgeInsetsPadding) PerformLayout()

PerformLayout lays the child out with the padding taken off the constraints, and gives the sliver the geometry of the child plus the padding.

Flutter: rendering/sliver_padding.dart RenderSliverEdgeInsetsPadding.performLayout

func (*RenderSliverEdgeInsetsPadding) SetupParentData

func (p *RenderSliverEdgeInsetsPadding) SetupParentData(child RenderObject)

SetupParentData gives the child a SliverPhysicalParentData if it has none.

Flutter: rendering/sliver_padding.dart RenderSliverEdgeInsetsPadding.setupParentData

type RenderSliverFillRemaining

type RenderSliverFillRemaining struct {
	RenderSliverSingleBoxAdapter
}

RenderSliverFillRemaining is a sliver that contains a single box child that fills the remaining space in the viewport, without a scrollable inside.

Flutter: rendering/sliver_fill.dart RenderSliverFillRemaining

func NewRenderSliverFillRemaining

func NewRenderSliverFillRemaining(child Box) *RenderSliverFillRemaining

NewRenderSliverFillRemaining creates the sliver; the child may be nil.

Flutter: rendering/sliver_fill.dart RenderSliverFillRemaining.new

func (*RenderSliverFillRemaining) PerformLayout

func (r *RenderSliverFillRemaining) PerformLayout()

PerformLayout lays the child out to fill the remaining space, or its intrinsic size if that is more. In debug builds an extent that is not finite panics with the tag SliverFillRemainingExtentInfinite.

Flutter: rendering/sliver_fill.dart RenderSliverFillRemaining.performLayout

type RenderSliverFillRemainingAndOverscroll

type RenderSliverFillRemainingAndOverscroll struct {
	RenderSliverSingleBoxAdapter
}

RenderSliverFillRemainingAndOverscroll is a sliver that contains a single box child that fills the remaining space in the viewport, and also fills the overscroll.

Flutter: rendering/sliver_fill.dart RenderSliverFillRemainingAndOverscroll

func NewRenderSliverFillRemainingAndOverscroll

func NewRenderSliverFillRemainingAndOverscroll(child Box) *RenderSliverFillRemainingAndOverscroll

NewRenderSliverFillRemainingAndOverscroll creates the sliver; the child may be nil.

Flutter: rendering/sliver_fill.dart RenderSliverFillRemainingAndOverscroll.new

func (*RenderSliverFillRemainingAndOverscroll) PerformLayout

func (r *RenderSliverFillRemainingAndOverscroll) PerformLayout()

PerformLayout lays the child out to fill the remaining space and the overscroll. In debug builds an extent that is not finite panics with the tag SliverFillRemainingExtentInfinite.

Flutter: rendering/sliver_fill.dart RenderSliverFillRemainingAndOverscroll.performLayout

type RenderSliverFillRemainingWithScrollable

type RenderSliverFillRemainingWithScrollable struct {
	RenderSliverSingleBoxAdapter
}

RenderSliverFillRemainingWithScrollable is a sliver that contains a single box child that fills the remaining space in the viewport, and that is a scrollable itself.

Flutter: rendering/sliver_fill.dart RenderSliverFillRemainingWithScrollable

func NewRenderSliverFillRemainingWithScrollable

func NewRenderSliverFillRemainingWithScrollable(child Box) *RenderSliverFillRemainingWithScrollable

NewRenderSliverFillRemainingWithScrollable creates the sliver; the child may be nil.

Flutter: rendering/sliver_fill.dart RenderSliverFillRemainingWithScrollable.new

func (*RenderSliverFillRemainingWithScrollable) PerformLayout

func (r *RenderSliverFillRemainingWithScrollable) PerformLayout()

PerformLayout lays the child out to fill the remaining paint extent.

Flutter: rendering/sliver_fill.dart RenderSliverFillRemainingWithScrollable.performLayout

type RenderSliverFillViewport

type RenderSliverFillViewport struct {
	RenderSliverFixedExtentBoxAdaptor
	// contains filtered or unexported fields
}

RenderSliverFillViewport is a sliver that contains multiple box children that each fill the viewport (or a fraction of it) in the main axis.

Flutter: rendering/sliver_fill.dart RenderSliverFillViewport

func NewRenderSliverFillViewport

func NewRenderSliverFillViewport(childManager RenderSliverBoxChildManager, opts ...RenderSliverFillViewportOpts) *RenderSliverFillViewport

NewRenderSliverFillViewport creates the sliver. In debug builds a fraction that is not positive panics with the tag SliverViewportFractionInvalid.

Flutter: rendering/sliver_fill.dart RenderSliverFillViewport.new

func (*RenderSliverFillViewport) AllowImplicitScrolling

func (r *RenderSliverFillViewport) AllowImplicitScrolling() bool

AllowImplicitScrolling is whether the semantics include the children that are not visible.

Flutter: rendering/sliver_fill.dart RenderSliverFillViewport.allowImplicitScrolling

func (*RenderSliverFillViewport) ItemExtent

ItemExtent is the main axis extent of the viewport times the fraction.

Flutter: rendering/sliver_fill.dart RenderSliverFillViewport.itemExtent

func (*RenderSliverFillViewport) ItemExtentBuilder

func (r *RenderSliverFillViewport) ItemExtentBuilder() ItemExtentBuilder

ItemExtentBuilder is nil.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverFixedExtentBoxAdaptor.itemExtentBuilder

func (*RenderSliverFillViewport) SetAllowImplicitScrolling

func (r *RenderSliverFillViewport) SetAllowImplicitScrolling(value bool)

SetAllowImplicitScrolling changes the flag and marks the sliver as needing a semantics update.

Flutter: rendering/sliver_fill.dart RenderSliverFillViewport.allowImplicitScrolling

func (*RenderSliverFillViewport) SetViewportFraction

func (r *RenderSliverFillViewport) SetViewportFraction(value float64)

SetViewportFraction changes the fraction and marks the sliver as needing layout.

Flutter: rendering/sliver_fill.dart RenderSliverFillViewport.viewportFraction

func (*RenderSliverFillViewport) ViewportFraction

func (r *RenderSliverFillViewport) ViewportFraction() float64

ViewportFraction is the fraction of the viewport that each child occupies.

Flutter: rendering/sliver_fill.dart RenderSliverFillViewport.viewportFraction

func (*RenderSliverFillViewport) VisitChildrenForSemantics

func (r *RenderSliverFillViewport) VisitChildrenForSemantics(visitor RenderObjectVisitor)

VisitChildrenForSemantics visits all the children if implicit scrolling is allowed, otherwise only those in the viewport.

Flutter: rendering/sliver_fill.dart RenderSliverFillViewport.visitChildrenForSemantics

type RenderSliverFillViewportOpts

type RenderSliverFillViewportOpts struct {
	// ViewportFraction defaults to 1.
	ViewportFraction foundation.Opt[float64]
	// AllowImplicitScrolling defaults to true.
	AllowImplicitScrolling foundation.Opt[bool]
}

RenderSliverFillViewportOpts are the optional parameters of NewRenderSliverFillViewport.

Flutter: rendering/sliver_fill.dart RenderSliverFillViewport.new

type RenderSliverFixedExtentBoxAdaptor

type RenderSliverFixedExtentBoxAdaptor struct {
	RenderSliverMultiBoxAdaptor
	// contains filtered or unexported fields
}

RenderSliverFixedExtentBoxAdaptor is the base of the slivers that place box children of a known extent along the main axis: the extent is the same for all (ItemExtent) or comes from a builder (ItemExtentBuilder). The concrete type embeds it, calls InitRenderSliverFixedExtentBoxAdaptor, and implements ItemExtent and ItemExtentBuilder (exactly one of the two gives a value).

Deviation: the deprecated itemExtent parameters of IndexToLayoutOffset, GetMinChildIndexForScrollOffset, GetMaxChildIndexForScrollOffset and ComputeMaxScrollOffset are not ported (SPEC §12.10).

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverFixedExtentBoxAdaptor

func (*RenderSliverFixedExtentBoxAdaptor) ComputeMaxScrollOffset

func (a *RenderSliverFixedExtentBoxAdaptor) ComputeMaxScrollOffset(constraints SliverConstraints) float64

ComputeMaxScrollOffset is the total extent of all the children, if they all were laid out.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverFixedExtentBoxAdaptor.computeMaxScrollOffset

func (*RenderSliverFixedExtentBoxAdaptor) DebugAssertDoesMeetConstraints

func (a *RenderSliverFixedExtentBoxAdaptor) DebugAssertDoesMeetConstraints()

DebugAssertDoesMeetConstraints also checks that the scroll extent is a multiple of the item extent; it panics with the tag SliverFixedExtentNotMultiple otherwise.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverFixedExtentBoxAdaptor.debugAssertDoesMeetConstraints

func (*RenderSliverFixedExtentBoxAdaptor) EstimateMaxScrollOffset

func (a *RenderSliverFixedExtentBoxAdaptor) EstimateMaxScrollOffset(constraints SliverConstraints, opts EstimateMaxScrollOffsetOpts) float64

EstimateMaxScrollOffset asks the child manager for the estimate.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverFixedExtentBoxAdaptor.estimateMaxScrollOffset

func (*RenderSliverFixedExtentBoxAdaptor) GetMaxChildIndexForScrollOffset

func (a *RenderSliverFixedExtentBoxAdaptor) GetMaxChildIndexForScrollOffset(scrollOffset float64) int

GetMaxChildIndexForScrollOffset is the index of the last child that is visible at the scroll offset.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverFixedExtentBoxAdaptor.getMaxChildIndexForScrollOffset

func (*RenderSliverFixedExtentBoxAdaptor) GetMinChildIndexForScrollOffset

func (a *RenderSliverFixedExtentBoxAdaptor) GetMinChildIndexForScrollOffset(scrollOffset float64) int

GetMinChildIndexForScrollOffset is the index of the first child that is visible at the scroll offset.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverFixedExtentBoxAdaptor.getMinChildIndexForScrollOffset

func (*RenderSliverFixedExtentBoxAdaptor) IndexToLayoutOffset

func (a *RenderSliverFixedExtentBoxAdaptor) IndexToLayoutOffset(index int) float64

IndexToLayoutOffset is the layout offset of the child at the index.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverFixedExtentBoxAdaptor.indexToLayoutOffset

func (*RenderSliverFixedExtentBoxAdaptor) LayoutDimensions

LayoutDimensions are the dimensions of the layout in progress, or of the constraints if there is none.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverFixedExtentBoxAdaptor.layoutDimensions

func (*RenderSliverFixedExtentBoxAdaptor) PaintExtentOf

func (a *RenderSliverFixedExtentBoxAdaptor) PaintExtentOf(child Box) float64

PaintExtentOf is the extent of the child along the main axis.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverFixedExtentBoxAdaptor.paintExtentOf

func (*RenderSliverFixedExtentBoxAdaptor) PerformLayout

func (a *RenderSliverFixedExtentBoxAdaptor) PerformLayout()

PerformLayout lays out the children that are in the viewport and the cache area, whose positions follow from their index.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverFixedExtentBoxAdaptor.performLayout

type RenderSliverFixedExtentList

type RenderSliverFixedExtentList struct {
	RenderSliverFixedExtentBoxAdaptor
	// contains filtered or unexported fields
}

RenderSliverFixedExtentList is a sliver that places multiple box children with the same extent in the main axis in a linear array.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverFixedExtentList

func NewRenderSliverFixedExtentList

func NewRenderSliverFixedExtentList(childManager RenderSliverBoxChildManager, itemExtent float64) *RenderSliverFixedExtentList

NewRenderSliverFixedExtentList creates the sliver.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverFixedExtentList.new

func (*RenderSliverFixedExtentList) ItemExtent

ItemExtent is the main axis extent of every child.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverFixedExtentList.itemExtent

func (*RenderSliverFixedExtentList) ItemExtentBuilder

func (r *RenderSliverFixedExtentList) ItemExtentBuilder() ItemExtentBuilder

ItemExtentBuilder is nil.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverFixedExtentBoxAdaptor.itemExtentBuilder

func (*RenderSliverFixedExtentList) SetItemExtent

func (r *RenderSliverFixedExtentList) SetItemExtent(value float64)

SetItemExtent changes the extent and marks the sliver as needing layout.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverFixedExtentList.itemExtent

type RenderSliverFloatingPersistentHeader

type RenderSliverFloatingPersistentHeader struct {
	RenderSliverPersistentHeader
	// contains filtered or unexported fields
}

RenderSliverFloatingPersistentHeader is a header that reappears as soon as the user scrolls back, and optionally snaps into or out of view.

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPersistentHeader

func (*RenderSliverFloatingPersistentHeader) ChildMainAxisPosition

func (h *RenderSliverFloatingPersistentHeader) ChildMainAxisPosition(RenderObject) float64

ChildMainAxisPosition is the position that the layout computed.

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPersistentHeader.childMainAxisPosition

func (*RenderSliverFloatingPersistentHeader) DebugFillProperties

DebugFillProperties adds the effective scroll offset.

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPersistentHeader.debugFillProperties

func (*RenderSliverFloatingPersistentHeader) Detach

Detach disposes the snap animation controller; it is created again when needed.

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPersistentHeader.detach

func (*RenderSliverFloatingPersistentHeader) MaybeStartSnapAnimation

func (h *RenderSliverFloatingPersistentHeader) MaybeStartSnapAnimation(direction ScrollDirection)

MaybeStartSnapAnimation starts the animation that snaps the header into or out of view, if it is configured to and is partly visible.

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPersistentHeader.maybeStartSnapAnimation

func (*RenderSliverFloatingPersistentHeader) MaybeStopSnapAnimation

func (h *RenderSliverFloatingPersistentHeader) MaybeStopSnapAnimation(ScrollDirection)

MaybeStopSnapAnimation stops the snap animation.

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPersistentHeader.maybeStopSnapAnimation

func (*RenderSliverFloatingPersistentHeader) PerformLayout

func (h *RenderSliverFloatingPersistentHeader) PerformLayout()

PerformLayout lays the header out: it keeps the scroll offset at which the header is shown, which follows the scroll offset of the sliver when the user scrolls forward.

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPersistentHeader.performLayout

func (*RenderSliverFloatingPersistentHeader) SetShowOnScreenConfiguration

SetShowOnScreenConfiguration changes the configuration.

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPersistentHeader.showOnScreenConfiguration

func (*RenderSliverFloatingPersistentHeader) SetSnapConfiguration

SetSnapConfiguration changes the snap configuration.

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPersistentHeader.snapConfiguration

func (*RenderSliverFloatingPersistentHeader) SetVsync

SetVsync changes the ticker provider.

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPersistentHeader.vsync

func (*RenderSliverFloatingPersistentHeader) ShowOnScreen

ShowOnScreen shows the descendant by growing the header to the extent that its configuration allows, then asks the parent to show the child.

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPersistentHeader.showOnScreen

func (*RenderSliverFloatingPersistentHeader) ShowOnScreenConfiguration

ShowOnScreenConfiguration is how the header reacts to a request to show a descendant on screen; nil for the default.

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPersistentHeader.showOnScreenConfiguration

func (*RenderSliverFloatingPersistentHeader) SnapConfiguration

SnapConfiguration is how the header snaps; nil if it does not.

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPersistentHeader.snapConfiguration

func (*RenderSliverFloatingPersistentHeader) UpdateGeometry

func (h *RenderSliverFloatingPersistentHeader) UpdateGeometry() float64

UpdateGeometry sets the geometry and returns the position of the child.

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPersistentHeader.updateGeometry

func (*RenderSliverFloatingPersistentHeader) UpdateScrollStartDirection

func (h *RenderSliverFloatingPersistentHeader) UpdateScrollStartDirection(direction ScrollDirection)

UpdateScrollStartDirection records the direction in which the user started to scroll.

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPersistentHeader.updateScrollStartDirection

func (*RenderSliverFloatingPersistentHeader) Vsync

Vsync is the provider of the tickers of the snap animations.

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPersistentHeader.vsync

type RenderSliverFloatingPinnedPersistentHeader

type RenderSliverFloatingPinnedPersistentHeader struct {
	RenderSliverFloatingPersistentHeader
}

RenderSliverFloatingPinnedPersistentHeader is a header that floats like RenderSliverFloatingPersistentHeader, but shrinks to its minimum extent instead of leaving the viewport.

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPinnedPersistentHeader

func (*RenderSliverFloatingPinnedPersistentHeader) UpdateGeometry

UpdateGeometry sets the geometry, with the minimum extent as the least paint extent, and returns zero.

Flutter: rendering/sliver_persistent_header.dart RenderSliverFloatingPinnedPersistentHeader.updateGeometry

type RenderSliverGrid

type RenderSliverGrid struct {
	RenderSliverMultiBoxAdaptor
	// contains filtered or unexported fields
}

RenderSliverGrid is a sliver that places multiple box children in a two dimensional arrangement, lazily.

Flutter: rendering/sliver_grid.dart RenderSliverGrid

func NewRenderSliverGrid

func NewRenderSliverGrid(childManager RenderSliverBoxChildManager, gridDelegate SliverGridDelegate) *RenderSliverGrid

NewRenderSliverGrid creates the sliver.

Flutter: rendering/sliver_grid.dart RenderSliverGrid.new

func (*RenderSliverGrid) ChildCrossAxisPosition

func (r *RenderSliverGrid) ChildCrossAxisPosition(child RenderObject) float64

ChildCrossAxisPosition is the cross axis offset of the child.

Flutter: rendering/sliver_grid.dart RenderSliverGrid.childCrossAxisPosition

func (*RenderSliverGrid) GridDelegate

func (r *RenderSliverGrid) GridDelegate() SliverGridDelegate

GridDelegate is the delegate that controls the layout of the children.

Flutter: rendering/sliver_grid.dart RenderSliverGrid.gridDelegate

func (*RenderSliverGrid) PerformLayout

func (r *RenderSliverGrid) PerformLayout()

PerformLayout lays out the children that are in the viewport and the cache area, whose positions the layout of the delegate gives.

Flutter: rendering/sliver_grid.dart RenderSliverGrid.performLayout

func (*RenderSliverGrid) SetGridDelegate

func (r *RenderSliverGrid) SetGridDelegate(value SliverGridDelegate)

SetGridDelegate changes the delegate; the sliver is laid out again if the delegate is of another type, or says it should be.

Flutter: rendering/sliver_grid.dart RenderSliverGrid.gridDelegate

func (*RenderSliverGrid) SetupParentData

func (r *RenderSliverGrid) SetupParentData(child RenderObject)

SetupParentData gives the child a SliverGridParentData if it has none.

Flutter: rendering/sliver_grid.dart RenderSliverGrid.setupParentData

type RenderSliverIgnorePointer

type RenderSliverIgnorePointer struct {
	RenderProxySliver
	// contains filtered or unexported fields
}

RenderSliverIgnorePointer ignores pointer events in its sliver child while ignoring is true.

Deviation: the deprecated ignoringSemantics parameter is not ported, so the semantics are blocked exactly when the pointer is ignored (SPEC §12.10).

Flutter: rendering/proxy_sliver.dart RenderSliverIgnorePointer

func NewRenderSliverIgnorePointer

func NewRenderSliverIgnorePointer(sliver Sliver, opts ...RenderSliverIgnorePointerOpts) *RenderSliverIgnorePointer

NewRenderSliverIgnorePointer creates the sliver; the child may be nil.

Flutter: rendering/proxy_sliver.dart RenderSliverIgnorePointer.new

func (*RenderSliverIgnorePointer) DebugFillProperties

DebugFillProperties adds the flag.

Flutter: rendering/proxy_sliver.dart RenderSliverIgnorePointer.debugFillProperties

func (*RenderSliverIgnorePointer) DescribeSemanticsConfiguration

func (r *RenderSliverIgnorePointer) DescribeSemanticsConfiguration(config *semantics.SemanticsConfiguration)

DescribeSemanticsConfiguration blocks user actions while ignoring.

Flutter: rendering/proxy_sliver.dart RenderSliverIgnorePointer.describeSemanticsConfiguration

func (*RenderSliverIgnorePointer) HitTest

func (r *RenderSliverIgnorePointer) HitTest(result *SliverHitTestResult, mainAxisPosition, crossAxisPosition float64) bool

HitTest is false while ignoring.

Flutter: rendering/proxy_sliver.dart RenderSliverIgnorePointer.hitTest

func (*RenderSliverIgnorePointer) Ignoring

func (r *RenderSliverIgnorePointer) Ignoring() bool

Ignoring is whether pointer events are ignored.

Flutter: rendering/proxy_sliver.dart RenderSliverIgnorePointer.ignoring

func (*RenderSliverIgnorePointer) SetIgnoring

func (r *RenderSliverIgnorePointer) SetIgnoring(value bool)

SetIgnoring changes the flag and marks the sliver as needing a semantics update.

Flutter: rendering/proxy_sliver.dart RenderSliverIgnorePointer.ignoring

type RenderSliverIgnorePointerOpts

type RenderSliverIgnorePointerOpts struct {
	// Ignoring defaults to true.
	Ignoring foundation.Opt[bool]
}

RenderSliverIgnorePointerOpts are the optional parameters of NewRenderSliverIgnorePointer.

Flutter: rendering/proxy_sliver.dart RenderSliverIgnorePointer.new

type RenderSliverList

type RenderSliverList struct {
	RenderSliverMultiBoxAdaptor
	// contains filtered or unexported fields
}

RenderSliverList is a sliver that places multiple box children in a linear array along the main axis, lazily: it asks the child manager for the children that are in the viewport and the cache area.

Flutter: rendering/sliver_list.dart RenderSliverList

func NewRenderSliverList

func NewRenderSliverList(childManager RenderSliverBoxChildManager) *RenderSliverList

NewRenderSliverList creates the sliver.

Flutter: rendering/sliver_list.dart RenderSliverList.new

func (*RenderSliverList) PerformLayout

func (r *RenderSliverList) PerformLayout()

PerformLayout lays out the children from the first one that is needed to the last one that fits in the cache area, creating them as needed and collecting the ones that are not.

Flutter: rendering/sliver_list.dart RenderSliverList.performLayout

type RenderSliverMainAxisGroup

type RenderSliverMainAxisGroup struct {
	RenderSliver
	ContainerRenderObject[Sliver]
}

RenderSliverMainAxisGroup places its sliver children one after the other in the main axis, like slivers in a viewport.

Flutter: rendering/sliver_group.dart RenderSliverMainAxisGroup

func NewRenderSliverMainAxisGroup

func NewRenderSliverMainAxisGroup(children ...Sliver) *RenderSliverMainAxisGroup

NewRenderSliverMainAxisGroup creates the sliver with the children.

Flutter: rendering/sliver_group.dart RenderSliverMainAxisGroup.new

func (*RenderSliverMainAxisGroup) ApplyPaintTransform

func (r *RenderSliverMainAxisGroup) ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)

ApplyPaintTransform translates by the paint offset of the child.

Flutter: rendering/sliver_group.dart RenderSliverMainAxisGroup.applyPaintTransform

func (*RenderSliverMainAxisGroup) ChildCrossAxisPosition

func (r *RenderSliverMainAxisGroup) ChildCrossAxisPosition(RenderObject) float64

ChildCrossAxisPosition is zero.

Flutter: rendering/sliver_group.dart RenderSliverMainAxisGroup.childCrossAxisPosition

func (*RenderSliverMainAxisGroup) ChildMainAxisPosition

func (r *RenderSliverMainAxisGroup) ChildMainAxisPosition(child RenderObject) float64

ChildMainAxisPosition is the position of the child in the main axis.

Flutter: rendering/sliver_group.dart RenderSliverMainAxisGroup.childMainAxisPosition

func (*RenderSliverMainAxisGroup) ChildScrollOffset

func (r *RenderSliverMainAxisGroup) ChildScrollOffset(child RenderObject) foundation.Opt[float64]

ChildScrollOffset is the scroll extent of the children before the child, minus what the pinned ones obstruct.

Flutter: rendering/sliver_group.dart RenderSliverMainAxisGroup.childScrollOffset

func (*RenderSliverMainAxisGroup) HitTestChildren

func (r *RenderSliverMainAxisGroup) HitTestChildren(result *SliverHitTestResult, mainAxisPosition, crossAxisPosition float64) bool

HitTestChildren hit tests the children, from the first.

Flutter: rendering/sliver_group.dart RenderSliverMainAxisGroup.hitTestChildren

func (*RenderSliverMainAxisGroup) Paint

func (r *RenderSliverMainAxisGroup) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the children that are visible, from the last.

Flutter: rendering/sliver_group.dart RenderSliverMainAxisGroup.paint

func (*RenderSliverMainAxisGroup) PerformLayout

func (r *RenderSliverMainAxisGroup) PerformLayout()

PerformLayout lays the children out one after the other. In debug builds a sliver after one of infinite extent panics with the tag SliverUnreachableSliver.

Flutter: rendering/sliver_group.dart RenderSliverMainAxisGroup.performLayout

func (*RenderSliverMainAxisGroup) SetupParentData

func (r *RenderSliverMainAxisGroup) SetupParentData(child RenderObject)

SetupParentData gives the child a SliverPhysicalContainerParentData if it has none.

Flutter: rendering/sliver_group.dart RenderSliverMainAxisGroup.setupParentData

func (*RenderSliverMainAxisGroup) VisitChildrenForSemantics

func (r *RenderSliverMainAxisGroup) VisitChildrenForSemantics(visitor RenderObjectVisitor)

VisitChildrenForSemantics visits the children that are visible, in the cache area or keep their semantics.

Flutter: rendering/sliver_group.dart RenderSliverMainAxisGroup.visitChildrenForSemantics

type RenderSliverMultiBoxAdaptor

type RenderSliverMultiBoxAdaptor struct {
	RenderSliver
	ContainerRenderObject[Box]
	// contains filtered or unexported fields
}

RenderSliverMultiBoxAdaptor is the base of the slivers that have a list of box children which are created lazily, by a child manager, as the sliver lays itself out, and may be kept alive out of view. The concrete type embeds it, calls InitRenderSliverMultiBoxAdaptor, and implements PerformLayout.

Flutter's adoptChild override, which tells the manager about a child that is not kept alive, runs inside Insert, because Go has no virtual methods.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor

func (*RenderSliverMultiBoxAdaptor) AddInitialChild

func (a *RenderSliverMultiBoxAdaptor) AddInitialChild(opts ...AddInitialChildOpts) bool

AddInitialChild creates the first child, which must be done when there are none. It returns false if the manager has no child at the index, after telling it so.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.addInitialChild

func (*RenderSliverMultiBoxAdaptor) ApplyPaintTransform

func (a *RenderSliverMultiBoxAdaptor) ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)

ApplyPaintTransform translates by the position of the child; for a child that is not painted it is the zero matrix.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.applyPaintTransform

func (*RenderSliverMultiBoxAdaptor) AsRenderSliverMultiBoxAdaptor

func (a *RenderSliverMultiBoxAdaptor) AsRenderSliverMultiBoxAdaptor() *RenderSliverMultiBoxAdaptor

AsRenderSliverMultiBoxAdaptor is the adaptor that the sliver embeds.

Flutter: no counterpart (Dart subclasses are the adaptor)

func (*RenderSliverMultiBoxAdaptor) Attach

func (a *RenderSliverMultiBoxAdaptor) Attach(owner *PipelineOwner)

Attach attaches the kept alive children too.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.attach

func (*RenderSliverMultiBoxAdaptor) CalculateLeadingGarbage

func (a *RenderSliverMultiBoxAdaptor) CalculateLeadingGarbage(firstIndex int) int

CalculateLeadingGarbage is how many children from the start have an index below the first index.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.calculateLeadingGarbage

func (*RenderSliverMultiBoxAdaptor) CalculateTrailingGarbage

func (a *RenderSliverMultiBoxAdaptor) CalculateTrailingGarbage(lastIndex int) int

CalculateTrailingGarbage is how many children from the end have an index above the last index.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.calculateTrailingGarbage

func (*RenderSliverMultiBoxAdaptor) ChildMainAxisPosition

func (a *RenderSliverMultiBoxAdaptor) ChildMainAxisPosition(child RenderObject) float64

ChildMainAxisPosition is the scroll offset of the child minus the scroll offset of the sliver.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.childMainAxisPosition

func (*RenderSliverMultiBoxAdaptor) ChildManager

ChildManager is the object that creates and removes the children.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.childManager

func (*RenderSliverMultiBoxAdaptor) ChildScrollOffset

func (a *RenderSliverMultiBoxAdaptor) ChildScrollOffset(child RenderObject) foundation.Opt[float64]

ChildScrollOffset is the layout offset of the child.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.childScrollOffset

func (*RenderSliverMultiBoxAdaptor) CollectGarbage

func (a *RenderSliverMultiBoxAdaptor) CollectGarbage(leadingGarbage, trailingGarbage int)

CollectGarbage removes the given numbers of children from the start and the end of the list, or keeps them alive if they ask to, and removes the kept alive children that no longer ask.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.collectGarbage

func (*RenderSliverMultiBoxAdaptor) DebugAssertChildListIsNonEmptyAndContiguous

func (a *RenderSliverMultiBoxAdaptor) DebugAssertChildListIsNonEmptyAndContiguous() bool

DebugAssertChildListIsNonEmptyAndContiguous panics, in debug builds, with the tag SliverChildListInvalid if there are no children or their indices are not consecutive. It returns true.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.debugAssertChildListIsNonEmptyAndContiguous

func (*RenderSliverMultiBoxAdaptor) DebugChildIntegrityEnabled

func (a *RenderSliverMultiBoxAdaptor) DebugChildIntegrityEnabled() bool

DebugChildIntegrityEnabled is whether the debug checks of the child list are on.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.debugChildIntegrityEnabled

func (*RenderSliverMultiBoxAdaptor) DebugDescribeChildren

func (a *RenderSliverMultiBoxAdaptor) DebugDescribeChildren() []foundation.DiagnosticsNode

DebugDescribeChildren describes the live children by index, and the kept alive ones after them.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.debugDescribeChildren

func (*RenderSliverMultiBoxAdaptor) DebugFillProperties

DebugFillProperties adds the indices of the live children.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.debugFillProperties

func (*RenderSliverMultiBoxAdaptor) Detach

func (a *RenderSliverMultiBoxAdaptor) Detach()

Detach detaches the kept alive children too.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.detach

func (*RenderSliverMultiBoxAdaptor) HitTestChildren

func (a *RenderSliverMultiBoxAdaptor) HitTestChildren(result *SliverHitTestResult, mainAxisPosition, crossAxisPosition float64) bool

HitTestChildren hit tests the children, from the last.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.hitTestChildren

func (*RenderSliverMultiBoxAdaptor) IndexOf

func (a *RenderSliverMultiBoxAdaptor) IndexOf(child Box) int

IndexOf is the index of the child, which the manager set.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.indexOf

func (*RenderSliverMultiBoxAdaptor) Insert

func (a *RenderSliverMultiBoxAdaptor) Insert(child, after Box)

Insert adds the child after another child, or at the start if after is nil, and tells the manager that it adopted it.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.insert

func (*RenderSliverMultiBoxAdaptor) InsertAndLayoutChild

func (a *RenderSliverMultiBoxAdaptor) InsertAndLayoutChild(childConstraints BoxConstraints, after Box, opts ...LayoutOpts) Box

InsertAndLayoutChild creates and lays out the child after the given one. It returns nil, after telling the manager, if there is none.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.insertAndLayoutChild

func (*RenderSliverMultiBoxAdaptor) InsertAndLayoutLeadingChild

func (a *RenderSliverMultiBoxAdaptor) InsertAndLayoutLeadingChild(childConstraints BoxConstraints, opts ...LayoutOpts) Box

InsertAndLayoutLeadingChild creates and lays out the child before the first one. It returns nil, after telling the manager, if there is none.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.insertAndLayoutLeadingChild

func (*RenderSliverMultiBoxAdaptor) InsertObject

func (a *RenderSliverMultiBoxAdaptor) InsertObject(child, after RenderObject)

InsertObject is Insert, for the widgets library.

Flutter: widgets/sliver.dart SliverMultiBoxAdaptorElement.insertRenderObjectChild

func (*RenderSliverMultiBoxAdaptor) Move

func (a *RenderSliverMultiBoxAdaptor) Move(child, after Box)

Move moves the child to after another child (or the start). A kept alive child is only handed to the manager again, to update its slot.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.move

func (*RenderSliverMultiBoxAdaptor) MoveObject

func (a *RenderSliverMultiBoxAdaptor) MoveObject(child, after RenderObject)

MoveObject is Move, for the widgets library.

Flutter: widgets/sliver.dart SliverMultiBoxAdaptorElement.moveRenderObjectChild

func (*RenderSliverMultiBoxAdaptor) Paint

func (a *RenderSliverMultiBoxAdaptor) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the children that are in the viewport.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.paint

func (*RenderSliverMultiBoxAdaptor) PaintExtentOf

func (a *RenderSliverMultiBoxAdaptor) PaintExtentOf(child Box) float64

PaintExtentOf is the extent of the child along the main axis.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.paintExtentOf

func (*RenderSliverMultiBoxAdaptor) PaintsChild

func (a *RenderSliverMultiBoxAdaptor) PaintsChild(child RenderObject) bool

PaintsChild is true for a child that has an index and is not in the bucket of kept alive children.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.paintsChild

func (*RenderSliverMultiBoxAdaptor) RedepthChildren

func (a *RenderSliverMultiBoxAdaptor) RedepthChildren()

RedepthChildren updates the depth of the kept alive children too.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.redepthChildren

func (*RenderSliverMultiBoxAdaptor) Remove

func (a *RenderSliverMultiBoxAdaptor) Remove(child Box)

Remove removes the child, from the list or from the bucket of kept alive children.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.remove

func (*RenderSliverMultiBoxAdaptor) RemoveAll

func (a *RenderSliverMultiBoxAdaptor) RemoveAll()

RemoveAll removes every child, the kept alive ones included.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.removeAll

func (*RenderSliverMultiBoxAdaptor) RemoveObject

func (a *RenderSliverMultiBoxAdaptor) RemoveObject(child RenderObject)

RemoveObject is Remove, for the widgets library.

Flutter: widgets/sliver.dart SliverMultiBoxAdaptorElement.removeRenderObjectChild

func (*RenderSliverMultiBoxAdaptor) SemanticBounds

func (a *RenderSliverMultiBoxAdaptor) SemanticBounds() ui.Rect

SemanticBounds are the paint bounds of the first child if the sliver is not visible.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.semanticBounds

func (*RenderSliverMultiBoxAdaptor) SetDebugChildIntegrityEnabled

func (a *RenderSliverMultiBoxAdaptor) SetDebugChildIntegrityEnabled(enabled bool)

SetDebugChildIntegrityEnabled turns the debug checks of the child list on or off; in debug builds it checks that the children are in order and, when they are on, that no kept alive child is dangling, and panics with the tags SliverChildOrderInvalid and SliverDanglingKeepAlives otherwise.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.debugChildIntegrityEnabled

func (*RenderSliverMultiBoxAdaptor) SetupParentData

func (a *RenderSliverMultiBoxAdaptor) SetupParentData(child RenderObject)

SetupParentData gives the child a SliverMultiBoxAdaptorParentData if it has none.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.setupParentData

func (*RenderSliverMultiBoxAdaptor) VisitChildren

func (a *RenderSliverMultiBoxAdaptor) VisitChildren(visitor RenderObjectVisitor)

VisitChildren visits the live children and the kept alive ones.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.visitChildren

func (*RenderSliverMultiBoxAdaptor) VisitChildrenForSemantics

func (a *RenderSliverMultiBoxAdaptor) VisitChildrenForSemantics(visitor RenderObjectVisitor)

VisitChildrenForSemantics visits the live children, not the kept alive ones.

Flutter: rendering/sliver_multi_box_adaptor.dart RenderSliverMultiBoxAdaptor.visitChildrenForSemantics

type RenderSliverOffstage

type RenderSliverOffstage struct {
	RenderProxySliver
	// contains filtered or unexported fields
}

RenderSliverOffstage lays its sliver child out as if it were visible, but does not paint it, does not hit test it and takes no space.

Flutter: rendering/proxy_sliver.dart RenderSliverOffstage

func NewRenderSliverOffstage

func NewRenderSliverOffstage(sliver Sliver, opts ...RenderSliverOffstageOpts) *RenderSliverOffstage

NewRenderSliverOffstage creates the sliver; the child may be nil.

Flutter: rendering/proxy_sliver.dart RenderSliverOffstage.new

func (*RenderSliverOffstage) DebugDescribeChildren

func (r *RenderSliverOffstage) DebugDescribeChildren() []foundation.DiagnosticsNode

DebugDescribeChildren describes the child, as offstage while offstage.

Flutter: rendering/proxy_sliver.dart RenderSliverOffstage.debugDescribeChildren

func (*RenderSliverOffstage) DebugFillProperties

func (r *RenderSliverOffstage) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the flag.

Flutter: rendering/proxy_sliver.dart RenderSliverOffstage.debugFillProperties

func (*RenderSliverOffstage) HitTest

func (r *RenderSliverOffstage) HitTest(result *SliverHitTestResult, mainAxisPosition, crossAxisPosition float64) bool

HitTest is false while offstage.

Flutter: rendering/proxy_sliver.dart RenderSliverOffstage.hitTest

func (*RenderSliverOffstage) HitTestChildren

func (r *RenderSliverOffstage) HitTestChildren(result *SliverHitTestResult, mainAxisPosition, crossAxisPosition float64) bool

HitTestChildren is false while offstage.

Flutter: rendering/proxy_sliver.dart RenderSliverOffstage.hitTestChildren

func (*RenderSliverOffstage) Offstage

func (r *RenderSliverOffstage) Offstage() bool

Offstage is whether the child is hidden.

Flutter: rendering/proxy_sliver.dart RenderSliverOffstage.offstage

func (*RenderSliverOffstage) Paint

func (r *RenderSliverOffstage) Paint(context *PaintingContext, offset ui.Offset)

Paint paints nothing while offstage.

Flutter: rendering/proxy_sliver.dart RenderSliverOffstage.paint

func (*RenderSliverOffstage) PerformLayout

func (r *RenderSliverOffstage) PerformLayout()

PerformLayout lays the child out, and takes no space while offstage.

Flutter: rendering/proxy_sliver.dart RenderSliverOffstage.performLayout

func (*RenderSliverOffstage) SetOffstage

func (r *RenderSliverOffstage) SetOffstage(value bool)

SetOffstage changes the flag and marks the sliver as needing layout.

Flutter: rendering/proxy_sliver.dart RenderSliverOffstage.offstage

func (*RenderSliverOffstage) VisitChildrenForSemantics

func (r *RenderSliverOffstage) VisitChildrenForSemantics(visitor RenderObjectVisitor)

VisitChildrenForSemantics visits nothing while offstage.

Flutter: rendering/proxy_sliver.dart RenderSliverOffstage.visitChildrenForSemantics

type RenderSliverOffstageOpts

type RenderSliverOffstageOpts struct {
	// Offstage defaults to true.
	Offstage foundation.Opt[bool]
}

RenderSliverOffstageOpts are the optional parameters of NewRenderSliverOffstage.

Flutter: rendering/proxy_sliver.dart RenderSliverOffstage.new

type RenderSliverOpacity

type RenderSliverOpacity struct {
	RenderProxySliver
	// contains filtered or unexported fields
}

RenderSliverOpacity makes its sliver child partially transparent.

Flutter: rendering/proxy_sliver.dart RenderSliverOpacity

func NewRenderSliverOpacity

func NewRenderSliverOpacity(sliver Sliver, opts ...RenderSliverOpacityOpts) *RenderSliverOpacity

NewRenderSliverOpacity creates the sliver; the child may be nil. An opacity outside 0..1 panics with OpacityOutOfRange in debug builds.

Flutter: rendering/proxy_sliver.dart RenderSliverOpacity.new

func (*RenderSliverOpacity) AlwaysIncludeSemantics

func (r *RenderSliverOpacity) AlwaysIncludeSemantics() bool

AlwaysIncludeSemantics is whether the semantics of the child are kept when the child is not visible.

Flutter: rendering/proxy_sliver.dart RenderSliverOpacity.alwaysIncludeSemantics

func (*RenderSliverOpacity) AlwaysNeedsCompositing

func (r *RenderSliverOpacity) AlwaysNeedsCompositing() bool

AlwaysNeedsCompositing is true if there is a child and the opacity is not 0.

Flutter: rendering/proxy_sliver.dart RenderSliverOpacity.alwaysNeedsCompositing

func (*RenderSliverOpacity) DebugFillProperties

func (r *RenderSliverOpacity) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the opacity and the semantics flag.

Flutter: rendering/proxy_sliver.dart RenderSliverOpacity.debugFillProperties

func (*RenderSliverOpacity) Opacity

func (r *RenderSliverOpacity) Opacity() float64

Opacity is the fraction to scale the child's alpha value by.

Flutter: rendering/proxy_sliver.dart RenderSliverOpacity.opacity

func (*RenderSliverOpacity) Paint

func (r *RenderSliverOpacity) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the child in an opacity layer.

Flutter: rendering/proxy_sliver.dart RenderSliverOpacity.paint

func (*RenderSliverOpacity) SetAlwaysIncludeSemantics

func (r *RenderSliverOpacity) SetAlwaysIncludeSemantics(value bool)

SetAlwaysIncludeSemantics changes the flag.

Flutter: rendering/proxy_sliver.dart RenderSliverOpacity.alwaysIncludeSemantics

func (*RenderSliverOpacity) SetOpacity

func (r *RenderSliverOpacity) SetOpacity(value float64)

SetOpacity changes the opacity and marks the sliver as needing paint.

Flutter: rendering/proxy_sliver.dart RenderSliverOpacity.opacity

func (*RenderSliverOpacity) VisitChildrenForSemantics

func (r *RenderSliverOpacity) VisitChildrenForSemantics(visitor RenderObjectVisitor)

VisitChildrenForSemantics visits the child only if it is visible or AlwaysIncludeSemantics.

Flutter: rendering/proxy_sliver.dart RenderSliverOpacity.visitChildrenForSemantics

type RenderSliverOpacityOpts

type RenderSliverOpacityOpts struct {
	// Opacity defaults to 1.
	Opacity foundation.Opt[float64]
	// AlwaysIncludeSemantics keeps the semantics of the child when it is not
	// visible.
	AlwaysIncludeSemantics bool
}

RenderSliverOpacityOpts are the optional parameters of NewRenderSliverOpacity.

Flutter: rendering/proxy_sliver.dart RenderSliverOpacity.new

type RenderSliverPadding

type RenderSliverPadding struct {
	RenderSliverEdgeInsetsPadding
	// contains filtered or unexported fields
}

RenderSliverPadding insets a sliver child by the given padding.

Flutter: rendering/sliver_padding.dart RenderSliverPadding

func NewRenderSliverPadding

func NewRenderSliverPadding(padding painting.EdgeInsetsGeometry, child Sliver, opts ...RenderSliverPaddingOpts) *RenderSliverPadding

NewRenderSliverPadding creates the sliver; the child may be nil. A negative padding panics with PaddingNegative in debug builds.

Flutter: rendering/sliver_padding.dart RenderSliverPadding.new

func (*RenderSliverPadding) DebugFillProperties

func (r *RenderSliverPadding) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the padding and the text direction.

Flutter: rendering/sliver_padding.dart RenderSliverPadding.debugFillProperties

func (*RenderSliverPadding) Padding

Padding is the amount to pad the child in each dimension.

Flutter: rendering/sliver_padding.dart RenderSliverPadding.padding

func (*RenderSliverPadding) PerformLayout

func (r *RenderSliverPadding) PerformLayout()

PerformLayout resolves the padding, then lays out.

Flutter: rendering/sliver_padding.dart RenderSliverPadding.performLayout

func (*RenderSliverPadding) ResolvedPadding

func (r *RenderSliverPadding) ResolvedPadding() foundation.Opt[painting.EdgeInsets]

ResolvedPadding is the padding resolved with the text direction; none until the first layout.

Flutter: rendering/sliver_padding.dart RenderSliverPadding.resolvedPadding

func (*RenderSliverPadding) SetPadding

func (r *RenderSliverPadding) SetPadding(value painting.EdgeInsetsGeometry)

SetPadding changes the padding and marks the sliver as needing layout.

Flutter: rendering/sliver_padding.dart RenderSliverPadding.padding

func (*RenderSliverPadding) SetTextDirection

func (r *RenderSliverPadding) SetTextDirection(value ui.TextDirection)

SetTextDirection changes the direction and marks the sliver as needing layout.

Flutter: rendering/sliver_padding.dart RenderSliverPadding.textDirection

func (*RenderSliverPadding) TextDirection

func (r *RenderSliverPadding) TextDirection() ui.TextDirection

TextDirection resolves a directional padding.

Flutter: rendering/sliver_padding.dart RenderSliverPadding.textDirection

type RenderSliverPaddingOpts

type RenderSliverPaddingOpts struct {
	// TextDirection resolves a directional padding.
	TextDirection ui.TextDirection
}

RenderSliverPaddingOpts are the optional parameters of NewRenderSliverPadding.

Flutter: rendering/sliver_padding.dart RenderSliverPadding.new

type RenderSliverPersistentHeader

type RenderSliverPersistentHeader struct {
	RenderSliver
	RenderObjectWithChild[Box]
	// contains filtered or unexported fields
}

RenderSliverPersistentHeader is the base of the slivers that have a header box child whose extent changes with the scroll offset. The concrete type embeds one of the variants, and implements MaxExtent, MinExtent and, to build the child lazily, UpdateChild.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPersistentHeader

func (*RenderSliverPersistentHeader) ApplyPaintTransform

func (h *RenderSliverPersistentHeader) ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)

ApplyPaintTransform translates by the position of the child.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPersistentHeader.applyPaintTransform

func (*RenderSliverPersistentHeader) ChildExtent

func (h *RenderSliverPersistentHeader) ChildExtent() float64

ChildExtent is the extent of the child along the main axis; zero without a child.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPersistentHeader.childExtent

func (*RenderSliverPersistentHeader) DebugFillProperties

DebugFillProperties adds the maximum extent and the position of the child.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPersistentHeader.debugFillProperties

func (*RenderSliverPersistentHeader) DescribeSemanticsConfiguration

func (h *RenderSliverPersistentHeader) DescribeSemanticsConfiguration(config *semantics.SemanticsConfiguration)

DescribeSemanticsConfiguration excludes the header from scrolling.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPersistentHeader.describeSemanticsConfiguration

func (*RenderSliverPersistentHeader) HitTestChildren

func (h *RenderSliverPersistentHeader) HitTestChildren(result *SliverHitTestResult, mainAxisPosition, crossAxisPosition float64) bool

HitTestChildren hit tests the child.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPersistentHeader.hitTestChildren

func (*RenderSliverPersistentHeader) LastOverlapsContent

func (h *RenderSliverPersistentHeader) LastOverlapsContent() bool

LastOverlapsContent is whether the child overlapped the content when it was last updated.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPersistentHeader.lastOverlapsContent

func (*RenderSliverPersistentHeader) LastShrinkOffset

func (h *RenderSliverPersistentHeader) LastShrinkOffset() float64

LastShrinkOffset is the shrink offset that the child was last updated for.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPersistentHeader.lastShrinkOffset

func (*RenderSliverPersistentHeader) LayoutChild

func (h *RenderSliverPersistentHeader) LayoutChild(scrollOffset, maxExtent float64, overlapsContent ...bool)

LayoutChild updates the child (if the shrink offset or the overlap changed, or the sliver needs layout) and lays it out, between the minimum extent and the maximum minus the shrink offset. In debug builds a minimum above the maximum panics with the tag SliverPersistentHeaderExtentsInvalid.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPersistentHeader.layoutChild

func (*RenderSliverPersistentHeader) MarkNeedsLayout

func (h *RenderSliverPersistentHeader) MarkNeedsLayout()

MarkNeedsLayout also asks for the child to be updated.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPersistentHeader.markNeedsLayout

func (*RenderSliverPersistentHeader) Paint

func (h *RenderSliverPersistentHeader) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the child at its position, if the sliver is visible.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPersistentHeader.paint

func (*RenderSliverPersistentHeader) SetStretchConfiguration

func (h *RenderSliverPersistentHeader) SetStretchConfiguration(value *OverScrollHeaderStretchConfiguration)

SetStretchConfiguration changes the stretch configuration.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPersistentHeader.stretchConfiguration

func (*RenderSliverPersistentHeader) StretchConfiguration

StretchConfiguration is how the header stretches when it is overscrolled; nil if it does not.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPersistentHeader.stretchConfiguration

func (*RenderSliverPersistentHeader) UpdateChild

func (h *RenderSliverPersistentHeader) UpdateChild(shrinkOffset float64, overlapsContent bool)

UpdateChild updates the child for the shrink offset: the default does nothing. A concrete header that builds its child lazily defines its own.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPersistentHeader.updateChild

type RenderSliverPinnedPersistentHeader

type RenderSliverPinnedPersistentHeader struct {
	RenderSliverPersistentHeader
	// contains filtered or unexported fields
}

RenderSliverPinnedPersistentHeader is a header that is pinned to the start of the viewport, its extent shrinking as the content scrolls.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPinnedPersistentHeader

func (*RenderSliverPinnedPersistentHeader) ChildMainAxisPosition

func (h *RenderSliverPinnedPersistentHeader) ChildMainAxisPosition(RenderObject) float64

ChildMainAxisPosition is zero.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPinnedPersistentHeader.childMainAxisPosition

func (*RenderSliverPinnedPersistentHeader) PerformLayout

func (h *RenderSliverPinnedPersistentHeader) PerformLayout()

PerformLayout lays the header out and sets the geometry.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPinnedPersistentHeader.performLayout

func (*RenderSliverPinnedPersistentHeader) SetShowOnScreenConfiguration

func (h *RenderSliverPinnedPersistentHeader) SetShowOnScreenConfiguration(value *PersistentHeaderShowOnScreenConfiguration)

SetShowOnScreenConfiguration changes the configuration.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPinnedPersistentHeader.showOnScreenConfiguration

func (*RenderSliverPinnedPersistentHeader) ShowOnScreen

ShowOnScreen asks the parent to show the part of the descendant that is inside the header.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPinnedPersistentHeader.showOnScreen

func (*RenderSliverPinnedPersistentHeader) ShowOnScreenConfiguration

ShowOnScreenConfiguration is how the header reacts to a request to show a descendant on screen.

Flutter: rendering/sliver_persistent_header.dart RenderSliverPinnedPersistentHeader.showOnScreenConfiguration

type RenderSliverScrollingPersistentHeader

type RenderSliverScrollingPersistentHeader struct {
	RenderSliverPersistentHeader
	// contains filtered or unexported fields
}

RenderSliverScrollingPersistentHeader is a header that scrolls off the screen with the content.

Flutter: rendering/sliver_persistent_header.dart RenderSliverScrollingPersistentHeader

func (*RenderSliverScrollingPersistentHeader) ChildMainAxisPosition

ChildMainAxisPosition is the position that the layout computed.

Flutter: rendering/sliver_persistent_header.dart RenderSliverScrollingPersistentHeader.childMainAxisPosition

func (*RenderSliverScrollingPersistentHeader) PerformLayout

func (h *RenderSliverScrollingPersistentHeader) PerformLayout()

PerformLayout lays the header out and sets the geometry.

Flutter: rendering/sliver_persistent_header.dart RenderSliverScrollingPersistentHeader.performLayout

func (*RenderSliverScrollingPersistentHeader) UpdateGeometry

func (h *RenderSliverScrollingPersistentHeader) UpdateGeometry() float64

UpdateGeometry sets the geometry from the maximum extent and returns the position of the child.

Flutter: rendering/sliver_persistent_header.dart RenderSliverScrollingPersistentHeader.updateGeometry

type RenderSliverSemanticsAnnotations

type RenderSliverSemanticsAnnotations struct {
	RenderProxySliver
	SemanticsAnnotations
}

RenderSliverSemanticsAnnotations adds annotations to the semantics node of its sliver child's subtree.

Flutter: rendering/proxy_sliver.dart RenderSliverSemanticsAnnotations

func NewRenderSliverSemanticsAnnotations

func NewRenderSliverSemanticsAnnotations(properties *semantics.SemanticsProperties, child Sliver, opts ...SemanticsAnnotationsOpts) *RenderSliverSemanticsAnnotations

NewRenderSliverSemanticsAnnotations creates the sliver; the child may be nil.

Flutter: rendering/proxy_sliver.dart RenderSliverSemanticsAnnotations.new

type RenderSliverSingleBoxAdapter

type RenderSliverSingleBoxAdapter struct {
	RenderSliver
	RenderObjectWithChild[Box]
}

RenderSliverSingleBoxAdapter is the base of the slivers that have one box child.

Flutter: rendering/sliver.dart RenderSliverSingleBoxAdapter

func (*RenderSliverSingleBoxAdapter) ApplyPaintTransform

func (a *RenderSliverSingleBoxAdapter) ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)

ApplyPaintTransform translates by the paint offset of the child.

Flutter: rendering/sliver.dart RenderSliverSingleBoxAdapter.applyPaintTransform

func (*RenderSliverSingleBoxAdapter) ChildMainAxisPosition

func (a *RenderSliverSingleBoxAdapter) ChildMainAxisPosition(RenderObject) float64

ChildMainAxisPosition is minus the scroll offset.

Flutter: rendering/sliver.dart RenderSliverSingleBoxAdapter.childMainAxisPosition

func (*RenderSliverSingleBoxAdapter) HitTestChildren

func (a *RenderSliverSingleBoxAdapter) HitTestChildren(result *SliverHitTestResult, mainAxisPosition, crossAxisPosition float64) bool

HitTestChildren hit tests the box child.

Flutter: rendering/sliver.dart RenderSliverSingleBoxAdapter.hitTestChildren

func (*RenderSliverSingleBoxAdapter) Paint

func (a *RenderSliverSingleBoxAdapter) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the child at its paint offset if the sliver is visible.

Flutter: rendering/sliver.dart RenderSliverSingleBoxAdapter.paint

func (*RenderSliverSingleBoxAdapter) SetChildParentData

func (a *RenderSliverSingleBoxAdapter) SetChildParentData(child RenderObject, constraints SliverConstraints, geometry SliverGeometry)

SetChildParentData sets the paint offset of the child from the constraints and the geometry.

Flutter: rendering/sliver.dart RenderSliverSingleBoxAdapter.setChildParentData

func (*RenderSliverSingleBoxAdapter) SetupParentData

func (a *RenderSliverSingleBoxAdapter) SetupParentData(child RenderObject)

SetupParentData gives the child a SliverPhysicalParentData if it has none.

Flutter: rendering/sliver.dart RenderSliverSingleBoxAdapter.setupParentData

type RenderSliverToBoxAdapter

type RenderSliverToBoxAdapter struct {
	RenderSliverSingleBoxAdapter
}

RenderSliverToBoxAdapter is a sliver that contains a single box widget.

Flutter: rendering/sliver.dart RenderSliverToBoxAdapter

func NewRenderSliverToBoxAdapter

func NewRenderSliverToBoxAdapter(child Box) *RenderSliverToBoxAdapter

NewRenderSliverToBoxAdapter creates the sliver; the child may be nil.

Flutter: rendering/sliver.dart RenderSliverToBoxAdapter.new

func (*RenderSliverToBoxAdapter) PerformLayout

func (r *RenderSliverToBoxAdapter) PerformLayout()

PerformLayout lays the child out with the cross axis tight and the main axis free, and sets the geometry from its extent.

Flutter: rendering/sliver.dart RenderSliverToBoxAdapter.performLayout

type RenderSliverVariedExtentList

type RenderSliverVariedExtentList struct {
	RenderSliverFixedExtentBoxAdaptor
	// contains filtered or unexported fields
}

RenderSliverVariedExtentList is a sliver that places multiple box children, whose main axis extents the builder gives, in a linear array.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverVariedExtentList

func NewRenderSliverVariedExtentList

func NewRenderSliverVariedExtentList(childManager RenderSliverBoxChildManager, itemExtentBuilder ItemExtentBuilder) *RenderSliverVariedExtentList

NewRenderSliverVariedExtentList creates the sliver.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverVariedExtentList.new

func (*RenderSliverVariedExtentList) ItemExtent

ItemExtent is none.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverVariedExtentList.itemExtent

func (*RenderSliverVariedExtentList) ItemExtentBuilder

func (r *RenderSliverVariedExtentList) ItemExtentBuilder() ItemExtentBuilder

ItemExtentBuilder is the function that gives the extent of a child.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverVariedExtentList.itemExtentBuilder

func (*RenderSliverVariedExtentList) SetItemExtentBuilder

func (r *RenderSliverVariedExtentList) SetItemExtentBuilder(value ItemExtentBuilder)

SetItemExtentBuilder changes the builder and marks the sliver as needing layout. Go can not compare functions, so it always does.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverVariedExtentList.itemExtentBuilder

type RenderStack

type RenderStack struct {
	RenderBox
	ContainerRenderObject[Box]
	// contains filtered or unexported fields
}

RenderStack implements the stack layout algorithm: the children are painted in order, positioned relative to the edges of the box or aligned in it.

Flutter: rendering/stack.dart RenderStack

func NewRenderStack

func NewRenderStack(children []Box, opts ...RenderStackOpts) *RenderStack

NewRenderStack creates a stack with the children (nil for none).

Flutter: rendering/stack.dart RenderStack.new

func (*RenderStack) Alignment

func (s *RenderStack) Alignment() painting.AlignmentGeometry

Alignment is how the non-positioned and partially positioned children are aligned.

Flutter: rendering/stack.dart RenderStack.alignment

func (*RenderStack) ClipBehavior

func (s *RenderStack) ClipBehavior() ui.Clip

ClipBehavior is how the content that overflows the stack is clipped.

Flutter: rendering/stack.dart RenderStack.clipBehavior

func (*RenderStack) ComputeDistanceToActualBaseline

func (s *RenderStack) ComputeDistanceToActualBaseline(baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDistanceToActualBaseline is the highest baseline among the children.

Flutter: rendering/stack.dart RenderStack.computeDistanceToActualBaseline

func (*RenderStack) ComputeDryBaseline

func (s *RenderStack) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the highest baseline among the children for the constraints.

Flutter: rendering/stack.dart RenderStack.computeDryBaseline

func (*RenderStack) ComputeDryLayout

func (s *RenderStack) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size the constraints would give.

Flutter: rendering/stack.dart RenderStack.computeDryLayout

func (*RenderStack) ComputeMaxIntrinsicHeight

func (s *RenderStack) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the largest of the non-positioned children.

Flutter: rendering/stack.dart RenderStack.computeMaxIntrinsicHeight

func (*RenderStack) ComputeMaxIntrinsicWidth

func (s *RenderStack) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is the largest of the non-positioned children.

Flutter: rendering/stack.dart RenderStack.computeMaxIntrinsicWidth

func (*RenderStack) ComputeMinIntrinsicHeight

func (s *RenderStack) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the largest of the non-positioned children.

Flutter: rendering/stack.dart RenderStack.computeMinIntrinsicHeight

func (*RenderStack) ComputeMinIntrinsicWidth

func (s *RenderStack) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is the largest of the non-positioned children.

Flutter: rendering/stack.dart RenderStack.computeMinIntrinsicWidth

func (*RenderStack) DebugFillProperties

func (s *RenderStack) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the alignment, the text direction, the fit and the clip behavior.

Flutter: rendering/stack.dart RenderStack.debugFillProperties

func (*RenderStack) DescribeApproximatePaintClip

func (s *RenderStack) DescribeApproximatePaintClip(RenderObject) foundation.Opt[ui.Rect]

DescribeApproximatePaintClip is the stack's box when a child overflows and is clipped.

Flutter: rendering/stack.dart RenderStack.describeApproximatePaintClip

func (*RenderStack) Dispose

func (s *RenderStack) Dispose()

Dispose lets the clip layer go.

Flutter: rendering/stack.dart RenderStack.dispose

func (*RenderStack) Fit

func (s *RenderStack) Fit() StackFit

Fit is how to size the non-positioned children.

Flutter: rendering/stack.dart RenderStack.fit

func (*RenderStack) HitTestChildren

func (s *RenderStack) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren hit tests the children from the front.

Flutter: rendering/stack.dart RenderStack.hitTestChildren

func (*RenderStack) Paint

func (s *RenderStack) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the children, clipped to the stack if one overflows it.

Flutter: rendering/stack.dart RenderStack.paint

func (*RenderStack) PaintStack

func (s *RenderStack) PaintStack(context *PaintingContext, offset ui.Offset)

PaintStack paints the children. A subclass overrides it to paint differently.

Flutter: rendering/stack.dart RenderStack.paintStack

func (*RenderStack) PerformLayout

func (s *RenderStack) PerformLayout()

PerformLayout sizes the stack around its non-positioned children, then lays out the children.

Flutter: rendering/stack.dart RenderStack.performLayout

func (*RenderStack) SetAlignment

func (s *RenderStack) SetAlignment(value painting.AlignmentGeometry)

SetAlignment marks the stack as needing layout when the value changes.

Flutter: rendering/stack.dart RenderStack.alignment

func (*RenderStack) SetClipBehavior

func (s *RenderStack) SetClipBehavior(value ui.Clip)

SetClipBehavior marks the stack as needing paint when the value changes.

Flutter: rendering/stack.dart RenderStack.clipBehavior

func (*RenderStack) SetFit

func (s *RenderStack) SetFit(value StackFit)

SetFit marks the stack as needing layout when the value changes.

Flutter: rendering/stack.dart RenderStack.fit

func (*RenderStack) SetTextDirection

func (s *RenderStack) SetTextDirection(value ui.TextDirection)

SetTextDirection marks the stack as needing layout when the value changes.

Flutter: rendering/stack.dart RenderStack.textDirection

func (*RenderStack) SetupParentData

func (s *RenderStack) SetupParentData(child RenderObject)

SetupParentData gives the child a StackParentData if it has none.

Flutter: rendering/stack.dart RenderStack.setupParentData

func (*RenderStack) TextDirection

func (s *RenderStack) TextDirection() ui.TextDirection

TextDirection resolves a directional alignment. Unspecified is null.

Flutter: rendering/stack.dart RenderStack.textDirection

type RenderStackOpts

type RenderStackOpts struct {
	// Alignment defaults to painting.AlignmentDirectionalTopStart.
	Alignment painting.AlignmentGeometry
	// TextDirection resolves a directional alignment; unspecified is null.
	TextDirection ui.TextDirection
	// Fit defaults to StackFitLoose.
	Fit StackFit
	// ClipBehavior defaults to ui.ClipHardEdge.
	ClipBehavior ui.Clip
}

RenderStackOpts are the optional parameters of NewRenderStack.

Flutter: rendering/stack.dart RenderStack.new

type RenderTable

type RenderTable struct {
	RenderBox
	// contains filtered or unexported fields
}

RenderTable implements the table layout algorithm: the cells are in rows and columns, a column is as wide as its TableColumnWidth says, and a row is as tall as its tallest cell.

Flutter: rendering/table.dart RenderTable

func NewRenderTable

func NewRenderTable(textDirection ui.TextDirection, opts ...RenderTableOpts) *RenderTable

NewRenderTable creates a table.

Flutter: rendering/table.dart RenderTable.new

func (*RenderTable) AddRow

func (r *RenderTable) AddRow(cells []Box)

AddRow adds a row of cells (entries can be nil). In debug builds it panics with TableCellCountMismatch if the row does not have as many cells as the table has columns.

Flutter: rendering/table.dart RenderTable.addRow

func (*RenderTable) AssembleSemanticsNode

func (r *RenderTable) AssembleSemanticsNode(node *semantics.SemanticsNode, config *semantics.SemanticsConfiguration, children []*semantics.SemanticsNode)

AssembleSemanticsNode gives the table the nodes of its rows, which wrap the nodes of the cells. The rows are not render objects, so their nodes are made here; a cell with several nodes or without the role of a cell gets a wrapper node.

Flutter: rendering/table.dart RenderTable.assembleSemanticsNode

func (*RenderTable) Border

func (r *RenderTable) Border() *TableBorder

Border is the border of the table, or nil.

Flutter: rendering/table.dart RenderTable.border

func (*RenderTable) ClearSemantics

func (r *RenderTable) ClearSemantics()

ClearSemantics forgets the nodes of the rows and cells too.

Flutter: rendering/table.dart RenderTable.clearSemantics

func (*RenderTable) Column

func (r *RenderTable) Column(x int) []Box

Column returns the cells of the column that are not nil.

Flutter: rendering/table.dart RenderTable.column

func (*RenderTable) ColumnWidths

func (r *RenderTable) ColumnWidths() map[int]TableColumnWidth

ColumnWidths is a copy of the widths of the columns that have their own.

Flutter: rendering/table.dart RenderTable.columnWidths

func (*RenderTable) Columns

func (r *RenderTable) Columns() int

Columns is the number of columns.

Flutter: rendering/table.dart RenderTable.columns

func (*RenderTable) ComputeDistanceToActualBaseline

func (r *RenderTable) ComputeDistanceToActualBaseline(ui.TextBaseline) foundation.Opt[float64]

ComputeDistanceToActualBaseline is the baseline of the first row, if a cell in it is aligned to the baseline.

Flutter: rendering/table.dart RenderTable.computeDistanceToActualBaseline

func (*RenderTable) ComputeDryBaseline

func (r *RenderTable) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the largest baseline among the baseline-aligned cells of the first row.

Flutter: rendering/table.dart RenderTable.computeDryBaseline

func (*RenderTable) ComputeDryLayout

func (r *RenderTable) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size the constraints would give.

Flutter: rendering/table.dart RenderTable.computeDryLayout

func (*RenderTable) ComputeMaxIntrinsicHeight

func (r *RenderTable) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the minimum intrinsic height.

Flutter: rendering/table.dart RenderTable.computeMaxIntrinsicHeight

func (*RenderTable) ComputeMaxIntrinsicWidth

func (r *RenderTable) ComputeMaxIntrinsicWidth(float64) float64

ComputeMaxIntrinsicWidth is the sum of the columns' maximum widths.

Flutter: rendering/table.dart RenderTable.computeMaxIntrinsicWidth

func (*RenderTable) ComputeMinIntrinsicHeight

func (r *RenderTable) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the sum of the heights of the rows at the width.

Flutter: rendering/table.dart RenderTable.computeMinIntrinsicHeight

func (*RenderTable) ComputeMinIntrinsicWidth

func (r *RenderTable) ComputeMinIntrinsicWidth(float64) float64

ComputeMinIntrinsicWidth is the sum of the columns' minimum widths.

Flutter: rendering/table.dart RenderTable.computeMinIntrinsicWidth

func (*RenderTable) Configuration

func (r *RenderTable) Configuration() painting.ImageConfiguration

Configuration is the configuration passed to the row decorations.

Flutter: rendering/table.dart RenderTable.configuration

func (*RenderTable) DebugDescribeChildren

func (r *RenderTable) DebugDescribeChildren() []foundation.DiagnosticsNode

DebugDescribeChildren describes the cells, row by row.

Flutter: rendering/table.dart RenderTable.debugDescribeChildren

func (*RenderTable) DebugFillProperties

func (r *RenderTable) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the border, the column widths, the size and the offsets of the rows and columns.

Flutter: rendering/table.dart RenderTable.debugFillProperties

func (*RenderTable) DefaultColumnWidth

func (r *RenderTable) DefaultColumnWidth() TableColumnWidth

DefaultColumnWidth is the width of the columns that have none of their own.

Flutter: rendering/table.dart RenderTable.defaultColumnWidth

func (*RenderTable) DefaultVerticalAlignment

func (r *RenderTable) DefaultVerticalAlignment() TableCellVerticalAlignment

DefaultVerticalAlignment is how the cells without their own alignment are aligned vertically.

Flutter: rendering/table.dart RenderTable.defaultVerticalAlignment

func (*RenderTable) DescribeSemanticsConfiguration

func (r *RenderTable) DescribeSemanticsConfiguration(config *semantics.SemanticsConfiguration)

DescribeSemanticsConfiguration makes the table a semantic boundary whose children form nodes of their own.

Flutter: rendering/table.dart RenderTable.describeSemanticsConfiguration

func (*RenderTable) Detach

func (r *RenderTable) Detach()

Detach disposes the painters of the row decorations and detaches the cells.

Flutter: rendering/table.dart RenderTable.detach

func (*RenderTable) GetRowBox

func (r *RenderTable) GetRowBox(row int) ui.Rect

GetRowBox is the box of the row, in the table's coordinates. It must be called after layout.

Flutter: rendering/table.dart RenderTable.getRowBox

func (*RenderTable) HitTestChildren

func (r *RenderTable) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren hit tests the cells from the last to the first.

Flutter: rendering/table.dart RenderTable.hitTestChildren

func (*RenderTable) Paint

func (r *RenderTable) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the row decorations, the cells and the border.

Flutter: rendering/table.dart RenderTable.paint

func (*RenderTable) PerformLayout

func (r *RenderTable) PerformLayout()

PerformLayout works out the column widths, lays the cells out row by row and positions them.

Flutter: rendering/table.dart RenderTable.performLayout

func (*RenderTable) Row

func (r *RenderTable) Row(y int) []Box

Row returns the cells of the row that are not nil.

Flutter: rendering/table.dart RenderTable.row

func (*RenderTable) RowDecorations

func (r *RenderTable) RowDecorations() []painting.Decoration

RowDecorations is a copy of the decorations painted behind the rows.

Flutter: rendering/table.dart RenderTable.rowDecorations

func (*RenderTable) Rows

func (r *RenderTable) Rows() int

Rows is the number of rows.

Flutter: rendering/table.dart RenderTable.rows

func (*RenderTable) SetBorder

func (r *RenderTable) SetBorder(value *TableBorder)

SetBorder marks the table as needing paint when the value changes.

Flutter: rendering/table.dart RenderTable.border

func (*RenderTable) SetChild

func (r *RenderTable) SetChild(x, y int, value Box)

SetChild puts the cell at the column and row (nil removes it).

Flutter: rendering/table.dart RenderTable.setChild

func (*RenderTable) SetChildren

func (r *RenderTable) SetChildren(cells [][]Box)

SetChildren replaces the cells with the rows; nil removes all of them.

Flutter: rendering/table.dart RenderTable.setChildren

func (*RenderTable) SetColumnWidth

func (r *RenderTable) SetColumnWidth(column int, value TableColumnWidth)

SetColumnWidth sets the width of a column.

Flutter: rendering/table.dart RenderTable.setColumnWidth

func (*RenderTable) SetColumnWidths

func (r *RenderTable) SetColumnWidths(value map[int]TableColumnWidth)

SetColumnWidths replaces the widths of the columns that have their own; nil clears them.

Flutter: rendering/table.dart RenderTable.columnWidths

func (*RenderTable) SetColumns

func (r *RenderTable) SetColumns(value int)

SetColumns changes the number of columns, dropping the cells of the removed columns.

Flutter: rendering/table.dart RenderTable.columns

func (*RenderTable) SetConfiguration

func (r *RenderTable) SetConfiguration(value painting.ImageConfiguration)

SetConfiguration marks the table as needing paint when the value changes.

Flutter: rendering/table.dart RenderTable.configuration

func (*RenderTable) SetDefaultColumnWidth

func (r *RenderTable) SetDefaultColumnWidth(value TableColumnWidth)

SetDefaultColumnWidth marks the table as needing layout when the value changes.

Flutter: rendering/table.dart RenderTable.defaultColumnWidth

func (*RenderTable) SetDefaultVerticalAlignment

func (r *RenderTable) SetDefaultVerticalAlignment(value TableCellVerticalAlignment)

SetDefaultVerticalAlignment marks the table as needing layout when the value changes.

Flutter: rendering/table.dart RenderTable.defaultVerticalAlignment

func (*RenderTable) SetFlatChildren

func (r *RenderTable) SetFlatChildren(columns int, cells []Box)

SetFlatChildren replaces the cells with a flat list of rows * columns cells, keeping the cells that stay where they are.

Flutter: rendering/table.dart RenderTable.setFlatChildren

func (*RenderTable) SetRowDecorations

func (r *RenderTable) SetRowDecorations(value []painting.Decoration)

SetRowDecorations replaces the decorations painted behind the rows (nil for none) and disposes the painters of the old ones.

Deviation: Dart skips the work when the same list is set again; slices can not be compared, so the painters are always recreated.

Flutter: rendering/table.dart RenderTable.rowDecorations

func (*RenderTable) SetRows

func (r *RenderTable) SetRows(value int)

SetRows changes the number of rows, dropping the cells of the removed rows.

Flutter: rendering/table.dart RenderTable.rows

func (*RenderTable) SetTextBaseline

func (r *RenderTable) SetTextBaseline(value ui.TextBaseline)

SetTextBaseline marks the table as needing layout when the value changes.

Flutter: rendering/table.dart RenderTable.textBaseline

func (*RenderTable) SetTextDirection

func (r *RenderTable) SetTextDirection(value ui.TextDirection)

SetTextDirection marks the table as needing layout when the value changes.

Flutter: rendering/table.dart RenderTable.textDirection

func (*RenderTable) SetupParentData

func (r *RenderTable) SetupParentData(child RenderObject)

SetupParentData gives the child a TableCellParentData if it has none.

Flutter: rendering/table.dart RenderTable.setupParentData

func (*RenderTable) TextBaseline

func (r *RenderTable) TextBaseline() ui.TextBaseline

TextBaseline is the baseline for baseline-aligned cells. Unspecified is null.

Flutter: rendering/table.dart RenderTable.textBaseline

func (*RenderTable) TextDirection

func (r *RenderTable) TextDirection() ui.TextDirection

TextDirection is the order of the columns.

Flutter: rendering/table.dart RenderTable.textDirection

type RenderTableOpts

type RenderTableOpts struct {
	// Columns is the number of columns; the default is the length of the first
	// row of Children, or 0.
	Columns foundation.Opt[int]
	// Rows is the number of rows; it can not be set together with Children.
	Rows foundation.Opt[int]
	// ColumnWidths are the widths of the columns that have their own.
	ColumnWidths map[int]TableColumnWidth
	// DefaultColumnWidth defaults to NewFlexColumnWidth().
	DefaultColumnWidth TableColumnWidth
	// Border is the border of the table; nil for none.
	Border *TableBorder
	// RowDecorations are the decorations painted behind the rows; entries may be
	// nil.
	RowDecorations []painting.Decoration
	// Configuration is the configuration for the row decorations.
	Configuration painting.ImageConfiguration
	// DefaultVerticalAlignment defaults to TableCellVerticalAlignmentTop.
	DefaultVerticalAlignment TableCellVerticalAlignment
	// TextBaseline is the baseline for baseline-aligned cells; unspecified is
	// null.
	TextBaseline ui.TextBaseline
	// Children are the cells, row by row.
	Children [][]Box
}

RenderTableOpts are the optional parameters of NewRenderTable.

Flutter: rendering/table.dart RenderTable.new

type RenderTransform

type RenderTransform struct {
	RenderProxyBox
	// TransformHitTests says whether hit tests are transformed too.
	//
	// Flutter: rendering/proxy_box.dart RenderTransform.transformHitTests
	TransformHitTests bool
	// contains filtered or unexported fields
}

RenderTransform transforms its child using a matrix before painting it.

Flutter: rendering/proxy_box.dart RenderTransform

func NewRenderTransform

func NewRenderTransform(transform *ui.Matrix4, child Box, opts ...RenderTransformOpts) *RenderTransform

NewRenderTransform creates the box with a copy of the matrix.

Flutter: rendering/proxy_box.dart RenderTransform.new

func (*RenderTransform) Alignment

Alignment is the alignment of the origin in the box; nil for none.

Flutter: rendering/proxy_box.dart RenderTransform.alignment

func (*RenderTransform) AlwaysNeedsCompositing

func (r *RenderTransform) AlwaysNeedsCompositing() bool

AlwaysNeedsCompositing is true if there is a child and a filter quality.

Flutter: rendering/proxy_box.dart RenderTransform.alwaysNeedsCompositing

func (*RenderTransform) ApplyPaintTransform

func (r *RenderTransform) ApplyPaintTransform(_ RenderObject, transform *ui.Matrix4)

ApplyPaintTransform applies the effective transform.

Flutter: rendering/proxy_box.dart RenderTransform.applyPaintTransform

func (*RenderTransform) DebugFillProperties

func (r *RenderTransform) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the transform and its settings.

Flutter: rendering/proxy_box.dart RenderTransform.debugFillProperties

func (*RenderTransform) FilterQuality

func (r *RenderTransform) FilterQuality() foundation.Opt[ui.FilterQuality]

FilterQuality is the quality of the filter that applies the transform.

Flutter: rendering/proxy_box.dart RenderTransform.filterQuality

func (*RenderTransform) HitTest

func (r *RenderTransform) HitTest(result *BoxHitTestResult, position ui.Offset) bool

HitTest hit tests the children without checking the box's own size.

Flutter: rendering/proxy_box.dart RenderTransform.hitTest

func (*RenderTransform) HitTestChildren

func (r *RenderTransform) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren hit tests the child in the transformed coordinates.

Flutter: rendering/proxy_box.dart RenderTransform.hitTestChildren

func (*RenderTransform) Origin

func (r *RenderTransform) Origin() foundation.Opt[ui.Offset]

Origin is the origin of the coordinate system for the transform.

Flutter: rendering/proxy_box.dart RenderTransform.origin

func (*RenderTransform) Paint

func (r *RenderTransform) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the child transformed.

Flutter: rendering/proxy_box.dart RenderTransform.paint

func (*RenderTransform) RotateX

func (r *RenderTransform) RotateX(radians float64)

RotateX concatenates a rotation about the x axis.

Flutter: rendering/proxy_box.dart RenderTransform.rotateX

func (*RenderTransform) RotateY

func (r *RenderTransform) RotateY(radians float64)

RotateY concatenates a rotation about the y axis.

Flutter: rendering/proxy_box.dart RenderTransform.rotateY

func (*RenderTransform) RotateZ

func (r *RenderTransform) RotateZ(radians float64)

RotateZ concatenates a rotation about the z axis.

Flutter: rendering/proxy_box.dart RenderTransform.rotateZ

func (*RenderTransform) Scale

func (r *RenderTransform) Scale(x, y, z float64)

Scale concatenates a scale by (x, y, z).

Flutter: rendering/proxy_box.dart RenderTransform.scale

func (*RenderTransform) SetAlignment

func (r *RenderTransform) SetAlignment(value painting.AlignmentGeometry)

SetAlignment changes the alignment and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderTransform.alignment

func (*RenderTransform) SetFilterQuality

func (r *RenderTransform) SetFilterQuality(value foundation.Opt[ui.FilterQuality])

SetFilterQuality changes the quality and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderTransform.filterQuality

func (*RenderTransform) SetIdentity

func (r *RenderTransform) SetIdentity()

SetIdentity sets the transform to the identity matrix.

Flutter: rendering/proxy_box.dart RenderTransform.setIdentity

func (*RenderTransform) SetOrigin

func (r *RenderTransform) SetOrigin(value foundation.Opt[ui.Offset])

SetOrigin changes the origin and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderTransform.origin

func (*RenderTransform) SetTextDirection

func (r *RenderTransform) SetTextDirection(value ui.TextDirection)

SetTextDirection changes the direction and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderTransform.textDirection

func (*RenderTransform) SetTransform

func (r *RenderTransform) SetTransform(value *ui.Matrix4)

SetTransform changes the matrix (a copy is kept) and marks the box as needing paint.

Flutter: rendering/proxy_box.dart RenderTransform.transform

func (*RenderTransform) TextDirection

func (r *RenderTransform) TextDirection() ui.TextDirection

TextDirection resolves a directional alignment.

Flutter: rendering/proxy_box.dart RenderTransform.textDirection

func (*RenderTransform) Translate

func (r *RenderTransform) Translate(x, y, z float64)

Translate concatenates a translation by (x, y, z).

Flutter: rendering/proxy_box.dart RenderTransform.translate

type RenderTransformOpts

type RenderTransformOpts struct {
	// Origin is the point about which to rotate or scale the transform, in the
	// coordinates of the box.
	Origin foundation.Opt[ui.Offset]
	// Alignment is the same as Origin, but aligned in the box.
	Alignment painting.AlignmentGeometry
	// TextDirection resolves a directional Alignment.
	TextDirection ui.TextDirection
	// TransformHitTests defaults to true.
	TransformHitTests foundation.Opt[bool]
	// FilterQuality applies the transform as an image filter of this quality;
	// none (the default) transforms the canvas.
	FilterQuality foundation.Opt[ui.FilterQuality]
}

RenderTransformOpts are the optional parameters of NewRenderTransform.

Flutter: rendering/proxy_box.dart RenderTransform.new

type RenderTreeSliver

type RenderTreeSliver struct {
	RenderSliverFixedExtentBoxAdaptor
	// contains filtered or unexported fields
}

RenderTreeSliver is the sliver of a TreeSliver: a list of rows of varied extents, each indented by its depth, and an animation of the rows that appear or leave when a node expands or collapses.

Deviation: the sliver embeds RenderSliverFixedExtentBoxAdaptor and not RenderSliverVariedExtentList, because Go has no virtual dispatch from an embedded base to the outer type (SPEC §12.10); the extents come from the same builder.

Flutter: rendering/sliver_tree.dart RenderTreeSliver

func NewRenderTreeSliver

func NewRenderTreeSliver(childManager RenderSliverBoxChildManager, itemExtentBuilder ItemExtentBuilder, activeAnimations map[*foundation.UniqueKey]TreeSliverNodesAnimation, indentation float64) *RenderTreeSliver

NewRenderTreeSliver creates the sliver. The map of the active animations is the one that the TreeSliver changes (and tells the sliver of with SetActiveAnimations).

Flutter: rendering/sliver_tree.dart RenderTreeSliver.new

func (*RenderTreeSliver) ActiveAnimations

ActiveAnimations are the animations of the nodes that are expanding or collapsing, by the key that the TreeSliver gave each.

Flutter: rendering/sliver_tree.dart RenderTreeSliver.activeAnimations

func (*RenderTreeSliver) ChildCrossAxisPosition

func (r *RenderTreeSliver) ChildCrossAxisPosition(child RenderObject) float64

ChildCrossAxisPosition is the indentation of the row: its depth times the indentation.

Flutter: rendering/sliver_tree.dart RenderTreeSliver.childCrossAxisPosition

func (*RenderTreeSliver) Dispose

func (r *RenderTreeSliver) Dispose()

Dispose lets go of the clip layers.

Flutter: rendering/sliver_tree.dart RenderTreeSliver.dispose

func (*RenderTreeSliver) Indentation

func (r *RenderTreeSliver) Indentation() float64

Indentation is how many pixels each level is indented by.

Flutter: rendering/sliver_tree.dart RenderTreeSliver.indentation

func (*RenderTreeSliver) ItemExtent

func (r *RenderTreeSliver) ItemExtent() foundation.Opt[float64]

ItemExtent is none: the extents come from the builder.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverVariedExtentList.itemExtent

func (*RenderTreeSliver) ItemExtentBuilder

func (r *RenderTreeSliver) ItemExtentBuilder() ItemExtentBuilder

ItemExtentBuilder is the function that gives the extent of a row.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverVariedExtentList.itemExtentBuilder

func (*RenderTreeSliver) OverrideComputeMaxScrollOffset

func (r *RenderTreeSliver) OverrideComputeMaxScrollOffset(SliverConstraints) float64

OverrideComputeMaxScrollOffset is the extent of all the rows.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverFixedExtentBoxAdaptor.computeMaxScrollOffset

func (*RenderTreeSliver) OverrideIndexToLayoutOffset

func (r *RenderTreeSliver) OverrideIndexToLayoutOffset(index int) float64

OverrideIndexToLayoutOffset is the layout offset of the row at the index, less what the animations that start before it have not covered yet.

Flutter: rendering/sliver_tree.dart RenderTreeSliver.indexToLayoutOffset

func (*RenderTreeSliver) OverrideMaxChildIndexForScrollOffset

func (r *RenderTreeSliver) OverrideMaxChildIndexForScrollOffset(scrollOffset float64) int

OverrideMaxChildIndexForScrollOffset is the index of the last row at the scroll offset, counting the space that the animations take.

Flutter: rendering/sliver_tree.dart RenderTreeSliver.getMaxChildIndexForScrollOffset

func (*RenderTreeSliver) OverrideMinChildIndexForScrollOffset

func (r *RenderTreeSliver) OverrideMinChildIndexForScrollOffset(scrollOffset float64) int

OverrideMinChildIndexForScrollOffset is the index of the first row at the scroll offset, counting the space that the animations take.

Flutter: rendering/sliver_tree.dart RenderTreeSliver.getMinChildIndexForScrollOffset

func (*RenderTreeSliver) Paint

func (r *RenderTreeSliver) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the rows indented by their depth. While nodes expand or collapse, the rows that follow an animation are clipped to the space that is left, so that they do not draw over the rows that are leaving.

Flutter: rendering/sliver_tree.dart RenderTreeSliver.paint

func (*RenderTreeSliver) PerformLayout

func (r *RenderTreeSliver) PerformLayout()

PerformLayout works out where the animations are, then lays out like a varied extent list. It panics with TreeSliverAxisDirection in debug builds when the viewport does not go down.

Flutter: rendering/sliver_tree.dart RenderTreeSliver.performLayout

func (*RenderTreeSliver) SetActiveAnimations

func (r *RenderTreeSliver) SetActiveAnimations(value map[*foundation.UniqueKey]TreeSliverNodesAnimation)

SetActiveAnimations replaces the animations and marks the sliver as needing layout. Go can not compare maps, so it always does; the TreeSliver changes the map in place and gives it again.

Flutter: rendering/sliver_tree.dart RenderTreeSliver.activeAnimations

func (*RenderTreeSliver) SetIndentation

func (r *RenderTreeSliver) SetIndentation(value float64)

SetIndentation changes the indentation and marks the sliver as needing layout when it changed.

Flutter: rendering/sliver_tree.dart RenderTreeSliver.indentation

func (*RenderTreeSliver) SetItemExtentBuilder

func (r *RenderTreeSliver) SetItemExtentBuilder(value ItemExtentBuilder)

SetItemExtentBuilder changes the builder and marks the sliver as needing layout. Go can not compare functions, so it always does.

Flutter: rendering/sliver_fixed_extent_list.dart RenderSliverVariedExtentList.itemExtentBuilder

func (*RenderTreeSliver) SetupParentData

func (r *RenderTreeSliver) SetupParentData(child RenderObject)

SetupParentData gives the child a TreeSliverNodeParentData if it has none.

Flutter: rendering/sliver_tree.dart RenderTreeSliver.setupParentData

type RenderTwoDimensionalViewport

type RenderTwoDimensionalViewport struct {
	RenderBox
	// contains filtered or unexported fields
}

RenderTwoDimensionalViewport is the base of the render objects that show a window onto a two-dimensional space of children, which scrolls along both axes. The concrete type embeds it, calls InitRenderTwoDimensionalViewport and implements LayoutChildSequence.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport

func (*RenderTwoDimensionalViewport) ApplyPaintTransform

func (r *RenderTwoDimensionalViewport) ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)

ApplyPaintTransform translates by the paint offset of the child.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.applyPaintTransform

func (*RenderTwoDimensionalViewport) AsRenderTwoDimensionalViewport

func (r *RenderTwoDimensionalViewport) AsRenderTwoDimensionalViewport() *RenderTwoDimensionalViewport

AsRenderTwoDimensionalViewport is the base that the concrete viewport embeds.

Flutter: no counterpart (the self pattern, SPEC §12.5)

func (*RenderTwoDimensionalViewport) Attach

func (r *RenderTwoDimensionalViewport) Attach(owner *PipelineOwner)

Attach listens to the offsets and the delegate, and attaches the children.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.attach

func (*RenderTwoDimensionalViewport) BuildOrObtainChildFor

func (r *RenderTwoDimensionalViewport) BuildOrObtainChildFor(vicinity ChildVicinity) Box

BuildOrObtainChildFor builds the child at the vicinity, or reuses the one that exists, and returns it; nil if the delegate has no child there. Call it from LayoutChildSequence.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.buildOrObtainChildFor

func (*RenderTwoDimensionalViewport) ChildAfter

func (r *RenderTwoDimensionalViewport) ChildAfter(child Box) Box

ChildAfter is the child after the given one in paint order.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.childAfter

func (*RenderTwoDimensionalViewport) ChildBefore

func (r *RenderTwoDimensionalViewport) ChildBefore(child Box) Box

ChildBefore is the child before the given one in paint order.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.childBefore

func (*RenderTwoDimensionalViewport) ClipBehavior

func (r *RenderTwoDimensionalViewport) ClipBehavior() ui.Clip

ClipBehavior is how the viewport clips its children.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.clipBehavior

func (*RenderTwoDimensionalViewport) ComputeAbsolutePaintOffsetFor

func (r *RenderTwoDimensionalViewport) ComputeAbsolutePaintOffsetFor(child Box, layoutOffset ui.Offset) ui.Offset

ComputeAbsolutePaintOffsetFor is the position of the child in the viewport, which depends on the axis directions, when the child is at the layout offset.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.computeAbsolutePaintOffsetFor

func (*RenderTwoDimensionalViewport) ComputeChildPaintExtent

func (r *RenderTwoDimensionalViewport) ComputeChildPaintExtent(layoutOffset ui.Offset, childSize ui.Size) ui.Size

ComputeChildPaintExtent is the part of the child that is in the viewport, when the child is at the layout offset; zero if none is.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.computeChildPaintExtent

func (*RenderTwoDimensionalViewport) ComputeDryLayout

func (r *RenderTwoDimensionalViewport) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the biggest size. In debug builds it panics with the tag BoxConstraintsUnbounded when an axis is unbounded.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.computeDryLayout

func (*RenderTwoDimensionalViewport) ComputeMaxIntrinsicHeight

func (r *RenderTwoDimensionalViewport) ComputeMaxIntrinsicHeight(float64) float64

ComputeMaxIntrinsicHeight is zero, like ComputeMinIntrinsicWidth.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.computeMaxIntrinsicHeight

func (*RenderTwoDimensionalViewport) ComputeMaxIntrinsicWidth

func (r *RenderTwoDimensionalViewport) ComputeMaxIntrinsicWidth(float64) float64

ComputeMaxIntrinsicWidth is zero, like ComputeMinIntrinsicWidth.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.computeMaxIntrinsicWidth

func (*RenderTwoDimensionalViewport) ComputeMinIntrinsicHeight

func (r *RenderTwoDimensionalViewport) ComputeMinIntrinsicHeight(float64) float64

ComputeMinIntrinsicHeight is zero, like ComputeMinIntrinsicWidth.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.computeMinIntrinsicHeight

func (*RenderTwoDimensionalViewport) ComputeMinIntrinsicWidth

func (r *RenderTwoDimensionalViewport) ComputeMinIntrinsicWidth(float64) float64

ComputeMinIntrinsicWidth is zero: the intrinsic dimensions of a two-dimensional viewport would require instantiating every child, which defeats the point of a lazy viewport.

Deviation: Flutter throws in debug builds when they are asked for outside of a check of the intrinsics; Glutter has no such check (SPEC §12.10).

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.computeMinIntrinsicWidth

func (*RenderTwoDimensionalViewport) DebugDescribeChildren

func (r *RenderTwoDimensionalViewport) DebugDescribeChildren() []foundation.DiagnosticsNode

DebugDescribeChildren describes the children by their vicinity.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.debugDescribeChildren

func (*RenderTwoDimensionalViewport) Delegate

Delegate supplies the children.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.delegate

func (*RenderTwoDimensionalViewport) Detach

func (r *RenderTwoDimensionalViewport) Detach()

Detach stops listening and detaches the children.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.detach

func (*RenderTwoDimensionalViewport) DidResize

func (r *RenderTwoDimensionalViewport) DidResize() bool

DidResize is whether the viewport changed size since the last layout, which the specs of the children can depend on.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.didResize

func (*RenderTwoDimensionalViewport) Dispose

func (r *RenderTwoDimensionalViewport) Dispose()

Dispose lets the clip layer go.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.dispose

func (*RenderTwoDimensionalViewport) FirstChild

func (r *RenderTwoDimensionalViewport) FirstChild() Box

FirstChild is the first child in paint order, as of the last layout.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.firstChild

func (*RenderTwoDimensionalViewport) GetChildFor

func (r *RenderTwoDimensionalViewport) GetChildFor(vicinity ChildVicinity) Box

GetChildFor is the child at the vicinity, or nil.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.getChildFor

func (*RenderTwoDimensionalViewport) GetOffsetToReveal

func (r *RenderTwoDimensionalViewport) GetOffsetToReveal(target RenderObject, alignment float64, opts ...GetOffsetToRevealOpts) RevealedOffset

GetOffsetToReveal is the offset along the axis that puts the target at the alignment in the viewport, and where the target then is.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.getOffsetToReveal

func (*RenderTwoDimensionalViewport) HitTestChildren

func (r *RenderTwoDimensionalViewport) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren hit tests the visible children.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.hitTestChildren

func (*RenderTwoDimensionalViewport) HorizontalAxisDirection

func (r *RenderTwoDimensionalViewport) HorizontalAxisDirection() painting.AxisDirection

HorizontalAxisDirection is the direction in which the horizontal offset grows.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.horizontalAxisDirection

func (*RenderTwoDimensionalViewport) HorizontalOffset

func (r *RenderTwoDimensionalViewport) HorizontalOffset() ViewportOffset

HorizontalOffset is the offset of the horizontal axis.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.horizontalOffset

func (*RenderTwoDimensionalViewport) InsertChild

func (r *RenderTwoDimensionalViewport) InsertChild(child Box, slot ChildVicinity)

InsertChild is called by the element to add a child at the slot.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport._insertChild

func (*RenderTwoDimensionalViewport) IsRepaintBoundary

func (r *RenderTwoDimensionalViewport) IsRepaintBoundary() bool

IsRepaintBoundary is true.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.isRepaintBoundary

func (*RenderTwoDimensionalViewport) LastChild

func (r *RenderTwoDimensionalViewport) LastChild() Box

LastChild is the last child in paint order, as of the last layout.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.lastChild

func (*RenderTwoDimensionalViewport) MainAxis

MainAxis is the axis of the scrolling that the children are ordered by.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.mainAxis

func (*RenderTwoDimensionalViewport) MarkNeedsLayoutWithDelegateRebuild

func (r *RenderTwoDimensionalViewport) MarkNeedsLayoutWithDelegateRebuild()

MarkNeedsLayoutWithDelegateRebuild marks the viewport as needing layout, and the children as needing to be built again by the delegate.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.markNeedsLayout

func (*RenderTwoDimensionalViewport) MoveChild

func (r *RenderTwoDimensionalViewport) MoveChild(child Box, from, to ChildVicinity)

MoveChild is called by the element to move a child between slots.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport._moveChild

func (*RenderTwoDimensionalViewport) NeedsDelegateRebuild

func (r *RenderTwoDimensionalViewport) NeedsDelegateRebuild() bool

NeedsDelegateRebuild is whether the children must be built again by the delegate, as opposed to reused.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.needsDelegateRebuild

func (*RenderTwoDimensionalViewport) Paint

func (r *RenderTwoDimensionalViewport) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the visible children, clipped if some of them overflow.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.paint

func (*RenderTwoDimensionalViewport) ParentDataOf

ParentDataOf is the parent data of the child, which must be one of the children of the viewport.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.parentDataOf

func (*RenderTwoDimensionalViewport) PerformLayout

func (r *RenderTwoDimensionalViewport) PerformLayout()

PerformLayout lays the children out through LayoutChildSequence, then gives the children their paint data in paint order.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.performLayout

func (*RenderTwoDimensionalViewport) PerformResize

func (r *RenderTwoDimensionalViewport) PerformResize()

PerformResize sizes the viewport and gives the offsets their viewport dimension.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.performResize

func (*RenderTwoDimensionalViewport) RedepthChildren

func (r *RenderTwoDimensionalViewport) RedepthChildren()

RedepthChildren updates the depth of the children.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.redepthChildren

func (*RenderTwoDimensionalViewport) RemoveChild

func (r *RenderTwoDimensionalViewport) RemoveChild(child Box, slot ChildVicinity)

RemoveChild is called by the element to remove the child at the slot.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport._removeChild

func (*RenderTwoDimensionalViewport) ScrollCacheExtent

func (r *RenderTwoDimensionalViewport) ScrollCacheExtent() ScrollCacheExtent

ScrollCacheExtent is how far beyond the viewport children are built.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.scrollCacheExtent

func (*RenderTwoDimensionalViewport) SetClipBehavior

func (r *RenderTwoDimensionalViewport) SetClipBehavior(value ui.Clip)

SetClipBehavior changes the clip behavior.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.clipBehavior

func (*RenderTwoDimensionalViewport) SetDelegate

SetDelegate changes the delegate. The children are built again when its type changed or it says so.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.delegate

func (*RenderTwoDimensionalViewport) SetHorizontalAxisDirection

func (r *RenderTwoDimensionalViewport) SetHorizontalAxisDirection(value painting.AxisDirection)

SetHorizontalAxisDirection changes the direction and marks the viewport as needing layout.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.horizontalAxisDirection

func (*RenderTwoDimensionalViewport) SetHorizontalOffset

func (r *RenderTwoDimensionalViewport) SetHorizontalOffset(value ViewportOffset)

SetHorizontalOffset changes the offset and marks the viewport as needing layout.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.horizontalOffset

func (*RenderTwoDimensionalViewport) SetMainAxis

func (r *RenderTwoDimensionalViewport) SetMainAxis(value painting.Axis)

SetMainAxis changes the main axis and marks the viewport as needing layout.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.mainAxis

func (*RenderTwoDimensionalViewport) SetScrollCacheExtent

func (r *RenderTwoDimensionalViewport) SetScrollCacheExtent(value ScrollCacheExtent)

SetScrollCacheExtent changes the cache extent and marks the viewport as needing layout.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.scrollCacheExtent

func (*RenderTwoDimensionalViewport) SetVerticalAxisDirection

func (r *RenderTwoDimensionalViewport) SetVerticalAxisDirection(value painting.AxisDirection)

SetVerticalAxisDirection changes the direction and marks the viewport as needing layout.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.verticalAxisDirection

func (*RenderTwoDimensionalViewport) SetVerticalOffset

func (r *RenderTwoDimensionalViewport) SetVerticalOffset(value ViewportOffset)

SetVerticalOffset changes the offset and marks the viewport as needing layout.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.verticalOffset

func (*RenderTwoDimensionalViewport) SetupParentData

func (r *RenderTwoDimensionalViewport) SetupParentData(child RenderObject)

SetupParentData gives the child a TwoDimensionalViewportParentData if it has none.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.setupParentData

func (*RenderTwoDimensionalViewport) ShowOnScreen

func (r *RenderTwoDimensionalViewport) ShowOnScreen(opts ShowOnScreenOpts)

ShowOnScreen scrolls the descendant into view along the axes that allow implicit scrolling, then asks the parent to show the rectangle.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.showOnScreen

func (*RenderTwoDimensionalViewport) SizedByParent

func (r *RenderTwoDimensionalViewport) SizedByParent() bool

SizedByParent is true.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.sizedByParent

func (*RenderTwoDimensionalViewport) UpdateChildPaintData

func (r *RenderTwoDimensionalViewport) UpdateChildPaintData(child Box)

UpdateChildPaintData sets the paint extent and the paint offset of the child from its layout offset. In debug builds it panics with the tag TwoDimensionalViewportLayoutOffsetMissing when the child has none.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.updateChildPaintData

func (*RenderTwoDimensionalViewport) VerticalAxisDirection

func (r *RenderTwoDimensionalViewport) VerticalAxisDirection() painting.AxisDirection

VerticalAxisDirection is the direction in which the vertical offset grows.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.verticalAxisDirection

func (*RenderTwoDimensionalViewport) VerticalOffset

func (r *RenderTwoDimensionalViewport) VerticalOffset() ViewportOffset

VerticalOffset is the offset of the vertical axis.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.verticalOffset

func (*RenderTwoDimensionalViewport) ViewportDimension

func (r *RenderTwoDimensionalViewport) ViewportDimension() ui.Size

ViewportDimension is the size of the viewport.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.viewportDimension

func (*RenderTwoDimensionalViewport) VisitChildren

func (r *RenderTwoDimensionalViewport) VisitChildren(visitor RenderObjectVisitor)

VisitChildren visits the children in paint order, then the kept alive ones.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.visitChildren

func (*RenderTwoDimensionalViewport) VisitChildrenForSemantics

func (r *RenderTwoDimensionalViewport) VisitChildrenForSemantics(visitor RenderObjectVisitor)

VisitChildrenForSemantics visits the children in paint order, not the kept alive ones.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.visitChildrenForSemantics

type RenderTwoDimensionalViewportOpts

type RenderTwoDimensionalViewportOpts struct {
	// ScrollCacheExtent is how far beyond the viewport children are built; the
	// default is 250 pixels.
	ScrollCacheExtent foundation.Opt[ScrollCacheExtent]
	// ClipBehavior is how the viewport clips; the default is ClipHardEdge.
	ClipBehavior ui.Clip
}

RenderTwoDimensionalViewportOpts are the optional parameters of InitRenderTwoDimensionalViewport.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.new

type RenderTwoDimensionalViewportShowInViewportOpts

type RenderTwoDimensionalViewportShowInViewportOpts struct {
	// Descendant is the object to show.
	Descendant RenderObject
	// Viewport is the viewport to scroll.
	Viewport *RenderTwoDimensionalViewport
	// AxisDirection is the direction to reveal along; none means both axes.
	AxisDirection foundation.Opt[painting.AxisDirection]
	// Rect is the part of the descendant to show, in its coordinates.
	Rect foundation.Opt[ui.Rect]
	// Duration is how long the scrolling takes; zero jumps.
	Duration time.Duration
	// Curve is the curve of the animation.
	Curve animation.Curve
}

RenderTwoDimensionalViewportShowInViewportOpts are the parameters of RenderTwoDimensionalViewportShowInViewport.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.showInViewport

type RenderView

type RenderView struct {
	RenderObjectBase
	RenderObjectWithChild[Box]

	// AutomaticSystemUIAdjustment says whether the view updates the system UI
	// (the status bar and navigation bar) from the SystemUiOverlayStyle
	// annotations of the layer tree.
	//
	// Flutter: rendering/view.dart RenderView.automaticSystemUiAdjustment
	AutomaticSystemUIAdjustment bool

	// OnSystemUIOverlayStyle receives the style that the annotations of the layer tree ask for,
	// when AutomaticSystemUIAdjustment is set; the widgets binding sets it to
	// SystemChrome.SetSystemUIOverlayStyle. Nil means nobody wants it.
	//
	// Deviation: Flutter's RenderView calls the static SystemChrome.setSystemUIOverlayStyle;
	// there are no static services here (SPEC §12.10).
	//
	// Flutter: rendering/view.dart RenderView._updateSystemChrome
	OnSystemUIOverlayStyle func(style services.SystemUiOverlayStyle)
	// contains filtered or unexported fields
}

RenderView is the root of the render tree of a view: it is a repaint boundary, lays out its child with the view's constraints, and turns the layer tree into a scene.

Flutter: rendering/view.dart RenderView

func NewRenderView

func NewRenderView(view *ui.View, opts ...RenderViewOpts) *RenderView

NewRenderView creates the root render object for the view.

Flutter: rendering/view.dart RenderView.new

func (*RenderView) ApplyPaintTransform

func (r *RenderView) ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)

ApplyPaintTransform applies the root transform and the child's offset.

Flutter: rendering/view.dart RenderView.applyPaintTransform

func (*RenderView) BoxConstraints

func (r *RenderView) BoxConstraints() BoxConstraints

BoxConstraints are the logical constraints of the configuration.

func (*RenderView) CompositeFrame

func (r *RenderView) CompositeFrame() error

CompositeFrame turns the layer tree into a scene and sends it to the view. It returns the error of the renderer, such as a lost GPU context.

Flutter: rendering/view.dart RenderView.compositeFrame

func (*RenderView) Configuration

func (r *RenderView) Configuration() ViewConfiguration

Configuration is the configuration of the view. It panics with RenderViewNoConfiguration if there is none.

Flutter: rendering/view.dart RenderView.configuration

func (*RenderView) Constraints

func (r *RenderView) Constraints() Constraints

Constraints are the logical constraints of the configuration.

Flutter: rendering/view.dart RenderView.constraints

func (*RenderView) DebugAssertDoesMeetConstraints

func (r *RenderView) DebugAssertDoesMeetConstraints()

DebugAssertDoesMeetConstraints is never called.

Flutter: rendering/view.dart RenderView.debugAssertDoesMeetConstraints

func (*RenderView) DebugFillProperties

func (r *RenderView) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the view size, the pixel ratio and the configuration.

Flutter: rendering/view.dart RenderView.debugFillProperties

func (*RenderView) FlutterView

func (r *RenderView) FlutterView() *ui.View

FlutterView is the view that the render view renders.

Flutter: rendering/view.dart RenderView.flutterView

func (*RenderView) HasConfiguration

func (r *RenderView) HasConfiguration() bool

HasConfiguration reports whether the view has a configuration.

Flutter: rendering/view.dart RenderView.hasConfiguration

func (*RenderView) HitTest

func (r *RenderView) HitTest(result *gestures.HitTestResult, position ui.Offset) bool

HitTest hit tests the child at the position, then adds the view itself.

Flutter: rendering/view.dart RenderView.hitTest

func (*RenderView) IsRepaintBoundary

func (r *RenderView) IsRepaintBoundary() bool

IsRepaintBoundary is true.

Flutter: rendering/view.dart RenderView.isRepaintBoundary

func (*RenderView) Paint

func (r *RenderView) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the child, then the debug paint callbacks.

Flutter: rendering/view.dart RenderView.paint

func (*RenderView) PaintBounds

func (r *RenderView) PaintBounds() ui.Rect

PaintBounds are the view's size in physical pixels, at the origin.

Flutter: rendering/view.dart RenderView.paintBounds

func (*RenderView) PerformLayout

func (r *RenderView) PerformLayout()

PerformLayout lays out the child with the view's constraints and takes its size (or the smallest size, for tight constraints).

Flutter: rendering/view.dart RenderView.performLayout

func (*RenderView) PerformResize

func (r *RenderView) PerformResize()

PerformResize is never called; a RenderView does not size itself from its parent.

Flutter: rendering/view.dart RenderView.performResize

func (*RenderView) PrepareInitialFrame

func (r *RenderView) PrepareInitialFrame()

PrepareInitialFrame schedules the first layout and paint. The view must be attached to a pipeline owner and have a configuration.

Flutter: rendering/view.dart RenderView.prepareInitialFrame

func (*RenderView) SemanticBounds

func (r *RenderView) SemanticBounds() ui.Rect

SemanticBounds are the view's bounds in physical pixels.

Flutter: rendering/view.dart RenderView.semanticBounds

func (*RenderView) SetConfiguration

func (r *RenderView) SetConfiguration(value ViewConfiguration)

SetConfiguration changes the configuration. If the matrix changes it replaces the root layer; it marks the view as needing layout.

Flutter: rendering/view.dart RenderView.configuration

func (*RenderView) Size

func (r *RenderView) Size() ui.Size

Size is the size of the view in logical pixels, set by layout.

Flutter: rendering/view.dart RenderView.size

func (*RenderView) ToStringShort

func (r *RenderView) ToStringShort() string

ToStringShort describes the object.

func (*RenderView) UpdateSemantics

func (r *RenderView) UpdateSemantics(update *ui.SemanticsUpdate)

UpdateSemantics sends the semantics update to the view of the engine.

Flutter: rendering/view.dart RenderView.updateSemantics

type RenderViewOpts

type RenderViewOpts struct {
	// Child is the box that fills the view.
	Child Box
	// Configuration is the configuration; it must be set before the view lays
	// out.
	Configuration foundation.Opt[ViewConfiguration]
}

RenderViewOpts are the optional parameters of NewRenderView.

Flutter: rendering/view.dart RenderView.new

type RenderViewport

type RenderViewport struct {
	RenderViewportBase
	// contains filtered or unexported fields
}

RenderViewport is a viewport with a center sliver: the slivers before it grow in the reverse direction, and the ones from it on in the forward direction, so the content can extend in both directions from the anchor.

Flutter: rendering/viewport.dart RenderViewport

func NewRenderViewport

func NewRenderViewport(crossAxisDirection painting.AxisDirection, offset ViewportOffset, opts ...RenderViewportOpts) *RenderViewport

NewRenderViewport creates the viewport. In debug builds an anchor outside 0..1 panics with the tag ViewportAnchorInvalid.

Flutter: rendering/viewport.dart RenderViewport.new

func (*RenderViewport) Anchor

func (r *RenderViewport) Anchor() float64

Anchor is the relative position of the zero scroll offset.

Flutter: rendering/viewport.dart RenderViewport.anchor

func (*RenderViewport) ApplyPaintTransform

func (r *RenderViewport) ApplyPaintTransform(child RenderObject, transform *ui.Matrix4)

ApplyPaintTransform translates by the paint offset of the child.

Flutter: rendering/viewport.dart RenderViewport.applyPaintTransform

func (*RenderViewport) AsRenderViewport

func (r *RenderViewport) AsRenderViewport() *RenderViewport

AsRenderViewport is the viewport that the render object embeds.

Flutter: no counterpart (Dart subclasses are the viewport)

func (*RenderViewport) Center

func (r *RenderViewport) Center() Sliver

Center is the sliver at the zero scroll offset, or nil.

Flutter: rendering/viewport.dart RenderViewport.center

func (*RenderViewport) ComputeChildMainAxisPosition

func (r *RenderViewport) ComputeChildMainAxisPosition(child Sliver, parentMainAxisPosition float64) float64

ComputeChildMainAxisPosition converts a main axis position of the viewport to that of the child.

Flutter: rendering/viewport.dart RenderViewport.computeChildMainAxisPosition

func (*RenderViewport) ComputeDryLayout

func (r *RenderViewport) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the biggest size the constraints allow.

Flutter: rendering/viewport.dart RenderViewport.computeDryLayout

func (*RenderViewport) DebugFillProperties

func (r *RenderViewport) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the anchor.

Flutter: rendering/viewport.dart RenderViewport.debugFillProperties

func (*RenderViewport) HasVisualOverflow

func (r *RenderViewport) HasVisualOverflow() bool

HasVisualOverflow is whether a sliver overflowed.

Flutter: rendering/viewport.dart RenderViewport.hasVisualOverflow

func (*RenderViewport) IndexOfFirstChild

func (r *RenderViewport) IndexOfFirstChild() int

IndexOfFirstChild is minus the number of children before the center.

Flutter: rendering/viewport.dart RenderViewport.indexOfFirstChild

func (*RenderViewport) LabelForChild

func (r *RenderViewport) LabelForChild(index int) string

LabelForChild is "center child" for the center and "child N" for the others.

Flutter: rendering/viewport.dart RenderViewport.labelForChild

func (*RenderViewport) MaxScrollObstructionExtentBefore

func (r *RenderViewport) MaxScrollObstructionExtentBefore(child Sliver) float64

MaxScrollObstructionExtentBefore is how much the slivers before the child obstruct the viewport.

Flutter: rendering/viewport.dart RenderViewport.maxScrollObstructionExtentBefore

func (*RenderViewport) PaintOffsetOf

func (r *RenderViewport) PaintOffsetOf(child Sliver) ui.Offset

PaintOffsetOf is the paint offset of the sliver.

Flutter: rendering/viewport.dart RenderViewport.paintOffsetOf

func (*RenderViewport) PerformLayout

func (r *RenderViewport) PerformLayout()

PerformLayout lays the slivers out, starting from the center, until the offset accepts the content dimensions.

Flutter: rendering/viewport.dart RenderViewport.performLayout

func (*RenderViewport) ScrollOffsetOf

func (r *RenderViewport) ScrollOffsetOf(child Sliver, scrollOffsetWithinChild float64) float64

ScrollOffsetOf converts an offset within the sliver to a scroll offset of the viewport.

Flutter: rendering/viewport.dart RenderViewport.scrollOffsetOf

func (*RenderViewport) SetAnchor

func (r *RenderViewport) SetAnchor(value float64)

SetAnchor changes the anchor and marks the viewport as needing layout.

Flutter: rendering/viewport.dart RenderViewport.anchor

func (*RenderViewport) SetCenter

func (r *RenderViewport) SetCenter(value Sliver)

SetCenter changes the center sliver and marks the viewport as needing layout.

Flutter: rendering/viewport.dart RenderViewport.center

func (*RenderViewport) SetupParentData

func (r *RenderViewport) SetupParentData(child RenderObject)

SetupParentData gives the child a SliverPhysicalContainerParentData if it has none.

Flutter: rendering/viewport.dart RenderViewport.setupParentData

func (*RenderViewport) SizedByParent

func (r *RenderViewport) SizedByParent() bool

SizedByParent is true: the viewport takes as much room as it is given.

Flutter: rendering/viewport.dart RenderViewport.sizedByParent

func (*RenderViewport) UpdateChildLayoutOffset

func (r *RenderViewport) UpdateChildLayoutOffset(child Sliver, layoutOffset float64, growthDirection GrowthDirection)

UpdateChildLayoutOffset sets the paint offset of the sliver.

Flutter: rendering/viewport.dart RenderViewport.updateChildLayoutOffset

func (*RenderViewport) UpdateOutOfBandData

func (r *RenderViewport) UpdateOutOfBandData(growthDirection GrowthDirection, childLayoutGeometry SliverGeometry)

UpdateOutOfBandData accumulates the scroll extents.

Flutter: rendering/viewport.dart RenderViewport.updateOutOfBandData

type RenderViewportBase

type RenderViewportBase struct {
	RenderBox
	ContainerRenderObject[Sliver]
	// contains filtered or unexported fields
}

RenderViewportBase is the base of the viewports: boxes that show part of their slivers, which scroll along the main axis by the offset. The concrete type embeds it and implements HasVisualOverflow, UpdateOutOfBandData, UpdateChildLayoutOffset, PaintOffsetOf, ScrollOffsetOf, MaxScrollObstructionExtentBefore, ComputeChildMainAxisPosition, IndexOfFirstChild and LabelForChild.

Flutter: rendering/viewport.dart RenderViewportBase

func (*RenderViewportBase) Attach

func (b *RenderViewportBase) Attach(owner *PipelineOwner)

Attach starts listening to the offset.

Flutter: rendering/viewport.dart RenderViewportBase.attach

func (*RenderViewportBase) Axis

func (b *RenderViewportBase) Axis() painting.Axis

Axis is the axis of the main direction.

Flutter: rendering/viewport.dart RenderViewportBase.axis

func (*RenderViewportBase) AxisDirection

func (b *RenderViewportBase) AxisDirection() painting.AxisDirection

AxisDirection is the direction in which the scroll offset increases.

Flutter: rendering/viewport.dart RenderViewportBase.axisDirection

func (*RenderViewportBase) ChildrenInHitTestOrder

func (b *RenderViewportBase) ChildrenInHitTestOrder() []Sliver

ChildrenInHitTestOrder are the slivers in the order they are hit tested.

Flutter: rendering/viewport.dart RenderViewportBase.childrenInHitTestOrder

func (*RenderViewportBase) ChildrenInPaintOrder

func (b *RenderViewportBase) ChildrenInPaintOrder() []Sliver

ChildrenInPaintOrder are the slivers in the order they are painted.

Flutter: rendering/viewport.dart RenderViewportBase.childrenInPaintOrder

func (*RenderViewportBase) ClipBehavior

func (b *RenderViewportBase) ClipBehavior() ui.Clip

ClipBehavior is how the content is clipped when it overflows.

Flutter: rendering/viewport.dart RenderViewportBase.clipBehavior

func (*RenderViewportBase) ComputeAbsolutePaintOffset

func (b *RenderViewportBase) ComputeAbsolutePaintOffset(child Sliver, layoutOffset float64, growthDirection GrowthDirection) ui.Offset

ComputeAbsolutePaintOffset is the paint offset of a sliver in the coordinates of the viewport, from its layout offset.

Flutter: rendering/viewport.dart RenderViewportBase.computeAbsolutePaintOffset

func (*RenderViewportBase) ComputeMaxIntrinsicHeight

func (b *RenderViewportBase) ComputeMaxIntrinsicHeight(float64) float64

ComputeMaxIntrinsicHeight is zero; it panics in debug builds.

Flutter: rendering/viewport.dart RenderViewportBase.computeMaxIntrinsicHeight

func (*RenderViewportBase) ComputeMaxIntrinsicWidth

func (b *RenderViewportBase) ComputeMaxIntrinsicWidth(float64) float64

ComputeMaxIntrinsicWidth is zero; it panics in debug builds.

Flutter: rendering/viewport.dart RenderViewportBase.computeMaxIntrinsicWidth

func (*RenderViewportBase) ComputeMinIntrinsicHeight

func (b *RenderViewportBase) ComputeMinIntrinsicHeight(float64) float64

ComputeMinIntrinsicHeight is zero; it panics in debug builds.

Flutter: rendering/viewport.dart RenderViewportBase.computeMinIntrinsicHeight

func (*RenderViewportBase) ComputeMinIntrinsicWidth

func (b *RenderViewportBase) ComputeMinIntrinsicWidth(float64) float64

ComputeMinIntrinsicWidth is zero; it panics in debug builds.

Flutter: rendering/viewport.dart RenderViewportBase.computeMinIntrinsicWidth

func (*RenderViewportBase) CrossAxisDirection

func (b *RenderViewportBase) CrossAxisDirection() painting.AxisDirection

CrossAxisDirection is the direction in which the children are laid out in the cross axis.

Flutter: rendering/viewport.dart RenderViewportBase.crossAxisDirection

func (*RenderViewportBase) DebugDescribeChildren

func (b *RenderViewportBase) DebugDescribeChildren() []foundation.DiagnosticsNode

DebugDescribeChildren describes the slivers by their label.

Flutter: rendering/viewport.dart RenderViewportBase.debugDescribeChildren

func (*RenderViewportBase) DebugFillProperties

func (b *RenderViewportBase) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the directions and the offset.

Flutter: rendering/viewport.dart RenderViewportBase.debugFillProperties

func (*RenderViewportBase) DebugPaintSize

func (b *RenderViewportBase) DebugPaintSize(context *PaintingContext, offset ui.Offset)

DebugPaintSize paints the layout extent of every sliver.

Flutter: rendering/viewport.dart RenderViewportBase.debugPaintSize

func (*RenderViewportBase) DescribeApproximatePaintClip

func (b *RenderViewportBase) DescribeApproximatePaintClip(child RenderObject) foundation.Opt[ui.Rect]

DescribeApproximatePaintClip is the viewport, minus the part that a previous pinned or floating sliver covers.

Flutter: rendering/viewport.dart RenderViewportBase.describeApproximatePaintClip

func (*RenderViewportBase) DescribeSemanticsClip

func (b *RenderViewportBase) DescribeSemanticsClip(child RenderObject) foundation.Opt[ui.Rect]

DescribeSemanticsClip is the viewport enlarged by the cache extent.

Flutter: rendering/viewport.dart RenderViewportBase.describeSemanticsClip

func (*RenderViewportBase) DescribeSemanticsConfiguration

func (b *RenderViewportBase) DescribeSemanticsConfiguration(config *semantics.SemanticsConfiguration)

DescribeSemanticsConfiguration tags the children with the two pane semantics.

Flutter: rendering/viewport.dart RenderViewportBase.describeSemanticsConfiguration

func (*RenderViewportBase) Detach

func (b *RenderViewportBase) Detach()

Detach stops listening to the offset.

Flutter: rendering/viewport.dart RenderViewportBase.detach

func (*RenderViewportBase) Dispose

func (b *RenderViewportBase) Dispose()

Dispose lets the clip layer go.

Flutter: rendering/viewport.dart RenderViewportBase.dispose

func (*RenderViewportBase) GetOffsetToReveal

func (b *RenderViewportBase) GetOffsetToReveal(target RenderObject, alignment float64, opts ...GetOffsetToRevealOpts) RevealedOffset

GetOffsetToReveal returns the scroll offset that puts the target at the alignment in the viewport, and where the target is then.

Flutter: rendering/viewport.dart RenderViewportBase.getOffsetToReveal

func (*RenderViewportBase) HitTestChildren

func (b *RenderViewportBase) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren hit tests the slivers in hit test order.

Flutter: rendering/viewport.dart RenderViewportBase.hitTestChildren

func (*RenderViewportBase) IsRepaintBoundary

func (b *RenderViewportBase) IsRepaintBoundary() bool

IsRepaintBoundary is true.

Flutter: rendering/viewport.dart RenderViewportBase.isRepaintBoundary

func (*RenderViewportBase) LayoutChildSequence

func (b *RenderViewportBase) LayoutChildSequence(o LayoutChildSequenceOpts) float64

LayoutChildSequence lays out a sequence of slivers, each with the constraints that follow from the geometry of the one before. It returns zero, or the scroll offset correction that the first sliver that asked for one wants.

Flutter: rendering/viewport.dart RenderViewportBase.layoutChildSequence

func (*RenderViewportBase) Offset

func (b *RenderViewportBase) Offset() ViewportOffset

Offset is the offset of the content.

Flutter: rendering/viewport.dart RenderViewportBase.offset

func (*RenderViewportBase) Paint

func (b *RenderViewportBase) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the slivers, clipped to the viewport if they overflow.

Flutter: rendering/viewport.dart RenderViewportBase.paint

func (*RenderViewportBase) PaintOrder

func (b *RenderViewportBase) PaintOrder() SliverPaintOrder

PaintOrder is the order in which the slivers are painted.

Flutter: rendering/viewport.dart RenderViewportBase.paintOrder

func (*RenderViewportBase) ScrollCacheExtent

func (b *RenderViewportBase) ScrollCacheExtent() ScrollCacheExtent

ScrollCacheExtent is how far the viewport lays out children beyond the visible area.

Flutter: rendering/viewport.dart RenderViewportBase.scrollCacheExtent

func (*RenderViewportBase) SetAxisDirection

func (b *RenderViewportBase) SetAxisDirection(value painting.AxisDirection)

SetAxisDirection changes the axis direction and marks the viewport as needing layout.

Flutter: rendering/viewport.dart RenderViewportBase.axisDirection

func (*RenderViewportBase) SetClipBehavior

func (b *RenderViewportBase) SetClipBehavior(value ui.Clip)

SetClipBehavior changes the clip behavior and marks the viewport as needing paint and a semantics update.

Flutter: rendering/viewport.dart RenderViewportBase.clipBehavior

func (*RenderViewportBase) SetCrossAxisDirection

func (b *RenderViewportBase) SetCrossAxisDirection(value painting.AxisDirection)

SetCrossAxisDirection changes the cross axis direction and marks the viewport as needing layout.

Flutter: rendering/viewport.dart RenderViewportBase.crossAxisDirection

func (*RenderViewportBase) SetOffset

func (b *RenderViewportBase) SetOffset(value ViewportOffset)

SetOffset changes the offset: the viewport listens to the new one while it is attached.

Flutter: rendering/viewport.dart RenderViewportBase.offset

func (*RenderViewportBase) SetPaintOrder

func (b *RenderViewportBase) SetPaintOrder(value SliverPaintOrder)

SetPaintOrder changes the paint order and marks the viewport as needing paint and a semantics update.

Flutter: rendering/viewport.dart RenderViewportBase.paintOrder

func (*RenderViewportBase) SetScrollCacheExtent

func (b *RenderViewportBase) SetScrollCacheExtent(value foundation.Opt[ScrollCacheExtent])

SetScrollCacheExtent changes the cache extent (none means the default of 250 pixels) and marks the viewport as needing layout.

Flutter: rendering/viewport.dart RenderViewportBase.scrollCacheExtent

func (*RenderViewportBase) ShowOnScreen

func (b *RenderViewportBase) ShowOnScreen(opts ShowOnScreenOpts)

ShowOnScreen scrolls the offset to reveal the descendant, when the offset allows implicit scrolling, then asks the parent to show the rectangle.

Flutter: rendering/viewport.dart RenderViewportBase.showOnScreen

func (*RenderViewportBase) VisitChildrenForSemantics

func (b *RenderViewportBase) VisitChildrenForSemantics(visitor RenderObjectVisitor)

VisitChildrenForSemantics visits the slivers that are visible, are in the cache area or keep their semantics, in paint order.

Flutter: rendering/viewport.dart RenderViewportBase.visitChildrenForSemantics

type RenderViewportBaseOpts

type RenderViewportBaseOpts struct {
	// AxisDirection defaults to painting.AxisDirectionDown.
	AxisDirection painting.AxisDirection
	// ScrollCacheExtent defaults to ScrollCacheExtent.pixels(250).
	ScrollCacheExtent foundation.Opt[ScrollCacheExtent]
	// PaintOrder defaults to SliverPaintOrderFirstIsTop.
	PaintOrder SliverPaintOrder
	// ClipBehavior defaults to ui.ClipHardEdge.
	ClipBehavior ui.Clip
}

RenderViewportBaseOpts are the optional parameters of InitRenderViewportBase.

Flutter: rendering/viewport.dart RenderViewportBase.new

type RenderViewportOpts

type RenderViewportOpts struct {
	RenderViewportBaseOpts
	// Anchor is the relative position of the zero scroll offset, from 0.0 (the
	// leading edge) to 1.0 (the trailing edge).
	Anchor float64
	// Children are the slivers.
	Children []Sliver
	// Center is the sliver at the zero scroll offset; the default is the first
	// child.
	Center Sliver
}

RenderViewportOpts are the optional parameters of NewRenderViewport.

Flutter: rendering/viewport.dart RenderViewport.new

type RenderWrap

type RenderWrap struct {
	RenderBox
	ContainerRenderObject[Box]
	// contains filtered or unexported fields
}

RenderWrap implements the wrap layout algorithm: the children are placed in runs along the main axis, and a new run starts when one does not fit.

Flutter: rendering/wrap.dart RenderWrap

func NewRenderWrap

func NewRenderWrap(children []Box, opts ...RenderWrapOpts) *RenderWrap

NewRenderWrap creates a wrap with the children (nil for none).

Flutter: rendering/wrap.dart RenderWrap.new

func (*RenderWrap) Alignment

func (r *RenderWrap) Alignment() WrapAlignment

Alignment is how the children within a run are placed in the main axis.

Flutter: rendering/wrap.dart RenderWrap.alignment

func (*RenderWrap) ClipBehavior

func (r *RenderWrap) ClipBehavior() ui.Clip

ClipBehavior is how the content that overflows is clipped.

Flutter: rendering/wrap.dart RenderWrap.clipBehavior

func (*RenderWrap) ComputeDistanceToActualBaseline

func (r *RenderWrap) ComputeDistanceToActualBaseline(baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDistanceToActualBaseline is the highest baseline among the children.

Flutter: rendering/wrap.dart RenderWrap.computeDistanceToActualBaseline

func (*RenderWrap) ComputeDryBaseline

func (r *RenderWrap) ComputeDryBaseline(constraints BoxConstraints, baseline ui.TextBaseline) foundation.Opt[float64]

ComputeDryBaseline is the highest baseline among the children for the constraints.

Flutter: rendering/wrap.dart RenderWrap.computeDryBaseline

func (*RenderWrap) ComputeDryLayout

func (r *RenderWrap) ComputeDryLayout(constraints BoxConstraints) ui.Size

ComputeDryLayout is the size the constraints would give.

Flutter: rendering/wrap.dart RenderWrap.computeDryLayout

func (*RenderWrap) ComputeMaxIntrinsicHeight

func (r *RenderWrap) ComputeMaxIntrinsicHeight(width float64) float64

ComputeMaxIntrinsicHeight is the sum of the children's heights of a vertical wrap, or the height of the dry layout of a horizontal one.

Flutter: rendering/wrap.dart RenderWrap.computeMaxIntrinsicHeight

func (*RenderWrap) ComputeMaxIntrinsicWidth

func (r *RenderWrap) ComputeMaxIntrinsicWidth(height float64) float64

ComputeMaxIntrinsicWidth is the sum of the children's widths, or the width of the dry layout of a vertical wrap.

Flutter: rendering/wrap.dart RenderWrap.computeMaxIntrinsicWidth

func (*RenderWrap) ComputeMinIntrinsicHeight

func (r *RenderWrap) ComputeMinIntrinsicHeight(width float64) float64

ComputeMinIntrinsicHeight is the tallest child of a vertical wrap, or the height of the dry layout of a horizontal one.

Flutter: rendering/wrap.dart RenderWrap.computeMinIntrinsicHeight

func (*RenderWrap) ComputeMinIntrinsicWidth

func (r *RenderWrap) ComputeMinIntrinsicWidth(height float64) float64

ComputeMinIntrinsicWidth is the widest child, or the width of the dry layout of a vertical wrap.

Flutter: rendering/wrap.dart RenderWrap.computeMinIntrinsicWidth

func (*RenderWrap) CrossAxisAlignment

func (r *RenderWrap) CrossAxisAlignment() WrapCrossAlignment

CrossAxisAlignment is how the children within a run are aligned relative to each other in the cross axis.

Flutter: rendering/wrap.dart RenderWrap.crossAxisAlignment

func (*RenderWrap) DebugFillProperties

func (r *RenderWrap) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the direction, the alignments and the spacings.

Flutter: rendering/wrap.dart RenderWrap.debugFillProperties

func (*RenderWrap) Direction

func (r *RenderWrap) Direction() painting.Axis

Direction is the direction to use as the main axis.

Flutter: rendering/wrap.dart RenderWrap.direction

func (*RenderWrap) Dispose

func (r *RenderWrap) Dispose()

Dispose lets the clip layer go.

Flutter: rendering/wrap.dart RenderWrap.dispose

func (*RenderWrap) HitTestChildren

func (r *RenderWrap) HitTestChildren(result *BoxHitTestResult, position ui.Offset) bool

HitTestChildren hit tests the children from the front.

Flutter: rendering/wrap.dart RenderWrap.hitTestChildren

func (*RenderWrap) Paint

func (r *RenderWrap) Paint(context *PaintingContext, offset ui.Offset)

Paint paints the children, clipped to the wrap if they overflow it.

Flutter: rendering/wrap.dart RenderWrap.paint

func (*RenderWrap) PerformLayout

func (r *RenderWrap) PerformLayout()

PerformLayout divides the children into runs, sizes the wrap around them and positions them.

Flutter: rendering/wrap.dart RenderWrap.performLayout

func (*RenderWrap) RunAlignment

func (r *RenderWrap) RunAlignment() WrapAlignment

RunAlignment is how the runs themselves are placed in the cross axis.

Flutter: rendering/wrap.dart RenderWrap.runAlignment

func (*RenderWrap) RunSpacing

func (r *RenderWrap) RunSpacing() float64

RunSpacing is how much space to place between the runs in the cross axis.

Flutter: rendering/wrap.dart RenderWrap.runSpacing

func (*RenderWrap) SetAlignment

func (r *RenderWrap) SetAlignment(value WrapAlignment)

SetAlignment marks the wrap as needing layout when the value changes.

Flutter: rendering/wrap.dart RenderWrap.alignment

func (*RenderWrap) SetClipBehavior

func (r *RenderWrap) SetClipBehavior(value ui.Clip)

SetClipBehavior marks the wrap as needing paint when the value changes.

Flutter: rendering/wrap.dart RenderWrap.clipBehavior

func (*RenderWrap) SetCrossAxisAlignment

func (r *RenderWrap) SetCrossAxisAlignment(value WrapCrossAlignment)

SetCrossAxisAlignment marks the wrap as needing layout when the value changes.

Flutter: rendering/wrap.dart RenderWrap.crossAxisAlignment

func (*RenderWrap) SetDirection

func (r *RenderWrap) SetDirection(value painting.Axis)

SetDirection marks the wrap as needing layout when the value changes.

Flutter: rendering/wrap.dart RenderWrap.direction

func (*RenderWrap) SetRunAlignment

func (r *RenderWrap) SetRunAlignment(value WrapAlignment)

SetRunAlignment marks the wrap as needing layout when the value changes.

Flutter: rendering/wrap.dart RenderWrap.runAlignment

func (*RenderWrap) SetRunSpacing

func (r *RenderWrap) SetRunSpacing(value float64)

SetRunSpacing marks the wrap as needing layout when the value changes.

Flutter: rendering/wrap.dart RenderWrap.runSpacing

func (*RenderWrap) SetSpacing

func (r *RenderWrap) SetSpacing(value float64)

SetSpacing marks the wrap as needing layout when the value changes.

Flutter: rendering/wrap.dart RenderWrap.spacing

func (*RenderWrap) SetTextDirection

func (r *RenderWrap) SetTextDirection(value ui.TextDirection)

SetTextDirection marks the wrap as needing layout when the value changes.

Flutter: rendering/wrap.dart RenderWrap.textDirection

func (*RenderWrap) SetVerticalDirection

func (r *RenderWrap) SetVerticalDirection(value painting.VerticalDirection)

SetVerticalDirection marks the wrap as needing layout when the value changes.

Flutter: rendering/wrap.dart RenderWrap.verticalDirection

func (*RenderWrap) SetupParentData

func (r *RenderWrap) SetupParentData(child RenderObject)

SetupParentData gives the child a WrapParentData if it has none.

Flutter: rendering/wrap.dart RenderWrap.setupParentData

func (*RenderWrap) Spacing

func (r *RenderWrap) Spacing() float64

Spacing is how much space to place between children in a run in the main axis.

Flutter: rendering/wrap.dart RenderWrap.spacing

func (*RenderWrap) TextDirection

func (r *RenderWrap) TextDirection() ui.TextDirection

TextDirection determines the order to lay children out horizontally. Unspecified is null.

Flutter: rendering/wrap.dart RenderWrap.textDirection

func (*RenderWrap) VerticalDirection

func (r *RenderWrap) VerticalDirection() painting.VerticalDirection

VerticalDirection determines the order to lay children out vertically.

Flutter: rendering/wrap.dart RenderWrap.verticalDirection

type RenderWrapOpts

type RenderWrapOpts struct {
	// Direction defaults to painting.AxisHorizontal.
	Direction painting.Axis
	// Alignment defaults to WrapAlignmentStart.
	Alignment WrapAlignment
	// Spacing is the space between the children in a run.
	Spacing float64
	// RunAlignment defaults to WrapAlignmentStart.
	RunAlignment WrapAlignment
	// RunSpacing is the space between the runs.
	RunSpacing float64
	// CrossAxisAlignment defaults to WrapCrossAlignmentStart.
	CrossAxisAlignment WrapCrossAlignment
	// TextDirection is the order of a horizontal wrap; unspecified is null.
	TextDirection ui.TextDirection
	// VerticalDirection defaults to painting.VerticalDirectionDown.
	VerticalDirection painting.VerticalDirection
	// ClipBehavior defaults to ui.ClipNone.
	ClipBehavior ui.Clip
}

RenderWrapOpts are the optional parameters of NewRenderWrap.

Flutter: rendering/wrap.dart RenderWrap.new

type RendererBinding

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

RendererBinding is the glue between the render trees and the engine: it owns the root pipeline owner, the render views and the mouse tracker, draws the frame (layout, compositing bits, paint, composite, semantics) and hit tests the views.

Deviation: Flutter's is a mixin on BindingBase with a static instance; this is a struct made from the scheduler and gesture bindings (SPEC §12.10).

Flutter: rendering/binding.dart RendererBinding

func NewRendererBinding

NewRendererBinding creates the binding. It sets the dispatcher's metrics callback (calling the one that was set), adds the persistent frame callback to the scheduler, and plugs the hit test of the views and the mouse tracking into the gesture binding.

Flutter: rendering/binding.dart RendererBinding.initInstances

func (*RendererBinding) AddRenderView

func (b *RendererBinding) AddRenderView(view *RenderView)

AddRenderView adds the render view and gives it its configuration. Adding a view twice, or two views of one view ID, panics with RenderViewAlreadyAdded in debug builds.

Flutter: rendering/binding.dart RendererBinding.addRenderView

func (*RendererBinding) AllowFirstFrame

func (b *RendererBinding) AllowFirstFrame()

AllowFirstFrame undoes a DeferFirstFrame; when the last one is undone and no frame was sent, it schedules a frame.

Deviation: Flutter schedules a warm-up frame, which the scheduler does not have (SPEC §12.10).

Flutter: rendering/binding.dart RendererBinding.allowFirstFrame

func (*RendererBinding) CreateRootPipelineOwner

func (b *RendererBinding) CreateRootPipelineOwner() *PipelineOwner

CreateRootPipelineOwner creates the root pipeline owner: one that manages child owners, not a root node. SetRootNode on it panics with RootNodeNotAllowed.

Flutter: rendering/binding.dart RendererBinding.createRootPipelineOwner

func (*RendererBinding) CreateViewConfigurationFor

func (b *RendererBinding) CreateViewConfigurationFor(view *RenderView) ViewConfiguration

CreateViewConfigurationFor makes the configuration of the render view from its view's metrics.

Flutter: rendering/binding.dart RendererBinding.createViewConfigurationFor

func (*RendererBinding) DebugDumpLayerTree

func (b *RendererBinding) DebugDumpLayerTree() string

DebugDumpLayerTree is the text dump of every render view's layer tree.

Flutter: rendering/binding.dart debugDumpLayerTree

func (*RendererBinding) DebugDumpPipelineOwnerTree

func (b *RendererBinding) DebugDumpPipelineOwnerTree() string

DebugDumpPipelineOwnerTree is the text dump of the tree of pipeline owners.

Flutter: rendering/binding.dart debugDumpPipelineOwnerTree

func (*RendererBinding) DebugDumpRenderTree

func (b *RendererBinding) DebugDumpRenderTree() string

DebugDumpRenderTree is the text dump of every render view's tree.

Flutter: rendering/binding.dart debugDumpRenderTree

func (*RendererBinding) DebugDumpSemanticsTree

func (b *RendererBinding) DebugDumpSemanticsTree(order semantics.DebugSemanticsDumpOrder) string

DebugDumpSemanticsTree is the text dump of the semantics tree of every render view, children in the given order; a view without semantics gets a notice.

Flutter: rendering/binding.dart debugDumpSemanticsTree

func (*RendererBinding) DebugOptions

func (b *RendererBinding) DebugOptions() *DebugOptions

DebugOptions are the debug flags of the rendering library.

Flutter: rendering/debug.dart

func (*RendererBinding) DeferFirstFrame

func (b *RendererBinding) DeferFirstFrame()

DeferFirstFrame stops the frames from going to the engine until AllowFirstFrame is called as often.

Flutter: rendering/binding.dart RendererBinding.deferFirstFrame

func (*RendererBinding) DrawFrame

func (b *RendererBinding) DrawFrame() error

DrawFrame lays out, updates the compositing bits, paints, composites the views (if frames go to the engine) and flushes the semantics. It returns the first error of a view's compositing.

Flutter: rendering/binding.dart RendererBinding.drawFrame

func (*RendererBinding) ForceRepaint

func (b *RendererBinding) ForceRepaint() <-chan struct{}

ForceRepaint marks every render object of every view as needing paint, and returns the channel that is closed at the end of the next frame.

Flutter: rendering/binding.dart RendererBinding._forceRepaint

func (*RendererBinding) GetRectOfSemanticsNodeInViewCoordinates

func (b *RendererBinding) GetRectOfSemanticsNodeInViewCoordinates(viewID ui.ViewID, nodeID int) (ui.Rect, bool)

GetRectOfSemanticsNodeInViewCoordinates is the rectangle of the semantics node in the logical pixels of the view. The second result is false for an unknown view or node, or if the view has no semantics owner (the tag SemanticsLookupFailed in debug builds).

Flutter: rendering/binding.dart RendererBinding.getRectOfSemanticsNodeInViewCoordinates

func (*RendererBinding) HandleSystemFontsChange

func (b *RendererBinding) HandleSystemFontsChange()

HandleSystemFontsChange tells every render object of every view that has a SystemFontsDidChange method that the fonts changed, so that it lays its text out again, and schedules a frame.

Deviation: Flutter's RelayoutWhenSystemFontsChangeMixin listens to the global PaintingBinding.systemFonts when it attaches; here the binding walks the trees.

Flutter: rendering/object.dart RelayoutWhenSystemFontsChangeMixin

func (*RendererBinding) HitTestInView

func (b *RendererBinding) HitTestInView(result *gestures.HitTestResult, position ui.Offset, viewID ui.ViewID)

HitTestInView hit tests the render view of the view ID, then adds the gesture binding, as the last target.

Flutter: rendering/binding.dart RendererBinding.hitTestInView

func (*RendererBinding) InitMouseTracker

func (b *RendererBinding) InitMouseTracker(tracker *MouseTracker)

InitMouseTracker replaces the mouse tracker, disposing the old one.

Flutter: rendering/binding.dart RendererBinding.initMouseTracker

func (*RendererBinding) MouseTracker

func (b *RendererBinding) MouseTracker() *MouseTracker

MouseTracker is the mouse tracker, or nil if the binding was made without a fallback cursor.

Flutter: rendering/binding.dart RendererBinding.mouseTracker

func (*RendererBinding) Reassemble

func (b *RendererBinding) Reassemble()

Reassemble marks every render view and its subtree for relayout and repaint, then schedules a frame (Flutter schedules a warm-up frame).

Flutter: rendering/binding.dart RendererBinding.performReassemble

func (*RendererBinding) RemoveRenderView

func (b *RendererBinding) RemoveRenderView(view *RenderView)

RemoveRenderView removes the render view.

Flutter: rendering/binding.dart RendererBinding.removeRenderView

func (*RendererBinding) RenderViews

func (b *RendererBinding) RenderViews() []*RenderView

RenderViews are the render views that were added, in order.

Flutter: rendering/binding.dart RendererBinding.renderViews

func (*RendererBinding) ResetFirstFrameSent

func (b *RendererBinding) ResetFirstFrameSent()

ResetFirstFrameSent lets the binding defer the first frame again.

Flutter: rendering/binding.dart RendererBinding.resetFirstFrameSent

func (*RendererBinding) RootPipelineOwner

func (b *RendererBinding) RootPipelineOwner() *PipelineOwner

RootPipelineOwner is the root of the tree of pipeline owners; render views' owners are its children.

Flutter: rendering/binding.dart RendererBinding.rootPipelineOwner

func (*RendererBinding) Scheduler

func (b *RendererBinding) Scheduler() *scheduler.SchedulerBinding

Scheduler is the scheduler binding.

func (*RendererBinding) SemanticsBinding

func (b *RendererBinding) SemanticsBinding() *semantics.SemanticsBinding

SemanticsBinding is the semantics binding that the renderer binding made: it says whether semantics are enabled, and passes the actions of assistive technologies to the semantics owners of the render views.

Deviation: Flutter's RendererBinding is mixed with SemanticsBinding; this one owns it (SPEC §12.10).

Flutter: semantics/binding.dart SemanticsBinding.instance

func (*RendererBinding) SendFramesToEngine

func (b *RendererBinding) SendFramesToEngine() bool

SendFramesToEngine reports whether the frames go to the engine: they do once the first frame was sent, and when no widget deferred the first frame.

Flutter: rendering/binding.dart RendererBinding.sendFramesToEngine

func (*RendererBinding) WrapDrawFrame

func (b *RendererBinding) WrapDrawFrame(wrap func(super func() error) error)

WrapDrawFrame makes the persistent frame callback call wrap instead of DrawFrame; wrap gets DrawFrame as super and may do work before and after it. The widgets binding uses it to build the widgets first and to finalize the tree after (Flutter's WidgetsBinding.drawFrame overrides the mixin's).

Flutter: widgets/binding.dart WidgetsBinding.drawFrame

type RendererBindingOpts

type RendererBindingOpts struct {
	// Debug are the debug flags that the render objects read; the default is a
	// fresh set with every flag off.
	Debug *DebugOptions
	// FallbackCursor is the cursor of the mouse tracker when no region asks for
	// one; the default is SystemMouseCursors.Basic.
	FallbackCursor services.MouseCursor
	// ReportError is called with the error of a frame that could not be sent to
	// the engine, and with the panics that the render objects recover in layout
	// and paint (tags LayoutPanicked and PaintPanicked). The default panics with
	// the error. The widgets binding passes the framework's error reporter.
	ReportError func(err error)
}

RendererBindingOpts are the optional parameters of NewRendererBinding.

Flutter: rendering/binding.dart RendererBinding

type RevealedOffset

type RevealedOffset struct {
	// Offset is the scroll offset that puts the target at the alignment.
	//
	// Flutter: rendering/viewport.dart RevealedOffset.offset
	Offset float64
	// Rect is the rectangle of the target in the coordinates of the viewport once
	// it is scrolled to Offset.
	//
	// Flutter: rendering/viewport.dart RevealedOffset.rect
	Rect ui.Rect
}

RevealedOffset is a scroll offset that reveals a target, and where the target ends up in the viewport.

Flutter: rendering/viewport.dart RevealedOffset

func (RevealedOffset) String

func (r RevealedOffset) String() string

String describes the offset and the rectangle.

Flutter: rendering/viewport.dart RevealedOffset.toString

type ScrollCacheExtent

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

ScrollCacheExtent is how far the viewport lays out and keeps children before and after the visible area, in pixels or as a multiple of the viewport.

Flutter: rendering/viewport.dart ScrollCacheExtent

func NewScrollCacheExtentPixels

func NewScrollCacheExtentPixels(pixels float64) ScrollCacheExtent

NewScrollCacheExtentPixels is a cache area of a number of logical pixels.

Flutter: rendering/viewport.dart ScrollCacheExtent.pixels

func NewScrollCacheExtentViewport

func NewScrollCacheExtentViewport(value float64) ScrollCacheExtent

NewScrollCacheExtentViewport is a cache area that is a multiple of the main axis extent of the viewport.

Flutter: rendering/viewport.dart ScrollCacheExtent.viewport

func (ScrollCacheExtent) CalculateCacheOffset

func (e ScrollCacheExtent) CalculateCacheOffset(mainAxisExtent float64) float64

CalculateCacheOffset is the cache extent in pixels for a viewport with the main axis extent.

Flutter: rendering/viewport.dart ScrollCacheExtent._calculateCacheOffset

func (ScrollCacheExtent) String

func (e ScrollCacheExtent) String() string

String is "ScrollCacheExtent.pixels(250.0)" or "ScrollCacheExtent.viewport(0.5)".

Flutter: rendering/viewport.dart ScrollCacheExtent.toString

func (ScrollCacheExtent) Style

Style is how the extent is measured.

Flutter: rendering/viewport.dart ScrollCacheExtent.style

func (ScrollCacheExtent) Value

func (e ScrollCacheExtent) Value() float64

Value is the number of pixels, or the multiple of the viewport.

Flutter: rendering/viewport.dart ScrollCacheExtent.value

type ScrollDirection

type ScrollDirection int

ScrollDirection is the direction in which the user is scrolling.

Flutter: rendering/viewport_offset.dart ScrollDirection

const (
	// ScrollDirectionUnspecified is the zero value; it is not a real direction.
	//
	// Flutter: no counterpart
	ScrollDirectionUnspecified ScrollDirection = iota
	// ScrollDirectionIdle means no user is scrolling the viewport.
	//
	// Flutter: rendering/viewport_offset.dart ScrollDirection.idle
	ScrollDirectionIdle
	// ScrollDirectionForward means the user is scrolling the content toward its
	// start, so the content moves in the direction of the axis (the offset goes
	// toward the start of the scroll extent).
	//
	// Flutter: rendering/viewport_offset.dart ScrollDirection.forward
	ScrollDirectionForward
	// ScrollDirectionReverse means the user is scrolling opposite to
	// ScrollDirectionForward.
	//
	// Flutter: rendering/viewport_offset.dart ScrollDirection.reverse
	ScrollDirectionReverse
)

The values of ScrollDirection follow Flutter's declaration order.

func ApplyGrowthDirectionToScrollDirection

func ApplyGrowthDirectionToScrollDirection(scrollDirection ScrollDirection, growthDirection GrowthDirection) ScrollDirection

ApplyGrowthDirectionToScrollDirection flips the scroll direction for a reverse growth direction.

Flutter: rendering/sliver.dart applyGrowthDirectionToScrollDirection

func FlipScrollDirection

func FlipScrollDirection(direction ScrollDirection) ScrollDirection

FlipScrollDirection returns the opposite direction; idle stays idle.

Flutter: rendering/viewport_offset.dart flipScrollDirection

func (ScrollDirection) String

func (d ScrollDirection) String() string

String is the name with the enum, such as "ScrollDirection.forward".

Flutter: rendering/viewport_offset.dart ScrollDirection

type SelectAllSelectionEvent

type SelectAllSelectionEvent struct{}

SelectAllSelectionEvent selects all the content.

Flutter: rendering/selection.dart SelectAllSelectionEvent

func (SelectAllSelectionEvent) Type

Type is SelectionEventTypeSelectAll.

Flutter: rendering/selection.dart SelectAllSelectionEvent

type SelectParagraphSelectionEvent

type SelectParagraphSelectionEvent struct {
	// GlobalPosition is where the paragraph is, in global coordinates.
	//
	// Flutter: rendering/selection.dart SelectParagraphSelectionEvent.globalPosition
	GlobalPosition ui.Offset
	// Absorb tells that the handler that is hit absorbs the selection.
	//
	// Flutter: rendering/selection.dart SelectParagraphSelectionEvent.absorb
	Absorb bool
}

SelectParagraphSelectionEvent selects the paragraph at a global position.

Flutter: rendering/selection.dart SelectParagraphSelectionEvent

func (SelectParagraphSelectionEvent) Type

Type is SelectionEventTypeSelectParagraph.

Flutter: rendering/selection.dart SelectParagraphSelectionEvent

type SelectWordSelectionEvent

type SelectWordSelectionEvent struct {
	// GlobalPosition is where the word is, in global coordinates.
	//
	// Flutter: rendering/selection.dart SelectWordSelectionEvent.globalPosition
	GlobalPosition ui.Offset
}

SelectWordSelectionEvent selects the word at a global position.

Flutter: rendering/selection.dart SelectWordSelectionEvent

func (SelectWordSelectionEvent) Type

Type is SelectionEventTypeSelectWord.

Flutter: rendering/selection.dart SelectWordSelectionEvent

type Selectable

type Selectable interface {
	SelectionHandler
	// GetTransformTo is the transform from the selectable to the ancestor.
	//
	// Flutter: rendering/selection.dart Selectable.getTransformTo
	GetTransformTo(ancestor RenderObject) *ui.Matrix4
	// Size is the size of the selectable.
	//
	// Flutter: rendering/selection.dart Selectable.size
	Size() ui.Size
	// BoundingBoxes are the rectangles that enclose the selectable's content.
	//
	// Flutter: rendering/selection.dart Selectable.boundingBoxes
	BoundingBoxes() []ui.Rect
	// Dispose releases the resources of the selectable.
	//
	// Flutter: rendering/selection.dart Selectable.dispose
	Dispose()
}

Selectable is a handler that is a part of a selection: it has a size and a transform in the render tree, and bounding boxes.

Flutter: rendering/selection.dart Selectable

type SelectedContent

type SelectedContent struct {
	// PlainText is the selected text.
	//
	// Flutter: rendering/selection.dart SelectedContent.plainText
	PlainText string
}

SelectedContent is the content that a selection holds.

Flutter: rendering/selection.dart SelectedContent

func (SelectedContent) DebugFillProperties

func (c SelectedContent) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the text.

Flutter: rendering/selection.dart SelectedContent.debugFillProperties

type SelectedContentRange

type SelectedContentRange struct {
	// StartOffset is where the selection starts.
	//
	// Flutter: rendering/selection.dart SelectedContentRange.startOffset
	StartOffset int
	// EndOffset is where the selection ends.
	//
	// Flutter: rendering/selection.dart SelectedContentRange.endOffset
	EndOffset int
}

SelectedContentRange is the range of a selection in the content of a selectable.

Flutter: rendering/selection.dart SelectedContentRange

func (SelectedContentRange) DebugFillProperties

DebugFillProperties adds the offsets.

Flutter: rendering/selection.dart SelectedContentRange.debugFillProperties

type SelectionEdgeUpdateEvent

type SelectionEdgeUpdateEvent struct {
	// GlobalPosition is where the edge moves to, in global coordinates.
	//
	// Flutter: rendering/selection.dart SelectionEdgeUpdateEvent.globalPosition
	GlobalPosition ui.Offset
	// Granularity is how much the edge snaps to the text.
	//
	// Flutter: rendering/selection.dart SelectionEdgeUpdateEvent.granularity
	Granularity TextGranularity
	// contains filtered or unexported fields
}

SelectionEdgeUpdateEvent moves the start or the end edge of the selection to a global position.

Flutter: rendering/selection.dart SelectionEdgeUpdateEvent

func NewSelectionEdgeUpdateEventForEnd

func NewSelectionEdgeUpdateEventForEnd(globalPosition ui.Offset, granularity TextGranularity) SelectionEdgeUpdateEvent

NewSelectionEdgeUpdateEventForEnd moves the end edge. An unspecified granularity is character.

Flutter: rendering/selection.dart SelectionEdgeUpdateEvent.forEnd

func NewSelectionEdgeUpdateEventForStart

func NewSelectionEdgeUpdateEventForStart(globalPosition ui.Offset, granularity TextGranularity) SelectionEdgeUpdateEvent

NewSelectionEdgeUpdateEventForStart moves the start edge. An unspecified granularity is character.

Flutter: rendering/selection.dart SelectionEdgeUpdateEvent.forStart

func (SelectionEdgeUpdateEvent) Type

Type is the start or the end edge update.

Flutter: rendering/selection.dart SelectionEdgeUpdateEvent

type SelectionEvent

type SelectionEvent interface {
	// Type is the type of the event.
	//
	// Flutter: rendering/selection.dart SelectionEvent.type
	Type() SelectionEventType
}

SelectionEvent is an event that the selection system sends to selectables.

Flutter: rendering/selection.dart SelectionEvent

type SelectionEventType

type SelectionEventType int

SelectionEventType is the type of a selection event.

Flutter: rendering/selection.dart SelectionEventType

const (
	// SelectionEventTypeUnspecified is the zero value: no type.
	//
	// Flutter: no counterpart
	SelectionEventTypeUnspecified SelectionEventType = iota
	// SelectionEventTypeStartEdgeUpdate moves the start edge.
	//
	// Flutter: rendering/selection.dart SelectionEventType.startEdgeUpdate
	SelectionEventTypeStartEdgeUpdate
	// SelectionEventTypeEndEdgeUpdate moves the end edge.
	//
	// Flutter: rendering/selection.dart SelectionEventType.endEdgeUpdate
	SelectionEventTypeEndEdgeUpdate
	// SelectionEventTypeClear clears the selection.
	//
	// Flutter: rendering/selection.dart SelectionEventType.clear
	SelectionEventTypeClear
	// SelectionEventTypeSelectAll selects all the content.
	//
	// Flutter: rendering/selection.dart SelectionEventType.selectAll
	SelectionEventTypeSelectAll
	// SelectionEventTypeSelectWord selects a word.
	//
	// Flutter: rendering/selection.dart SelectionEventType.selectWord
	SelectionEventTypeSelectWord
	// SelectionEventTypeSelectParagraph selects a paragraph.
	//
	// Flutter: rendering/selection.dart SelectionEventType.selectParagraph
	SelectionEventTypeSelectParagraph
	// SelectionEventTypeGranularlyExtendSelection extends the selection by a
	// granularity.
	//
	// Flutter: rendering/selection.dart SelectionEventType.granularlyExtendSelection
	SelectionEventTypeGranularlyExtendSelection
	// SelectionEventTypeDirectionallyExtendSelection extends the selection in a
	// direction.
	//
	// Flutter: rendering/selection.dart SelectionEventType.directionallyExtendSelection
	SelectionEventTypeDirectionallyExtendSelection
)

The values of SelectionEventType follow Flutter's declaration order.

func (SelectionEventType) Name

func (t SelectionEventType) Name() string

Name returns the Dart enum name, such as "clear".

Flutter: rendering/selection.dart SelectionEventType.name

func (SelectionEventType) String

func (t SelectionEventType) String() string

String returns the name Dart prints, such as "SelectionEventType.clear".

Flutter: rendering/selection.dart SelectionEventType.toString

type SelectionExtendDirection

type SelectionExtendDirection int

SelectionExtendDirection is the direction in which a selection is extended.

Flutter: rendering/selection.dart SelectionExtendDirection

const (
	// SelectionExtendDirectionUnspecified is the zero value: no direction.
	//
	// Flutter: no counterpart
	SelectionExtendDirectionUnspecified SelectionExtendDirection = iota
	// SelectionExtendDirectionPreviousLine extends to the previous line.
	//
	// Flutter: rendering/selection.dart SelectionExtendDirection.previousLine
	SelectionExtendDirectionPreviousLine
	// SelectionExtendDirectionNextLine extends to the next line.
	//
	// Flutter: rendering/selection.dart SelectionExtendDirection.nextLine
	SelectionExtendDirectionNextLine
	// SelectionExtendDirectionForward extends forward.
	//
	// Flutter: rendering/selection.dart SelectionExtendDirection.forward
	SelectionExtendDirectionForward
	// SelectionExtendDirectionBackward extends backward.
	//
	// Flutter: rendering/selection.dart SelectionExtendDirection.backward
	SelectionExtendDirectionBackward
)

The values of SelectionExtendDirection follow Flutter's declaration order.

func (SelectionExtendDirection) Name

Name returns the Dart enum name, such as "nextLine".

Flutter: rendering/selection.dart SelectionExtendDirection.name

func (SelectionExtendDirection) String

func (d SelectionExtendDirection) String() string

String returns the name Dart prints, such as "SelectionExtendDirection.forward".

Flutter: rendering/selection.dart SelectionExtendDirection.toString

type SelectionGeometry

type SelectionGeometry struct {
	// StartSelectionPoint is the start edge of the selection, or nil.
	//
	// Flutter: rendering/selection.dart SelectionGeometry.startSelectionPoint
	StartSelectionPoint *SelectionPoint
	// EndSelectionPoint is the end edge of the selection, or nil.
	//
	// Flutter: rendering/selection.dart SelectionGeometry.endSelectionPoint
	EndSelectionPoint *SelectionPoint
	// Status is how much is selected.
	//
	// Flutter: rendering/selection.dart SelectionGeometry.status
	Status SelectionStatus
	// SelectionRects are the rectangles of the selection.
	//
	// Flutter: rendering/selection.dart SelectionGeometry.selectionRects
	SelectionRects []ui.Rect
	// HasContent is whether there is content that can be selected.
	//
	// Flutter: rendering/selection.dart SelectionGeometry.hasContent
	HasContent bool
}

SelectionGeometry is the geometry of a selection: its edges, its rectangles, and whether the selectable has content to select.

Flutter: rendering/selection.dart SelectionGeometry

func (SelectionGeometry) DebugFillProperties

func (g SelectionGeometry) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the points, the rectangles, the status and the content flag.

Flutter: rendering/selection.dart SelectionGeometry.debugFillProperties

func (SelectionGeometry) Equal

Equal reports whether the geometries are equal.

Flutter: rendering/selection.dart SelectionGeometry.==

func (SelectionGeometry) HasSelection

func (g SelectionGeometry) HasSelection() bool

HasSelection is whether anything is selected.

Flutter: rendering/selection.dart SelectionGeometry.hasSelection

type SelectionHandler

type SelectionHandler interface {
	foundation.ValueListenable[SelectionGeometry]
	// PushHandleLayers gives the layer links that the selection handles follow.
	//
	// Flutter: rendering/selection.dart SelectionHandler.pushHandleLayers
	PushHandleLayers(startHandle, endHandle *LayerLink)
	// GetSelectedContent is the content that is selected, or nil.
	//
	// Flutter: rendering/selection.dart SelectionHandler.getSelectedContent
	GetSelectedContent() *SelectedContent
	// GetSelection is the range of the selection in the content, or nil.
	//
	// Flutter: rendering/selection.dart SelectionHandler.getSelection
	GetSelection() *SelectedContentRange
	// DispatchSelectionEvent handles the event.
	//
	// Flutter: rendering/selection.dart SelectionHandler.dispatchSelectionEvent
	DispatchSelectionEvent(event SelectionEvent) SelectionResult
	// ContentLength is the number of selectable positions in the content.
	//
	// Flutter: rendering/selection.dart SelectionHandler.contentLength
	ContentLength() int
}

SelectionHandler handles selection events and holds the geometry of the selection.

Flutter: rendering/selection.dart SelectionHandler

type SelectionPoint

type SelectionPoint struct {
	// LocalPosition is the position, in the selectable's coordinates.
	//
	// Flutter: rendering/selection.dart SelectionPoint.localPosition
	LocalPosition ui.Offset
	// LineHeight is the height of the line at the point.
	//
	// Flutter: rendering/selection.dart SelectionPoint.lineHeight
	LineHeight float64
	// HandleType is the type of the handle at the point.
	//
	// Flutter: rendering/selection.dart SelectionPoint.handleType
	HandleType TextSelectionHandleType
}

SelectionPoint is a point of a selection, where a handle is drawn.

Flutter: rendering/selection.dart SelectionPoint

func (SelectionPoint) DebugFillProperties

func (p SelectionPoint) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the position, the line height and the handle type.

Flutter: rendering/selection.dart SelectionPoint.debugFillProperties

type SelectionRegistrant

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

SelectionRegistrant keeps a selectable registered with a registrar while it has content. Embed it in a selectable and call InitSelectionRegistrant.

Flutter: rendering/selection.dart SelectionRegistrant

func (*SelectionRegistrant) Dispose

func (r *SelectionRegistrant) Dispose()

Dispose removes the selectable from the registrar.

Flutter: rendering/selection.dart SelectionRegistrant.dispose

func (*SelectionRegistrant) Registrar

func (r *SelectionRegistrant) Registrar() SelectionRegistrar

Registrar is the registrar that the selectable is registered with, or nil.

Flutter: rendering/selection.dart SelectionRegistrant.registrar

func (*SelectionRegistrant) SetRegistrar

func (r *SelectionRegistrant) SetRegistrar(value SelectionRegistrar)

SetRegistrar changes the registrar; the selectable is registered with it whenever it has content.

Flutter: rendering/selection.dart SelectionRegistrant.registrar

type SelectionRegistrar

type SelectionRegistrar interface {
	// Add adds the selectable.
	//
	// Flutter: rendering/selection.dart SelectionRegistrar.add
	Add(selectable Selectable)
	// Remove removes the selectable.
	//
	// Flutter: rendering/selection.dart SelectionRegistrar.remove
	Remove(selectable Selectable)
}

SelectionRegistrar is an object that selectables register with.

Flutter: rendering/selection.dart SelectionRegistrar

type SelectionResult

type SelectionResult int

SelectionResult is the return value of Selectable.DispatchSelectionEvent: how the selection event was handled, and where the next one should go.

Flutter: rendering/selection.dart SelectionResult

const (
	// SelectionResultUnspecified is the zero value: no result.
	//
	// Flutter: no counterpart
	SelectionResultUnspecified SelectionResult = iota
	// SelectionResultNext means the selection edge is after the selectable, so
	// the next one must handle the event.
	//
	// Flutter: rendering/selection.dart SelectionResult.next
	SelectionResultNext
	// SelectionResultPrevious means the selection edge is before the selectable.
	//
	// Flutter: rendering/selection.dart SelectionResult.previous
	SelectionResultPrevious
	// SelectionResultEnd means the selection edge is in the selectable.
	//
	// Flutter: rendering/selection.dart SelectionResult.end
	SelectionResultEnd
	// SelectionResultPending means the selectable did not handle the event yet.
	//
	// Flutter: rendering/selection.dart SelectionResult.pending
	SelectionResultPending
	// SelectionResultNone means the selectable does not take part in the
	// selection (for example, it has no content).
	//
	// Flutter: rendering/selection.dart SelectionResult.none
	SelectionResultNone
)

The values of SelectionResult follow Flutter's declaration order.

func SelectionUtilsGetResultBasedOnRect

func SelectionUtilsGetResultBasedOnRect(targetRect ui.Rect, point ui.Offset) SelectionResult

SelectionUtilsGetResultBasedOnRect is how an event at the point is handled by a selectable whose content fills the rectangle: the end if it is in the rectangle, else the next or the previous one.

Flutter: rendering/selection.dart SelectionUtils.getResultBasedOnRect

func (SelectionResult) Name

func (r SelectionResult) Name() string

Name returns the Dart enum name, such as "next".

Flutter: rendering/selection.dart SelectionResult.name

func (SelectionResult) String

func (r SelectionResult) String() string

String returns the name Dart prints, such as "SelectionResult.next".

Flutter: rendering/selection.dart SelectionResult.toString

type SelectionStatus

type SelectionStatus int

SelectionStatus is how much is selected.

Flutter: rendering/selection.dart SelectionStatus

const (
	// SelectionStatusUnspecified is the zero value: no status.
	//
	// Flutter: no counterpart
	SelectionStatusUnspecified SelectionStatus = iota
	// SelectionStatusUncollapsed is a selection with a range.
	//
	// Flutter: rendering/selection.dart SelectionStatus.uncollapsed
	SelectionStatusUncollapsed
	// SelectionStatusCollapsed is a selection with a single position.
	//
	// Flutter: rendering/selection.dart SelectionStatus.collapsed
	SelectionStatusCollapsed
	// SelectionStatusNone is no selection.
	//
	// Flutter: rendering/selection.dart SelectionStatus.none
	SelectionStatusNone
)

The values of SelectionStatus follow Flutter's declaration order.

func (SelectionStatus) Name

func (s SelectionStatus) Name() string

Name returns the Dart enum name, such as "collapsed".

Flutter: rendering/selection.dart SelectionStatus.name

func (SelectionStatus) String

func (s SelectionStatus) String() string

String returns the name Dart prints, such as "SelectionStatus.none".

Flutter: rendering/selection.dart SelectionStatus.toString

type SemanticsAnnotations

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

SemanticsAnnotations is the state of the render objects that add annotations to the semantics node of their subtree, such as RenderSemanticsAnnotations. Embed it, and call InitSemanticsAnnotations from the constructor.

Deviation: Flutter's is a mixin on RenderObject (SPEC §12.10).

Flutter: rendering/object.dart SemanticsAnnotationsMixin

func (*SemanticsAnnotations) BlockUserActions

func (a *SemanticsAnnotations) BlockUserActions() bool

BlockUserActions is whether the user actions of the subtree are blocked.

Flutter: rendering/object.dart SemanticsAnnotationsMixin.blockUserActions

func (*SemanticsAnnotations) Container

func (a *SemanticsAnnotations) Container() bool

Container is whether the object forms a semantic boundary.

Flutter: rendering/object.dart SemanticsAnnotationsMixin.container

func (*SemanticsAnnotations) DescribeSemanticsConfiguration

func (a *SemanticsAnnotations) DescribeSemanticsConfiguration(config *semantics.SemanticsConfiguration)

DescribeSemanticsConfiguration copies the properties into the configuration.

Flutter: rendering/object.dart SemanticsAnnotationsMixin.describeSemanticsConfiguration

func (*SemanticsAnnotations) ExcludeSemantics

func (a *SemanticsAnnotations) ExcludeSemantics() bool

ExcludeSemantics is whether the semantics of the subtree are dropped.

Flutter: rendering/object.dart SemanticsAnnotationsMixin.excludeSemantics

func (*SemanticsAnnotations) ExplicitChildNodes

func (a *SemanticsAnnotations) ExplicitChildNodes() bool

ExplicitChildNodes is whether the children form nodes of their own.

Flutter: rendering/object.dart SemanticsAnnotationsMixin.explicitChildNodes

func (*SemanticsAnnotations) LocaleForSubtree

func (a *SemanticsAnnotations) LocaleForSubtree() foundation.Opt[ui.Locale]

LocaleForSubtree is the locale of the strings of the subtree.

Flutter: rendering/object.dart SemanticsAnnotationsMixin.localeForSubtree

func (*SemanticsAnnotations) Properties

Properties are all the semantics properties of the object.

Flutter: rendering/object.dart SemanticsAnnotationsMixin.properties

func (*SemanticsAnnotations) SetBlockUserActions

func (a *SemanticsAnnotations) SetBlockUserActions(value bool)

SetBlockUserActions changes the flag.

Flutter: rendering/object.dart SemanticsAnnotationsMixin.blockUserActions

func (*SemanticsAnnotations) SetContainer

func (a *SemanticsAnnotations) SetContainer(value bool)

SetContainer changes the flag.

Flutter: rendering/object.dart SemanticsAnnotationsMixin.container

func (*SemanticsAnnotations) SetExcludeSemantics

func (a *SemanticsAnnotations) SetExcludeSemantics(value bool)

SetExcludeSemantics changes the flag.

Flutter: rendering/object.dart SemanticsAnnotationsMixin.excludeSemantics

func (*SemanticsAnnotations) SetExplicitChildNodes

func (a *SemanticsAnnotations) SetExplicitChildNodes(value bool)

SetExplicitChildNodes changes the flag.

Flutter: rendering/object.dart SemanticsAnnotationsMixin.explicitChildNodes

func (*SemanticsAnnotations) SetLocaleForSubtree

func (a *SemanticsAnnotations) SetLocaleForSubtree(value foundation.Opt[ui.Locale])

SetLocaleForSubtree changes the locale.

Flutter: rendering/object.dart SemanticsAnnotationsMixin.localeForSubtree

func (*SemanticsAnnotations) SetProperties

func (a *SemanticsAnnotations) SetProperties(value *semantics.SemanticsProperties)

SetProperties replaces the properties; the semantics are updated if they are not the same object.

Flutter: rendering/object.dart SemanticsAnnotationsMixin.properties

func (*SemanticsAnnotations) SetTextDirection

func (a *SemanticsAnnotations) SetTextDirection(value ui.TextDirection)

SetTextDirection changes the direction.

Flutter: rendering/object.dart SemanticsAnnotationsMixin.textDirection

func (*SemanticsAnnotations) TextDirection

func (a *SemanticsAnnotations) TextDirection() ui.TextDirection

TextDirection is the direction of the labels; Unspecified for none.

Flutter: rendering/object.dart SemanticsAnnotationsMixin.textDirection

func (*SemanticsAnnotations) VisitChildrenForSemantics

func (a *SemanticsAnnotations) VisitChildrenForSemantics(visitor RenderObjectVisitor)

VisitChildrenForSemantics visits no child if the semantics are excluded.

Flutter: rendering/object.dart SemanticsAnnotationsMixin.visitChildrenForSemantics

type SemanticsAnnotationsOpts

type SemanticsAnnotationsOpts struct {
	// Container makes the object a semantic boundary: its subtree forms a node
	// of its own.
	Container bool
	// ExplicitChildNodes makes the children form nodes of their own instead of
	// merging into this one.
	ExplicitChildNodes bool
	// ExcludeSemantics drops the semantics of the subtree.
	ExcludeSemantics bool
	// BlockUserActions blocks the user actions of the subtree.
	BlockUserActions bool
	// LocaleForSubtree is the locale of the strings of the subtree.
	LocaleForSubtree foundation.Opt[ui.Locale]
	// TextDirection is the direction of the labels; Unspecified for none.
	TextDirection ui.TextDirection
}

SemanticsAnnotationsOpts are the optional parameters of InitSemanticsAnnotations.

Flutter: rendering/object.dart SemanticsAnnotationsMixin.initSemanticsAnnotations

type SemanticsBuilderCallback

type SemanticsBuilderCallback func(size ui.Size) []CustomPainterSemantics

SemanticsBuilderCallback builds the semantics of a custom painter for a canvas of the given size.

Flutter: rendering/custom_paint.dart SemanticsBuilderCallback

type SemanticsPainter

type SemanticsPainter interface {
	// SemanticsBuilder returns the function that builds the semantics, or nil.
	//
	// Flutter: rendering/custom_paint.dart CustomPainter.semanticsBuilder
	SemanticsBuilder() SemanticsBuilderCallback
}

SemanticsPainter is implemented by a CustomPainter that describes its picture to the accessibility tools.

Deviation: Flutter's CustomPainter.semanticsBuilder is a getter that returns null by default; here it is an optional interface, which the render object looks for (SPEC §12.10).

Flutter: rendering/custom_paint.dart CustomPainter.semanticsBuilder

type SemanticsRebuildPainter

type SemanticsRebuildPainter interface {
	// ShouldRebuildSemantics says whether the semantics must be built again
	// because of the new painter, of the same type as the old one.
	//
	// Flutter: rendering/custom_paint.dart CustomPainter.shouldRebuildSemantics
	ShouldRebuildSemantics(oldDelegate CustomPainter) bool
}

SemanticsRebuildPainter is implemented by a CustomPainter that tells whether a new painter needs new semantics. Without it, ShouldRepaint decides.

Flutter: rendering/custom_paint.dart CustomPainter.shouldRebuildSemantics

type ShaderCallback

type ShaderCallback func(bounds ui.Rect) ui.Shader

ShaderCallback creates the shader for the bounds.

Flutter: rendering/proxy_box.dart ShaderCallback

type ShaderMaskLayer

type ShaderMaskLayer struct {
	ContainerLayer
	// contains filtered or unexported fields
}

ShaderMaskLayer is a layer that applies a shader as a mask to its children.

Flutter: rendering/layer.dart ShaderMaskLayer

func NewShaderMaskLayer

func NewShaderMaskLayer(opts ...ShaderMaskLayerOpts) *ShaderMaskLayer

NewShaderMaskLayer creates a shader mask layer.

Flutter: rendering/layer.dart ShaderMaskLayer.new

func (*ShaderMaskLayer) AddToScene

func (l *ShaderMaskLayer) AddToScene(builder *ui.SceneBuilder)

AddToScene pushes the mask, adds the children and pops.

Flutter: rendering/layer.dart ShaderMaskLayer.addToScene

func (*ShaderMaskLayer) BlendMode

func (l *ShaderMaskLayer) BlendMode() foundation.Opt[ui.BlendMode]

BlendMode combines the shader with the children.

Flutter: rendering/layer.dart ShaderMaskLayer.blendMode

func (*ShaderMaskLayer) DebugFillProperties

func (l *ShaderMaskLayer) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the shader, the rectangle and the blend mode.

Flutter: rendering/layer.dart ShaderMaskLayer.debugFillProperties

func (*ShaderMaskLayer) MaskRect

func (l *ShaderMaskLayer) MaskRect() foundation.Opt[ui.Rect]

MaskRect is the rectangle the shader covers.

Flutter: rendering/layer.dart ShaderMaskLayer.maskRect

func (*ShaderMaskLayer) SetBlendMode

func (l *ShaderMaskLayer) SetBlendMode(v ui.BlendMode)

SetBlendMode changes the blend mode.

Flutter: rendering/layer.dart ShaderMaskLayer.blendMode

func (*ShaderMaskLayer) SetMaskRect

func (l *ShaderMaskLayer) SetMaskRect(v ui.Rect)

SetMaskRect changes the rectangle.

Flutter: rendering/layer.dart ShaderMaskLayer.maskRect

func (*ShaderMaskLayer) SetShader

func (l *ShaderMaskLayer) SetShader(v ui.Shader)

SetShader changes the shader.

Flutter: rendering/layer.dart ShaderMaskLayer.shader

func (*ShaderMaskLayer) Shader

func (l *ShaderMaskLayer) Shader() ui.Shader

Shader is the mask shader.

Flutter: rendering/layer.dart ShaderMaskLayer.shader

type ShaderMaskLayerOpts

type ShaderMaskLayerOpts struct {
	// Shader is the mask; it must be set before the layer is added to a scene.
	Shader ui.Shader
	// MaskRect is the rectangle the shader covers.
	MaskRect foundation.Opt[ui.Rect]
	// BlendMode combines the shader with the children.
	BlendMode foundation.Opt[ui.BlendMode]
}

ShaderMaskLayerOpts are the optional parameters of NewShaderMaskLayer.

Flutter: rendering/layer.dart ShaderMaskLayer.new

type ShapeBorderClipper

type ShapeBorderClipper struct {
	CustomClipperBase[*ui.Path]
	// contains filtered or unexported fields
}

ShapeBorderClipper clips to the outer path of a shape border.

Flutter: rendering/proxy_box.dart ShapeBorderClipper

func NewShapeBorderClipper

func NewShapeBorderClipper(shape painting.ShapeBorder, opts ...ShapeBorderClipperOpts) *ShapeBorderClipper

NewShapeBorderClipper creates a clipper for the shape.

Flutter: rendering/proxy_box.dart ShapeBorderClipper.new

func (*ShapeBorderClipper) GetClip

func (c *ShapeBorderClipper) GetClip(size ui.Size) *ui.Path

GetClip is the outer path of the shape in the rectangle of the box.

Flutter: rendering/proxy_box.dart ShapeBorderClipper.getClip

func (*ShapeBorderClipper) Shape

Shape is the shape that the clip follows.

Flutter: rendering/proxy_box.dart ShapeBorderClipper.shape

func (*ShapeBorderClipper) ShouldReclip

func (c *ShapeBorderClipper) ShouldReclip(oldClipper CustomClipper[*ui.Path]) bool

ShouldReclip is true unless the old clipper has the same shape and direction.

Flutter: rendering/proxy_box.dart ShapeBorderClipper.shouldReclip

func (*ShapeBorderClipper) String

func (c *ShapeBorderClipper) String() string

String describes the clipper.

Flutter: rendering/proxy_box.dart CustomClipper.toString

type ShapeBorderClipperOpts

type ShapeBorderClipperOpts struct {
	// TextDirection resolves directional shapes.
	TextDirection ui.TextDirection
}

ShapeBorderClipperOpts are the optional parameters of NewShapeBorderClipper.

Flutter: rendering/proxy_box.dart ShapeBorderClipper.new

type ShowOnScreenOpts

type ShowOnScreenOpts struct {
	// Descendant is the render object that is to be shown; the default is the
	// object itself.
	Descendant RenderObject
	// Rect is the part of the descendant to show, in its coordinates; the
	// default is its paint bounds.
	Rect foundation.Opt[ui.Rect]
	// Duration is how long the scrolling takes; zero jumps.
	Duration time.Duration
	// Curve is the curve of the scrolling animation; the default (nil) is
	// animation.Curves.Linear.
	Curve animation.Curve
}

ShowOnScreenOpts are the optional parameters of RenderObject.ShowOnScreen.

Flutter: rendering/object.dart RenderObject.showOnScreen

type SingleChildLayoutDelegate

type SingleChildLayoutDelegate interface {
	foundation.Listenable
	// GetSize is the size of the box for the constraints.
	//
	// Flutter: rendering/shifted_box.dart SingleChildLayoutDelegate.getSize
	GetSize(constraints BoxConstraints) ui.Size
	// GetConstraintsForChild is the constraints for the child.
	//
	// Flutter: rendering/shifted_box.dart SingleChildLayoutDelegate.getConstraintsForChild
	GetConstraintsForChild(constraints BoxConstraints) BoxConstraints
	// GetPositionForChild is the position of the child in the box.
	//
	// Flutter: rendering/shifted_box.dart SingleChildLayoutDelegate.getPositionForChild
	GetPositionForChild(size, childSize ui.Size) ui.Offset
	// ShouldRelayout says whether the box should be laid out again, given the
	// delegate of the same type that it replaces.
	//
	// Flutter: rendering/shifted_box.dart SingleChildLayoutDelegate.shouldRelayout
	ShouldRelayout(oldDelegate SingleChildLayoutDelegate) bool
}

SingleChildLayoutDelegate customizes the layout of a RenderCustomSingleChildLayoutBox.

Flutter: rendering/shifted_box.dart SingleChildLayoutDelegate

type SingleChildLayoutDelegateBase

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

SingleChildLayoutDelegateBase has the listenable and the defaults of a SingleChildLayoutDelegate: embed it and implement ShouldRelayout.

Flutter: rendering/shifted_box.dart SingleChildLayoutDelegate

func NewSingleChildLayoutDelegateBase

func NewSingleChildLayoutDelegateBase(relayout foundation.Listenable) SingleChildLayoutDelegateBase

NewSingleChildLayoutDelegateBase creates the base; the box is laid out again when the relayout listenable (nil for none) notifies.

Flutter: rendering/shifted_box.dart SingleChildLayoutDelegate.new

func (SingleChildLayoutDelegateBase) AddListener

AddListener adds the listener to the relayout listenable.

Flutter: rendering/shifted_box.dart SingleChildLayoutDelegate._relayout

func (SingleChildLayoutDelegateBase) GetConstraintsForChild

func (SingleChildLayoutDelegateBase) GetConstraintsForChild(constraints BoxConstraints) BoxConstraints

GetConstraintsForChild is the constraints of the box.

Flutter: rendering/shifted_box.dart SingleChildLayoutDelegate.getConstraintsForChild

func (SingleChildLayoutDelegateBase) GetPositionForChild

func (SingleChildLayoutDelegateBase) GetPositionForChild(size, childSize ui.Size) ui.Offset

GetPositionForChild is the top left corner.

Flutter: rendering/shifted_box.dart SingleChildLayoutDelegate.getPositionForChild

func (SingleChildLayoutDelegateBase) GetSize

func (SingleChildLayoutDelegateBase) GetSize(constraints BoxConstraints) ui.Size

GetSize is the biggest size.

Flutter: rendering/shifted_box.dart SingleChildLayoutDelegate.getSize

func (SingleChildLayoutDelegateBase) RemoveListener

func (d SingleChildLayoutDelegateBase) RemoveListener(handle foundation.ListenerHandle)

RemoveListener removes the listener from the relayout listenable.

Flutter: rendering/shifted_box.dart SingleChildLayoutDelegate._relayout

type Sliver

type Sliver interface {
	RenderObject
	// AsRenderSliver returns the RenderSliver that the sliver embeds.
	AsRenderSliver() *RenderSliver
	// EnsureSemantics is whether the sliver keeps its semantics even when it is
	// not visible.
	//
	// Flutter: rendering/sliver.dart RenderSliver.ensureSemantics
	EnsureSemantics() bool
	// SliverConstraints are the constraints that the parent gave at the last
	// layout.
	//
	// Flutter: rendering/sliver.dart RenderSliver.constraints
	SliverConstraints() SliverConstraints
	// HasGeometry is whether the sliver has chosen its geometry.
	HasGeometry() bool
	// Geometry is the geometry that the sliver chose at the last layout. It
	// panics with SliverNotLaidOut in debug builds if there is none.
	//
	// Flutter: rendering/sliver.dart RenderSliver.geometry
	Geometry() SliverGeometry
	// SetGeometry sets the geometry. Only the sliver itself may call it, from
	// PerformLayout.
	//
	// Flutter: rendering/sliver.dart RenderSliver.geometry
	SetGeometry(value SliverGeometry)
	// CenterOffsetAdjustment is how far a viewport that has this sliver as its
	// center moves the zero scroll offset (see RenderSliverPersistentHeader).
	//
	// Flutter: rendering/sliver.dart RenderSliver.centerOffsetAdjustment
	CenterOffsetAdjustment() float64
	// HitTest adds the sliver and its descendants under the position to the
	// result.
	//
	// Flutter: rendering/sliver.dart RenderSliver.hitTest
	HitTest(result *SliverHitTestResult, mainAxisPosition, crossAxisPosition float64) bool
	// HitTestSelf is whether the sliver itself is hit at the position.
	//
	// Flutter: rendering/sliver.dart RenderSliver.hitTestSelf
	HitTestSelf(mainAxisPosition, crossAxisPosition float64) bool
	// HitTestChildren hit tests the children at the position.
	//
	// Flutter: rendering/sliver.dart RenderSliver.hitTestChildren
	HitTestChildren(result *SliverHitTestResult, mainAxisPosition, crossAxisPosition float64) bool
	// ChildMainAxisPosition is the position of the child in the main axis,
	// relative to the leading edge of this sliver's paint area.
	//
	// Flutter: rendering/sliver.dart RenderSliver.childMainAxisPosition
	ChildMainAxisPosition(child RenderObject) float64
	// ChildCrossAxisPosition is the position of the child in the cross axis.
	//
	// Flutter: rendering/sliver.dart RenderSliver.childCrossAxisPosition
	ChildCrossAxisPosition(child RenderObject) float64
	// ChildScrollOffset is the scroll offset of the child, relative to the start
	// of this sliver, or none if the sliver can not say.
	//
	// Flutter: rendering/sliver.dart RenderSliver.childScrollOffset
	ChildScrollOffset(child RenderObject) foundation.Opt[float64]
	// CalculatePaintOffset is how much of the range from..to (scroll offsets) is
	// visible in the viewport.
	//
	// Flutter: rendering/sliver.dart RenderSliver.calculatePaintOffset
	CalculatePaintOffset(constraints SliverConstraints, from, to float64) float64
	// CalculateCacheOffset is how much of the range from..to (scroll offsets) is
	// in the cache area.
	//
	// Flutter: rendering/sliver.dart RenderSliver.calculateCacheOffset
	CalculateCacheOffset(constraints SliverConstraints, from, to float64) float64
	// GetAbsoluteSizeRelativeToOrigin is the size of the sliver's paint area,
	// signed by the direction in which it extends from the origin.
	//
	// Flutter: rendering/sliver.dart RenderSliver.getAbsoluteSizeRelativeToOrigin
	GetAbsoluteSizeRelativeToOrigin() ui.Size
	// GetAbsoluteSize is the size of the sliver's paint area.
	//
	// Flutter: rendering/sliver.dart RenderSliver.getAbsoluteSize
	GetAbsoluteSize() ui.Size
	// GetMaxPaintRect is the largest rectangle the sliver could paint.
	//
	// Flutter: rendering/sliver.dart RenderSliver.getMaxPaintRect
	GetMaxPaintRect() ui.Rect
}

Sliver is a render object that is laid out with SliverConstraints and chooses a SliverGeometry. A sliver type embeds RenderSliver (or a type that embeds it) and calls InitRenderSliver.

Flutter: rendering/sliver.dart RenderSliver

type SliverConstraints

type SliverConstraints struct {
	// AxisDirection is the direction in which the scroll offset increases.
	//
	// Flutter: rendering/sliver.dart SliverConstraints.axisDirection
	AxisDirection painting.AxisDirection
	// GrowthDirection is the direction in which the contents of slivers are
	// ordered, relative to the axis direction.
	//
	// Flutter: rendering/sliver.dart SliverConstraints.growthDirection
	GrowthDirection GrowthDirection
	// UserScrollDirection is the direction in which the user is scrolling.
	//
	// Flutter: rendering/sliver.dart SliverConstraints.userScrollDirection
	UserScrollDirection ScrollDirection
	// ScrollOffset is the number of pixels from where the sliver's scroll extent
	// starts to the leading edge of the viewport's visible area.
	//
	// Flutter: rendering/sliver.dart SliverConstraints.scrollOffset
	ScrollOffset float64
	// PrecedingScrollExtent is the scroll extent of everything before this
	// sliver.
	//
	// Flutter: rendering/sliver.dart SliverConstraints.precedingScrollExtent
	PrecedingScrollExtent float64
	// Overlap is the number of pixels of this sliver's leading edge that are
	// covered by a previous sliver that is pinned or floating.
	//
	// Flutter: rendering/sliver.dart SliverConstraints.overlap
	Overlap float64
	// RemainingPaintExtent is the number of pixels of the viewport that remain to
	// be painted, from the leading edge of this sliver.
	//
	// Flutter: rendering/sliver.dart SliverConstraints.remainingPaintExtent
	RemainingPaintExtent float64
	// CrossAxisExtent is the size of the viewport in the cross axis.
	//
	// Flutter: rendering/sliver.dart SliverConstraints.crossAxisExtent
	CrossAxisExtent float64
	// CrossAxisDirection is the direction in which children are laid out in the
	// cross axis.
	//
	// Flutter: rendering/sliver.dart SliverConstraints.crossAxisDirection
	CrossAxisDirection painting.AxisDirection
	// ViewportMainAxisExtent is the size of the viewport in the main axis.
	//
	// Flutter: rendering/sliver.dart SliverConstraints.viewportMainAxisExtent
	ViewportMainAxisExtent float64
	// RemainingCacheExtent is the number of pixels of the cache area that remain,
	// from the leading edge of this sliver (see CacheOrigin).
	//
	// Flutter: rendering/sliver.dart SliverConstraints.remainingCacheExtent
	RemainingCacheExtent float64
	// CacheOrigin is how many pixels before the leading edge of the viewport the
	// cache area starts; it is zero or negative.
	//
	// Flutter: rendering/sliver.dart SliverConstraints.cacheOrigin
	CacheOrigin float64
}

SliverConstraints are the immutable layout constraints for a RenderSliver: where the sliver is in the viewport and how much room it has.

Flutter: rendering/sliver.dart SliverConstraints

func (SliverConstraints) AsBoxConstraints

func (c SliverConstraints) AsBoxConstraints(opts ...AsBoxConstraintsOpts) BoxConstraints

AsBoxConstraints makes box constraints for a child: tight in the cross axis and with the given range in the main axis.

Flutter: rendering/sliver.dart SliverConstraints.asBoxConstraints

func (SliverConstraints) Axis

func (c SliverConstraints) Axis() painting.Axis

Axis is the axis of the main direction.

Flutter: rendering/sliver.dart SliverConstraints.axis

func (SliverConstraints) CopyWith

CopyWith returns the constraints with the values that are set replaced (a direction that is unspecified is kept).

Flutter: rendering/sliver.dart SliverConstraints.copyWith

func (SliverConstraints) DebugAssertIsValid

func (c SliverConstraints) DebugAssertIsValid(opts ...DebugAssertIsValidOpts) bool

DebugAssertIsValid panics in debug builds, with the tag SliverConstraintsInvalid, if a value is NaN or out of range, or the directions are along the same axis. It returns IsNormalized.

Flutter: rendering/sliver.dart SliverConstraints.debugAssertIsValid

func (SliverConstraints) IsNormalized

func (c SliverConstraints) IsNormalized() bool

IsNormalized is whether the offsets and extents are not negative and the two directions are along different axes.

Flutter: rendering/sliver.dart SliverConstraints.isNormalized

func (SliverConstraints) IsTight

func (c SliverConstraints) IsTight() bool

IsTight is always false: sliver constraints never force one geometry.

Flutter: rendering/sliver.dart SliverConstraints.isTight

func (SliverConstraints) NormalizedGrowthDirection

func (c SliverConstraints) NormalizedGrowthDirection() GrowthDirection

NormalizedGrowthDirection is the growth direction with the reversal of the axis direction applied: forward when the sliver's children are laid out toward the larger coordinates.

Flutter: rendering/sliver.dart SliverConstraints.normalizedGrowthDirection

func (SliverConstraints) String

func (c SliverConstraints) String() string

String describes the constraints.

Flutter: rendering/sliver.dart SliverConstraints.toString

type SliverConstraintsCopy

type SliverConstraintsCopy struct {
	AxisDirection          painting.AxisDirection
	GrowthDirection        GrowthDirection
	UserScrollDirection    ScrollDirection
	ScrollOffset           foundation.Opt[float64]
	PrecedingScrollExtent  foundation.Opt[float64]
	Overlap                foundation.Opt[float64]
	RemainingPaintExtent   foundation.Opt[float64]
	CrossAxisExtent        foundation.Opt[float64]
	CrossAxisDirection     painting.AxisDirection
	ViewportMainAxisExtent foundation.Opt[float64]
	RemainingCacheExtent   foundation.Opt[float64]
	CacheOrigin            foundation.Opt[float64]
}

SliverConstraintsCopy are the values CopyWith replaces.

Flutter: rendering/sliver.dart SliverConstraints.copyWith

type SliverGeometry

type SliverGeometry struct {
	// ScrollExtent is the (estimated) total scrollable extent of the sliver.
	//
	// Flutter: rendering/sliver.dart SliverGeometry.scrollExtent
	ScrollExtent float64
	// PaintOrigin is the offset from the leading edge of the sliver's area at
	// which it starts painting.
	//
	// Flutter: rendering/sliver.dart SliverGeometry.paintOrigin
	PaintOrigin float64
	// PaintExtent is how much of the viewport the sliver paints, from the leading
	// edge of the paint origin.
	//
	// Flutter: rendering/sliver.dart SliverGeometry.paintExtent
	PaintExtent float64
	// LayoutExtent is where the next sliver should start, relative to this one's
	// start; the default is PaintExtent.
	//
	// Flutter: rendering/sliver.dart SliverGeometry.layoutExtent
	LayoutExtent float64
	// MaxPaintExtent is the largest value PaintExtent can have.
	//
	// Flutter: rendering/sliver.dart SliverGeometry.maxPaintExtent
	MaxPaintExtent float64
	// MaxScrollObstructionExtent is how much of the viewport this sliver
	// obstructs when it is pinned (for example an app bar).
	//
	// Flutter: rendering/sliver.dart SliverGeometry.maxScrollObstructionExtent
	MaxScrollObstructionExtent float64
	// HitTestExtent is the distance from the leading edge that hit tests reach;
	// the default is PaintExtent.
	//
	// Flutter: rendering/sliver.dart SliverGeometry.hitTestExtent
	HitTestExtent float64
	// Visible is whether the sliver should be painted; the default is
	// PaintExtent > 0.
	//
	// Flutter: rendering/sliver.dart SliverGeometry.visible
	Visible bool
	// HasVisualOverflow is whether the sliver paints beyond its paint extent, so
	// the viewport must clip.
	//
	// Flutter: rendering/sliver.dart SliverGeometry.hasVisualOverflow
	HasVisualOverflow bool
	// ScrollOffsetCorrection, when it is some, asks the viewport to change its
	// scroll offset by this much and lay out again.
	//
	// Flutter: rendering/sliver.dart SliverGeometry.scrollOffsetCorrection
	ScrollOffsetCorrection foundation.Opt[float64]
	// CacheExtent is how much of the cache area the sliver consumes; the default
	// is LayoutExtent.
	//
	// Flutter: rendering/sliver.dart SliverGeometry.cacheExtent
	CacheExtent float64
	// CrossAxisExtent is the extent in the cross axis, if it differs from the
	// constraints'.
	//
	// Flutter: rendering/sliver.dart SliverGeometry.crossAxisExtent
	CrossAxisExtent foundation.Opt[float64]
}

SliverGeometry describes the geometry that a sliver chooses during layout: how much it scrolls, paints and occupies.

Flutter: rendering/sliver.dart SliverGeometry

func NewSliverGeometry

func NewSliverGeometry(opts ...SliverGeometryOpts) SliverGeometry

NewSliverGeometry creates the geometry. In debug builds a scroll offset correction of zero panics with the tag SliverGeometryInvalid.

Flutter: rendering/sliver.dart SliverGeometry.new

func (SliverGeometry) CopyWith

CopyWith returns the geometry with the values that are set replaced. The scroll offset correction is dropped, as in Flutter.

Flutter: rendering/sliver.dart SliverGeometry.copyWith

func (SliverGeometry) DebugAssertIsValid

func (g SliverGeometry) DebugAssertIsValid(informationCollector ...InformationCollector) bool

DebugAssertIsValid panics in debug builds, with the tag SliverGeometryInvalid, if an extent is negative or the paint extent exceeds the maximum. It returns true.

Flutter: rendering/sliver.dart SliverGeometry.debugAssertIsValid

func (SliverGeometry) String

func (g SliverGeometry) String() string

String describes the geometry.

Flutter: rendering/sliver.dart SliverGeometry.toString

type SliverGeometryCopy

type SliverGeometryCopy struct {
	ScrollExtent               foundation.Opt[float64]
	PaintExtent                foundation.Opt[float64]
	PaintOrigin                foundation.Opt[float64]
	LayoutExtent               foundation.Opt[float64]
	MaxPaintExtent             foundation.Opt[float64]
	MaxScrollObstructionExtent foundation.Opt[float64]
	CrossAxisExtent            foundation.Opt[float64]
	HitTestExtent              foundation.Opt[float64]
	Visible                    foundation.Opt[bool]
	HasVisualOverflow          foundation.Opt[bool]
	CacheExtent                foundation.Opt[float64]
}

SliverGeometryCopy are the values CopyWith replaces.

Flutter: rendering/sliver.dart SliverGeometry.copyWith

type SliverGeometryOpts

type SliverGeometryOpts struct {
	ScrollExtent               float64
	PaintExtent                float64
	PaintOrigin                float64
	LayoutExtent               foundation.Opt[float64]
	MaxPaintExtent             float64
	MaxScrollObstructionExtent float64
	CrossAxisExtent            foundation.Opt[float64]
	HitTestExtent              foundation.Opt[float64]
	Visible                    foundation.Opt[bool]
	HasVisualOverflow          bool
	ScrollOffsetCorrection     foundation.Opt[float64]
	CacheExtent                foundation.Opt[float64]
}

SliverGeometryOpts are the parameters of NewSliverGeometry; the ones that are none take the default described in the SliverGeometry fields.

Flutter: rendering/sliver.dart SliverGeometry.new

type SliverGridDelegate

type SliverGridDelegate interface {
	// GetLayout is the layout for the constraints.
	//
	// Flutter: rendering/sliver_grid.dart SliverGridDelegate.getLayout
	GetLayout(constraints SliverConstraints) SliverGridLayout
	// ShouldRelayout is whether the grid has to be laid out again if the delegate
	// replaces the old one (of the same type).
	//
	// Flutter: rendering/sliver_grid.dart SliverGridDelegate.shouldRelayout
	ShouldRelayout(oldDelegate SliverGridDelegate) bool
}

SliverGridDelegate controls the layout of the children in a RenderSliverGrid.

Flutter: rendering/sliver_grid.dart SliverGridDelegate

type SliverGridDelegateWithFixedCrossAxisCount

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

SliverGridDelegateWithFixedCrossAxisCount creates grids that have a fixed number of tiles in the cross axis.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithFixedCrossAxisCount

func NewSliverGridDelegateWithFixedCrossAxisCount

func NewSliverGridDelegateWithFixedCrossAxisCount(crossAxisCount int, opts ...SliverGridDelegateWithFixedCrossAxisCountOpts) *SliverGridDelegateWithFixedCrossAxisCount

NewSliverGridDelegateWithFixedCrossAxisCount creates the delegate. In debug builds a count that is not positive, or an invalid option, panics with the tag SliverGridDelegateInvalid.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithFixedCrossAxisCount.new

func (*SliverGridDelegateWithFixedCrossAxisCount) ChildAspectRatio

func (d *SliverGridDelegateWithFixedCrossAxisCount) ChildAspectRatio() float64

ChildAspectRatio is the ratio of the cross-axis to the main-axis extent of each child.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithFixedCrossAxisCount.childAspectRatio

func (*SliverGridDelegateWithFixedCrossAxisCount) CrossAxisCount

func (d *SliverGridDelegateWithFixedCrossAxisCount) CrossAxisCount() int

CrossAxisCount is the number of children in the cross axis.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithFixedCrossAxisCount.crossAxisCount

func (*SliverGridDelegateWithFixedCrossAxisCount) CrossAxisSpacing

func (d *SliverGridDelegateWithFixedCrossAxisCount) CrossAxisSpacing() float64

CrossAxisSpacing is the number of logical pixels between each child along the cross axis.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithFixedCrossAxisCount.crossAxisSpacing

func (*SliverGridDelegateWithFixedCrossAxisCount) GetLayout

GetLayout is a regular tile layout with the cross axis count.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithFixedCrossAxisCount.getLayout

func (*SliverGridDelegateWithFixedCrossAxisCount) MainAxisExtent

MainAxisExtent is the extent of each tile in the main axis, or none.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithFixedCrossAxisCount.mainAxisExtent

func (*SliverGridDelegateWithFixedCrossAxisCount) MainAxisSpacing

MainAxisSpacing is the number of logical pixels between each child along the main axis.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithFixedCrossAxisCount.mainAxisSpacing

func (*SliverGridDelegateWithFixedCrossAxisCount) ShouldRelayout

func (d *SliverGridDelegateWithFixedCrossAxisCount) ShouldRelayout(oldDelegate SliverGridDelegate) bool

ShouldRelayout is whether a value differs.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithFixedCrossAxisCount.shouldRelayout

type SliverGridDelegateWithFixedCrossAxisCountOpts

type SliverGridDelegateWithFixedCrossAxisCountOpts struct {
	// MainAxisSpacing is the number of logical pixels between each child along
	// the main axis.
	MainAxisSpacing float64
	// CrossAxisSpacing is the number of logical pixels between each child along
	// the cross axis.
	CrossAxisSpacing float64
	// ChildAspectRatio is the ratio of the cross-axis to the main-axis extent of
	// each child; the default is 1.
	ChildAspectRatio foundation.Opt[float64]
	// MainAxisExtent is the extent of each tile in the main axis; if it is none,
	// the extent follows from the aspect ratio.
	MainAxisExtent foundation.Opt[float64]
}

SliverGridDelegateWithFixedCrossAxisCountOpts are the optional parameters of NewSliverGridDelegateWithFixedCrossAxisCount.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithFixedCrossAxisCount.new

type SliverGridDelegateWithMaxCrossAxisExtent

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

SliverGridDelegateWithMaxCrossAxisExtent creates grids whose tiles have a maximum cross-axis extent.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithMaxCrossAxisExtent

func NewSliverGridDelegateWithMaxCrossAxisExtent

func NewSliverGridDelegateWithMaxCrossAxisExtent(maxCrossAxisExtent float64, opts ...SliverGridDelegateWithMaxCrossAxisExtentOpts) *SliverGridDelegateWithMaxCrossAxisExtent

NewSliverGridDelegateWithMaxCrossAxisExtent creates the delegate. In debug builds a maximum that is not positive, or an invalid option, panics with the tag SliverGridDelegateInvalid.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithMaxCrossAxisExtent.new

func (*SliverGridDelegateWithMaxCrossAxisExtent) ChildAspectRatio

func (d *SliverGridDelegateWithMaxCrossAxisExtent) ChildAspectRatio() float64

ChildAspectRatio is the ratio of the cross-axis to the main-axis extent of each child.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithMaxCrossAxisExtent.childAspectRatio

func (*SliverGridDelegateWithMaxCrossAxisExtent) CrossAxisSpacing

func (d *SliverGridDelegateWithMaxCrossAxisExtent) CrossAxisSpacing() float64

CrossAxisSpacing is the number of logical pixels between each child along the cross axis.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithMaxCrossAxisExtent.crossAxisSpacing

func (*SliverGridDelegateWithMaxCrossAxisExtent) GetLayout

GetLayout is a regular tile layout with as few tiles in the cross axis as keep them under the maximum extent.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithMaxCrossAxisExtent.getLayout

func (*SliverGridDelegateWithMaxCrossAxisExtent) MainAxisExtent

MainAxisExtent is the extent of each tile in the main axis, or none.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithMaxCrossAxisExtent.mainAxisExtent

func (*SliverGridDelegateWithMaxCrossAxisExtent) MainAxisSpacing

MainAxisSpacing is the number of logical pixels between each child along the main axis.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithMaxCrossAxisExtent.mainAxisSpacing

func (*SliverGridDelegateWithMaxCrossAxisExtent) MaxCrossAxisExtent

func (d *SliverGridDelegateWithMaxCrossAxisExtent) MaxCrossAxisExtent() float64

MaxCrossAxisExtent is the maximum extent of a tile in the cross axis.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithMaxCrossAxisExtent.maxCrossAxisExtent

func (*SliverGridDelegateWithMaxCrossAxisExtent) ShouldRelayout

func (d *SliverGridDelegateWithMaxCrossAxisExtent) ShouldRelayout(oldDelegate SliverGridDelegate) bool

ShouldRelayout is whether a value differs.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithMaxCrossAxisExtent.shouldRelayout

type SliverGridDelegateWithMaxCrossAxisExtentOpts

type SliverGridDelegateWithMaxCrossAxisExtentOpts struct {
	// MainAxisSpacing is the number of logical pixels between each child along
	// the main axis.
	MainAxisSpacing float64
	// CrossAxisSpacing is the number of logical pixels between each child along
	// the cross axis.
	CrossAxisSpacing float64
	// ChildAspectRatio is the ratio of the cross-axis to the main-axis extent of
	// each child; the default is 1.
	ChildAspectRatio foundation.Opt[float64]
	// MainAxisExtent is the extent of each tile in the main axis; if it is none,
	// the extent follows from the aspect ratio.
	MainAxisExtent foundation.Opt[float64]
}

SliverGridDelegateWithMaxCrossAxisExtentOpts are the optional parameters of NewSliverGridDelegateWithMaxCrossAxisExtent.

Flutter: rendering/sliver_grid.dart SliverGridDelegateWithMaxCrossAxisExtent.new

type SliverGridGeometry

type SliverGridGeometry struct {
	// ScrollOffset is the scroll offset of the leading edge of the child relative
	// to the leading edge of the parent.
	//
	// Flutter: rendering/sliver_grid.dart SliverGridGeometry.scrollOffset
	ScrollOffset float64
	// CrossAxisOffset is the offset of the child in the non-scrolling axis.
	//
	// Flutter: rendering/sliver_grid.dart SliverGridGeometry.crossAxisOffset
	CrossAxisOffset float64
	// MainAxisExtent is the extent of the child in the scrolling axis.
	//
	// Flutter: rendering/sliver_grid.dart SliverGridGeometry.mainAxisExtent
	MainAxisExtent float64
	// CrossAxisExtent is the extent of the child in the non-scrolling axis.
	//
	// Flutter: rendering/sliver_grid.dart SliverGridGeometry.crossAxisExtent
	CrossAxisExtent float64
}

SliverGridGeometry describes the placement of a child in a SliverGridLayout.

Flutter: rendering/sliver_grid.dart SliverGridGeometry

func (SliverGridGeometry) GetBoxConstraints

func (g SliverGridGeometry) GetBoxConstraints(constraints SliverConstraints) BoxConstraints

GetBoxConstraints is the constraints that tightly fit the child in the geometry.

Flutter: rendering/sliver_grid.dart SliverGridGeometry.getBoxConstraints

func (SliverGridGeometry) String

func (g SliverGridGeometry) String() string

String describes the geometry.

Flutter: rendering/sliver_grid.dart SliverGridGeometry.toString

func (SliverGridGeometry) TrailingScrollOffset

func (g SliverGridGeometry) TrailingScrollOffset() float64

TrailingScrollOffset is the scroll offset of the trailing edge of the child relative to the leading edge of the parent.

Flutter: rendering/sliver_grid.dart SliverGridGeometry.trailingScrollOffset

type SliverGridLayout

type SliverGridLayout interface {
	// GetMinChildIndexForScrollOffset is the minimum child index that is visible
	// at the scroll offset.
	//
	// Flutter: rendering/sliver_grid.dart SliverGridLayout.getMinChildIndexForScrollOffset
	GetMinChildIndexForScrollOffset(scrollOffset float64) int
	// GetMaxChildIndexForScrollOffset is the maximum child index that is visible
	// at the scroll offset.
	//
	// Flutter: rendering/sliver_grid.dart SliverGridLayout.getMaxChildIndexForScrollOffset
	GetMaxChildIndexForScrollOffset(scrollOffset float64) int
	// GetGeometryForChildIndex is the geometry of the child at the index.
	//
	// Flutter: rendering/sliver_grid.dart SliverGridLayout.getGeometryForChildIndex
	GetGeometryForChildIndex(index int) SliverGridGeometry
	// ComputeMaxScrollOffset is the scroll extent needed to fit the children.
	//
	// Flutter: rendering/sliver_grid.dart SliverGridLayout.computeMaxScrollOffset
	ComputeMaxScrollOffset(childCount int) float64
}

SliverGridLayout describes the placement of the children in a RenderSliverGrid.

Flutter: rendering/sliver_grid.dart SliverGridLayout

type SliverGridParentData

type SliverGridParentData struct {
	SliverMultiBoxAdaptorParentData
	// CrossAxisOffset is the offset of the child in the non-scrolling axis; none
	// before layout.
	//
	// Flutter: rendering/sliver_grid.dart SliverGridParentData.crossAxisOffset
	CrossAxisOffset foundation.Opt[float64]
}

SliverGridParentData is the parent data of the children of a RenderSliverGrid: it adds the offset in the cross axis.

Flutter: rendering/sliver_grid.dart SliverGridParentData

func (*SliverGridParentData) String

func (d *SliverGridParentData) String() string

String is the cross axis offset and what the parent data says.

Flutter: rendering/sliver_grid.dart SliverGridParentData.toString

type SliverGridRegularTileLayout

type SliverGridRegularTileLayout struct {
	// CrossAxisCount is the number of children in the cross axis.
	//
	// Flutter: rendering/sliver_grid.dart SliverGridRegularTileLayout.crossAxisCount
	CrossAxisCount int
	// MainAxisStride is the number of pixels from the leading edge of one tile to
	// the leading edge of the next tile in the main axis.
	//
	// Flutter: rendering/sliver_grid.dart SliverGridRegularTileLayout.mainAxisStride
	MainAxisStride float64
	// CrossAxisStride is the same, in the cross axis.
	//
	// Flutter: rendering/sliver_grid.dart SliverGridRegularTileLayout.crossAxisStride
	CrossAxisStride float64
	// ChildMainAxisExtent is the number of pixels from the leading edge of one
	// tile to the trailing edge of the same tile in the main axis.
	//
	// Flutter: rendering/sliver_grid.dart SliverGridRegularTileLayout.childMainAxisExtent
	ChildMainAxisExtent float64
	// ChildCrossAxisExtent is the same, in the cross axis.
	//
	// Flutter: rendering/sliver_grid.dart SliverGridRegularTileLayout.childCrossAxisExtent
	ChildCrossAxisExtent float64
	// ReverseCrossAxis is whether the children are laid out in the opposite
	// direction of the cross axis.
	//
	// Flutter: rendering/sliver_grid.dart SliverGridRegularTileLayout.reverseCrossAxis
	ReverseCrossAxis bool
}

SliverGridRegularTileLayout is a layout of tiles of the same size, in a grid with a fixed number of tiles in the cross axis.

Flutter: rendering/sliver_grid.dart SliverGridRegularTileLayout

func NewSliverGridRegularTileLayout

func NewSliverGridRegularTileLayout(crossAxisCount int, mainAxisStride, crossAxisStride, childMainAxisExtent, childCrossAxisExtent float64, reverseCrossAxis bool) *SliverGridRegularTileLayout

NewSliverGridRegularTileLayout creates the layout. In debug builds a negative value, or a count that is not positive, panics with the tag SliverGridLayoutInvalid.

Flutter: rendering/sliver_grid.dart SliverGridRegularTileLayout.new

func (*SliverGridRegularTileLayout) ComputeMaxScrollOffset

func (l *SliverGridRegularTileLayout) ComputeMaxScrollOffset(childCount int) float64

ComputeMaxScrollOffset is the extent of the rows, without the spacing after the last.

Flutter: rendering/sliver_grid.dart SliverGridRegularTileLayout.computeMaxScrollOffset

func (*SliverGridRegularTileLayout) GetGeometryForChildIndex

func (l *SliverGridRegularTileLayout) GetGeometryForChildIndex(index int) SliverGridGeometry

GetGeometryForChildIndex is the geometry of the child at the index.

Flutter: rendering/sliver_grid.dart SliverGridRegularTileLayout.getGeometryForChildIndex

func (*SliverGridRegularTileLayout) GetMaxChildIndexForScrollOffset

func (l *SliverGridRegularTileLayout) GetMaxChildIndexForScrollOffset(scrollOffset float64) int

GetMaxChildIndexForScrollOffset is the index of the last child of the last row at the scroll offset.

Flutter: rendering/sliver_grid.dart SliverGridRegularTileLayout.getMaxChildIndexForScrollOffset

func (*SliverGridRegularTileLayout) GetMinChildIndexForScrollOffset

func (l *SliverGridRegularTileLayout) GetMinChildIndexForScrollOffset(scrollOffset float64) int

GetMinChildIndexForScrollOffset is the index of the first child of the row at the scroll offset.

Flutter: rendering/sliver_grid.dart SliverGridRegularTileLayout.getMinChildIndexForScrollOffset

type SliverHitTest

type SliverHitTest func(result *SliverHitTestResult, mainAxisPosition, crossAxisPosition float64) bool

SliverHitTest hit tests a position in the coordinates of a sliver: the distances along and across the main axis from the sliver's origin.

Flutter: rendering/sliver.dart SliverHitTest

type SliverHitTestEntry

type SliverHitTestEntry struct {
	gestures.HitTestEntryBase
	// MainAxisPosition is the distance in the main axis from the origin of the
	// sliver.
	//
	// Flutter: rendering/sliver.dart SliverHitTestEntry.mainAxisPosition
	MainAxisPosition float64
	// CrossAxisPosition is the distance in the cross axis from the origin.
	//
	// Flutter: rendering/sliver.dart SliverHitTestEntry.crossAxisPosition
	CrossAxisPosition float64
}

SliverHitTestEntry is a hit test entry of a sliver: the target and the position of the hit along and across the main axis.

Flutter: rendering/sliver.dart SliverHitTestEntry

func NewSliverHitTestEntry

func NewSliverHitTestEntry(target Sliver, mainAxisPosition, crossAxisPosition float64) *SliverHitTestEntry

NewSliverHitTestEntry creates an entry for the target at the positions.

Flutter: rendering/sliver.dart SliverHitTestEntry.new

func (*SliverHitTestEntry) String

func (e *SliverHitTestEntry) String() string

String describes the entry.

Flutter: rendering/sliver.dart SliverHitTestEntry.toString

type SliverHitTestResult

type SliverHitTestResult struct {
	*gestures.HitTestResult
}

SliverHitTestResult is a HitTestResult with the helper for the sliver protocol.

Flutter: rendering/sliver.dart SliverHitTestResult

func NewSliverHitTestResult

func NewSliverHitTestResult() *SliverHitTestResult

NewSliverHitTestResult creates an empty result.

Flutter: rendering/sliver.dart SliverHitTestResult.new

func NewSliverHitTestResultWrap

func NewSliverHitTestResultWrap(result *gestures.HitTestResult) *SliverHitTestResult

NewSliverHitTestResultWrap makes a sliver result that adds to the given result.

Flutter: rendering/sliver.dart SliverHitTestResult.wrap

func (*SliverHitTestResult) AddWithAxisOffset

func (r *SliverHitTestResult) AddWithAxisOffset(paintOffset *ui.Offset, mainAxisOffset, crossAxisOffset, mainAxisPosition, crossAxisPosition float64, hitTest SliverHitTest) bool

AddWithAxisOffset hit tests a child sliver that is painted at the offset (nil for none): the positions the child sees are shifted by the axis offsets.

Flutter: rendering/sliver.dart SliverHitTestResult.addWithAxisOffset

type SliverItemOffsetEstimator

type SliverItemOffsetEstimator interface {
	// EstimatesItemOffsets is whether the option is on. A RenderSliverList then
	// does not walk through the children between its children and a scroll offset
	// that is more than a window (the viewport and the cache area) away from them:
	// it creates the child at the index that the average extent of the items it
	// has measured gives for the offset.
	//
	// Flutter: no counterpart
	EstimatesItemOffsets() bool
}

SliverItemOffsetEstimator is what a RenderSliverBoxChildManager implements, in addition, when its list estimates the offset of the items it jumps to (the EstimateItemOffsets option of the list widgets). RenderSliverList looks for it in its child manager with a type assertion.

Flutter: no counterpart

type SliverLayoutDimensions

type SliverLayoutDimensions struct {
	// ScrollOffset is the scroll offset of the sliver, as in SliverConstraints.
	//
	// Flutter: rendering/sliver.dart SliverLayoutDimensions.scrollOffset
	ScrollOffset float64
	// PrecedingScrollExtent is the scroll extent of the slivers before this one.
	//
	// Flutter: rendering/sliver.dart SliverLayoutDimensions.precedingScrollExtent
	PrecedingScrollExtent float64
	// ViewportMainAxisExtent is the size of the viewport in the main axis.
	//
	// Flutter: rendering/sliver.dart SliverLayoutDimensions.viewportMainAxisExtent
	ViewportMainAxisExtent float64
	// CrossAxisExtent is the size of the sliver in the cross axis.
	//
	// Flutter: rendering/sliver.dart SliverLayoutDimensions.crossAxisExtent
	CrossAxisExtent float64
}

SliverLayoutDimensions are the dimensions that a sliver is laid out with, as ItemExtentBuilder sees them.

Flutter: rendering/sliver.dart SliverLayoutDimensions

func (SliverLayoutDimensions) String

func (d SliverLayoutDimensions) String() string

String describes the dimensions.

Flutter: rendering/sliver.dart SliverLayoutDimensions.toString

type SliverLogicalContainerParentData

type SliverLogicalContainerParentData struct {
	SliverLogicalParentData
	ContainerParentData[Sliver]
}

SliverLogicalContainerParentData is the parent data of the children of a sliver with a list of children laid out by a layout offset.

Flutter: rendering/sliver.dart SliverLogicalContainerParentData

func (*SliverLogicalContainerParentData) Detach

Detach panics in debug builds if the sibling links are still set.

Flutter: rendering/object.dart ContainerParentDataMixin.detach

type SliverLogicalParentData

type SliverLogicalParentData struct {
	ParentDataBase
	// LayoutOffset is the offset of the child from the zero scroll offset of the
	// parent, along the main axis; none before the first layout.
	//
	// Flutter: rendering/sliver.dart SliverLogicalParentData.layoutOffset
	LayoutOffset foundation.Opt[float64]
}

SliverLogicalParentData is the parent data of a sliver's child that is positioned by its layout offset along the main axis.

Flutter: rendering/sliver.dart SliverLogicalParentData

func SliverLogicalParentDataOf

func SliverLogicalParentDataOf(child RenderObject) *SliverLogicalParentData

SliverLogicalParentDataOf is the SliverLogicalParentData of a child.

Flutter: no counterpart (the cast `child.parentData! as SliverLogicalParentData`)

func (*SliverLogicalParentData) String

func (d *SliverLogicalParentData) String() string

String is "layoutOffset=" and the offset.

Flutter: rendering/sliver.dart SliverLogicalParentData.toString

type SliverMultiBoxAdaptorParentData

type SliverMultiBoxAdaptorParentData struct {
	SliverLogicalParentData
	ContainerParentData[Box]
	KeepAliveParentDataMixin
	// Index is the index of the child in the list; none before the manager sets it.
	//
	// Flutter: rendering/sliver_multi_box_adaptor.dart SliverMultiBoxAdaptorParentData.index
	Index foundation.Opt[int]
	// contains filtered or unexported fields
}

SliverMultiBoxAdaptorParentData is the parent data of the children of a RenderSliverMultiBoxAdaptor: the layout offset, the index and the links to the siblings.

Flutter: rendering/sliver_multi_box_adaptor.dart SliverMultiBoxAdaptorParentData

func SliverMultiBoxAdaptorParentDataOf

func SliverMultiBoxAdaptorParentDataOf(child RenderObject) *SliverMultiBoxAdaptorParentData

SliverMultiBoxAdaptorParentDataOf is the SliverMultiBoxAdaptorParentData of a child (the parent data of the child is that or embeds it).

Flutter: no counterpart (the cast `child.parentData! as SliverMultiBoxAdaptorParentData`)

func (*SliverMultiBoxAdaptorParentData) Detach

func (d *SliverMultiBoxAdaptorParentData) Detach()

Detach panics in debug builds if the sibling links are still set.

Flutter: rendering/object.dart ContainerParentDataMixin.detach

func (*SliverMultiBoxAdaptorParentData) KeptAlive

func (d *SliverMultiBoxAdaptorParentData) KeptAlive() bool

KeptAlive is whether the parent keeps the child alive, out of view.

Flutter: rendering/sliver_multi_box_adaptor.dart SliverMultiBoxAdaptorParentData.keptAlive

func (*SliverMultiBoxAdaptorParentData) String

String is the index, the keep alive flag and the layout offset.

Flutter: rendering/sliver_multi_box_adaptor.dart SliverMultiBoxAdaptorParentData.toString

type SliverPaintOrder

type SliverPaintOrder int

SliverPaintOrder is the order in which a viewport paints its slivers.

Flutter: rendering/viewport.dart SliverPaintOrder

const (
	// SliverPaintOrderUnspecified is the zero value: the default.
	//
	// Flutter: no counterpart
	SliverPaintOrderUnspecified SliverPaintOrder = iota
	// SliverPaintOrderFirstIsTop paints the first sliver on top of the others.
	//
	// Flutter: rendering/viewport.dart SliverPaintOrder.firstIsTop
	SliverPaintOrderFirstIsTop
	// SliverPaintOrderLastIsTop paints the last sliver on top of the others.
	//
	// Flutter: rendering/viewport.dart SliverPaintOrder.lastIsTop
	SliverPaintOrderLastIsTop
)

The values of SliverPaintOrder follow Flutter's declaration order.

type SliverPhysicalContainerParentData

type SliverPhysicalContainerParentData struct {
	SliverPhysicalParentData
	ContainerParentData[Sliver]
}

SliverPhysicalContainerParentData is the parent data of the children of a sliver with a list of children positioned by a paint offset.

Flutter: rendering/sliver.dart SliverPhysicalContainerParentData

func (*SliverPhysicalContainerParentData) Detach

Detach panics in debug builds if the sibling links are still set.

Flutter: rendering/object.dart ContainerParentDataMixin.detach

type SliverPhysicalParentData

type SliverPhysicalParentData struct {
	ParentDataBase
	// PaintOffset is the position of the child relative to the parent.
	//
	// Flutter: rendering/sliver.dart SliverPhysicalParentData.paintOffset
	PaintOffset ui.Offset
	// CrossAxisFlex is the flex factor in the cross axis (for a grid).
	//
	// Flutter: rendering/sliver.dart SliverPhysicalParentData.crossAxisFlex
	CrossAxisFlex foundation.Opt[int]
}

SliverPhysicalParentData is the parent data of a sliver's child that is positioned by a paint offset in the coordinates of the sliver.

Flutter: rendering/sliver.dart SliverPhysicalParentData

func SliverPhysicalParentDataOf

func SliverPhysicalParentDataOf(child RenderObject) *SliverPhysicalParentData

SliverPhysicalParentDataOf is the SliverPhysicalParentData of a child.

Flutter: no counterpart (the cast `child.parentData! as SliverPhysicalParentData`)

func (*SliverPhysicalParentData) ApplyPaintTransform

func (d *SliverPhysicalParentData) ApplyPaintTransform(transform *ui.Matrix4)

ApplyPaintTransform translates the transform by the paint offset.

Flutter: rendering/sliver.dart SliverPhysicalParentData.applyPaintTransform

func (*SliverPhysicalParentData) String

func (d *SliverPhysicalParentData) String() string

String is "paintOffset=" and the offset.

Flutter: rendering/sliver.dart SliverPhysicalParentData.toString

type SliverVisibleContentKeeper

type SliverVisibleContentKeeper interface {
	// KeepsVisibleContentPosition is whether the option is on. A RenderSliverList
	// that has to place the items before its first child (when it is scrolled to
	// within the cache extent of the start) then inserts all of them and corrects
	// the scroll offset once, not one item for each layout pass.
	//
	// Flutter: no counterpart
	KeepsVisibleContentPosition() bool
	// TakeScrollOffsetCorrection returns the correction of the scroll offset that
	// the manager worked out when it moved the children to new indices, and
	// forgets it, so that it is returned only once. A sliver whose layout offsets
	// come from the index (RenderSliverFixedExtentBoxAdaptor) returns it as the
	// ScrollOffsetCorrection of its geometry, before it lays anything out.
	//
	// Flutter: no counterpart
	TakeScrollOffsetCorrection() float64
}

SliverVisibleContentKeeper is what a RenderSliverBoxChildManager implements, in addition, when its list keeps what the user reads in place while items are inserted before it (the MaintainVisibleContentPosition option of the list widgets). RenderSliverList and RenderSliverFixedExtentBoxAdaptor look for it in their child manager with a type assertion.

Flutter: no counterpart

type SlottedContainer

type SlottedContainer struct {

	// DebugNameForSlot gives the name of a slot in the diagnostics; the default
	// is the String method of the slot, or its default format.
	DebugNameForSlot func(slot any) string
	// contains filtered or unexported fields
}

SlottedContainer holds children that each have a name, a slot (an enum value, or any comparable value), for a render object: embed it and call InitSlottedContainer in the constructor. It adopts and drops the children, and takes part in attach, detach, redepth, visiting and diagnostics.

Flutter: widgets/slotted_render_object_widget.dart SlottedContainerRenderObjectMixin

func (*SlottedContainer) MoveSlotChild

func (m *SlottedContainer) MoveSlotChild(child RenderObject, slot, oldSlot any)

MoveSlotChild moves the child from the old slot to the new one.

Flutter: widgets/slotted_render_object_widget.dart SlottedContainerRenderObjectMixin._moveChild

func (*SlottedContainer) SetSlotChild

func (m *SlottedContainer) SetSlotChild(child RenderObject, slot any)

SetSlotChild puts the child (nil for none) in the slot: the child there is dropped, the new one adopted.

Flutter: widgets/slotted_render_object_widget.dart SlottedContainerRenderObjectMixin._setChild

func (*SlottedContainer) SlotChild

func (m *SlottedContainer) SlotChild(slot any) RenderObject

SlotChild is the child in the slot, or nil.

Flutter: widgets/slotted_render_object_widget.dart SlottedContainerRenderObjectMixin.childForSlot

func (*SlottedContainer) SlotChildren

func (m *SlottedContainer) SlotChildren() []RenderObject

SlotChildren are the children, in the order they were set.

Flutter: widgets/slotted_render_object_widget.dart SlottedContainerRenderObjectMixin.children

type StackFit

type StackFit int

StackFit is how the non-positioned children of a stack are sized. The zero value is StackFitUnspecified: loose.

Flutter: rendering/stack.dart StackFit

const (
	// StackFitUnspecified is the zero value: the default (loose).
	//
	// Flutter: no counterpart
	StackFitUnspecified StackFit = iota
	// StackFitLoose gives the non-positioned children loose constraints: from
	// zero to the stack's size.
	//
	// Flutter: rendering/stack.dart StackFit.loose
	StackFitLoose
	// StackFitExpand gives the non-positioned children the biggest size.
	//
	// Flutter: rendering/stack.dart StackFit.expand
	StackFitExpand
	// StackFitPassthrough passes the stack's constraints to the non-positioned
	// children unmodified.
	//
	// Flutter: rendering/stack.dart StackFit.passthrough
	StackFitPassthrough
)

The values of StackFit follow Flutter's declaration order.

func (StackFit) Name

func (f StackFit) Name() string

Name returns the Dart enum name, such as "loose".

Flutter: rendering/stack.dart StackFit.name

func (StackFit) String

func (f StackFit) String() string

String returns the name Dart prints, such as "StackFit.loose".

Flutter: rendering/stack.dart StackFit.toString

type StackParentData

type StackParentData struct {
	ContainerBoxParentData[Box]
	// Top is the distance that the child's top edge is inset from the top of
	// the stack. None is null.
	//
	// Flutter: rendering/stack.dart StackParentData.top
	Top foundation.Opt[float64]
	// Right is the distance that the child's right edge is inset from the right
	// of the stack.
	//
	// Flutter: rendering/stack.dart StackParentData.right
	Right foundation.Opt[float64]
	// Bottom is the distance that the child's bottom edge is inset from the
	// bottom of the stack.
	//
	// Flutter: rendering/stack.dart StackParentData.bottom
	Bottom foundation.Opt[float64]
	// Left is the distance that the child's left edge is inset from the left of
	// the stack.
	//
	// Flutter: rendering/stack.dart StackParentData.left
	Left foundation.Opt[float64]
	// Width is the child's width, ignored if both Left and Right are set.
	//
	// Flutter: rendering/stack.dart StackParentData.width
	Width foundation.Opt[float64]
	// Height is the child's height, ignored if both Top and Bottom are set.
	//
	// Flutter: rendering/stack.dart StackParentData.height
	Height foundation.Opt[float64]
}

StackParentData is the parent data of the children of a RenderStack: which edges of the stack the child is attached to, besides its offset.

Flutter: rendering/stack.dart StackParentData

func (*StackParentData) IsPositioned

func (d *StackParentData) IsPositioned() bool

IsPositioned reports whether any of the edges, the width or the height is set.

Flutter: rendering/stack.dart StackParentData.isPositioned

func (*StackParentData) PositionedChildConstraints

func (d *StackParentData) PositionedChildConstraints(stackSize ui.Size) BoxConstraints

PositionedChildConstraints are the tight constraints for a positioned child in a stack of the size: they fix the dimensions that the edges or the size determine, and leave the others unconstrained.

Flutter: rendering/stack.dart StackParentData.positionedChildConstraints

func (*StackParentData) Rect

func (d *StackParentData) Rect() RelativeRect

Rect is the edges as a RelativeRect. It panics if an edge is not set (Flutter throws a null check error).

Flutter: rendering/stack.dart StackParentData.rect

func (*StackParentData) SetRect

func (d *StackParentData) SetRect(v RelativeRect)

SetRect sets the four edges.

Flutter: rendering/stack.dart StackParentData.rect

func (*StackParentData) String

func (d *StackParentData) String() string

String lists the set values, then the offset.

Flutter: rendering/stack.dart StackParentData.toString

type TableBorder

type TableBorder struct {
	// Top is the top side of this border.
	//
	// Flutter: rendering/table_border.dart TableBorder.top
	Top painting.BorderSide
	// Right is the right side of this border.
	//
	// Flutter: rendering/table_border.dart TableBorder.right
	Right painting.BorderSide
	// Bottom is the bottom side of this border.
	//
	// Flutter: rendering/table_border.dart TableBorder.bottom
	Bottom painting.BorderSide
	// Left is the left side of this border.
	//
	// Flutter: rendering/table_border.dart TableBorder.left
	Left painting.BorderSide
	// HorizontalInside is the horizontal interior lines of this border.
	//
	// Flutter: rendering/table_border.dart TableBorder.horizontalInside
	HorizontalInside painting.BorderSide
	// VerticalInside is the vertical interior lines of this border.
	//
	// Flutter: rendering/table_border.dart TableBorder.verticalInside
	VerticalInside painting.BorderSide
	// BorderRadius is the radius of the corners of the table's outer border.
	//
	// Flutter: rendering/table_border.dart TableBorder.borderRadius
	BorderRadius painting.BorderRadius
}

TableBorder is the border of a table: the sides of the table and the lines between its rows and columns.

Flutter: rendering/table_border.dart TableBorder

func NewTableBorder

func NewTableBorder(b TableBorder) TableBorder

NewTableBorder creates a border; the zero sides of the literal are BorderSideNone.

Flutter: rendering/table_border.dart TableBorder.new

func NewTableBorderAll

func NewTableBorderAll(opts ...TableBorderAllOpts) TableBorder

NewTableBorderAll creates a border that consists of a solid line of the same color and width on all sides.

Flutter: rendering/table_border.dart TableBorder.all

func NewTableBorderSymmetric

func NewTableBorderSymmetric(inside, outside painting.BorderSide, borderRadius painting.BorderRadius) TableBorder

NewTableBorderSymmetric creates a border with the same outside sides and the same inside lines.

Flutter: rendering/table_border.dart TableBorder.symmetric

func TableBorderLerp

func TableBorderLerp(a, b *TableBorder, t float64) *TableBorder

TableBorderLerp linearly interpolates between two table borders. A nil border is Flutter's null.

Flutter: rendering/table_border.dart TableBorder.lerp

func (TableBorder) Dimensions

func (b TableBorder) Dimensions() painting.EdgeInsets

Dimensions is the widths of the outer sides as insets.

Flutter: rendering/table_border.dart TableBorder.dimensions

func (TableBorder) IsUniform

func (b TableBorder) IsUniform() bool

IsUniform reports whether all the sides, inside and outside, have the same color, width and style.

Flutter: rendering/table_border.dart TableBorder.isUniform

func (TableBorder) Paint

func (b TableBorder) Paint(canvas *ui.Canvas, rect ui.Rect, rows, columns []float64)

Paint draws the border around the rectangle, and the inside lines at the given offsets from the top (rows) and from the left (columns) of the rectangle. In debug builds it panics with TableBorderOutOfRange if an offset is outside the rectangle.

Flutter: rendering/table_border.dart TableBorder.paint

func (TableBorder) Scale

func (b TableBorder) Scale(t float64) TableBorder

Scale scales the widths of the sides by t. The border radius is not kept.

Flutter: rendering/table_border.dart TableBorder.scale

func (TableBorder) String

func (b TableBorder) String() string

String lists the sides and the border radius.

Flutter: rendering/table_border.dart TableBorder.toString

type TableBorderAllOpts

type TableBorderAllOpts struct {
	// Color defaults to black.
	Color foundation.Opt[ui.Color]
	// Width defaults to 1.
	Width foundation.Opt[float64]
	// Style defaults to painting.BorderStyleSolid.
	Style painting.BorderStyle
	// BorderRadius defaults to painting.BorderRadiusZero.
	BorderRadius painting.BorderRadius
}

TableBorderAllOpts are the optional parameters of NewTableBorderAll.

Flutter: rendering/table_border.dart TableBorder.all

type TableCellParentData

type TableCellParentData struct {
	BoxParentData
	// VerticalAlignment is how the cell is aligned vertically; unspecified is
	// the table's default.
	//
	// Flutter: rendering/table.dart TableCellParentData.verticalAlignment
	VerticalAlignment TableCellVerticalAlignment
	// X is the column that the child was in the last time the table was laid
	// out.
	//
	// Flutter: rendering/table.dart TableCellParentData.x
	X foundation.Opt[int]
	// Y is the row that the child was in the last time the table was laid out.
	//
	// Flutter: rendering/table.dart TableCellParentData.y
	Y foundation.Opt[int]
}

TableCellParentData is the parent data of the cells of a RenderTable.

Flutter: rendering/table.dart TableCellParentData

func (*TableCellParentData) String

func (d *TableCellParentData) String() string

String is the offset and the vertical alignment.

Flutter: rendering/table.dart TableCellParentData.toString

type TableCellVerticalAlignment

type TableCellVerticalAlignment int

TableCellVerticalAlignment is how a cell is aligned vertically within its row. The zero value is TableCellVerticalAlignmentUnspecified: the default of the table.

Flutter: rendering/table.dart TableCellVerticalAlignment

const (
	// TableCellVerticalAlignmentUnspecified is the zero value: the default of
	// the table (null in Flutter's parent data).
	//
	// Flutter: no counterpart
	TableCellVerticalAlignmentUnspecified TableCellVerticalAlignment = iota
	// TableCellVerticalAlignmentTop places the cell at the top of the row.
	//
	// Flutter: rendering/table.dart TableCellVerticalAlignment.top
	TableCellVerticalAlignmentTop
	// TableCellVerticalAlignmentMiddle centers the cell in the row.
	//
	// Flutter: rendering/table.dart TableCellVerticalAlignment.middle
	TableCellVerticalAlignmentMiddle
	// TableCellVerticalAlignmentBottom places the cell at the bottom of the row.
	//
	// Flutter: rendering/table.dart TableCellVerticalAlignment.bottom
	TableCellVerticalAlignmentBottom
	// TableCellVerticalAlignmentBaseline aligns the baseline of the cell with
	// the baseline of the row.
	//
	// Flutter: rendering/table.dart TableCellVerticalAlignment.baseline
	TableCellVerticalAlignmentBaseline
	// TableCellVerticalAlignmentFill sizes the cell to the height of the row.
	//
	// Flutter: rendering/table.dart TableCellVerticalAlignment.fill
	TableCellVerticalAlignmentFill
	// TableCellVerticalAlignmentIntrinsicHeight sizes the row to the cells'
	// intrinsic height, then makes the cell fill the row.
	//
	// Flutter: rendering/table.dart TableCellVerticalAlignment.intrinsicHeight
	TableCellVerticalAlignmentIntrinsicHeight
)

The values of TableCellVerticalAlignment follow Flutter's declaration order.

func (TableCellVerticalAlignment) Name

Name returns the Dart enum name, such as "middle".

Flutter: rendering/table.dart TableCellVerticalAlignment.name

func (TableCellVerticalAlignment) String

String returns the name Dart prints, such as "TableCellVerticalAlignment.top".

Flutter: rendering/table.dart TableCellVerticalAlignment.toString

type TableColumnWidth

type TableColumnWidth interface {
	// MinIntrinsicWidth is the smallest width that the column can have, given
	// its cells and the width of the table (infinite if unbounded).
	//
	// Flutter: rendering/table.dart TableColumnWidth.minIntrinsicWidth
	MinIntrinsicWidth(cells []Box, containerWidth float64) float64
	// MaxIntrinsicWidth is the ideal width of the column.
	//
	// Flutter: rendering/table.dart TableColumnWidth.maxIntrinsicWidth
	MaxIntrinsicWidth(cells []Box, containerWidth float64) float64
	// Flex is the flex factor of the column, or None if it takes no part in the
	// distribution of the free space.
	//
	// Flutter: rendering/table.dart TableColumnWidth.flex
	Flex(cells []Box) foundation.Opt[float64]
	// String describes the column width.
	String() string
}

TableColumnWidth defines the width of a column of a table.

Flutter: rendering/table.dart TableColumnWidth

type TextGranularity

type TextGranularity int

TextGranularity is the granularity by which a selection is extended.

Flutter: rendering/selection.dart TextGranularity

const (
	// TextGranularityUnspecified is the zero value: the default (character).
	//
	// Flutter: no counterpart
	TextGranularityUnspecified TextGranularity = iota
	// TextGranularityCharacter extends by a character.
	//
	// Flutter: rendering/selection.dart TextGranularity.character
	TextGranularityCharacter
	// TextGranularityWord extends by a word.
	//
	// Flutter: rendering/selection.dart TextGranularity.word
	TextGranularityWord
	// TextGranularityParagraph extends by a paragraph.
	//
	// Flutter: rendering/selection.dart TextGranularity.paragraph
	TextGranularityParagraph
	// TextGranularityLine extends by a line.
	//
	// Flutter: rendering/selection.dart TextGranularity.line
	TextGranularityLine
	// TextGranularityDocument extends by the whole document.
	//
	// Flutter: rendering/selection.dart TextGranularity.document
	TextGranularityDocument
)

The values of TextGranularity follow Flutter's declaration order.

func (TextGranularity) Name

func (g TextGranularity) Name() string

Name returns the Dart enum name, such as "word".

Flutter: rendering/selection.dart TextGranularity.name

func (TextGranularity) String

func (g TextGranularity) String() string

String returns the name Dart prints, such as "TextGranularity.word".

Flutter: rendering/selection.dart TextGranularity.toString

type TextParentData

type TextParentData struct {
	ParentDataBase
	ContainerParentData[Box]
	// Offset is the offset at which to paint the child, in the paragraph's
	// coordinates, or None if the child was not laid out yet.
	//
	// Flutter: rendering/paragraph.dart TextParentData.offset
	Offset foundation.Opt[ui.Offset]
	// Span is the placeholder span of the child.
	//
	// Flutter: rendering/paragraph.dart TextParentData.span
	Span painting.PlaceholderSpan
}

TextParentData is the parent data of the inline children of a paragraph: the offset that the text layout gave the placeholder, and the span they are for.

Flutter: rendering/paragraph.dart TextParentData

func (*TextParentData) Detach

func (d *TextParentData) Detach()

Detach clears the span and the offset.

Flutter: rendering/paragraph.dart TextParentData.detach

func (*TextParentData) String

func (d *TextParentData) String() string

String describes the span and the offset.

Flutter: rendering/paragraph.dart TextParentData.toString

type TextSelectionHandleType

type TextSelectionHandleType int

TextSelectionHandleType is the type of a selection handle.

Flutter: rendering/selection.dart TextSelectionHandleType

const (
	// TextSelectionHandleTypeUnspecified is the zero value: no type.
	//
	// Flutter: no counterpart
	TextSelectionHandleTypeUnspecified TextSelectionHandleType = iota
	// TextSelectionHandleTypeLeft is a handle of the left edge of a selection.
	//
	// Flutter: rendering/selection.dart TextSelectionHandleType.left
	TextSelectionHandleTypeLeft
	// TextSelectionHandleTypeRight is a handle of the right edge of a selection.
	//
	// Flutter: rendering/selection.dart TextSelectionHandleType.right
	TextSelectionHandleTypeRight
	// TextSelectionHandleTypeCollapsed is a handle of a collapsed selection.
	//
	// Flutter: rendering/selection.dart TextSelectionHandleType.collapsed
	TextSelectionHandleTypeCollapsed
)

The values of TextSelectionHandleType follow Flutter's declaration order.

func (TextSelectionHandleType) Name

Name returns the Dart enum name, such as "left".

Flutter: rendering/selection.dart TextSelectionHandleType.name

func (TextSelectionHandleType) String

func (t TextSelectionHandleType) String() string

String returns the name Dart prints, such as "TextSelectionHandleType.left".

Flutter: rendering/selection.dart TextSelectionHandleType.toString

type TextSelectionPoint

type TextSelectionPoint struct {
	// Point is the point of the selection, in the coordinates of the editable.
	//
	// Flutter: rendering/editable.dart TextSelectionPoint.point
	Point ui.Offset
	// Direction is the direction of the text at the point; None when the
	// selection is collapsed and the direction is not known.
	//
	// Flutter: rendering/editable.dart TextSelectionPoint.direction
	Direction foundation.Opt[ui.TextDirection]
}

TextSelectionPoint is a point at which the text selection originates, with the direction of the text there.

Flutter: rendering/editable.dart TextSelectionPoint

func (TextSelectionPoint) String

func (p TextSelectionPoint) String() string

String describes the point and the direction.

Flutter: rendering/editable.dart TextSelectionPoint.toString

type TightForFiniteOpts

type TightForFiniteOpts struct {
	// Width is tight if it is set and finite.
	Width foundation.Opt[float64]
	// Height is tight if it is set and finite.
	Height foundation.Opt[float64]
}

TightForFiniteOpts are the optional parameters of NewBoxConstraintsTightForFinite.

Flutter: rendering/box.dart BoxConstraints.tightForFinite

type TightForOpts

type TightForOpts struct {
	// Width is the exact width; unset leaves the width unconstrained.
	Width foundation.Opt[float64]
	// Height is the exact height; unset leaves the height unconstrained.
	Height foundation.Opt[float64]
}

TightForOpts are the optional parameters of NewBoxConstraintsTightFor.

Flutter: rendering/box.dart BoxConstraints.tightFor

type TightenOpts

type TightenOpts struct {
	// Width is the width to tighten to, clamped to the constraints; unset keeps
	// the width constraints.
	Width foundation.Opt[float64]
	// Height is the height to tighten to, clamped to the constraints; unset
	// keeps the height constraints.
	Height foundation.Opt[float64]
}

TightenOpts are the optional parameters of BoxConstraints.Tighten.

Flutter: rendering/box.dart BoxConstraints.tighten

type TransformLayer

type TransformLayer struct {
	OffsetLayer
	// contains filtered or unexported fields
}

TransformLayer is a layer that transforms its children by a matrix.

Flutter: rendering/layer.dart TransformLayer

func NewTransformLayer

func NewTransformLayer(opts ...TransformLayerOpts) *TransformLayer

NewTransformLayer creates a transform layer.

Flutter: rendering/layer.dart TransformLayer.new

func (*TransformLayer) AddToScene

func (l *TransformLayer) AddToScene(builder *ui.SceneBuilder)

AddToScene pushes the (offset) transform, adds the children and pops.

Flutter: rendering/layer.dart TransformLayer.addToScene

func (*TransformLayer) ApplyTransform

func (l *TransformLayer) ApplyTransform(child Layer, transform *ui.Matrix4)

ApplyTransform multiplies the transform by the effective transform.

Flutter: rendering/layer.dart TransformLayer.applyTransform

func (*TransformLayer) DebugFillProperties

func (l *TransformLayer) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the transform.

Flutter: rendering/layer.dart TransformLayer.debugFillProperties

func (*TransformLayer) FindAnnotations

func (l *TransformLayer) FindAnnotations(result *AnnotationResult, localPosition ui.Offset, onlyFirst bool) bool

FindAnnotations searches the children at the inverse-transformed position.

Flutter: rendering/layer.dart TransformLayer.findAnnotations

func (*TransformLayer) SetTransform

func (l *TransformLayer) SetTransform(v *ui.Matrix4)

SetTransform changes the matrix, which must be non-nil and finite.

Flutter: rendering/layer.dart TransformLayer.transform

func (*TransformLayer) Transform

func (l *TransformLayer) Transform() *ui.Matrix4

Transform is the matrix that transforms the children.

Flutter: rendering/layer.dart TransformLayer.transform

type TransformLayerOpts

type TransformLayerOpts struct {
	// Transform is the matrix; it must be set before the layer is added to a
	// scene. The layer keeps the pointer.
	Transform *ui.Matrix4
	// Offset is how far the children are moved, before the transform.
	Offset ui.Offset
}

TransformLayerOpts are the optional parameters of NewTransformLayer.

Flutter: rendering/layer.dart TransformLayer.new

type TreeSliverIndentationType

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

TreeSliverIndentationType is how far the children of a node are indented from their parent. Make one with TreeSliverIndentationTypeCustom, or use the two that are given.

Flutter: rendering/sliver_tree.dart TreeSliverIndentationType

func TreeSliverIndentationTypeCustom

func TreeSliverIndentationTypeCustom(value float64) TreeSliverIndentationType

TreeSliverIndentationTypeCustom indents each level by a number of pixels. It panics with TreeSliverIndentationNegative in debug builds when the value is negative.

Flutter: rendering/sliver_tree.dart TreeSliverIndentationType.custom

func (TreeSliverIndentationType) Value

Value is the number of pixels each level is indented by.

Flutter: rendering/sliver_tree.dart TreeSliverIndentationType.value

type TreeSliverNodeParentData

type TreeSliverNodeParentData struct {
	SliverMultiBoxAdaptorParentData
	// Depth is the depth of the node in the tree: 0 for the root nodes.
	//
	// Flutter: rendering/sliver_tree.dart TreeSliverNodeParentData.depth
	Depth int
}

TreeSliverNodeParentData is the parent data of the children of a RenderTreeSliver: the depth of the node in the tree.

Flutter: rendering/sliver_tree.dart TreeSliverNodeParentData

type TreeSliverNodesAnimation

type TreeSliverNodesAnimation struct {
	FromIndex, ToIndex int
	Value              float64
}

TreeSliverNodesAnimation is an animation of the children of a node that expands or collapses: the index of the first and of the last of them (in the list of the active nodes) and the value of the animation, from 0 (collapsed) to 1 (expanded).

Flutter: rendering/sliver_tree.dart TreeSliverNodesAnimation

type TwoDimensionalChildDelegate

type TwoDimensionalChildDelegate interface {
	foundation.Listenable
	// ShouldRebuild is whether the viewport must build its children again when
	// this delegate replaces the old one, which has the same type.
	//
	// Flutter: widgets/scroll_delegate.dart TwoDimensionalChildDelegate.shouldRebuild
	ShouldRebuild(oldDelegate TwoDimensionalChildDelegate) bool
}

TwoDimensionalChildDelegate is what the render object needs of the delegate that supplies the children of a two-dimensional viewport: it notifies its listeners when the children change.

Flutter: widgets/scroll_delegate.dart TwoDimensionalChildDelegate

type TwoDimensionalChildManager

type TwoDimensionalChildManager interface {
	// StartLayout is called before the viewport lays its children out.
	//
	// Flutter: widgets/two_dimensional_viewport.dart TwoDimensionalChildManager._startLayout
	StartLayout()
	// BuildChild builds the child at the vicinity, if the delegate has one.
	//
	// Flutter: widgets/two_dimensional_viewport.dart TwoDimensionalChildManager._buildChild
	BuildChild(vicinity ChildVicinity)
	// ReuseChild keeps the child at the vicinity as it is.
	//
	// Flutter: widgets/two_dimensional_viewport.dart TwoDimensionalChildManager._reuseChild
	ReuseChild(vicinity ChildVicinity)
	// EndLayout is called after the viewport laid its children out: the children
	// that were not built or reused are unmounted.
	//
	// Flutter: widgets/two_dimensional_viewport.dart TwoDimensionalChildManager._endLayout
	EndLayout()
}

TwoDimensionalChildManager creates, reuses and removes the children of a RenderTwoDimensionalViewport while it lays itself out.

Flutter: widgets/two_dimensional_viewport.dart TwoDimensionalChildManager

type TwoDimensionalViewportParentData

type TwoDimensionalViewportParentData struct {
	ParentDataBase
	KeepAliveParentDataMixin
	// LayoutOffset is the position of the child in the scrollable space, set by
	// LayoutChildSequence of the viewport.
	//
	// Flutter: widgets/two_dimensional_viewport.dart TwoDimensionalViewportParentData.layoutOffset
	LayoutOffset foundation.Opt[ui.Offset]
	// Vicinity is the vicinity of the child.
	//
	// Flutter: widgets/two_dimensional_viewport.dart TwoDimensionalViewportParentData.vicinity
	Vicinity ChildVicinity
	// PaintOffset is the position of the child in the viewport, set after the
	// layout.
	//
	// Flutter: widgets/two_dimensional_viewport.dart TwoDimensionalViewportParentData.paintOffset
	PaintOffset foundation.Opt[ui.Offset]
	// contains filtered or unexported fields
}

TwoDimensionalViewportParentData is the parent data of the children of a RenderTwoDimensionalViewport: where the child is laid out, where it paints and how much of it shows.

Flutter: widgets/two_dimensional_viewport.dart TwoDimensionalViewportParentData

func (*TwoDimensionalViewportParentData) IsVisible

func (d *TwoDimensionalViewportParentData) IsVisible() bool

IsVisible is whether any part of the child is in the viewport. In debug builds it panics with the tag ParentDataPaintExtentUnknown before the layout of the viewport sets the paint extent.

Flutter: widgets/two_dimensional_viewport.dart TwoDimensionalViewportParentData.isVisible

func (*TwoDimensionalViewportParentData) KeepAliveData

KeepAliveData is the keep alive mixin.

func (*TwoDimensionalViewportParentData) KeptAlive

func (d *TwoDimensionalViewportParentData) KeptAlive() bool

KeptAlive is whether the viewport keeps the child alive while it is out of view.

Flutter: widgets/two_dimensional_viewport.dart TwoDimensionalViewportParentData.keptAlive

func (*TwoDimensionalViewportParentData) PaintExtent

PaintExtent is the part of the child that is visible, once known.

Flutter: widgets/two_dimensional_viewport.dart TwoDimensionalViewportParentData._paintExtent

func (*TwoDimensionalViewportParentData) String

String describes the data.

Flutter: widgets/two_dimensional_viewport.dart TwoDimensionalViewportParentData.toString

type TwoDimensionalViewportSelf

type TwoDimensionalViewportSelf interface {
	Box
	// LayoutChildSequence lays the children out: it builds each child that
	// should be in the viewport with BuildOrObtainChildFor, lays it out, and sets
	// the LayoutOffset of its parent data. It must also give both offsets their
	// content dimensions.
	//
	// Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.layoutChildSequence
	LayoutChildSequence()
}

TwoDimensionalViewportSelf is what RenderTwoDimensionalViewport needs of the type that embeds it.

Flutter: widgets/two_dimensional_viewport.dart RenderTwoDimensionalViewport.layoutChildSequence

type VerticalCaretMovementRun

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

VerticalCaretMovementRun is a run of vertical caret movements: it moves a caret up and down the lines of an editable, remembering the horizontal position where the run started, so that the caret comes back to it after passing a short line. It is created by RenderEditable.StartVerticalCaretMovement and is invalid once the text layout changes.

Flutter: rendering/editable.dart VerticalCaretMovementRun

func (*VerticalCaretMovementRun) Current

Current is the position of the caret in the current line.

Flutter: rendering/editable.dart VerticalCaretMovementRun.current

func (*VerticalCaretMovementRun) IsValid

func (r *VerticalCaretMovementRun) IsValid() bool

IsValid reports whether the layout of the text is the one the run started on. A run that is not valid can not be used.

Flutter: rendering/editable.dart VerticalCaretMovementRun.isValid

func (*VerticalCaretMovementRun) MoveByOffset

func (r *VerticalCaretMovementRun) MoveByOffset(offset float64) bool

MoveByOffset moves the caret by the given vertical offset (down for a positive one), as far as the text goes. It returns whether the caret moved.

Flutter: rendering/editable.dart VerticalCaretMovementRun.moveByOffset

func (*VerticalCaretMovementRun) MoveNext

func (r *VerticalCaretMovementRun) MoveNext() bool

MoveNext moves the caret to the next line, and returns false if it is on the last line.

Flutter: rendering/editable.dart VerticalCaretMovementRun.moveNext

func (*VerticalCaretMovementRun) MovePrevious

func (r *VerticalCaretMovementRun) MovePrevious() bool

MovePrevious moves the caret to the previous line, and returns false if it is on the first line.

Flutter: rendering/editable.dart VerticalCaretMovementRun.movePrevious

type ViewConfiguration

type ViewConfiguration struct {
	// LogicalConstraints are the constraints of the root, in logical pixels.
	//
	// Flutter: rendering/view.dart ViewConfiguration.logicalConstraints
	LogicalConstraints BoxConstraints
	// PhysicalConstraints are the constraints of the view, in physical pixels.
	//
	// Flutter: rendering/view.dart ViewConfiguration.physicalConstraints
	PhysicalConstraints BoxConstraints
	// DevicePixelRatio is the number of physical pixels per logical pixel.
	//
	// Flutter: rendering/view.dart ViewConfiguration.devicePixelRatio
	DevicePixelRatio float64
}

ViewConfiguration is the layout constraints and the pixel ratio of a view.

Flutter: rendering/view.dart ViewConfiguration

func NewViewConfiguration

func NewViewConfiguration(opts ...ViewConfigurationOpts) ViewConfiguration

NewViewConfiguration creates a view configuration.

Flutter: rendering/view.dart ViewConfiguration.new

func NewViewConfigurationFromView

func NewViewConfigurationFromView(view *ui.View) ViewConfiguration

NewViewConfigurationFromView creates the configuration for a view from its physical constraints and device pixel ratio.

Flutter: rendering/view.dart ViewConfiguration.fromView

func (ViewConfiguration) ShouldUpdateMatrix

func (c ViewConfiguration) ShouldUpdateMatrix(old ViewConfiguration) bool

ShouldUpdateMatrix reports whether the matrix differs from that of the old configuration.

Flutter: rendering/view.dart ViewConfiguration.shouldUpdateMatrix

func (ViewConfiguration) String

func (c ViewConfiguration) String() string

String describes the configuration: the logical constraints and the pixel ratio.

Flutter: rendering/view.dart ViewConfiguration.toString

func (ViewConfiguration) ToMatrix

func (c ViewConfiguration) ToMatrix() *ui.Matrix4

ToMatrix is the matrix from logical to physical pixels: a scale by the device pixel ratio.

Flutter: rendering/view.dart ViewConfiguration.toMatrix

func (ViewConfiguration) ToPhysicalSize

func (c ViewConfiguration) ToPhysicalSize(logicalSize ui.Size) ui.Size

ToPhysicalSize converts a size in logical pixels to the physical size, constrained to the physical constraints.

Flutter: rendering/view.dart ViewConfiguration.toPhysicalSize

type ViewConfigurationOpts

type ViewConfigurationOpts struct {
	// PhysicalConstraints default to tight constraints of size zero.
	PhysicalConstraints foundation.Opt[BoxConstraints]
	// LogicalConstraints default to tight constraints of size zero.
	LogicalConstraints foundation.Opt[BoxConstraints]
	// DevicePixelRatio defaults to 1.
	DevicePixelRatio foundation.Opt[float64]
}

ViewConfigurationOpts are the optional parameters of NewViewConfiguration.

Flutter: rendering/view.dart ViewConfiguration.new

type ViewportOffset

type ViewportOffset interface {
	foundation.Listenable
	// Pixels is the number of pixels to offset the children in the opposite of
	// the axis direction. It is only valid when HasPixels is true.
	//
	// Flutter: rendering/viewport_offset.dart ViewportOffset.pixels
	Pixels() float64
	// HasPixels is whether Pixels has a value. It is false before the viewport
	// calls ApplyContentDimensions the first time.
	//
	// Flutter: rendering/viewport_offset.dart ViewportOffset.hasPixels
	HasPixels() bool
	// ApplyViewportDimension tells the offset the extent of the viewport in the
	// main axis. It returns whether the dimension was accepted (false asks for
	// another layout).
	//
	// Flutter: rendering/viewport_offset.dart ViewportOffset.applyViewportDimension
	ApplyViewportDimension(viewportDimension float64) bool
	// ApplyContentDimensions tells the offset the scroll extents of the content.
	// It returns whether the dimensions were accepted (false asks for another
	// layout).
	//
	// Flutter: rendering/viewport_offset.dart ViewportOffset.applyContentDimensions
	ApplyContentDimensions(minScrollExtent, maxScrollExtent float64) bool
	// CorrectBy changes Pixels by the correction without notifying the listeners;
	// the viewport uses it when a sliver asked for a scroll offset correction.
	//
	// Flutter: rendering/viewport_offset.dart ViewportOffset.correctBy
	CorrectBy(correction float64)
	// JumpTo changes Pixels to the value without animation, and notifies the
	// listeners.
	//
	// Flutter: rendering/viewport_offset.dart ViewportOffset.jumpTo
	JumpTo(pixels float64)
	// AnimateTo animates Pixels to the value over the duration with the curve.
	// The future completes when the animation does.
	//
	// Flutter: rendering/viewport_offset.dart ViewportOffset.animateTo
	AnimateTo(to float64, duration time.Duration, curve animation.Curve) *scheduler.TickerFuture
	// UserScrollDirection is the direction in which the user is scrolling.
	//
	// Flutter: rendering/viewport_offset.dart ViewportOffset.userScrollDirection
	UserScrollDirection() ScrollDirection
	// AllowImplicitScrolling is whether a viewport is allowed to expand its
	// cache extent when the semantics ask for it (for a PageView).
	//
	// Flutter: rendering/viewport_offset.dart ViewportOffset.allowImplicitScrolling
	AllowImplicitScrolling() bool
}

ViewportOffset is the interface for the offset of a viewport: how far the content is scrolled. A viewport listens to it and tells it the dimensions of the viewport and of the content. A scroll position implements it.

Flutter: rendering/viewport_offset.dart ViewportOffset

func NewViewportOffsetFixed

func NewViewportOffsetFixed(value float64) ViewportOffset

NewViewportOffsetFixed creates an offset that stays at the value: JumpTo and AnimateTo do nothing, and it accepts any dimension.

Flutter: rendering/viewport_offset.dart ViewportOffset.fixed

func NewViewportOffsetZero

func NewViewportOffsetZero() ViewportOffset

NewViewportOffsetZero creates a fixed offset at zero.

Flutter: rendering/viewport_offset.dart ViewportOffset.zero

type ViewportOffsetMoveToOpts

type ViewportOffsetMoveToOpts struct {
	// Duration, when it is none or zero, jumps instead of animating.
	Duration foundation.Opt[time.Duration]
	// Curve is the curve of the animation; the default is Curves.Ease.
	Curve animation.Curve
	// Clamp is whether the offset clamps to the extents; only a scroll position
	// uses it.
	Clamp foundation.Opt[bool]
}

ViewportOffsetMoveToOpts are the optional parameters of ViewportOffsetMoveTo.

Flutter: rendering/viewport_offset.dart ViewportOffset.moveTo

type WrapAlignment

type WrapAlignment int

WrapAlignment is how the children within a run, or the runs themselves, are placed along an axis. The zero value is WrapAlignmentUnspecified: start.

Flutter: rendering/wrap.dart WrapAlignment

const (
	// WrapAlignmentUnspecified is the zero value: the default (start).
	//
	// Flutter: no counterpart
	WrapAlignmentUnspecified WrapAlignment = iota
	// WrapAlignmentStart places the items at the start of the axis.
	//
	// Flutter: rendering/wrap.dart WrapAlignment.start
	WrapAlignmentStart
	// WrapAlignmentEnd places the items at the end of the axis.
	//
	// Flutter: rendering/wrap.dart WrapAlignment.end
	WrapAlignmentEnd
	// WrapAlignmentCenter places the items in the middle of the axis.
	//
	// Flutter: rendering/wrap.dart WrapAlignment.center
	WrapAlignmentCenter
	// WrapAlignmentSpaceBetween places the free space evenly between the items.
	//
	// Flutter: rendering/wrap.dart WrapAlignment.spaceBetween
	WrapAlignmentSpaceBetween
	// WrapAlignmentSpaceAround places the free space evenly between the items as
	// well as half of that space before and after the first and last item.
	//
	// Flutter: rendering/wrap.dart WrapAlignment.spaceAround
	WrapAlignmentSpaceAround
	// WrapAlignmentSpaceEvenly places the free space evenly between the items as
	// well as before and after the first and last item.
	//
	// Flutter: rendering/wrap.dart WrapAlignment.spaceEvenly
	WrapAlignmentSpaceEvenly
)

The values of WrapAlignment follow Flutter's declaration order.

func (WrapAlignment) Name

func (a WrapAlignment) Name() string

Name returns the Dart enum name, such as "spaceBetween".

Flutter: rendering/wrap.dart WrapAlignment.name

func (WrapAlignment) String

func (a WrapAlignment) String() string

String returns the name Dart prints, such as "WrapAlignment.start".

Flutter: rendering/wrap.dart WrapAlignment.toString

type WrapCrossAlignment

type WrapCrossAlignment int

WrapCrossAlignment is how the children within a run are placed relative to each other in the cross axis. The zero value is WrapCrossAlignmentUnspecified: start.

Flutter: rendering/wrap.dart WrapCrossAlignment

const (
	// WrapCrossAlignmentUnspecified is the zero value: the default (start).
	//
	// Flutter: no counterpart
	WrapCrossAlignmentUnspecified WrapCrossAlignment = iota
	// WrapCrossAlignmentStart places the children at the start of the run in
	// the cross axis.
	//
	// Flutter: rendering/wrap.dart WrapCrossAlignment.start
	WrapCrossAlignmentStart
	// WrapCrossAlignmentEnd places the children at the end of the run in the
	// cross axis.
	//
	// Flutter: rendering/wrap.dart WrapCrossAlignment.end
	WrapCrossAlignmentEnd
	// WrapCrossAlignmentCenter places the children in the middle of the run in
	// the cross axis.
	//
	// Flutter: rendering/wrap.dart WrapCrossAlignment.center
	WrapCrossAlignmentCenter
)

The values of WrapCrossAlignment follow Flutter's declaration order.

func (WrapCrossAlignment) Name

func (a WrapCrossAlignment) Name() string

Name returns the Dart enum name, such as "center".

Flutter: rendering/wrap.dart WrapCrossAlignment.name

func (WrapCrossAlignment) String

func (a WrapCrossAlignment) String() string

String returns the name Dart prints, such as "WrapCrossAlignment.start".

Flutter: rendering/wrap.dart WrapCrossAlignment.toString

type WrapParentData

type WrapParentData struct {
	ContainerBoxParentData[Box]
}

WrapParentData is the parent data of the children of a RenderWrap.

Flutter: rendering/wrap.dart WrapParentData

Jump to

Keyboard shortcuts

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