diff options
| author | tomaka <pierre.krieger1708@gmail.com> | 2015-10-03 10:11:11 +0200 | 
|---|---|---|
| committer | tomaka <pierre.krieger1708@gmail.com> | 2015-10-03 10:11:11 +0200 | 
| commit | c8fd077e17f7a7147d6877f2343c82790b187bd2 (patch) | |
| tree | 5ecb913e185ea471fb6f3892537b0f5677614ee1 /src/window.rs | |
| parent | 5e1e7436af2b06350d30420c43e8b4a0dcf8ddfe (diff) | |
| parent | 8c6a27d42615fc97b1aed31c20c3aff3d25c88d4 (diff) | |
| download | glutin-c8fd077e17f7a7147d6877f2343c82790b187bd2.tar.gz glutin-c8fd077e17f7a7147d6877f2343c82790b187bd2.zip | |
Merge pull request #617 from tomaka/platform-specific
Add an `os` module containing platform-specific traits
Diffstat (limited to 'src/window.rs')
| -rw-r--r-- | src/window.rs | 31 | 
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] | 
