mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-18 17:08:27 +00:00
ImColor: Derive Eq, PartialEq, Debug
This commit is contained in:
parent
43a2484c22
commit
746bdc5ef3
@ -12,7 +12,7 @@ use std::marker::PhantomData;
|
||||
/// 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).
|
||||
#[derive(Copy, Clone)]
|
||||
#[derive(Copy, Clone, Eq, PartialEq, Debug)]
|
||||
pub struct ImColor(ImU32);
|
||||
|
||||
impl From<ImColor> for ImU32 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user