aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-07-30 13:29:28 +0200
committerTomaka17 <pierre.krieger1708@gmail.com>2014-07-30 13:29:28 +0200
commit6d9c5eb2bd61ef811afff959c2d7e7e3a1d21f06 (patch)
tree018c0ff647b97ebacb416e0949e17e34355c1a52 /src/win32
parent1249ebed803993078f4c11e5d2565477bdaeccf5 (diff)
downloadglutin-6d9c5eb2bd61ef811afff959c2d7e7e3a1d21f06.tar.gz
glutin-6d9c5eb2bd61ef811afff959c2d7e7e3a1d21f06.zip
should_close() renamed to is_closed()
Diffstat (limited to 'src/win32')
-rw-r--r--src/win32/mod.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/win32/mod.rs b/src/win32/mod.rs
index bc268fc..cfa0992 100644
--- a/src/win32/mod.rs
+++ b/src/win32/mod.rs
@@ -13,7 +13,7 @@ pub struct Window {
context: ffi::HGLRC,
gl_library: ffi::HMODULE,
events_receiver: Receiver<Event>,
- should_close: AtomicBool,
+ is_closed: AtomicBool,
nosend: NoSend,
}
@@ -187,14 +187,14 @@ impl Window {
context: context,
gl_library: gl_library,
events_receiver: events_receiver,
- should_close: AtomicBool::new(false),
+ is_closed: AtomicBool::new(false),
nosend: NoSend,
})
}
- pub fn should_close(&self) -> bool {
+ pub fn is_closed(&self) -> bool {
use std::sync::atomics::Relaxed;
- self.should_close.load(Relaxed)
+ self.is_closed.load(Relaxed)
}
/// Calls SetWindowText on the HWND.
@@ -292,7 +292,7 @@ impl Window {
if events.iter().find(|e| match e { &&::Closed => true, _ => false }).is_some() {
use std::sync::atomics::Relaxed;
- self.should_close.store(true, Relaxed);
+ self.is_closed.store(true, Relaxed);
}
events