pub struct ServerLoadedImageSurface { /* private fields */ }Expand description
The server-side counterpart of a
LoadedImageSurface:
a surface whose content is a bitmap given when it is created.
Implementations§
Source§impl ServerLoadedImageSurface
impl ServerLoadedImageSurface
Sourcepub fn new(
bitmap: Option<RefCounted<SharedBitmapImpl>>,
) -> Rc<ServerLoadedImageSurface>
pub fn new( bitmap: Option<RefCounted<SharedBitmapImpl>>, ) -> Rc<ServerLoadedImageSurface>
Creates the surface with its bitmap (None for an image that did not
load). The surface holds a reference to the bitmap until it is
disposed.
Trait Implementations§
Source§impl IServerCompositionSurface for ServerLoadedImageSurface
impl IServerCompositionSurface for ServerLoadedImageSurface
Source§fn changed(&self) -> &ServerCompositionSurfaceChanged
fn changed(&self) -> &ServerCompositionSurfaceChanged
Raised when the content changed.
Source§fn natural_size(&self) -> Option<Size>
fn natural_size(&self) -> Option<Size>
The size of the content in device independent pixels (the natural
size of WinUI’s surfaces), which a surface brush lays out;
None
while the surface has no content. The default is the size of the
bitmap at its DPI.Source§impl IServerObject for ServerLoadedImageSurface
impl IServerObject for ServerLoadedImageSurface
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.
fn as_any(&self) -> &dyn Any
fn into_any_rc(self: Rc<Self>) -> Rc<dyn Any>
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 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_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 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_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.
Auto Trait Implementations§
impl !Freeze for ServerLoadedImageSurface
impl !RefUnwindSafe for ServerLoadedImageSurface
impl !Send for ServerLoadedImageSurface
impl !Sync for ServerLoadedImageSurface
impl !UnwindSafe for ServerLoadedImageSurface
impl Unpin for ServerLoadedImageSurface
impl UnsafeUnpin for ServerLoadedImageSurface
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