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: HandleObject handle.
owner_handle: HandleOwner handle.
name: StringStyle name. DXF code: 3
description: StringStyle description. DXF code: 300
path_type: MultiLeaderPathTypeLeader path type. DXF code: 173
line_color: ColorLeader line color. DXF code: 91
line_type_handle: Option<Handle>Leader line type handle. DXF code: 340
line_weight: LineWeightLeader line weight. DXF code: 92
enable_landing: boolEnable landing (dogleg). DXF code: 290
enable_dogleg: boolEnable dogleg. DXF code: 291
landing_distance: f64Landing/dogleg length. DXF code: 43
landing_gap: f64Gap between leader and content. DXF code: 42
arrowhead_handle: Option<Handle>Arrowhead block handle. DXF code: 341
arrowhead_size: f64Arrowhead size. DXF code: 44
content_type: LeaderContentTypeContent type. DXF code: 170
text_style_handle: Option<Handle>Text style handle. DXF code: 342
text_left_attachment: TextAttachmentTypeText left attachment type. DXF code: 174
text_right_attachment: TextAttachmentTypeText right attachment type. DXF code: 178
text_top_attachment: TextAttachmentTypeText top attachment type. DXF code: 273
text_bottom_attachment: TextAttachmentTypeText bottom attachment type. DXF code: 272
text_attachment_direction: TextAttachmentDirectionTypeText attachment direction. DXF code: 271
text_angle_type: TextAngleTypeText angle type. DXF code: 175
text_alignment: TextAlignmentTypeText alignment. DXF code: 176
text_color: ColorText color. DXF code: 93
text_height: f64Text height. DXF code: 45
text_frame: boolDraw text frame. DXF code: 292
text_always_left: boolText always left aligned. DXF code: 297
default_text: StringDefault text contents. DXF code: 304
block_content_handle: Option<Handle>Block content handle. DXF code: 343
block_content_color: ColorBlock content color. DXF code: 94
block_content_connection: BlockContentConnectionTypeBlock content connection type. DXF code: 177
block_content_rotation: f64Block content rotation. DXF code: 141
block_content_scale_x: f64Block content X scale. DXF code: 47
block_content_scale_y: f64Block content Y scale. DXF code: 49
block_content_scale_z: f64Block content Z scale. DXF code: 140
enable_block_scale: boolEnable block scale. DXF code: 293
enable_block_rotation: boolEnable block rotation. DXF code: 294
scale_factor: f64Overall scale factor. DXF code: 142
align_space: f64Align space. DXF code: 46
break_gap_size: f64Break gap size. DXF code: 143
max_leader_points: i32Max leader segment points. DXF code: 90
first_segment_angle: f64First segment angle constraint. DXF code: 40
second_segment_angle: f64Second segment angle constraint. DXF code: 41
leader_draw_order: LeaderDrawOrderTypeLeader draw order. DXF code: 172
multileader_draw_order: MultiLeaderDrawOrderTypeMultiLeader draw order. DXF code: 171
is_annotative: boolIs annotative. DXF code: 296
property_changed: boolProperty changed flag. DXF code: 295
unknown_flag_298: boolR2013+ undocumented flag. DXF code: 298
Implementations§
Source§impl MultiLeaderStyle
impl MultiLeaderStyle
Sourcepub const OBJECT_NAME: &'static str = "MLEADERSTYLE"
pub const OBJECT_NAME: &'static str = "MLEADERSTYLE"
Object type name.
Sourcepub const SUBCLASS_MARKER: &'static str = "AcDbMLeaderStyle"
pub const SUBCLASS_MARKER: &'static str = "AcDbMLeaderStyle"
Subclass marker.
Sourcepub fn set_block_scale(&mut self, scale: f64)
pub fn set_block_scale(&mut self, scale: f64)
Sets all block content scale factors uniformly.
Sourcepub fn uniform_block_scale(&self) -> Option<f64>
pub fn uniform_block_scale(&self) -> Option<f64>
Gets the uniform block scale if all factors are equal.
Sourcepub fn set_block_rotation_degrees(&mut self, degrees: f64)
pub fn set_block_rotation_degrees(&mut self, degrees: f64)
Sets the block content rotation in degrees.
Sourcepub fn block_rotation_degrees(&self) -> f64
pub fn block_rotation_degrees(&self) -> f64
Gets the block content rotation in degrees.
Sourcepub fn has_text_content(&self) -> bool
pub fn has_text_content(&self) -> bool
Returns true if this style uses text content.
Sourcepub fn has_block_content(&self) -> bool
pub fn has_block_content(&self) -> bool
Returns true if this style uses block content.
Sourcepub fn has_tolerance_content(&self) -> bool
pub fn has_tolerance_content(&self) -> bool
Returns true if this style uses tolerance content.
Sourcepub fn has_visible_leaders(&self) -> bool
pub fn has_visible_leaders(&self) -> bool
Returns true if leader lines are visible.
Sourcepub fn has_spline_leaders(&self) -> bool
pub fn has_spline_leaders(&self) -> bool
Returns true if leaders use spline curves.
Trait Implementations§
Source§impl Clone for MultiLeaderStyle
impl Clone for MultiLeaderStyle
Source§fn clone(&self) -> MultiLeaderStyle
fn clone(&self) -> MultiLeaderStyle
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more