pub struct RenderTransform { /* private fields */ }Expand description
Applies a transformation before painting its child.
Implementations§
Source§impl RenderTransform
impl RenderTransform
Sourcepub fn new(
app: &mut App,
transform: Matrix4,
origin: Option<Offset>,
alignment: Option<AlignmentGeometry>,
text_direction: Option<TextDirection>,
transform_hit_tests: bool,
filter_quality: Option<FilterQuality>,
child: Option<AnyRenderBox>,
) -> RenderHandle<RenderTransform>
pub fn new( app: &mut App, transform: Matrix4, origin: Option<Offset>, alignment: Option<AlignmentGeometry>, text_direction: Option<TextDirection>, transform_hit_tests: bool, filter_quality: Option<FilterQuality>, child: Option<AnyRenderBox>, ) -> RenderHandle<RenderTransform>
Creates a render object that transforms its child.
Sourcepub fn origin(self: RenderHandle<Self>, app: &App) -> Option<Offset>
pub fn origin(self: RenderHandle<Self>, app: &App) -> Option<Offset>
The origin of the coordinate system (relative to the upper left corner of this render object) in which to apply the matrix.
Setting an origin is equivalent to conjugating the transform matrix by a translation. This property is provided just for convenience.
Sourcepub fn set_origin(
self: RenderHandle<Self>,
app: &mut App,
value: Option<Offset>,
)
pub fn set_origin( self: RenderHandle<Self>, app: &mut App, value: Option<Offset>, )
Sets origin.
Sourcepub fn alignment(
self: RenderHandle<Self>,
app: &App,
) -> Option<AlignmentGeometry>
pub fn alignment( self: RenderHandle<Self>, app: &App, ) -> Option<AlignmentGeometry>
The alignment of the origin, relative to the size of the box.
This is equivalent to setting an origin based on the size of the box. If it is specified at the same time as an offset, both are applied.
An AlignmentDirectional::CENTER_START value is the same as an Alignment
whose x value is -1.0 if text_direction is
TextDirection::Ltr, and 1.0 if it is TextDirection::Rtl.
Similarly AlignmentDirectional::CENTER_END is the same as an Alignment
whose x value is 1.0 if text_direction is
TextDirection::Ltr, and -1.0 if it is TextDirection::Rtl.
Sourcepub fn set_alignment(
self: RenderHandle<Self>,
app: &mut App,
value: Option<AlignmentGeometry>,
)
pub fn set_alignment( self: RenderHandle<Self>, app: &mut App, value: Option<AlignmentGeometry>, )
Sets alignment.
Sourcepub fn text_direction(
self: RenderHandle<Self>,
app: &App,
) -> Option<TextDirection>
pub fn text_direction( self: RenderHandle<Self>, app: &App, ) -> Option<TextDirection>
Sourcepub fn set_text_direction(
self: RenderHandle<Self>,
app: &mut App,
value: Option<TextDirection>,
)
pub fn set_text_direction( self: RenderHandle<Self>, app: &mut App, value: Option<TextDirection>, )
Sets text_direction.
Sourcepub fn transform_hit_tests(self: RenderHandle<Self>, app: &App) -> bool
pub fn transform_hit_tests(self: RenderHandle<Self>, app: &App) -> bool
When true, hit tests are performed based on the position of the child as it is painted. When false, hit tests are performed ignoring the transformation.
RenderBox::apply_paint_transform, and therefore
AnyRenderBox::local_to_global and AnyRenderBox::global_to_local, always honor
the transformation, regardless of the value of this property.
Sourcepub fn set_transform_hit_tests(
self: RenderHandle<Self>,
app: &mut App,
value: bool,
)
pub fn set_transform_hit_tests( self: RenderHandle<Self>, app: &mut App, value: bool, )
Sets transform_hit_tests. Dart’s plain field.
Sourcepub fn set_transform(self: RenderHandle<Self>, app: &mut App, value: Matrix4)
pub fn set_transform(self: RenderHandle<Self>, app: &mut App, value: Matrix4)
Sets the matrix to transform the child by during painting.
There is no getter for the transform, as in Dart, where the matrix is mutable and mutations outside of the control of the render object could not reliably be reflected in the rendering.
Sourcepub fn filter_quality(
self: RenderHandle<Self>,
app: &App,
) -> Option<FilterQuality>
pub fn filter_quality( self: RenderHandle<Self>, app: &App, ) -> Option<FilterQuality>
The filter quality with which to apply the transform as a bitmap operation.
When it is set, the child is painted untransformed into a layer whose pixels an
ImageFilter.matrix of the transform then moves, at this quality; when it is None,
the child is painted through the transform itself.
Sourcepub fn set_filter_quality(
self: RenderHandle<Self>,
app: &mut App,
value: Option<FilterQuality>,
)
pub fn set_filter_quality( self: RenderHandle<Self>, app: &mut App, value: Option<FilterQuality>, )
Sets filter_quality.
Sourcepub fn set_identity(self: RenderHandle<Self>, app: &mut App)
pub fn set_identity(self: RenderHandle<Self>, app: &mut App)
Sets the transform to the identity matrix.
Sourcepub fn rotate_x(self: RenderHandle<Self>, app: &mut App, radians: f64)
pub fn rotate_x(self: RenderHandle<Self>, app: &mut App, radians: f64)
Concatenates a rotation about the x axis into the transform.
Sourcepub fn rotate_y(self: RenderHandle<Self>, app: &mut App, radians: f64)
pub fn rotate_y(self: RenderHandle<Self>, app: &mut App, radians: f64)
Concatenates a rotation about the y axis into the transform.
Sourcepub fn rotate_z(self: RenderHandle<Self>, app: &mut App, radians: f64)
pub fn rotate_z(self: RenderHandle<Self>, app: &mut App, radians: f64)
Concatenates a rotation about the z axis into the transform.
Trait Implementations§
Source§impl RenderBox for RenderTransform
impl RenderBox for RenderTransform
Source§fn render_box_data(self: RenderHandle<Self>, app: &App) -> &RenderBoxData
fn render_box_data(self: RenderHandle<Self>, app: &App) -> &RenderBoxData
Source§fn render_box_data_mut(
self: RenderHandle<Self>,
app: &mut App,
) -> &mut RenderBoxData
fn render_box_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut RenderBoxData
render_box_data.Source§fn setup_parent_data(
self: RenderHandle<Self>,
app: &mut App,
child: AnyRenderObject,
)
fn setup_parent_data( self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject, )
BoxParentData unless the child already has it. Read moreSource§fn apply_paint_transform(
self: RenderHandle<Self>,
app: &App,
_child: AnyRenderObject,
transform: &mut Matrix4,
)
fn apply_paint_transform( self: RenderHandle<Self>, app: &App, _child: AnyRenderObject, transform: &mut Matrix4, )
Source§fn hit_test(
self: RenderHandle<Self>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
position: Offset,
) -> bool
fn hit_test( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool
Source§fn hit_test_children(
self: RenderHandle<Self>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
position: Offset,
) -> bool
fn hit_test_children( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool
Source§fn compute_min_intrinsic_width(
self: RenderHandle<Self>,
app: &mut App,
height: f64,
) -> f64
fn compute_min_intrinsic_width( self: RenderHandle<Self>, app: &mut App, height: f64, ) -> f64
get_min_intrinsic_width.
Do not call this function directly, instead, call
get_min_intrinsic_width. Read moreSource§fn compute_max_intrinsic_width(
self: RenderHandle<Self>,
app: &mut App,
height: f64,
) -> f64
fn compute_max_intrinsic_width( self: RenderHandle<Self>, app: &mut App, height: f64, ) -> f64
get_max_intrinsic_width.
Do not call this function directly, instead, call
get_max_intrinsic_width. Read moreSource§fn compute_min_intrinsic_height(
self: RenderHandle<Self>,
app: &mut App,
width: f64,
) -> f64
fn compute_min_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64
get_min_intrinsic_height. Do not call this function
directly, instead, call get_min_intrinsic_height. Read moreSource§fn compute_max_intrinsic_height(
self: RenderHandle<Self>,
app: &mut App,
width: f64,
) -> f64
fn compute_max_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64
get_max_intrinsic_height. Do not call this function
directly, instead, call get_max_intrinsic_height. Read moreSource§fn compute_distance_to_actual_baseline(
self: RenderHandle<Self>,
app: &mut App,
baseline: TextBaseline,
) -> Option<f64>
fn compute_distance_to_actual_baseline( self: RenderHandle<Self>, app: &mut App, baseline: TextBaseline, ) -> Option<f64>
None otherwise. Read moreSource§fn compute_dry_baseline(
self: RenderHandle<Self>,
app: &mut App,
constraints: BoxConstraints,
baseline: TextBaseline,
) -> Option<f64>
fn compute_dry_baseline( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, baseline: TextBaseline, ) -> Option<f64>
get_dry_baseline. Read moreSource§fn compute_dry_layout(
self: RenderHandle<Self>,
app: &mut App,
constraints: BoxConstraints,
) -> Size
fn compute_dry_layout( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, ) -> Size
get_dry_layout. Do not call this
function directly, instead, call get_dry_layout. Read moreSource§fn constraints(self: RenderHandle<Self>, app: &App) -> BoxConstraints
fn constraints(self: RenderHandle<Self>, app: &App) -> BoxConstraints
Source§fn any_constraints(self: RenderHandle<Self>, app: &App) -> AnyBoxConstraints
fn any_constraints(self: RenderHandle<Self>, app: &App) -> AnyBoxConstraints
BoxConstraints
subclass they may be an instance of: Dart’s constraints getter, for a reader that
type-checks it. Read moreSource§fn get_min_intrinsic_width(
self: RenderHandle<Self>,
app: &mut App,
height: f64,
) -> f64
fn get_min_intrinsic_width( self: RenderHandle<Self>, app: &mut App, height: f64, ) -> f64
Source§fn get_max_intrinsic_width(
self: RenderHandle<Self>,
app: &mut App,
height: f64,
) -> f64
fn get_max_intrinsic_width( self: RenderHandle<Self>, app: &mut App, height: f64, ) -> f64
Source§fn get_min_intrinsic_height(
self: RenderHandle<Self>,
app: &mut App,
width: f64,
) -> f64
fn get_min_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64
Source§fn get_max_intrinsic_height(
self: RenderHandle<Self>,
app: &mut App,
width: f64,
) -> f64
fn get_max_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64
Source§fn get_dry_layout(
self: RenderHandle<Self>,
app: &mut App,
constraints: BoxConstraints,
) -> Size
fn get_dry_layout( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, ) -> Size
Source§fn get_dry_baseline(
self: RenderHandle<Self>,
app: &mut App,
constraints: BoxConstraints,
baseline: TextBaseline,
) -> Option<f64>
fn get_dry_baseline( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, baseline: TextBaseline, ) -> Option<f64>
Source§fn debug_cannot_compute_dry_layout(
self: RenderHandle<Self>,
failure: DryLayoutFailure<'_>,
)
fn debug_cannot_compute_dry_layout( self: RenderHandle<Self>, failure: DryLayoutFailure<'_>, )
compute_dry_layout or
compute_dry_baseline if this box does not support
calculating a dry layout. Read moreSource§fn get_distance_to_baseline(
self: RenderHandle<Self>,
app: &mut App,
baseline: TextBaseline,
only_real: bool,
) -> Option<f64>
fn get_distance_to_baseline( self: RenderHandle<Self>, app: &mut App, baseline: TextBaseline, only_real: bool, ) -> Option<f64>
Source§fn get_distance_to_actual_baseline(
self: RenderHandle<Self>,
app: &mut App,
baseline: TextBaseline,
) -> Option<f64>
fn get_distance_to_actual_baseline( self: RenderHandle<Self>, app: &mut App, baseline: TextBaseline, ) -> Option<f64>
Source§fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App)
fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App)
Source§fn perform_resize(self: RenderHandle<Self>, app: &mut App)
fn perform_resize(self: RenderHandle<Self>, app: &mut App)
Source§fn paint_bounds(self: RenderHandle<Self>, app: &App) -> Rect
fn paint_bounds(self: RenderHandle<Self>, app: &App) -> Rect
Source§fn has_size(self: RenderHandle<Self>, app: &App) -> bool
fn has_size(self: RenderHandle<Self>, app: &App) -> bool
size.Source§fn handle_event(
self: RenderHandle<Self>,
app: &mut App,
event: &PointerEvent,
entry: &BoxHitTestEntry,
)
fn handle_event( self: RenderHandle<Self>, app: &mut App, event: &PointerEvent, entry: &BoxHitTestEntry, )
Source§fn hit_test_self(
self: RenderHandle<Self>,
_app: &App,
_position: Offset,
) -> bool
fn hit_test_self( self: RenderHandle<Self>, _app: &App, _position: Offset, ) -> bool
Source§fn set_size(self: RenderHandle<Self>, app: &mut App, size: Size)
fn set_size(self: RenderHandle<Self>, app: &mut App, size: Size)
RenderObject::perform_layout or
RenderObject::perform_resize.Source§fn layout(
self: RenderHandle<Self>,
app: &mut App,
constraints: impl Into<AnyBoxConstraints>,
parent_uses_size: bool,
)
fn layout( self: RenderHandle<Self>, app: &mut App, constraints: impl Into<AnyBoxConstraints>, parent_uses_size: bool, )
AnyRenderBox::layout.Source§fn as_box(self: RenderHandle<Self>) -> AnyRenderBox
fn as_box(self: RenderHandle<Self>) -> AnyRenderBox
RenderBox handle. Free: the vtable is a const, and the id is copied.Source§fn as_object(self: RenderHandle<Self>) -> AnyRenderObject
fn as_object(self: RenderHandle<Self>) -> AnyRenderObject
RenderObject handle, through as_box.Source§fn adopt_child(self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject)
fn adopt_child(self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject)
Source§fn drop_child(self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject)
fn drop_child(self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject)
Source§fn mark_needs_paint(self: RenderHandle<Self>, app: &mut App)
fn mark_needs_paint(self: RenderHandle<Self>, app: &mut App)
Source§fn mark_needs_composited_layer_update(self: RenderHandle<Self>, app: &mut App)
fn mark_needs_composited_layer_update(self: RenderHandle<Self>, app: &mut App)
Source§fn mark_needs_compositing_bits_update(self: RenderHandle<Self>, app: &mut App)
fn mark_needs_compositing_bits_update(self: RenderHandle<Self>, app: &mut App)
Source§fn schedule_initial_layout(self: RenderHandle<Self>, app: &mut App)
fn schedule_initial_layout(self: RenderHandle<Self>, app: &mut App)
Source§fn parent(self: RenderHandle<Self>, app: &App) -> Option<AnyRenderObject>
fn parent(self: RenderHandle<Self>, app: &App) -> Option<AnyRenderObject>
Source§fn owner(self: RenderHandle<Self>, app: &App) -> Option<Handle<PipelineOwner>>
fn owner(self: RenderHandle<Self>, app: &App) -> Option<Handle<PipelineOwner>>
Source§fn debug_needs_layout(self: RenderHandle<Self>, app: &App) -> bool
fn debug_needs_layout(self: RenderHandle<Self>, app: &App) -> bool
Source§impl RenderObject for RenderTransform
impl RenderObject for RenderTransform
Source§fn render_object_data(self: RenderHandle<Self>, app: &App) -> &RenderObjectData
fn render_object_data(self: RenderHandle<Self>, app: &App) -> &RenderObjectData
Source§fn render_object_data_mut(
self: RenderHandle<Self>,
app: &mut App,
) -> &mut RenderObjectData
fn render_object_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut RenderObjectData
render_object_data.Source§fn debug_fill_properties(
self: RenderHandle<Self>,
app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( self: RenderHandle<Self>, app: &App, properties: &mut DiagnosticPropertiesBuilder, )
debugFillProperties: the properties this class shows in a dump, after its base
classes’. A trait default cannot call super, so the framework adds RenderObject’s and
RenderBox’s or RenderSliver’s properties first and an override adds only its own,
in Dart’s order.Source§fn always_needs_compositing(self: RenderHandle<Self>, app: &App) -> bool
fn always_needs_compositing(self: RenderHandle<Self>, app: &App) -> bool
Source§fn perform_layout(self: RenderHandle<Self>, app: &mut App)
fn perform_layout(self: RenderHandle<Self>, app: &mut App)
Source§fn paint(
self: RenderHandle<Self>,
app: &mut App,
context: &mut PaintingContext,
offset: Offset,
)
fn paint( self: RenderHandle<Self>, app: &mut App, context: &mut PaintingContext, offset: Offset, )
Source§fn visit_children(
self: RenderHandle<Self>,
app: &App,
visitor: &mut dyn FnMut(AnyRenderObject),
)
fn visit_children( self: RenderHandle<Self>, app: &App, visitor: &mut dyn FnMut(AnyRenderObject), )
visitor for each immediate child.Source§fn as_render_object(self: RenderHandle<Self>, app: &App) -> AnyRenderObject
fn as_render_object(self: RenderHandle<Self>, app: &App) -> AnyRenderObject
RenderObject: this object’s
type-erased handle, through the vtable the protocol recorded when it created it.Source§fn perform_resize(self: RenderHandle<Self>, _app: &mut App)
fn perform_resize(self: RenderHandle<Self>, _app: &mut App)
Source§fn setup_parent_data(
self: RenderHandle<Self>,
app: &mut App,
child: AnyRenderObject,
)
fn setup_parent_data( self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject, )
child if it has none. Read moreSource§fn did_attach(
self: RenderHandle<Self>,
app: &mut App,
owner: Handle<PipelineOwner>,
)
fn did_attach( self: RenderHandle<Self>, app: &mut App, owner: Handle<PipelineOwner>, )
attach override after super.attach(owner); the base body has
already run. The default attaches the children reported by
visit_children.Source§fn did_detach(self: RenderHandle<Self>, app: &mut App)
fn did_detach(self: RenderHandle<Self>, app: &mut App)
detach override after super.detach(). The default detaches
the children reported by visit_children.Source§fn redepth_children(self: RenderHandle<Self>, app: &mut App)
fn redepth_children(self: RenderHandle<Self>, app: &mut App)
visit_children.Source§fn sized_by_parent(self: RenderHandle<Self>, _app: &App) -> bool
fn sized_by_parent(self: RenderHandle<Self>, _app: &App) -> bool
Source§fn apply_paint_transform(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
transform: &mut Matrix4,
)
fn apply_paint_transform( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, transform: &mut Matrix4, )
Source§fn describe_approximate_paint_clip(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
) -> Option<Rect>
fn describe_approximate_paint_clip( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, ) -> Option<Rect>
describeApproximatePaintClip: the rectangle, in this object’s coordinates, that
it clips child’s painting to, or None where it does not clip it. An estimate, for the
inspector’s screenshot bounds: a clip it may apply is enough.Source§fn paints_child(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
) -> bool
fn paints_child( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, ) -> bool
Source§fn is_repaint_boundary(self: RenderHandle<Self>, _app: &App) -> bool
fn is_repaint_boundary(self: RenderHandle<Self>, _app: &App) -> bool
Source§fn debug_fill_base_properties(
self: RenderHandle<Self>,
app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_base_properties( self: RenderHandle<Self>, app: &App, properties: &mut DiagnosticPropertiesBuilder, )
super.debugFillProperties as a class’s override calls it: RenderObject’s
properties, then RenderBox’s or RenderSliver’s, which the framework adds before
debug_fill_properties. A class whose Dart override leaves
the super call out, as RenderView’s does, overrides this to add nothing.Source§fn debug_describe_children(
self: RenderHandle<Self>,
app: &App,
) -> Vec<Rc<dyn DiagnosticsNode>>
fn debug_describe_children( self: RenderHandle<Self>, app: &App, ) -> Vec<Rc<dyn DiagnosticsNode>>
debugDescribeChildren: the children a dump shows under this object. Dart’s
default shows none and its child mixins name theirs (child; child 1, child 2, …);
this default shows the children visit_children visits, named
child when there is one and child 1, child 2, … when there are more, so a dump never
drops a child of a class that has not described its own.Source§fn mouse_tracker_annotation(
self: RenderHandle<Self>,
_app: &App,
) -> Option<MouseTrackerAnnotation>
fn mouse_tracker_annotation( self: RenderHandle<Self>, _app: &App, ) -> Option<MouseTrackerAnnotation>
this is MouseTrackerAnnotation: the annotation this render object implements,
read live each time the mouse tracker consults it. None for a render object that is
not an annotation, which is the default.Source§fn update_composited_layer(
self: RenderHandle<Self>,
app: &mut App,
old_layer: Option<AnyOffsetLayer>,
) -> AnyOffsetLayer
fn update_composited_layer( self: RenderHandle<Self>, app: &mut App, old_layer: Option<AnyOffsetLayer>, ) -> AnyOffsetLayer
Source§fn show_on_screen(
self: RenderHandle<Self>,
app: &mut App,
descendant: Option<AnyRenderObject>,
rect: Option<Rect>,
duration: Duration,
curve: Rc<dyn Curve>,
)
fn show_on_screen( self: RenderHandle<Self>, app: &mut App, descendant: Option<AnyRenderObject>, rect: Option<Rect>, duration: Duration, curve: Rc<dyn Curve>, )
RenderObject visible on screen. Read moreSource§impl RenderObjectWithChildMixin for RenderTransform
impl RenderObjectWithChildMixin for RenderTransform
Source§type ChildType = AnyRenderBox
type ChildType = AnyRenderBox
ChildType: the protocol of this render object’s child.Source§fn child_data(
self: RenderHandle<Self>,
app: &App,
) -> &RenderObjectWithChildData<AnyRenderBox>
fn child_data( self: RenderHandle<Self>, app: &App, ) -> &RenderObjectWithChildData<AnyRenderBox>
Source§fn child_data_mut(
self: RenderHandle<Self>,
app: &mut App,
) -> &mut RenderObjectWithChildData<AnyRenderBox>
fn child_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut RenderObjectWithChildData<AnyRenderBox>
child_data.Source§fn child(self: RenderHandle<Self>, app: &App) -> Option<Self::ChildType>
fn child(self: RenderHandle<Self>, app: &App) -> Option<Self::ChildType>
Source§fn debug_describe_children(
self: RenderHandle<Self>,
app: &App,
) -> Vec<Rc<dyn DiagnosticsNode>>
fn debug_describe_children( self: RenderHandle<Self>, app: &App, ) -> Vec<Rc<dyn DiagnosticsNode>>
RenderObjectWithChildMixin.debugDescribeChildren: the child, named child.
A class with this mixin answers RenderObject::debug_describe_children with it.Source§impl RenderProxyBoxMixin for RenderTransform
impl RenderProxyBoxMixin for RenderTransform
Source§fn setup_parent_data(
self: RenderHandle<Self>,
app: &mut App,
child: AnyRenderObject,
)
fn setup_parent_data( self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject, )
crate::BoxParentData.Source§fn apply_paint_transform(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
transform: &mut Matrix4,
)
fn apply_paint_transform( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, transform: &mut Matrix4, )
Source§fn compute_min_intrinsic_width(
self: RenderHandle<Self>,
app: &mut App,
height: f64,
) -> f64
fn compute_min_intrinsic_width( self: RenderHandle<Self>, app: &mut App, height: f64, ) -> f64
Source§fn compute_max_intrinsic_width(
self: RenderHandle<Self>,
app: &mut App,
height: f64,
) -> f64
fn compute_max_intrinsic_width( self: RenderHandle<Self>, app: &mut App, height: f64, ) -> f64
Source§fn compute_min_intrinsic_height(
self: RenderHandle<Self>,
app: &mut App,
width: f64,
) -> f64
fn compute_min_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64
Source§fn compute_max_intrinsic_height(
self: RenderHandle<Self>,
app: &mut App,
width: f64,
) -> f64
fn compute_max_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64
Source§fn compute_distance_to_actual_baseline(
self: RenderHandle<Self>,
app: &mut App,
baseline: TextBaseline,
) -> Option<f64>
fn compute_distance_to_actual_baseline( self: RenderHandle<Self>, app: &mut App, baseline: TextBaseline, ) -> Option<f64>
Source§fn compute_dry_baseline(
self: RenderHandle<Self>,
app: &mut App,
constraints: BoxConstraints,
baseline: TextBaseline,
) -> Option<f64>
fn compute_dry_baseline( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, baseline: TextBaseline, ) -> Option<f64>
Source§fn compute_dry_layout(
self: RenderHandle<Self>,
app: &mut App,
constraints: BoxConstraints,
) -> Size
fn compute_dry_layout( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, ) -> Size
compute_size_for_no_child.Source§fn perform_layout(self: RenderHandle<Self>, app: &mut App)
fn perform_layout(self: RenderHandle<Self>, app: &mut App)
Source§fn compute_size_for_no_child(
self: RenderHandle<Self>,
_app: &App,
constraints: BoxConstraints,
) -> Size
fn compute_size_for_no_child( self: RenderHandle<Self>, _app: &App, constraints: BoxConstraints, ) -> Size
Source§fn hit_test_children(
self: RenderHandle<Self>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
position: Offset,
) -> bool
fn hit_test_children( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool
Source§fn paint(
self: RenderHandle<Self>,
app: &mut App,
context: &mut PaintingContext,
offset: Offset,
)
fn paint( self: RenderHandle<Self>, app: &mut App, context: &mut PaintingContext, offset: Offset, )
Auto Trait Implementations§
impl !RefUnwindSafe for RenderTransform
impl !Send for RenderTransform
impl !Sync for RenderTransform
impl !UnwindSafe for RenderTransform
impl Forget for RenderTransform
impl Freeze for RenderTransformwhere
&'static RenderObjectVTable: Freeze,
NonZero<u32>: Freeze,
PhantomData<fn() -> PipelineOwner>: Freeze,
*const dyn ParentData is !null: Freeze,
PhantomData<dyn ParentData>: Freeze,
&'static ContainerLayerVTable: Freeze,
*const RcInner<dyn BoxConstraintsExtension> is !null: Freeze,
PhantomData<RcInner<dyn BoxConstraintsExtension>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<((IntrinsicDimension, DoubleKey), f64)>: Freeze,
PhantomData<(BoxConstraints, Size)>: Freeze,
PhantomData<(BoxConstraints, BaselineOffset)>: Freeze,
&'static RenderBoxVTable: Freeze,
impl Move for RenderTransform
impl Unpin for RenderTransform
impl UnsafeUnpin for RenderTransformwhere
&'static RenderObjectVTable: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
PhantomData<fn() -> PipelineOwner>: UnsafeUnpin,
*const dyn ParentData is !null: UnsafeUnpin,
PhantomData<dyn ParentData>: UnsafeUnpin,
&'static ContainerLayerVTable: UnsafeUnpin,
*const RcInner<dyn BoxConstraintsExtension> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn BoxConstraintsExtension>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<((IntrinsicDimension, DoubleKey), f64)>: UnsafeUnpin,
PhantomData<(BoxConstraints, Size)>: UnsafeUnpin,
PhantomData<(BoxConstraints, BaselineOffset)>: UnsafeUnpin,
&'static RenderBoxVTable: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> RenderBoxBase for Twhere
T: RenderBox,
impl<T> RenderBoxBase for Twhere
T: RenderBox,
Source§fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App)
fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App)
RenderBox.markNeedsLayout.Source§fn perform_resize(self: RenderHandle<Self>, app: &mut App)
fn perform_resize(self: RenderHandle<Self>, app: &mut App)
RenderBox.performResize.Source§fn hit_test(
self: RenderHandle<Self>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
position: Offset,
) -> bool
fn hit_test( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool
RenderBox.hitTest.Source§impl<T> RenderObjectBase for Twhere
T: RenderObject,
impl<T> RenderObjectBase for Twhere
T: RenderObject,
Source§fn dispose(self: RenderHandle<Self>, app: &mut App)
fn dispose(self: RenderHandle<Self>, app: &mut App)
RenderObject.dispose body: releases the layer handle. An override calls it
last, where Dart writes super.dispose().Source§fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App)
fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App)
RenderObject.markNeedsLayout body; an override calls it where Dart writes
super.markNeedsLayout().Source§fn show_on_screen(
self: RenderHandle<Self>,
app: &mut App,
descendant: Option<AnyRenderObject>,
rect: Option<Rect>,
duration: Duration,
curve: Rc<dyn Curve>,
)
fn show_on_screen( self: RenderHandle<Self>, app: &mut App, descendant: Option<AnyRenderObject>, rect: Option<Rect>, duration: Duration, curve: Rc<dyn Curve>, )
RenderObject.showOnScreen.