class GLFW::Window
- GLFW::Window
- Reference
- Object
Defined in:
glfw/window.crConstructors
- .new(width, height, title, monitor : MonitorLike | Nil = nil, share : WindowLike | Nil = nil, hints = {} of Int32 => Int32)
- .new(width, height, title, monitor : MonitorLike | Nil, hints)
- .new(width, height, title, share : WindowLike | Nil, hints)
- .new(width, height, title, hints)
- .new(handle : LibGLFW3::Window)
Class Method Summary
- .create(width, height, title, monitor = nil, share = nil) : LibGLFW3::Window
- .current
- .hints=(hints_map : Hash(Int32, Int32))
- .hints=(hints_map : Nil) : Nil
Instance Method Summary
- #==(other : Window)
- #==(other : LibGLFW3::Window)
-
#attribute(key)
TODO better API for attributes?
- #clipboard : String
- #clipboard=(str : String)
- #close : Nil
- #cursor=(value : Cursor)
- #cursor_position
- #cursor_position=(value : NamedTuple(x: Float64, y: Float64))
- #destroy : Nil
- #dont_close : Nil
- #finalize
- #frame_size
- #framebuffer_size
-
#get_input_mode(mode : Int32)
TODO better API for input modes?
-
#get_key(key : Int32)
TODO better API for key pressed/released?
-
#get_mouse_button(button : Int32)
TODO better API for mouse buttons?
- #hide
- #iconify
- #make_current : Nil
- #monitor
- #position
- #position=(value : NamedTuple(x: Int32, y: Int32))
- #restore
- #set_input_mode(mode : Int32, value : Int32)
- #should_close=(value : Bool)
- #should_close? : Bool
- #show
- #size
- #size=(value : NamedTuple(width: Int32, height: Int32))
- #swap_buffers : Nil
- #title=(str : String)
- #to_unsafe : LibGLFW3::Window
-
#user_pointer : Pointer(Void)
TODO useful? dangerous? better API? Use for something else?
- #user_pointer=(ptr : Pointer(Void))