Skip to main content

RenderPhysicalModelBase

Trait RenderPhysicalModelBase 

Source
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) { ... }
}
Expand description

The shared members of RenderPhysicalModel and RenderPhysicalShape; Flutter’s private _RenderPhysicalModelBase<T>.

Required Methods§

Provided Methods§

Source

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.

Source

fn set_elevation(self: RenderHandle<Self>, app: &mut App, value: f64)

Sets elevation.

Source

fn shadow_color(self: RenderHandle<Self>, app: &App) -> Color

The shadow color.

Source

fn set_shadow_color(self: RenderHandle<Self>, app: &mut App, value: Color)

Source

fn color(self: RenderHandle<Self>, app: &App) -> Color

The background color.

Source

fn set_color(self: RenderHandle<Self>, app: &mut App, value: Color)

Sets color.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§