pub struct ServerCompositionSimplePenProps { /* private fields */ }Expand description
The server-side properties of ServerCompositionSimplePen.
Implementations§
Source§impl ServerCompositionSimplePenProps
impl ServerCompositionSimplePenProps
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 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_brush_property() -> &'static CompositionPropertyOf<Option<ServerResourceRef<dyn IBrush>>>
pub fn id_of_brush_property() -> &'static CompositionPropertyOf<Option<ServerResourceRef<dyn IBrush>>>
The composition property of Brush.
Sourcepub fn brush(&self) -> Option<ServerResourceRef<dyn IBrush>>
pub fn brush(&self) -> Option<ServerResourceRef<dyn IBrush>>
Brush.
pub fn set_brush( &self, host: &dyn ServerCompositionSimplePenHooks, value: Option<ServerResourceRef<dyn IBrush>>, )
Sourcepub fn id_of_dash_style_property() -> &'static CompositionPropertyOf<Option<Arc<ImmutableDashStyle>>>
pub fn id_of_dash_style_property() -> &'static CompositionPropertyOf<Option<Arc<ImmutableDashStyle>>>
The composition property of DashStyle.
Sourcepub fn dash_style(&self) -> Option<Arc<ImmutableDashStyle>>
pub fn dash_style(&self) -> Option<Arc<ImmutableDashStyle>>
DashStyle.
pub fn set_dash_style( &self, host: &dyn ServerCompositionSimplePenHooks, value: Option<Arc<ImmutableDashStyle>>, )
Sourcepub fn id_of_line_cap_property() -> &'static CompositionPropertyOf<PenLineCap>
pub fn id_of_line_cap_property() -> &'static CompositionPropertyOf<PenLineCap>
The composition property of LineCap.
Sourcepub fn line_cap(&self) -> PenLineCap
pub fn line_cap(&self) -> PenLineCap
LineCap.
pub fn set_line_cap( &self, host: &dyn ServerCompositionSimplePenHooks, value: PenLineCap, )
Sourcepub fn id_of_line_join_property() -> &'static CompositionPropertyOf<PenLineJoin>
pub fn id_of_line_join_property() -> &'static CompositionPropertyOf<PenLineJoin>
The composition property of LineJoin.
Sourcepub fn line_join(&self) -> PenLineJoin
pub fn line_join(&self) -> PenLineJoin
LineJoin.
pub fn set_line_join( &self, host: &dyn ServerCompositionSimplePenHooks, value: PenLineJoin, )
Sourcepub fn id_of_miter_limit_property() -> &'static CompositionPropertyOf<f64>
pub fn id_of_miter_limit_property() -> &'static CompositionPropertyOf<f64>
The composition property of MiterLimit.
Sourcepub fn miter_limit(&self) -> f64
pub fn miter_limit(&self) -> f64
MiterLimit.
pub fn set_miter_limit( &self, host: &dyn ServerCompositionSimplePenHooks, value: f64, )
Sourcepub fn id_of_thickness_property() -> &'static CompositionPropertyOf<f64>
pub fn id_of_thickness_property() -> &'static CompositionPropertyOf<f64>
The composition property of Thickness.
pub fn set_thickness( &self, host: &dyn ServerCompositionSimplePenHooks, value: f64, )
Sourcepub fn deserialize_changes_core(
&self,
host: &dyn ServerCompositionSimplePenHooks,
reader: &mut BatchStreamReader<'_>,
_committed_at: Duration,
)
pub fn deserialize_changes_core( &self, host: &dyn ServerCompositionSimplePenHooks, 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<'_>,
brush: Option<BatchResource<dyn IBrush>>,
dash_style: Option<Arc<ImmutableDashStyle>>,
line_cap: PenLineCap,
line_join: PenLineJoin,
miter_limit: f64,
thickness: f64,
)
pub fn serialize_all_changes( writer: &mut BatchStreamWriter<'_>, brush: Option<BatchResource<dyn IBrush>>, dash_style: Option<Arc<ImmutableDashStyle>>, line_cap: PenLineCap, line_join: PenLineJoin, miter_limit: f64, thickness: f64, )
Writes every property of the class, in the form
deserialize_changes_core reads.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ServerCompositionSimplePenProps
impl !RefUnwindSafe for ServerCompositionSimplePenProps
impl !Send for ServerCompositionSimplePenProps
impl !Sync for ServerCompositionSimplePenProps
impl !UnwindSafe for ServerCompositionSimplePenProps
impl Unpin for ServerCompositionSimplePenProps
impl UnsafeUnpin for ServerCompositionSimplePenProps
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