Skip to content

Commit 86dad67

Browse files
A6GibKmbilelmoussaoui
authored andcommitted
rgba: Add TRANSPARENT const
Fixes #1314.
1 parent e37f821 commit 86dad67

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

gdk4/src/rgba.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,15 @@ impl RGBA {
186186
alpha: 1f32,
187187
},
188188
};
189+
190+
pub const TRANSPARENT: RGBA = Self {
191+
inner: ffi::GdkRGBA {
192+
red: 0f32,
193+
green: 0f32,
194+
blue: 0f32,
195+
alpha: 0f32,
196+
},
197+
};
189198
}
190199

191200
impl fmt::Debug for RGBA {

0 commit comments

Comments
 (0)