pub struct Class {
pub record_name: String,
pub class_name: String,
pub application_name: String,
pub version_number: i32,
pub proxy_capability_flags: i32,
pub instance_count: usize,
pub was_class_loaded_with_file: bool,
pub is_entity: bool,
}
Expand description
Represents an application-defined class whose instances are Block
s, Entity
s, and Object
s.
Fields§
§record_name: String
Class DXF record name.
class_name: String
C++ class name. Used to bind with software that defines object class behavior.
application_name: String
Application name.
version_number: i32
The class’s version number.
proxy_capability_flags: i32
Indicates the capabilities of this object as a proxy.
instance_count: usize
Number of instances of this class.
was_class_loaded_with_file: bool
Was the class loaded with the file.
is_entity: bool
Is class derived from the AcDbEntity
class.
Implementations§
Source§impl Class
impl Class
pub fn is_erase_allowed(&self) -> bool
pub fn set_is_erase_allowed(&mut self, val: bool)
pub fn is_transform_allowed(&self) -> bool
pub fn set_is_transform_allowed(&mut self, val: bool)
pub fn is_color_change_allowed(&self) -> bool
pub fn set_is_color_change_allowed(&mut self, val: bool)
pub fn is_layer_change_allowed(&self) -> bool
pub fn set_is_layer_change_allowed(&mut self, val: bool)
pub fn is_line_type_change_allowed(&self) -> bool
pub fn set_is_line_type_change_allowed(&mut self, val: bool)
pub fn is_line_type_scale_change_allowed(&self) -> bool
pub fn set_is_line_type_scale_change_allowed(&mut self, val: bool)
pub fn is_visibility_change_allowed(&self) -> bool
pub fn set_is_visibility_change_allowed(&mut self, val: bool)
pub fn is_clone_allowed(&self) -> bool
pub fn set_is_clone_allowed(&mut self, val: bool)
pub fn is_lineweight_change_allowed(&self) -> bool
pub fn set_is_lineweight_change_allowed(&mut self, val: bool)
pub fn is_plot_style_name_change_allowed(&self) -> bool
pub fn set_is_plot_style_name_change_allowed(&mut self, val: bool)
pub fn is_R13_format_proxy(&self) -> bool
pub fn set_is_R13_format_proxy(&mut self, val: bool)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.