diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-05-15 15:19:33 +0200 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-05-24 09:10:44 +0200 |
commit | 81314f91d82dff07f6da3409dd1280a68d4dcd60 (patch) | |
tree | 6619e34132f1b1ca5d8174e28a3ae1508340c1fb /src/lib.rs | |
parent | 1377f276b7b64a1e75aa43da7efdea9a81155397 (diff) | |
download | glutin-81314f91d82dff07f6da3409dd1280a68d4dcd60.tar.gz glutin-81314f91d82dff07f6da3409dd1280a68d4dcd60.zip |
Add API for transparency and decorations and add support for win32
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -295,6 +295,8 @@ pub struct BuilderAttribs<'a> { alpha_bits: Option<u8>, stereoscopy: bool, srgb: Option<bool>, + transparent: bool, + decorations: bool, } impl BuilderAttribs<'static> { @@ -318,6 +320,8 @@ impl BuilderAttribs<'static> { alpha_bits: None, stereoscopy: false, srgb: None, + transparent: false, + decorations: true, } } } @@ -346,6 +350,8 @@ impl<'a> BuilderAttribs<'a> { alpha_bits: self.alpha_bits, stereoscopy: self.stereoscopy, srgb: self.srgb, + transparent: self.transparent, + decorations: self.decorations, }; (new_attribs, sharing) |