pub struct ServerCompositionSimpleTileBrush { /* private fields */ }Expand description
The server-side counterpart of a mutable tile brush.
Implementations§
Source§impl ServerCompositionSimpleTileBrush
impl ServerCompositionSimpleTileBrush
pub fn new( compositor: &Rc<ServerCompositor>, ) -> Rc<ServerCompositionSimpleTileBrush>
Sourcepub fn to_rc(&self) -> Option<Rc<ServerCompositionSimpleTileBrush>>
pub fn to_rc(&self) -> Option<Rc<ServerCompositionSimpleTileBrush>>
The shared handle of the object, while it is alive.
pub fn is_disposed(&self) -> bool
Sourcepub fn brush_props(&self) -> &ServerCompositionSimpleBrushProps
pub fn brush_props(&self) -> &ServerCompositionSimpleBrushProps
The brush properties of the class.
Source§impl ServerCompositionSimpleTileBrush
impl ServerCompositionSimpleTileBrush
Sourcepub fn props(&self) -> &ServerCompositionSimpleTileBrushProps
pub fn props(&self) -> &ServerCompositionSimpleTileBrushProps
The properties of the brush.
Trait Implementations§
Source§impl IBrush for ServerCompositionSimpleTileBrush
impl IBrush for ServerCompositionSimpleTileBrush
Source§fn transform_origin(&self) -> RelativePoint
fn transform_origin(&self) -> RelativePoint
The origin of the brush
transform.Source§fn relative_transform(&self) -> Option<Rc<dyn ITransform>>
fn relative_transform(&self) -> Option<Rc<dyn ITransform>>
The transform of the brush, relative to the bounds of the painted
area.
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
The implementing value, for downcasts to immutable brush types. For
mutable brushes use
as_object.Source§fn as_tile_brush(&self) -> Option<&dyn ITileBrush>
fn as_tile_brush(&self) -> Option<&dyn ITileBrush>
The brush viewed as
ITileBrush, when it is one.Source§fn as_object(&self) -> Option<&FerroObject>
fn as_object(&self) -> Option<&FerroObject>
The object behind the brush when it is a mutable
Brush.Source§fn as_solid_color_brush(&self) -> Option<&dyn ISolidColorBrush>
fn as_solid_color_brush(&self) -> Option<&dyn ISolidColorBrush>
The brush viewed as
ISolidColorBrush, when it is one.Source§fn as_gradient_brush(&self) -> Option<&dyn IGradientBrush>
fn as_gradient_brush(&self) -> Option<&dyn IGradientBrush>
The brush viewed as
IGradientBrush, when it is one.Source§fn as_linear_gradient_brush(&self) -> Option<&dyn ILinearGradientBrush>
fn as_linear_gradient_brush(&self) -> Option<&dyn ILinearGradientBrush>
The brush viewed as
ILinearGradientBrush, when it is one.Source§fn as_radial_gradient_brush(&self) -> Option<&dyn IRadialGradientBrush>
fn as_radial_gradient_brush(&self) -> Option<&dyn IRadialGradientBrush>
The brush viewed as
IRadialGradientBrush, when it is one.Source§fn as_conic_gradient_brush(&self) -> Option<&dyn IConicGradientBrush>
fn as_conic_gradient_brush(&self) -> Option<&dyn IConicGradientBrush>
The brush viewed as
IConicGradientBrush, when it is one.Source§fn as_image_brush(&self) -> Option<&dyn IImageBrush>
fn as_image_brush(&self) -> Option<&dyn IImageBrush>
The brush viewed as
IImageBrush, when it is one.Source§fn as_scene_brush(&self) -> Option<&dyn ISceneBrush>
fn as_scene_brush(&self) -> Option<&dyn ISceneBrush>
The brush viewed as
ISceneBrush, when it is one.Source§fn as_mutable_brush(&self) -> Option<&dyn IMutableBrush>
fn as_mutable_brush(&self) -> Option<&dyn IMutableBrush>
The brush viewed as
IMutableBrush, when it is one.Source§fn as_immutable_brush(&self) -> Option<&dyn IImmutableBrush>
fn as_immutable_brush(&self) -> Option<&dyn IImmutableBrush>
The brush viewed as
IImmutableBrush, when it is one (the is IImmutableBrush test of upstream).Source§fn as_composition_render_resource(
&self,
) -> Option<&dyn ICompositionRenderResource>
fn as_composition_render_resource( &self, ) -> Option<&dyn ICompositionRenderResource>
The composition render resource behind the object, if it is a
mutable object with server-side counterparts on the compositors it
is drawn with.
Source§fn as_composition_brush(&self) -> Option<&CompositionBrush>
fn as_composition_brush(&self) -> Option<&CompositionBrush>
The brush as a composition brush, when it is one (the
is CompositionBrush test of upstream).Source§fn into_immutable_brush(self: Rc<Self>) -> Option<Rc<dyn IImmutableBrush>>
fn into_immutable_brush(self: Rc<Self>) -> Option<Rc<dyn IImmutableBrush>>
The brush as an
IImmutableBrush handle, when it is immutable.The form of the brush that is sent to the render thread, when the
type keeps one: see
SharedBrush. An
immutable brush creates it once, so its identity is stable.Source§impl IServerObject for ServerCompositionSimpleTileBrush
impl IServerObject for ServerCompositionSimpleTileBrush
Source§fn deserialize_changes_core(
&self,
reader: &mut BatchStreamReader<'_>,
committed_at: Duration,
)
fn deserialize_changes_core( &self, reader: &mut BatchStreamReader<'_>, committed_at: Duration, )
Reads the changes of the object from a batch.
Source§fn values_invalidated(&self)
fn values_invalidated(&self)
Called after a group of values of the object changed.
Source§fn as_render_resource(self: Rc<Self>) -> Option<Rc<dyn IServerRenderResource>>
fn as_render_resource(self: Rc<Self>) -> Option<Rc<dyn IServerRenderResource>>
The object as a render resource, if it is one.
Source§fn as_brush(self: Rc<Self>) -> Option<Rc<dyn IBrush>>
fn as_brush(self: Rc<Self>) -> Option<Rc<dyn IBrush>>
The object as a brush, if it is a server-side brush.
Source§fn get_props(&self, type_id: TypeId) -> Option<&dyn Any>
fn get_props(&self, type_id: TypeId) -> Option<&dyn Any>
The generated property block of the given type embedded in the
object, if it has one. A class that embeds generated properties
forwards to their
find_props; composition properties locate their
fields through it.fn as_any(&self) -> &dyn Any
fn into_any_rc(self: Rc<Self>) -> Rc<dyn Any>
Source§fn deserialize_changes(
&self,
reader: &mut BatchStreamReader<'_>,
committed_at: Duration,
)
fn deserialize_changes( &self, reader: &mut BatchStreamReader<'_>, committed_at: Duration, )
Applies the changes of the object from a batch.
Source§fn as_pen(self: Rc<Self>) -> Option<Rc<dyn IPen>>
fn as_pen(self: Rc<Self>) -> Option<Rc<dyn IPen>>
The object as a pen, if it is a server-side pen.
Source§fn as_render_data_geometry(
self: Rc<Self>,
) -> Option<Rc<dyn IRenderDataGeometry>>
fn as_render_data_geometry( self: Rc<Self>, ) -> Option<Rc<dyn IRenderDataGeometry>>
The object as a geometry usable by render data, if it is a
server-side geometry.
Source§fn as_transform(self: Rc<Self>) -> Option<Rc<dyn ITransform>>
fn as_transform(self: Rc<Self>) -> Option<Rc<dyn ITransform>>
The object as a transform, if it is a server-side transform.
Source§fn as_gradient_stop(self: Rc<Self>) -> Option<Rc<dyn IGradientStop>>
fn as_gradient_stop(self: Rc<Self>) -> Option<Rc<dyn IGradientStop>>
The object as a gradient stop, if it is a server-side gradient stop.
Source§fn as_surface(self: Rc<Self>) -> Option<Rc<dyn IServerCompositionSurface>>
fn as_surface(self: Rc<Self>) -> Option<Rc<dyn IServerCompositionSurface>>
The object as a composition surface, if it is one.
Source§fn as_animated(self: Rc<Self>) -> Option<Rc<dyn IAnimatedServerObject>>
fn as_animated(self: Rc<Self>) -> Option<Rc<dyn IAnimatedServerObject>>
The object as an animatable object, if it is one.
Source§impl IServerPropertyHost for ServerCompositionSimpleTileBrush
impl IServerPropertyHost for ServerCompositionSimpleTileBrush
Source§fn server_compositor(&self) -> Option<Rc<ServerCompositor>>
fn server_compositor(&self) -> Option<Rc<ServerCompositor>>
The compositor of the object, while it is alive. Used to resolve the
server objects a batch refers to.
Source§fn set_value(
&self,
_property: &'static CompositionProperty,
change: ServerValueChange<'_>,
)
fn set_value( &self, _property: &'static CompositionProperty, change: ServerValueChange<'_>, )
SetValue(prop, ref field, value) as the class of the object
defines it. A plain server object assigns; an animated object also
invalidates the subscriptions of the property; a render resource
goes through super::ServerRenderResourceCore::set_value.Source§impl IServerRenderResource for ServerCompositionSimpleTileBrush
impl IServerRenderResource for ServerCompositionSimpleTileBrush
fn add_observer(&self, observer: &Rc<dyn IServerRenderResourceObserver>)
fn remove_observer(&self, observer: &Rc<dyn IServerRenderResourceObserver>)
fn queued_invalidate(&self)
Source§impl IServerRenderResourceHost for ServerCompositionSimpleTileBrush
impl IServerRenderResourceHost for ServerCompositionSimpleTileBrush
Source§fn compositor(&self) -> Option<Rc<ServerCompositor>>
fn compositor(&self) -> Option<Rc<ServerCompositor>>
The compositor of the resource, while it is alive.
Source§fn as_render_resource_rc(&self) -> Option<Rc<dyn IServerRenderResource>>
fn as_render_resource_rc(&self) -> Option<Rc<dyn IServerRenderResource>>
The resource as a shared handle, for the invalidation queue.
Source§fn resource_property_changed(&self)
fn resource_property_changed(&self)
Called once per group of property changes, before the queued
invalidation.
Source§impl IServerRenderResourceObserver for ServerCompositionSimpleTileBrush
impl IServerRenderResourceObserver for ServerCompositionSimpleTileBrush
fn dependency_queued_invalidate(&self, _sender: &dyn IServerRenderResource)
Source§impl ITileBrush for ServerCompositionSimpleTileBrush
impl ITileBrush for ServerCompositionSimpleTileBrush
Source§fn alignment_x(&self) -> AlignmentX
fn alignment_x(&self) -> AlignmentX
The horizontal alignment of a tile in the destination.
Source§fn alignment_y(&self) -> AlignmentY
fn alignment_y(&self) -> AlignmentY
The vertical alignment of a tile in the destination.
Source§fn destination_rect(&self) -> RelativeRect
fn destination_rect(&self) -> RelativeRect
The rectangle on the destination in which to paint a tile.
Source§fn source_rect(&self) -> RelativeRect
fn source_rect(&self) -> RelativeRect
The rectangle of the source image that will be displayed.
Source§impl ServerCompositionSimpleBrushHooks for ServerCompositionSimpleTileBrush
impl ServerCompositionSimpleBrushHooks for ServerCompositionSimpleTileBrush
fn deserialize_changes_extra(&self, _reader: &mut BatchStreamReader<'_>)
fn on_fields_deserialized(&self, _changed: CompositionSimpleBrushChangedFields)
fn on_opacity_changed(&self)
fn on_opacity_changing(&self)
fn on_transform_origin_changed(&self)
fn on_transform_origin_changing(&self)
fn on_transform_changed(&self)
fn on_transform_changing(&self)
fn on_relative_transform_changed(&self)
fn on_relative_transform_changing(&self)
Source§impl ServerCompositionSimpleTileBrushHooks for ServerCompositionSimpleTileBrush
impl ServerCompositionSimpleTileBrushHooks for ServerCompositionSimpleTileBrush
fn deserialize_changes_extra(&self, _reader: &mut BatchStreamReader<'_>)
fn on_fields_deserialized( &self, _changed: CompositionSimpleTileBrushChangedFields, )
fn on_alignment_x_changed(&self)
fn on_alignment_x_changing(&self)
fn on_alignment_y_changed(&self)
fn on_alignment_y_changing(&self)
fn on_destination_rect_changed(&self)
fn on_destination_rect_changing(&self)
fn on_source_rect_changed(&self)
fn on_source_rect_changing(&self)
fn on_stretch_changed(&self)
fn on_stretch_changing(&self)
fn on_tile_mode_changed(&self)
fn on_tile_mode_changing(&self)
Auto Trait Implementations§
impl !Freeze for ServerCompositionSimpleTileBrush
impl !RefUnwindSafe for ServerCompositionSimpleTileBrush
impl !Send for ServerCompositionSimpleTileBrush
impl !Sync for ServerCompositionSimpleTileBrush
impl !UnwindSafe for ServerCompositionSimpleTileBrush
impl Unpin for ServerCompositionSimpleTileBrush
impl UnsafeUnpin for ServerCompositionSimpleTileBrush
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
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
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