pub struct CompositionNineGridBrushProps { /* private fields */ }Expand description
The UI-thread properties of CompositionNineGridBrush.
Implementations§
Source§impl CompositionNineGridBrushProps
impl CompositionNineGridBrushProps
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates the properties with every field at the default of its type.
The defaults of the schema are applied by
initialize_defaults.
Sourcepub fn base(&self) -> &CompositionBrushProps
pub fn base(&self) -> &CompositionBrushProps
The properties of the base class.
Sourcepub fn initialize_defaults(&self, host: &dyn CompositionNineGridBrushHooks)
pub fn initialize_defaults(&self, host: &dyn CompositionNineGridBrushHooks)
The InitializeDefaults calls of the constructor chain: the base
classes first, then this class.
Sourcepub fn initialize_own_defaults(&self, host: &dyn CompositionNineGridBrushHooks)
pub fn initialize_own_defaults(&self, host: &dyn CompositionNineGridBrushHooks)
InitializeDefaults of this class alone.
Sourcepub fn source(&self) -> Option<Rc<dyn ICompositionObject>>
pub fn source(&self) -> Option<Rc<dyn ICompositionObject>>
Source (FerroUI overlay).
Sourcepub fn set_source(
&self,
host: &dyn CompositionNineGridBrushHooks,
value: Option<Rc<dyn ICompositionObject>>,
)
pub fn set_source( &self, host: &dyn CompositionNineGridBrushHooks, value: Option<Rc<dyn ICompositionObject>>, )
Sets Source (FerroUI overlay).
Sourcepub fn left_inset(&self) -> f32
pub fn left_inset(&self) -> f32
LeftInset (animated, FerroUI overlay).
Sourcepub fn set_left_inset(
&self,
host: &dyn CompositionNineGridBrushHooks,
value: f32,
)
pub fn set_left_inset( &self, host: &dyn CompositionNineGridBrushHooks, value: f32, )
Sets LeftInset (animated, FerroUI overlay).
Sourcepub fn set_top_inset(
&self,
host: &dyn CompositionNineGridBrushHooks,
value: f32,
)
pub fn set_top_inset( &self, host: &dyn CompositionNineGridBrushHooks, value: f32, )
Sets TopInset (animated, FerroUI overlay).
Sourcepub fn right_inset(&self) -> f32
pub fn right_inset(&self) -> f32
RightInset (animated, FerroUI overlay).
Sourcepub fn set_right_inset(
&self,
host: &dyn CompositionNineGridBrushHooks,
value: f32,
)
pub fn set_right_inset( &self, host: &dyn CompositionNineGridBrushHooks, value: f32, )
Sets RightInset (animated, FerroUI overlay).
Sourcepub fn bottom_inset(&self) -> f32
pub fn bottom_inset(&self) -> f32
BottomInset (animated, FerroUI overlay).
Sourcepub fn set_bottom_inset(
&self,
host: &dyn CompositionNineGridBrushHooks,
value: f32,
)
pub fn set_bottom_inset( &self, host: &dyn CompositionNineGridBrushHooks, value: f32, )
Sets BottomInset (animated, FerroUI overlay).
Sourcepub fn left_inset_scale(&self) -> f32
pub fn left_inset_scale(&self) -> f32
LeftInsetScale (animated, default 1.0, FerroUI overlay).
Sourcepub fn set_left_inset_scale(
&self,
host: &dyn CompositionNineGridBrushHooks,
value: f32,
)
pub fn set_left_inset_scale( &self, host: &dyn CompositionNineGridBrushHooks, value: f32, )
Sets LeftInsetScale (animated, default 1.0, FerroUI overlay).
Sourcepub fn top_inset_scale(&self) -> f32
pub fn top_inset_scale(&self) -> f32
TopInsetScale (animated, default 1.0, FerroUI overlay).
Sourcepub fn set_top_inset_scale(
&self,
host: &dyn CompositionNineGridBrushHooks,
value: f32,
)
pub fn set_top_inset_scale( &self, host: &dyn CompositionNineGridBrushHooks, value: f32, )
Sets TopInsetScale (animated, default 1.0, FerroUI overlay).
Sourcepub fn right_inset_scale(&self) -> f32
pub fn right_inset_scale(&self) -> f32
RightInsetScale (animated, default 1.0, FerroUI overlay).
Sourcepub fn set_right_inset_scale(
&self,
host: &dyn CompositionNineGridBrushHooks,
value: f32,
)
pub fn set_right_inset_scale( &self, host: &dyn CompositionNineGridBrushHooks, value: f32, )
Sets RightInsetScale (animated, default 1.0, FerroUI overlay).
Sourcepub fn bottom_inset_scale(&self) -> f32
pub fn bottom_inset_scale(&self) -> f32
BottomInsetScale (animated, default 1.0, FerroUI overlay).
Sourcepub fn set_bottom_inset_scale(
&self,
host: &dyn CompositionNineGridBrushHooks,
value: f32,
)
pub fn set_bottom_inset_scale( &self, host: &dyn CompositionNineGridBrushHooks, value: f32, )
Sets BottomInsetScale (animated, default 1.0, FerroUI overlay).
Sourcepub fn is_center_hollow(&self) -> bool
pub fn is_center_hollow(&self) -> bool
IsCenterHollow (FerroUI overlay).
Sourcepub fn set_is_center_hollow(
&self,
host: &dyn CompositionNineGridBrushHooks,
value: bool,
)
pub fn set_is_center_hollow( &self, host: &dyn CompositionNineGridBrushHooks, value: bool, )
Sets IsCenterHollow (FerroUI overlay).
Sourcepub fn start_animation(
&self,
host: &dyn CompositionNineGridBrushHooks,
property_name: &str,
animation: &dyn ICompositionAnimation,
final_value: Option<ExpressionVariant>,
) -> bool
pub fn start_animation( &self, host: &dyn CompositionNineGridBrushHooks, property_name: &str, animation: &dyn ICompositionAnimation, final_value: Option<ExpressionVariant>, ) -> bool
Connects an animation with the named property. Returns false when
neither this class nor its generated bases have an animated property
of that name: the caller continues with its hand-written base.
Sourcepub fn serialize_changes_core(
&self,
host: &dyn CompositionNineGridBrushHooks,
writer: &mut BatchStreamWriter<'_>,
)
pub fn serialize_changes_core( &self, host: &dyn CompositionNineGridBrushHooks, writer: &mut BatchStreamWriter<'_>, )
Writes the changes of the object: the base class first, then the changed-fields mask and the changed members of this class.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CompositionNineGridBrushProps
impl !RefUnwindSafe for CompositionNineGridBrushProps
impl !Send for CompositionNineGridBrushProps
impl !Sync for CompositionNineGridBrushProps
impl !UnwindSafe for CompositionNineGridBrushProps
impl Unpin for CompositionNineGridBrushProps
impl UnsafeUnpin for CompositionNineGridBrushProps
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more