Struct dxf::Block
[−]
[src]
pub struct Block { pub handle: u32, pub layer: String, pub name: String, pub flags: i32, pub base_point: Point, pub xref_path_name: String, pub description: String, pub is_in_paperspace: bool, pub entities: Vec<Entity>, pub extension_data_groups: Vec<ExtensionGroup>, pub x_data: Vec<XData>, // some fields omitted }
A block is a collection of entities.
Fields
handle: u32
The block's handle.
layer: String
The name of the layer containing the block.
name: String
The name of the block.
flags: i32
Block-type flags.
base_point: Point
The block's base insertion point.
xref_path_name: String
The path name of the XREF.
description: String
The block's description.
is_in_paperspace: bool
If the block is in PAPERSPACE or not.
entities: Vec<Entity>
The entities contained by the block.
extension_data_groups: Vec<ExtensionGroup>
Extension data groups.
x_data: Vec<XData>
XData.
Methods
impl Block
[src]
fn get_owner<'a>(&self, drawing: &'a Drawing) -> Option<DrawingItem<'a>>
[src]
fn set_owner<'a>(
&mut self,
item: &'a mut DrawingItemMut,
drawing: &'a mut Drawing
)
[src]
&mut self,
item: &'a mut DrawingItemMut,
drawing: &'a mut Drawing
)
fn get_is_anonymous(&self) -> bool
[src]
fn set_is_anonymous(&mut self, val: bool)
[src]
fn has_non_consistent_attribute_definitions(&self) -> bool
[src]
fn set_has_non_consistent_attribute_definitions(&mut self, val: bool)
[src]
fn get_is_xref(&self) -> bool
[src]
fn set_is_xref(&mut self, val: bool)
[src]
fn get_is_xref_overlay(&self) -> bool
[src]
fn set_is_xref_overlay(&mut self, val: bool)
[src]
fn get_is_externally_dependent(&self) -> bool
[src]
fn set_is_externally_dependent(&mut self, val: bool)
[src]
fn get_is_referenced_external_reference(&self) -> bool
[src]
fn set_is_referenced_external_reference(&mut self, val: bool)
[src]
fn get_is_resolved_external_reference(&self) -> bool
[src]
fn set_is_resolved_external_reference(&mut self, val: bool)
[src]
fn normalize(&mut self)
[src]
Ensure all values are valid.
Trait Implementations
impl Clone for Block
[src]
fn clone(&self) -> Block
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more