pub struct AttributeDefinition {Show 26 fields
pub thickness: f64,
pub location: Point,
pub text_height: f64,
pub value: String,
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 second_alignment_point: Point,
pub normal: Vector,
pub version: Version,
pub prompt: String,
pub text_tag: String,
pub flags: i32,
pub field_length: i16,
pub vertical_text_justification: VerticalTextJustification,
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§rotation: f64§relative_x_scale_factor: f64§oblique_angle: f64§text_style_name: String§text_generation_flags: i32§horizontal_text_justification: HorizontalTextJustification§second_alignment_point: Point§normal: Vector§version: Version§prompt: String§text_tag: String§flags: i32§field_length: i16§vertical_text_justification: VerticalTextJustification§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 AttributeDefinition
impl AttributeDefinition
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 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 secondary_attributes<'a>( &self, drawing: &'a Drawing, ) -> Vec<DrawingItem<'a>>
pub fn add_secondary_attributes(&mut self, item: &DrawingItemMut<'_>)
Trait Implementations§
Source§impl Clone for AttributeDefinition
impl Clone for AttributeDefinition
Source§fn clone(&self) -> AttributeDefinition
fn clone(&self) -> AttributeDefinition
Returns a duplicate of the value. Read more
1.0.0 · 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 AttributeDefinition
impl Debug for AttributeDefinition
Source§impl Default for AttributeDefinition
impl Default for AttributeDefinition
Source§fn default() -> AttributeDefinition
fn default() -> AttributeDefinition
Returns the “default value” for a type. Read more
Source§impl PartialEq for AttributeDefinition
impl PartialEq for AttributeDefinition
impl StructuralPartialEq for AttributeDefinition
Auto Trait Implementations§
impl Freeze for AttributeDefinition
impl RefUnwindSafe for AttributeDefinition
impl Send for AttributeDefinition
impl Sync for AttributeDefinition
impl Unpin for AttributeDefinition
impl UnsafeUnpin for AttributeDefinition
impl UnwindSafe for AttributeDefinition
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