pub struct Attribute {Show 25 fields
pub thickness: f64,
pub location: Point,
pub text_height: f64,
pub value: String,
pub version: Version,
pub attribute_tag: String,
pub flags: i32,
pub field_length: i16,
pub rotation: f64,
pub relative_x_scale_factor: f64,
pub oblique_angle: f64,
pub text_style_name: String,
pub text_generation_flags: i32,
pub horizontal_text_justification: HorizontalTextJustification,
pub vertical_text_justification: VerticalTextJustification,
pub second_alignment_point: Point,
pub normal: Vector,
pub is_locked_in_block: bool,
pub keep_duplicate_records: bool,
pub m_text_flag: MTextFlag,
pub is_really_locked: bool,
pub alignment_point: Point,
pub annotation_scale: f64,
pub x_record_tag: String,
pub m_text: MText,
/* private fields */
}Fields§
§thickness: f64§location: Point§text_height: f64§value: String§version: Version§attribute_tag: String§flags: i32§field_length: i16§rotation: f64§relative_x_scale_factor: f64§oblique_angle: f64§text_style_name: String§text_generation_flags: i32§horizontal_text_justification: HorizontalTextJustification§vertical_text_justification: VerticalTextJustification§second_alignment_point: Point§normal: Vector§is_locked_in_block: bool§keep_duplicate_records: bool§m_text_flag: MTextFlag§is_really_locked: bool§alignment_point: Point§annotation_scale: f64§x_record_tag: String§m_text: MTextImplementations§
Source§impl Attribute
impl Attribute
pub fn is_invisible(&self) -> bool
pub fn set_is_invisible(&mut self, val: bool)
pub fn is_constant(&self) -> bool
pub fn set_is_constant(&mut self, val: bool)
pub fn is_input_verification_required(&self) -> bool
pub fn set_is_input_verification_required(&mut self, val: bool)
pub fn is_attribute_present(&self) -> bool
pub fn set_is_attribute_present(&mut self, val: bool)
pub fn is_text_backwards(&self) -> bool
pub fn set_is_text_backwards(&mut self, val: bool)
pub fn is_text_upside_down(&self) -> bool
pub fn set_is_text_upside_down(&mut self, val: bool)
pub fn secondary_attributes<'a>( &self, drawing: &'a Drawing, ) -> Vec<DrawingItem<'a>>
pub fn add_secondary_attributes(&mut self, item: &DrawingItemMut<'_>)
Trait Implementations§
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnsafeUnpin for Attribute
impl UnwindSafe for Attribute
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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