Skip to main content

ServerCompositionSimpleTileBrushProps

Struct ServerCompositionSimpleTileBrushProps 

Source
pub struct ServerCompositionSimpleTileBrushProps { /* private fields */ }
Expand description

The server-side properties of ServerCompositionSimpleTileBrush.

Implementations§

Source§

impl ServerCompositionSimpleTileBrushProps

Source

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.

Source

pub fn base(&self) -> &ServerCompositionSimpleBrushProps

The properties of the base class.

Source

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.

Source

pub fn id_of_alignment_x_property() -> &'static CompositionPropertyOf<AlignmentX>

The composition property of AlignmentX.

Source

pub fn alignment_x(&self) -> AlignmentX

AlignmentX.

Source

pub fn set_alignment_x( &self, host: &dyn ServerCompositionSimpleTileBrushHooks, value: AlignmentX, )

Source

pub fn id_of_alignment_y_property() -> &'static CompositionPropertyOf<AlignmentY>

The composition property of AlignmentY.

Source

pub fn alignment_y(&self) -> AlignmentY

AlignmentY.

Source

pub fn set_alignment_y( &self, host: &dyn ServerCompositionSimpleTileBrushHooks, value: AlignmentY, )

Source

pub fn id_of_destination_rect_property() -> &'static CompositionPropertyOf<RelativeRect>

The composition property of DestinationRect.

Source

pub fn destination_rect(&self) -> RelativeRect

DestinationRect.

Source

pub fn set_destination_rect( &self, host: &dyn ServerCompositionSimpleTileBrushHooks, value: RelativeRect, )

Source

pub fn id_of_source_rect_property() -> &'static CompositionPropertyOf<RelativeRect>

The composition property of SourceRect.

Source

pub fn source_rect(&self) -> RelativeRect

SourceRect.

Source

pub fn set_source_rect( &self, host: &dyn ServerCompositionSimpleTileBrushHooks, value: RelativeRect, )

Source

pub fn id_of_stretch_property() -> &'static CompositionPropertyOf<Stretch>

The composition property of Stretch.

Source

pub fn stretch(&self) -> Stretch

Stretch.

Source

pub fn set_stretch( &self, host: &dyn ServerCompositionSimpleTileBrushHooks, value: Stretch, )

Source

pub fn id_of_tile_mode_property() -> &'static CompositionPropertyOf<TileMode>

The composition property of TileMode.

Source

pub fn tile_mode(&self) -> TileMode

TileMode.

Source

pub fn set_tile_mode( &self, host: &dyn ServerCompositionSimpleTileBrushHooks, value: TileMode, )

Source

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.

Source

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§

Source§

impl Default for ServerCompositionSimpleTileBrushProps

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ClassDefaults for T
where T: ?Sized,

Source§

fn static_constructor()

The static constructor of a type: work done once per thread, after the properties of the type are registered and before its first instance exists (class handlers, affects_render, metadata overrides). Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.