From 81314f91d82dff07f6da3409dd1280a68d4dcd60 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Fri, 15 May 2015 15:19:33 +0200 Subject: Add API for transparency and decorations and add support for win32 --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 1169513..d2aaf46 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -295,6 +295,8 @@ pub struct BuilderAttribs<'a> { alpha_bits: Option, stereoscopy: bool, srgb: Option, + 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) -- cgit v1.2.3