pub trait RenderPhysicalModelBase<T: Clone + 'static>: RenderCustomClip<T> {
// Required methods
fn physical_model_data(
self: RenderHandle<Self>,
app: &App,
) -> &RenderPhysicalModelBaseData;
fn physical_model_data_mut(
self: RenderHandle<Self>,
app: &mut App,
) -> &mut RenderPhysicalModelBaseData;
// Provided methods
fn elevation(self: RenderHandle<Self>, app: &App) -> f64 { ... }
fn set_elevation(self: RenderHandle<Self>, app: &mut App, value: f64) { ... }
fn shadow_color(self: RenderHandle<Self>, app: &App) -> Color { ... }
fn set_shadow_color(self: RenderHandle<Self>, app: &mut App, value: Color) { ... }
fn color(self: RenderHandle<Self>, app: &App) -> Color { ... }
fn set_color(self: RenderHandle<Self>, app: &mut App, value: Color) { ... }
fn debug_fill_properties(
self: RenderHandle<Self>,
app: &App,
properties: &mut DiagnosticPropertiesBuilder,
) { ... }
}Expand description
The shared members of RenderPhysicalModel and RenderPhysicalShape; Flutter’s private
_RenderPhysicalModelBase<T>.
Required Methods§
Sourcefn physical_model_data(
self: RenderHandle<Self>,
app: &App,
) -> &RenderPhysicalModelBaseData
fn physical_model_data( self: RenderHandle<Self>, app: &App, ) -> &RenderPhysicalModelBaseData
Mixin field access.
Sourcefn physical_model_data_mut(
self: RenderHandle<Self>,
app: &mut App,
) -> &mut RenderPhysicalModelBaseData
fn physical_model_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut RenderPhysicalModelBaseData
See physical_model_data.
Provided Methods§
Sourcefn elevation(self: RenderHandle<Self>, app: &App) -> f64
fn elevation(self: RenderHandle<Self>, app: &App) -> f64
The z-coordinate relative to the parent at which to place this material.
The value is non-negative.
Sourcefn set_elevation(self: RenderHandle<Self>, app: &mut App, value: f64)
fn set_elevation(self: RenderHandle<Self>, app: &mut App, value: f64)
Sets elevation.
Sourcefn shadow_color(self: RenderHandle<Self>, app: &App) -> Color
fn shadow_color(self: RenderHandle<Self>, app: &App) -> Color
The shadow color.
Sourcefn set_shadow_color(self: RenderHandle<Self>, app: &mut App, value: Color)
fn set_shadow_color(self: RenderHandle<Self>, app: &mut App, value: Color)
Sets shadow_color.
Sourcefn color(self: RenderHandle<Self>, app: &App) -> Color
fn color(self: RenderHandle<Self>, app: &App) -> Color
The background color.
Sourcefn debug_fill_properties(
self: RenderHandle<Self>,
app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( self: RenderHandle<Self>, app: &App, properties: &mut DiagnosticPropertiesBuilder, )
Dart’s _RenderPhysicalModelBase.debugFillProperties: what a subclass’s own override
adds before its properties.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".