pub struct ExportRegion { /* private fields */ }Expand description
A publication-only frame, optionally derived from actual visible ink. The selected picture is clipped before its empty padding is added.
Implementations§
Source§impl ExportRegion
impl ExportRegion
Sourcepub const fn full() -> ExportRegion
pub const fn full() -> ExportRegion
Keep the complete frozen viewport.
Sourcepub fn rect(target: impl Into<RegionTarget>) -> ExportRegion
pub fn rect(target: impl Into<RegionTarget>) -> ExportRegion
Select a positive CSS rectangle or an actual frozen layout reference.
Sourcepub const fn tight() -> ExportRegion
pub const fn tight() -> ExportRegion
Compute the visible content bounds, excluding structural native paper.
Sourcepub fn pad(self, insets: Insets) -> ExportRegion
pub fn pad(self, insets: Insets) -> ExportRegion
Add four absolute CSS-pixel padding lengths.
Sourcepub fn pad_layout(self) -> ExportRegion
pub fn pad_layout(self) -> ExportRegion
Use the four actually resolved root-layout padding lengths.
Sourcepub fn include(self, reference: RectRef) -> ExportRegion
pub fn include(self, reference: RectRef) -> ExportRegion
Add the selected actual allocation to the tight boundary. This can deliberately retain a reserved slot that has no ink.
Sourcepub fn exclude(self, reference: PaintBatchRef) -> ExportRegion
pub fn exclude(self, reference: PaintBatchRef) -> ExportRegion
Exclude one actual closed native batch from the boundary computation, while retaining its paint in the selected publication.
Sourcepub fn within(self, target: impl Into<RegionTarget>) -> ExportRegion
pub fn within(self, target: impl Into<RegionTarget>) -> ExportRegion
Restrict the search for tight bounds to this actual rectangle.
Sourcepub fn pixel_coverage(self, sizing: PngSizing) -> ExportRegion
pub fn pixel_coverage(self, sizing: PngSizing) -> ExportRegion
Use explicit sampled alpha support rather than continuous vector ink for the tight frame, at this independently selected resolution.
Sourcepub fn has_padding(&self) -> bool
pub fn has_padding(&self) -> bool
Whether the author already selected a padding policy.
Trait Implementations§
Source§impl Clone for ExportRegion
impl Clone for ExportRegion
Source§fn clone(&self) -> ExportRegion
fn clone(&self) -> ExportRegion
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExportRegion
impl Debug for ExportRegion
Source§impl Default for ExportRegion
impl Default for ExportRegion
Source§fn default() -> ExportRegion
fn default() -> ExportRegion
Source§impl PartialEq for ExportRegion
impl PartialEq for ExportRegion
impl StructuralPartialEq for ExportRegion
Auto Trait Implementations§
impl Forget for ExportRegion
impl Freeze for ExportRegionwhere
*const u8 is !null: Freeze,
PhantomData<PanelStep>: Freeze,
*const ArcInner<SpacingPayload> is !null: Freeze,
PhantomData<ArcInner<SpacingPayload>>: Freeze,
PhantomData<RectRef>: Freeze,
PhantomData<PaintBatchRef>: Freeze,
impl Move for ExportRegion
impl RefUnwindSafe for ExportRegion
impl Send for ExportRegion
impl Sync for ExportRegion
impl Unpin for ExportRegion
impl UnsafeUnpin for ExportRegionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PanelStep>: UnsafeUnpin,
*const ArcInner<SpacingPayload> is !null: UnsafeUnpin,
PhantomData<ArcInner<SpacingPayload>>: UnsafeUnpin,
PhantomData<RectRef>: UnsafeUnpin,
PhantomData<PaintBatchRef>: UnsafeUnpin,
impl UnwindSafe for ExportRegionwhere
RawVecInner: UnwindSafe,
Arc<[u8]>: UnwindSafe,
BoxRaw<RawKey>: UnwindSafe,
Arc<str>: UnwindSafe,
Arc<SpacingPayload>: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.