pub struct ServerCompositionSimpleTileBrushProps { /* private fields */ }Expand description
The server-side properties of ServerCompositionSimpleTileBrush.
Implementations§
Source§impl ServerCompositionSimpleTileBrushProps
impl ServerCompositionSimpleTileBrushProps
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates the properties with every field at the default of its type; the values of the UI thread arrive with the first batch.
Sourcepub fn base(&self) -> &ServerCompositionSimpleBrushProps
pub fn base(&self) -> &ServerCompositionSimpleBrushProps
The properties of the base class.
Sourcepub fn find_props(&self, type_id: TypeId) -> Option<&dyn Any>
pub fn find_props(&self, type_id: TypeId) -> Option<&dyn Any>
This block or the block of a base class, by type: what
IServerObject::get_props of the embedding class returns.
Sourcepub fn id_of_alignment_x_property() -> &'static CompositionPropertyOf<AlignmentX>
pub fn id_of_alignment_x_property() -> &'static CompositionPropertyOf<AlignmentX>
The composition property of AlignmentX.
Sourcepub fn alignment_x(&self) -> AlignmentX
pub fn alignment_x(&self) -> AlignmentX
AlignmentX.
pub fn set_alignment_x( &self, host: &dyn ServerCompositionSimpleTileBrushHooks, value: AlignmentX, )
Sourcepub fn id_of_alignment_y_property() -> &'static CompositionPropertyOf<AlignmentY>
pub fn id_of_alignment_y_property() -> &'static CompositionPropertyOf<AlignmentY>
The composition property of AlignmentY.
Sourcepub fn alignment_y(&self) -> AlignmentY
pub fn alignment_y(&self) -> AlignmentY
AlignmentY.
pub fn set_alignment_y( &self, host: &dyn ServerCompositionSimpleTileBrushHooks, value: AlignmentY, )
Sourcepub fn id_of_destination_rect_property() -> &'static CompositionPropertyOf<RelativeRect>
pub fn id_of_destination_rect_property() -> &'static CompositionPropertyOf<RelativeRect>
The composition property of DestinationRect.
Sourcepub fn destination_rect(&self) -> RelativeRect
pub fn destination_rect(&self) -> RelativeRect
DestinationRect.
pub fn set_destination_rect( &self, host: &dyn ServerCompositionSimpleTileBrushHooks, value: RelativeRect, )
Sourcepub fn id_of_source_rect_property() -> &'static CompositionPropertyOf<RelativeRect>
pub fn id_of_source_rect_property() -> &'static CompositionPropertyOf<RelativeRect>
The composition property of SourceRect.
Sourcepub fn source_rect(&self) -> RelativeRect
pub fn source_rect(&self) -> RelativeRect
SourceRect.
pub fn set_source_rect( &self, host: &dyn ServerCompositionSimpleTileBrushHooks, value: RelativeRect, )
Sourcepub fn id_of_stretch_property() -> &'static CompositionPropertyOf<Stretch>
pub fn id_of_stretch_property() -> &'static CompositionPropertyOf<Stretch>
The composition property of Stretch.
pub fn set_stretch( &self, host: &dyn ServerCompositionSimpleTileBrushHooks, value: Stretch, )
Sourcepub fn id_of_tile_mode_property() -> &'static CompositionPropertyOf<TileMode>
pub fn id_of_tile_mode_property() -> &'static CompositionPropertyOf<TileMode>
The composition property of TileMode.
pub fn set_tile_mode( &self, host: &dyn ServerCompositionSimpleTileBrushHooks, value: TileMode, )
Sourcepub fn deserialize_changes_core(
&self,
host: &dyn ServerCompositionSimpleTileBrushHooks,
reader: &mut BatchStreamReader<'_>,
committed_at: Duration,
)
pub fn deserialize_changes_core( &self, host: &dyn ServerCompositionSimpleTileBrushHooks, reader: &mut BatchStreamReader<'_>, committed_at: Duration, )
Reads the changes of the object: the base class first, then the changed-fields mask and the changed members of this class.
Sourcepub fn serialize_all_changes(
writer: &mut BatchStreamWriter<'_>,
alignment_x: AlignmentX,
alignment_y: AlignmentY,
destination_rect: RelativeRect,
source_rect: RelativeRect,
stretch: Stretch,
tile_mode: TileMode,
)
pub fn serialize_all_changes( writer: &mut BatchStreamWriter<'_>, alignment_x: AlignmentX, alignment_y: AlignmentY, destination_rect: RelativeRect, source_rect: RelativeRect, stretch: Stretch, tile_mode: TileMode, )
Writes every property of the class, in the form
deserialize_changes_core reads.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ServerCompositionSimpleTileBrushProps
impl !RefUnwindSafe for ServerCompositionSimpleTileBrushProps
impl !Send for ServerCompositionSimpleTileBrushProps
impl !Sync for ServerCompositionSimpleTileBrushProps
impl !UnwindSafe for ServerCompositionSimpleTileBrushProps
impl Unpin for ServerCompositionSimpleTileBrushProps
impl UnsafeUnpin for ServerCompositionSimpleTileBrushProps
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