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 fn rect(target: impl Into<RegionTarget>) -> Self
pub fn rect(target: impl Into<RegionTarget>) -> Self
Select a positive CSS rectangle or an actual frozen layout reference.
Sourcepub const fn tight() -> Self
pub const fn tight() -> Self
Compute the visible content bounds, excluding structural native paper.
Sourcepub fn pad_layout(self) -> Self
pub fn pad_layout(self) -> Self
Use the four actually resolved root-layout padding lengths.
Sourcepub fn include(self, reference: RectRef) -> Self
pub fn include(self, reference: RectRef) -> Self
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) -> Self
pub fn exclude(self, reference: PaintBatchRef) -> Self
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>) -> Self
pub fn within(self, target: impl Into<RegionTarget>) -> Self
Restrict the search for tight bounds to this actual rectangle.
Sourcepub fn pixel_coverage(self, sizing: PngSizing) -> Self
pub fn pixel_coverage(self, sizing: PngSizing) -> Self
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§impl Debug for ExportRegion
impl Debug for ExportRegion
Source§impl Default for ExportRegion
impl Default for 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.