pub struct ProtectedRegion {
pub id: String,
pub x: Dimension,
pub y: Dimension,
pub w: Dimension,
pub h: Dimension,
pub label: Option<String>,
pub source_span: Option<Span>,
}Expand description
A named text-safe rectangle declared on a GroupNode as a
protected-region child.
Declared as protected-region id="…" x=(px)N y=(px)N w=(px)N h=(px)N
(with an optional label). Non-rendering metadata: it is not emitted to
the scene and carries no visual properties of its own. Consumers (e.g.
external layout tools) may consult it to avoid placing text over UI chrome
or other reserved areas.
Fields§
§id: String§x: Dimension§y: Dimension§w: Dimension§h: Dimension§label: Option<String>§source_span: Option<Span>Trait Implementations§
Source§impl Clone for ProtectedRegion
impl Clone for ProtectedRegion
Source§fn clone(&self) -> ProtectedRegion
fn clone(&self) -> ProtectedRegion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProtectedRegion
impl Debug for ProtectedRegion
Source§impl PartialEq for ProtectedRegion
impl PartialEq for ProtectedRegion
Source§fn eq(&self, other: &ProtectedRegion) -> bool
fn eq(&self, other: &ProtectedRegion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProtectedRegion
Auto Trait Implementations§
impl Freeze for ProtectedRegion
impl RefUnwindSafe for ProtectedRegion
impl Send for ProtectedRegion
impl Sync for ProtectedRegion
impl Unpin for ProtectedRegion
impl UnsafeUnpin for ProtectedRegion
impl UnwindSafe for ProtectedRegion
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