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 Copy for ImColor
impl Clone for ImColor
[src]
impl Clone for ImColor
fn clone(&self) -> ImColor
[src]
fn clone(&self) -> ImColor
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for ImColor
[src]
impl Eq for ImColor
impl PartialEq for ImColor
[src]
impl PartialEq for ImColor
fn eq(&self, other: &ImColor) -> bool
[src]
fn eq(&self, other: &ImColor) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ImColor) -> bool
[src]
fn ne(&self, other: &ImColor) -> bool
This method tests for !=
.
impl Debug for ImColor
[src]
impl Debug for ImColor
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<ImColor> for ImU32
[src]
impl From<ImColor> for ImU32
impl From<ImU32> for ImColor
[src]
impl From<ImU32> for ImColor
impl From<ImVec4> for ImColor
[src]
impl From<ImVec4> for ImColor
impl From<[f32; 4]> for ImColor
[src]
impl From<[f32; 4]> for ImColor
impl From<(f32, f32, f32, f32)> for ImColor
[src]
impl From<(f32, f32, f32, f32)> for ImColor
impl From<[f32; 3]> for ImColor
[src]
impl From<[f32; 3]> for ImColor
impl From<(f32, f32, f32)> for ImColor
[src]
impl From<(f32, f32, f32)> for ImColor