aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32/headless.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32/headless.rs')
-rw-r--r--src/win32/headless.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/win32/headless.rs b/src/win32/headless.rs
index 1da8b02..6189360 100644
--- a/src/win32/headless.rs
+++ b/src/win32/headless.rs
@@ -21,6 +21,11 @@ impl HeadlessContext {
}
/// See the docs in the crate root file.
+ pub fn is_current(&self) -> bool {
+ self.0.is_current()
+ }
+
+ /// See the docs in the crate root file.
pub fn get_proc_address(&self, addr: &str) -> *const () {
self.0.get_proc_address(addr)
}