pub struct RenderRequest {
pub target: ColorTarget,
pub required: PixelDescriptor,
pub region: Option<Rect>,
pub conversion: ConvertOptions,
}Expand description
Required display output. No unsupported setting is silently ignored.
Fields§
§target: ColorTargetRequired output color space.
required: PixelDescriptorRequired packed pixel descriptor, including alpha interpretation.
region: Option<Rect>Oriented canvas coordinates. None requests the full oriented canvas.
conversion: ConvertOptionsExplicit conversion behavior, including clipping and channel loss.
Implementations§
Source§impl RenderRequest
impl RenderRequest
Sourcepub fn new(required: PixelDescriptor) -> Self
pub fn new(required: PixelDescriptor) -> Self
Require a descriptor in the current sample color space.
Sourcepub fn with_target(self, target: ColorTarget) -> Self
pub fn with_target(self, target: ColorTarget) -> Self
Set an explicit output color space.
Sourcepub fn with_region(self, region: Option<Rect>) -> Self
pub fn with_region(self, region: Option<Rect>) -> Self
Select an oriented-canvas rectangle; None means the complete canvas.
Sourcepub fn with_conversion(self, conversion: ConvertOptions) -> Self
pub fn with_conversion(self, conversion: ConvertOptions) -> Self
Set explicit conversion behavior.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RenderRequest
impl RefUnwindSafe for RenderRequest
impl Send for RenderRequest
impl Sync for RenderRequest
impl Unpin for RenderRequest
impl UnsafeUnpin for RenderRequest
impl UnwindSafe for RenderRequest
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