Struct dxf::Color [] [src]

pub struct Color { /* fields omitted */ }

Represents an indexed color.

Methods

impl Color
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Returns true if the color represents a proper color index.

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Creates a Color from the specified index.

Trait Implementations

impl Clone for Color
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Color
[src]

[src]

Formats the value using the given formatter.

impl Default for Color
[src]

[src]

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

impl PartialEq for Color
[src]

[src]

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

[src]

This method tests for !=.