mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
glfw: window add set resize callback method
This commit is contained in:
parent
75eebb516f
commit
4d6958381d
@ -184,6 +184,10 @@ pub fn (w mut glfw.Window) set_mouse_button_callback(cb voidptr) {
|
||||
C.glfwSetMouseButtonCallback(w.data, cb)
|
||||
}
|
||||
|
||||
pub fn (w mut glfw.Window) on_resize(cb voidptr) {
|
||||
C.glfwSetWindowSizeCallback(w.data, cb)
|
||||
}
|
||||
|
||||
pub fn (w mut glfw.Window) on_click(cb voidptr) {
|
||||
C.glfwSetMouseButtonCallback(w.data, cb)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user