Struct dxf::Color
[−]
[src]
pub struct Color { // some fields omitted }
Represents an indexed color.
Methods
impl Color
[src]
fn is_by_layer(&self) -> bool
Returns true
if the color defaults back to the item's layer's color.
fn is_by_entity(&self) -> bool
Returns true
if the color defaults back to the entity's color.
fn is_by_block(&self) -> bool
Returns true
if the color defaults back to the containing block's color.
fn is_turned_off(&self) -> bool
Returns true
if the color represents a Layer
that is turned off.
fn set_by_layer(&mut self)
Sets the color to default back to the item's layer's color.
fn set_by_block(&mut self)
Sets the color to default back to the containing block's color.
fn set_by_entity(&mut self)
Sets the color to default back to the containing entity's color.
fn turn_off(&mut self)
Sets the color to represent a Layer
that is turned off.
fn is_index(&self) -> bool
Returns true
if the color represents a proper color index.
fn index(&self) -> Option<u8>
Gets an Option<u8>
of the indexable value of the color.
fn by_layer() -> Color
Creates a Color
that defaults to the item's layer's color.
fn by_block() -> Color
Creates a Color
that defaults back to the containing block's color.
fn by_entity() -> Color
Creates a Color
that defaults back to the containing entity's color.
fn from_index(i: u8) -> Color
Creates a Color
from the specified index.
Trait Implementations
impl Clone for Color
[src]
fn clone(&self) -> Color
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more