aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2016-04-29 20:39:59 +0200
committertomaka <pierre.krieger1708@gmail.com>2016-04-29 20:39:59 +0200
commit2e2febaa42f8f308760e0a33003d46841d892f43 (patch)
tree11e04bd8607b2443b05e0781fa63c58dfff1f19d /src/lib.rs
parente46781979499e47e04697fe96994dfe96b7f1e59 (diff)
parentdc49156fe6bd2d15c4bd5e5f9e1ff6f3ffe7d334 (diff)
downloadglutin-2e2febaa42f8f308760e0a33003d46841d892f43.tar.gz
glutin-2e2febaa42f8f308760e0a33003d46841d892f43.zip
Merge pull request #769 from frewsxcv/activation-policy
Allow OSX WindowBuilder to specify 'activation behavior'.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index fb03bed..ff5d52e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -62,7 +62,7 @@ extern crate wayland_client;
pub use events::*;
pub use headless::{HeadlessRendererBuilder, HeadlessContext};
-pub use window::{WindowBuilder, WindowProxy, PollEventsIterator, WaitEventsIterator};
+pub use window::{WindowProxy, PollEventsIterator, WaitEventsIterator};
pub use window::{AvailableMonitorsIter, MonitorId, get_available_monitors, get_primary_monitor};
pub use native_monitor::NativeMonitorId;
@@ -105,6 +105,21 @@ pub struct Window {
window: platform::Window,
}
+/// Object that allows you to build windows.
+pub struct WindowBuilder<'a> {
+ /// The attributes to use to create the window.
+ pub window: WindowAttributes,
+
+ /// The attributes to use to create the context.
+ pub opengl: GlAttributes<&'a platform::Window>,
+
+ // Should be made public once it's stabilized.
+ pf_reqs: PixelFormatRequirements,
+
+ /// Platform-specific configuration.
+ platform_specific: platform::PlatformSpecificWindowBuilderAttributes,
+}
+
/// Trait that describes objects that have access to an OpenGL context.
pub trait GlContext {
/// Sets the context as the current context.