Struct dxf::Color [] [src]

pub struct Color { /* fields omitted */ }

Represents an indexed color.

Methods

impl Color
[src]

Returns true if the color defaults back to the item's layer's color.

Returns true if the color defaults back to the entity's color.

Returns true if the color defaults back to the containing block's color.

Returns true if the color represents a Layer that is turned off.

Sets the color to default back to the item's layer's color.

Sets the color to default back to the containing block's color.

Sets the color to default back to the containing entity's color.

Sets the color to represent a Layer that is turned off.

Returns true if the color represents a proper color index.

Gets an Option<u8> of the indexable value of the color.

Creates a Color that defaults to the item's layer's color.

Creates a Color that defaults back to the containing block's color.

Creates a Color that defaults back to the containing entity's color.

Creates a Color from the specified index.

Trait Implementations

impl Clone for Color
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Color
[src]

Formats the value using the given formatter.

impl Default for Color
[src]

Returns the "default value" for a type. Read more

impl PartialEq for Color
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.