Skip to content

Commit

Permalink
rgba: Add TRANSPARENT const
Browse files Browse the repository at this point in the history
Fixes #1314.
  • Loading branch information
A6GibKm authored and bilelmoussaoui committed Feb 21, 2023
1 parent 37f9fff commit 65b5adf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gdk4/src/rgba.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,15 @@ impl RGBA {
alpha: 1f32,
},
};

pub const TRANSPARENT: RGBA = Self {
inner: ffi::GdkRGBA {
red: 0f32,
green: 0f32,
blue: 0f32,
alpha: 0f32,
},
};
}

impl fmt::Debug for RGBA {
Expand Down

0 comments on commit 65b5adf

Please sign in to comment.