pub struct RenderTargetSceneInfo {
pub size: PixelSize,
pub scaling: f64,
pub logical_size: Size,
pub transparency_level: CompositionTransparencyLevel,
pub platform_specific_scene_info: Option<Arc<dyn Any + Send + Sync>>,
}Expand description
Describes the scene a drawing context is requested for.
Fields§
§size: PixelSizeThe scene size in device pixels.
scaling: f64The scaling from logical units to device pixels.
logical_size: SizeThe scene size in logical units.
transparency_level: CompositionTransparencyLevelThe transparency level the scene is composed with.
platform_specific_scene_info: Option<Arc<dyn Any + Send + Sync>>Backend-specific information about the scene.
Implementations§
Source§impl RenderTargetSceneInfo
impl RenderTargetSceneInfo
pub fn new( size: PixelSize, scaling: f64, transparency_level: CompositionTransparencyLevel, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RenderTargetSceneInfo
impl !UnwindSafe for RenderTargetSceneInfo
impl Freeze for RenderTargetSceneInfo
impl Send for RenderTargetSceneInfo
impl Sync for RenderTargetSceneInfo
impl Unpin for RenderTargetSceneInfo
impl UnsafeUnpin for RenderTargetSceneInfo
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