#[non_exhaustive]pub struct AttributeDisplay {
pub height: f64,
pub width: f64,
pub style: Option<String>,
pub halign: HAlign,
pub valign: VAlign,
pub rotation: f64,
}Expand description
Text presentation of a displayed attribute value.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.height: f64Text height, in drawing units.
width: f64Character width, in drawing units (DGN stores it separately from the height).
style: Option<String>Text style (DGN font) name; None leaves the choice to the writer’s default.
halign: HAlignHorizontal alignment of the text about Attribute::position.
valign: VAlignVertical alignment of the text about Attribute::position.
rotation: f64Rotation about the drawing Z axis, in radians.
Implementations§
Source§impl AttributeDisplay
impl AttributeDisplay
Sourcepub fn with_style(self, value: impl Into<String>) -> Self
pub fn with_style(self, value: impl Into<String>) -> Self
Sets Self::style to Some(value).
Sourcepub fn with_halign(self, value: HAlign) -> Self
pub fn with_halign(self, value: HAlign) -> Self
Sets Self::halign.
Sourcepub fn with_valign(self, value: VAlign) -> Self
pub fn with_valign(self, value: VAlign) -> Self
Sets Self::valign.
Sourcepub fn with_rotation(self, value: f64) -> Self
pub fn with_rotation(self, value: f64) -> Self
Sets Self::rotation.
Trait Implementations§
Source§impl Clone for AttributeDisplay
impl Clone for AttributeDisplay
Source§impl Debug for AttributeDisplay
impl Debug for AttributeDisplay
Source§impl Default for AttributeDisplay
impl Default for AttributeDisplay
Source§impl<'de> Deserialize<'de> for AttributeDisplay
impl<'de> Deserialize<'de> for AttributeDisplay
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AttributeDisplay
impl PartialEq for AttributeDisplay
Source§impl Serialize for AttributeDisplay
impl Serialize for AttributeDisplay
impl StructuralPartialEq for AttributeDisplay
Auto Trait Implementations§
impl Forget for AttributeDisplay
impl Freeze for AttributeDisplay
impl Move for AttributeDisplay
impl RefUnwindSafe for AttributeDisplay
impl Send for AttributeDisplay
impl Sync for AttributeDisplay
impl Unpin for AttributeDisplay
impl UnsafeUnpin for AttributeDisplay
impl UnwindSafe for AttributeDisplay
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