Skip to main content

MultiLeaderStyle

Struct MultiLeaderStyle 

Source
pub struct MultiLeaderStyle {
Show 48 fields pub handle: Handle, pub owner_handle: Handle, pub name: String, pub description: String, pub path_type: MultiLeaderPathType, pub line_color: Color, pub line_type_handle: Option<Handle>, pub line_weight: LineWeight, pub enable_landing: bool, pub enable_dogleg: bool, pub landing_distance: f64, pub landing_gap: f64, pub arrowhead_handle: Option<Handle>, pub arrowhead_size: f64, pub content_type: LeaderContentType, pub text_style_handle: Option<Handle>, pub text_left_attachment: TextAttachmentType, pub text_right_attachment: TextAttachmentType, pub text_top_attachment: TextAttachmentType, pub text_bottom_attachment: TextAttachmentType, pub text_attachment_direction: TextAttachmentDirectionType, pub text_angle_type: TextAngleType, pub text_alignment: TextAlignmentType, pub text_color: Color, pub text_height: f64, pub text_frame: bool, pub text_always_left: bool, pub default_text: String, pub block_content_handle: Option<Handle>, pub block_content_color: Color, pub block_content_connection: BlockContentConnectionType, pub block_content_rotation: f64, pub block_content_scale_x: f64, pub block_content_scale_y: f64, pub block_content_scale_z: f64, pub enable_block_scale: bool, pub enable_block_rotation: bool, pub scale_factor: f64, pub align_space: f64, pub break_gap_size: f64, pub max_leader_points: i32, pub first_segment_angle: f64, pub second_segment_angle: f64, pub leader_draw_order: LeaderDrawOrderType, pub multileader_draw_order: MultiLeaderDrawOrderType, pub is_annotative: bool, pub property_changed: bool, pub unknown_flag_298: bool,
}
Expand description

MultiLeader style object.

Defines the visual properties and behavior for MultiLeader entities.

§DXF Information

  • Object type: MLEADERSTYLE
  • Subclass marker: AcDbMLeaderStyle

§Example

use acadrust::objects::MultiLeaderStyle;

let mut style = MultiLeaderStyle::new("MyStyle");
style.text_height = 0.25;
style.arrowhead_size = 0.25;
style.enable_landing = true;

Fields§

§handle: Handle

Object handle.

§owner_handle: Handle

Owner handle.

§name: String

Style name. DXF code: 3

§description: String

Style description. DXF code: 300

§path_type: MultiLeaderPathType

Leader path type. DXF code: 173

§line_color: Color

Leader line color. DXF code: 91

§line_type_handle: Option<Handle>

Leader line type handle. DXF code: 340

§line_weight: LineWeight

Leader line weight. DXF code: 92

§enable_landing: bool

Enable landing (dogleg). DXF code: 290

§enable_dogleg: bool

Enable dogleg. DXF code: 291

§landing_distance: f64

Landing/dogleg length. DXF code: 43

§landing_gap: f64

Gap between leader and content. DXF code: 42

§arrowhead_handle: Option<Handle>

Arrowhead block handle. DXF code: 341

§arrowhead_size: f64

Arrowhead size. DXF code: 44

§content_type: LeaderContentType

Content type. DXF code: 170

§text_style_handle: Option<Handle>

Text style handle. DXF code: 342

§text_left_attachment: TextAttachmentType

Text left attachment type. DXF code: 174

§text_right_attachment: TextAttachmentType

Text right attachment type. DXF code: 178

§text_top_attachment: TextAttachmentType

Text top attachment type. DXF code: 273

§text_bottom_attachment: TextAttachmentType

Text bottom attachment type. DXF code: 272

§text_attachment_direction: TextAttachmentDirectionType

Text attachment direction. DXF code: 271

§text_angle_type: TextAngleType

Text angle type. DXF code: 175

§text_alignment: TextAlignmentType

Text alignment. DXF code: 176

§text_color: Color

Text color. DXF code: 93

§text_height: f64

Text height. DXF code: 45

§text_frame: bool

Draw text frame. DXF code: 292

§text_always_left: bool

Text always left aligned. DXF code: 297

§default_text: String

Default text contents. DXF code: 304

§block_content_handle: Option<Handle>

Block content handle. DXF code: 343

§block_content_color: Color

Block content color. DXF code: 94

§block_content_connection: BlockContentConnectionType

Block content connection type. DXF code: 177

§block_content_rotation: f64

Block content rotation. DXF code: 141

§block_content_scale_x: f64

Block content X scale. DXF code: 47

§block_content_scale_y: f64

Block content Y scale. DXF code: 49

§block_content_scale_z: f64

Block content Z scale. DXF code: 140

§enable_block_scale: bool

Enable block scale. DXF code: 293

§enable_block_rotation: bool

Enable block rotation. DXF code: 294

§scale_factor: f64

Overall scale factor. DXF code: 142

§align_space: f64

Align space. DXF code: 46

§break_gap_size: f64

Break gap size. DXF code: 143

§max_leader_points: i32

Max leader segment points. DXF code: 90

§first_segment_angle: f64

First segment angle constraint. DXF code: 40

§second_segment_angle: f64

Second segment angle constraint. DXF code: 41

§leader_draw_order: LeaderDrawOrderType

Leader draw order. DXF code: 172

§multileader_draw_order: MultiLeaderDrawOrderType

MultiLeader draw order. DXF code: 171

§is_annotative: bool

Is annotative. DXF code: 296

§property_changed: bool

Property changed flag. DXF code: 295

§unknown_flag_298: bool

R2013+ undocumented flag. DXF code: 298

Implementations§

Source§

impl MultiLeaderStyle

Source

pub const OBJECT_NAME: &'static str = "MLEADERSTYLE"

Object type name.

Source

pub const SUBCLASS_MARKER: &'static str = "AcDbMLeaderStyle"

Subclass marker.

Source

pub const STANDARD: &'static str = "Standard"

Default style name.

Source

pub fn new(name: &str) -> Self

Creates a new MultiLeaderStyle with default values.

Source

pub fn standard() -> Self

Creates the standard MultiLeaderStyle.

Source

pub fn set_block_scale(&mut self, scale: f64)

Sets all block content scale factors uniformly.

Source

pub fn uniform_block_scale(&self) -> Option<f64>

Gets the uniform block scale if all factors are equal.

Source

pub fn set_block_rotation_degrees(&mut self, degrees: f64)

Sets the block content rotation in degrees.

Source

pub fn block_rotation_degrees(&self) -> f64

Gets the block content rotation in degrees.

Source

pub fn has_text_content(&self) -> bool

Returns true if this style uses text content.

Source

pub fn has_block_content(&self) -> bool

Returns true if this style uses block content.

Source

pub fn has_tolerance_content(&self) -> bool

Returns true if this style uses tolerance content.

Source

pub fn has_visible_leaders(&self) -> bool

Returns true if leader lines are visible.

Source

pub fn has_spline_leaders(&self) -> bool

Returns true if leaders use spline curves.

Trait Implementations§

Source§

impl Clone for MultiLeaderStyle

Source§

fn clone(&self) -> MultiLeaderStyle

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 MultiLeaderStyle

Source§

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

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

impl Default for MultiLeaderStyle

Source§

fn default() -> Self

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

impl PartialEq for MultiLeaderStyle

Source§

fn eq(&self, other: &MultiLeaderStyle) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for MultiLeaderStyle

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> 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.