aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.rs')
-rw-r--r--src/window.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/window.rs b/src/window.rs
index 1bab245..bd5fc14 100644
--- a/src/window.rs
+++ b/src/window.rs
@@ -409,6 +409,11 @@ impl Window {
pub fn hidpi_factor(&self) -> f32 {
self.window.hidpi_factor()
}
+
+ /// Changes the position of the cursor in window coordinates.
+ pub fn set_cursor_position(&self, x: i32, y: i32) -> Result<(), ()> {
+ self.window.set_cursor_position(x, y)
+ }
}
impl gl_common::GlFunctionsSource for Window {