Struct imgui::ImColor[][src]

pub struct ImColor(_);

Wrap ImU32 (a type typically used by ImGui to store packed colors) This type is used to represent the color of drawing primitives in ImGui's custom drawing API.

The type implements From<ImU32>, From<ImVec4>, From<[f32; 4]>, From<[f32; 3]>, From<(f32, f32, f32, f32)> and From<(f32, f32, f32)> for convenience. If alpha is not provided, it is assumed to be 1.0 (255).

Trait Implementations

impl Copy for ImColor
[src]

impl Clone for ImColor
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for ImColor
[src]

impl PartialEq for ImColor
[src]

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

This method tests for !=.

impl Debug for ImColor
[src]

Formats the value using the given formatter. Read more

impl From<ImColor> for ImU32
[src]

Performs the conversion.

impl From<ImU32> for ImColor
[src]

Performs the conversion.

impl From<ImVec4> for ImColor
[src]

Performs the conversion.

impl From<[f32; 4]> for ImColor
[src]

Performs the conversion.

impl From<(f32, f32, f32, f32)> for ImColor
[src]

Performs the conversion.

impl From<[f32; 3]> for ImColor
[src]

Performs the conversion.

impl From<(f32, f32, f32)> for ImColor
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for ImColor

impl Sync for ImColor