Skip to main content

DimStyle

Struct DimStyle 

Source
pub struct DimStyle {
Show 67 fields pub name: String, pub handle: Handle, pub extension_data_groups: Vec<ExtensionGroup>, pub x_data: Vec<XData>, pub dimensioning_suffix: String, pub alternate_dimensioning_suffix: String, pub first_arrow_block_name: String, pub second_arrow_block_name: String, pub dimensioning_scale_factor: f64, pub dimensioning_arrow_size: f64, pub dimension_extension_line_offset: f64, pub dimension_line_increment: f64, pub dimension_extension_line_extension: f64, pub dimension_distance_rounding_value: f64, pub dimension_line_extension: f64, pub dimension_plus_tolerance: f64, pub dimension_minus_tolerance: f64, pub generate_dimension_tolerances: bool, pub generate_dimension_limits: bool, pub dimension_text_inside_horizontal: bool, pub dimension_text_outside_horizontal: bool, pub suppress_first_dimension_extension_line: bool, pub suppress_second_dimension_extension_line: bool, pub text_above_dimension_line: bool, pub dimension_unit_zero_suppression: UnitZeroSuppression, pub dimension_angle_zero_suppression: UnitZeroSuppression, pub dimensioning_text_height: f64, pub center_mark_size: f64, pub dimensioning_tick_size: f64, pub alternate_dimensioning_scale_factor: f64, pub dimension_linear_measurement_scale_factor: f64, pub dimension_vertical_text_position: f64, pub dimension_tolerance_displace_scale_factor: f64, pub dimension_line_gap: f64, pub alternate_dimensioning_unit_rounding: f64, pub use_alternate_dimensioning: bool, pub alternate_dimensioning_decimal_places: i16, pub force_dimension_line_extensions_outside_if_text_exists: bool, pub use_separate_arrow_blocks_for_dimensions: bool, pub force_dimension_text_inside_extensions: bool, pub suppress_outside_extension_dimension_lines: bool, pub dimension_line_color: Color, pub dimension_extension_line_color: Color, pub dimension_text_color: Color, pub angular_dimension_precision: i16, pub dimension_unit_format: UnitFormat, pub dimension_unit_tolerance_decimal_places: i16, pub dimension_tolerace_decimal_places: i16, pub alternate_dimensioning_units: UnitFormat, pub alternate_dimensioning_tolerance_decimal_places: i16, pub dimensioning_angle_format: AngleFormat, pub dimension_precision: i16, pub dimension_non_angular_units: NonAngularUnits, pub dimension_decilam_separator_char: char, pub dimension_text_movement_rule: DimensionTextMovementRule, pub dimension_text_justification: DimensionTextJustification, pub dimension_tolerance_vertical_justification: Justification, pub dimension_tolerance_zero_suppression: UnitZeroSuppression, pub alternate_dimensioning_zero_suppression: UnitZeroSuppression, pub alternate_dimensioning_tolerance_zero_suppression: UnitZeroSuppression, pub dimension_text_and_arrow_placement: DimensionFit, pub dimension_cursor_controls_text_position: bool, pub dimension_text_style: String, pub dimension_leader_block_name: String, pub arrow_block_name: String, pub dimension_line_weight: LineWeight, pub dimension_extension_line_weight: LineWeight, /* private fields */
}

Fields§

§name: String§handle: Handle§extension_data_groups: Vec<ExtensionGroup>§x_data: Vec<XData>§dimensioning_suffix: String§alternate_dimensioning_suffix: String§first_arrow_block_name: String§second_arrow_block_name: String§dimensioning_scale_factor: f64§dimensioning_arrow_size: f64§dimension_extension_line_offset: f64§dimension_line_increment: f64§dimension_extension_line_extension: f64§dimension_distance_rounding_value: f64§dimension_line_extension: f64§dimension_plus_tolerance: f64§dimension_minus_tolerance: f64§generate_dimension_tolerances: bool§generate_dimension_limits: bool§dimension_text_inside_horizontal: bool§dimension_text_outside_horizontal: bool§suppress_first_dimension_extension_line: bool§suppress_second_dimension_extension_line: bool§text_above_dimension_line: bool§dimension_unit_zero_suppression: UnitZeroSuppression§dimension_angle_zero_suppression: UnitZeroSuppression§dimensioning_text_height: f64§center_mark_size: f64§dimensioning_tick_size: f64§alternate_dimensioning_scale_factor: f64§dimension_linear_measurement_scale_factor: f64§dimension_vertical_text_position: f64§dimension_tolerance_displace_scale_factor: f64§dimension_line_gap: f64§alternate_dimensioning_unit_rounding: f64§use_alternate_dimensioning: bool§alternate_dimensioning_decimal_places: i16§force_dimension_line_extensions_outside_if_text_exists: bool§use_separate_arrow_blocks_for_dimensions: bool§force_dimension_text_inside_extensions: bool§suppress_outside_extension_dimension_lines: bool§dimension_line_color: Color§dimension_extension_line_color: Color§dimension_text_color: Color§angular_dimension_precision: i16§dimension_unit_format: UnitFormat§dimension_unit_tolerance_decimal_places: i16§dimension_tolerace_decimal_places: i16§alternate_dimensioning_units: UnitFormat§alternate_dimensioning_tolerance_decimal_places: i16§dimensioning_angle_format: AngleFormat§dimension_precision: i16§dimension_non_angular_units: NonAngularUnits§dimension_decilam_separator_char: char§dimension_text_movement_rule: DimensionTextMovementRule§dimension_text_justification: DimensionTextJustification§dimension_tolerance_vertical_justification: Justification§dimension_tolerance_zero_suppression: UnitZeroSuppression§alternate_dimensioning_zero_suppression: UnitZeroSuppression§alternate_dimensioning_tolerance_zero_suppression: UnitZeroSuppression§dimension_text_and_arrow_placement: DimensionFit§dimension_cursor_controls_text_position: bool§dimension_text_style: String§dimension_leader_block_name: String§arrow_block_name: String§dimension_line_weight: LineWeight§dimension_extension_line_weight: LineWeight

Implementations§

Source§

impl DimStyle

Source

pub fn owner<'a>(&self, drawing: &'a Drawing) -> Option<DrawingItem<'a>>

Source

pub fn set_owner<'a>( &mut self, item: &'a mut DrawingItemMut<'_>, drawing: &'a mut Drawing, )

Trait Implementations§

Source§

impl Clone for DimStyle

Source§

fn clone(&self) -> DimStyle

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DimStyle

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DimStyle

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.