pub struct ServerCompositionExperimentalAcrylicVisual { /* private fields */ }Expand description
Server-side counterpart of CompositionExperimentalAcrylicVisual: a
draw list visual that draws an acrylic rectangle below its content.
Implementations§
Source§impl ServerCompositionExperimentalAcrylicVisual
impl ServerCompositionExperimentalAcrylicVisual
pub fn new() -> Self
pub fn props(&self) -> &ServerCompositionExperimentalAcrylicVisualProps
Trait Implementations§
Source§impl IServerVisualContent for ServerCompositionExperimentalAcrylicVisual
impl IServerVisualContent for ServerCompositionExperimentalAcrylicVisual
Source§fn deserialize_changes_core(
&self,
visual: &ServerCompositionVisual,
reader: &mut BatchStreamReader<'_>,
committed_at: Duration,
)
fn deserialize_changes_core( &self, visual: &ServerCompositionVisual, reader: &mut BatchStreamReader<'_>, committed_at: Duration, )
DeserializeChangesCore of the class; the default is the one of the
container visual.fn render_core( &self, visual: &ServerCompositionVisual, context: &mut ServerVisualRenderContext<'_>, current_transformed_clip: LtrbRect, )
fn compute_own_content_bounds( &self, visual: &ServerCompositionVisual, ) -> Option<LtrbRect>
fn size_changed(&self, visual: &ServerCompositionVisual)
Source§fn dependency_queued_invalidate(&self, visual: &ServerCompositionVisual)
fn dependency_queued_invalidate(&self, visual: &ServerCompositionVisual)
A render resource the content depends on changed.
Source§fn dispose(&self, visual: &ServerCompositionVisual)
fn dispose(&self, visual: &ServerCompositionVisual)
The visual has been disposed on the UI thread.
Source§fn find_props(&self, type_id: TypeId) -> Option<&dyn Any>
fn find_props(&self, type_id: TypeId) -> Option<&dyn Any>
The generated property block of the given type, if the class has
one of its own.
fn as_any(&self) -> &dyn Any
fn on_attached_to_root( &self, _visual: &ServerCompositionVisual, _target: &Rc<ServerCompositionTarget>, )
fn on_detached_from_root( &self, _visual: &ServerCompositionVisual, _target: &Rc<ServerCompositionTarget>, )
fn push_clip_to_bounds( &self, visual: &ServerCompositionVisual, canvas: &mut dyn IDrawingContextImpl, )
fn has_effect(&self, visual: &ServerCompositionVisual) -> bool
fn get_composition_property( &self, name: &str, ) -> Option<&'static CompositionProperty>
Auto Trait Implementations§
impl !Freeze for ServerCompositionExperimentalAcrylicVisual
impl !RefUnwindSafe for ServerCompositionExperimentalAcrylicVisual
impl !Send for ServerCompositionExperimentalAcrylicVisual
impl !Sync for ServerCompositionExperimentalAcrylicVisual
impl !UnwindSafe for ServerCompositionExperimentalAcrylicVisual
impl Unpin for ServerCompositionExperimentalAcrylicVisual
impl UnsafeUnpin for ServerCompositionExperimentalAcrylicVisual
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