aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.rs
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-09-25 18:04:55 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-10-03 09:53:37 +0200
commit8c6a27d42615fc97b1aed31c20c3aff3d25c88d4 (patch)
tree1e08975b0bbfa982ead924ac67b2c873ec55ea53 /src/window.rs
parent9fccb2e06e15f56f270da4f7cbd5fa39b49b6826 (diff)
downloadglutin-8c6a27d42615fc97b1aed31c20c3aff3d25c88d4.tar.gz
glutin-8c6a27d42615fc97b1aed31c20c3aff3d25c88d4.zip
Add an `os` module containing platform-specific traits
Diffstat (limited to 'src/window.rs')
-rw-r--r--src/window.rs31
1 files changed, 3 insertions, 28 deletions
diff --git a/src/window.rs b/src/window.rs
index d9386df..7a87806 100644
--- a/src/window.rs
+++ b/src/window.rs
@@ -14,6 +14,7 @@ use MouseCursor;
use PixelFormat;
use PixelFormatRequirements;
use Robustness;
+use Window;
use WindowAttributes;
use native_monitor::NativeMonitorId;
@@ -224,32 +225,6 @@ impl<'a> WindowBuilder<'a> {
}
}
-/// Represents an OpenGL context and the Window or environment around it.
-///
-/// # Example
-///
-/// ```ignore
-/// let window = Window::new().unwrap();
-///
-/// unsafe { window.make_current() };
-///
-/// loop {
-/// for event in window.poll_events() {
-/// match(event) {
-/// // process events here
-/// _ => ()
-/// }
-/// }
-///
-/// // draw everything here
-///
-/// window.swap_buffers();
-/// std::old_io::timer::sleep(17);
-/// }
-/// ```
-pub struct Window {
- window: platform::Window,
-}
impl Default for Window {
#[inline]
@@ -439,7 +414,7 @@ impl Window {
self.window.swap_buffers()
}
- /// Gets the native platform specific display for this window.
+ /// DEPRECATED. Gets the native platform specific display for this window.
/// This is typically only required when integrating with
/// other libraries that need this information.
#[inline]
@@ -447,7 +422,7 @@ impl Window {
self.window.platform_display()
}
- /// Gets the native platform specific window handle. This is
+ /// DEPRECATED. Gets the native platform specific window handle. This is
/// typically only required when integrating with other libraries
/// that need this information.
#[inline]