pub struct SymbolicText {}Expand description
A 2D text annotation (IfcTextLiteral / IfcTextLiteralWithExtent).
Fields§
§express_id: u32§ifc_type: String§x: f32Anchor point on the text baseline (model units).
y: f32§dir_x: f32Baseline orientation as a (cos, sin) pair. Defaults to (1, 0).
dir_y: f32§height: f32Font height in model units (already unit-scaled).
content: StringUTF-8 text content, ALREADY DECODED. It is read through
AttributeValue::from_token, which un-doubles '' and runs
decode_ifc_string (\X2\…\X0\, \X\NN, \S\X, \\) at the parse
boundary (#2394) — so consumers must NOT decode it again. A second
decode is not idempotent: it collapses \\ twice, turning an authored
\\server\share into \server\share.
alignment: StringIFC BoxAlignment (top-left, center, bottom-right, …). Empty
string when absent.
world_y: f32World-Y elevation (see SymbolicPolyline::world_y).
color: [f32; 4]sRGB straight-alpha colour [r, g, b, a]. Defaults to dark-grey
when no IfcStyledItem chain resolves a colour.
target_px: f32Per-instance target screen-pixel cap height. 0.0 = renderer
global default (~14 px for body text).
representation: StringTrait Implementations§
Source§impl Clone for SymbolicText
impl Clone for SymbolicText
Source§fn clone(&self) -> SymbolicText
fn clone(&self) -> SymbolicText
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SymbolicText
impl Debug for SymbolicText
Source§impl<'de> Deserialize<'de> for SymbolicText
impl<'de> Deserialize<'de> for SymbolicText
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for SymbolicText
impl RefUnwindSafe for SymbolicText
impl Send for SymbolicText
impl Sync for SymbolicText
impl Unpin for SymbolicText
impl UnwindSafe for SymbolicText
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§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).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.