Improve documentation

This commit is contained in:
Osspial
2018-08-23 19:09:19 -04:00
parent 4377680a44
commit 42e8a0d2cf
9 changed files with 103 additions and 38 deletions

View File

@@ -1,3 +1,4 @@
//! The `Window` struct and associated types.
use std::{fmt, error};
use platform_impl;
@@ -578,6 +579,7 @@ impl Window {
MonitorId { inner: self.window.get_primary_monitor() }
}
/// Returns an identifier unique to the window.
#[inline]
pub fn id(&self) -> WindowId {
WindowId(self.window.id())