class

GLFW::Window

Inherits Reference < Object

Constructors

new(width, height, title, monitor : MonitorLike | Nil = nil, share : WindowLike | Nil = nil, hints = {} of Int32 => Int32)
Source
new(width, height, title, monitor : MonitorLike | Nil, hints)
Source
new(width, height, title, share : WindowLike | Nil, hints)
Source
new(width, height, title, hints)
Source
new(handle : LibGLFW3::Window)
Source

Class methods

create(width, height, title, monitor = nil, share = nil) : LibGLFW3::Window
Source
current
Source
hints=(hints_map : Hash(Int32, Int32))
Source
hints=(hints_map : Nil) : Nil
Source

Instance methods

==(other : Window)
Source
==(other : LibGLFW3::Window)
Source
attribute(key)

TODO: better API for attributes?

Source
clipboard
Source
clipboard=(str : String)
Source
close
Source
cursor=(value : Cursor)
Source
cursor_position
Source
cursor_position=(value : NamedTuple(x: Float64, y: Float64))
Source
destroy
Source
dont_close
Source
finalize
Source
frame_size
Source
framebuffer_size
Source
get_input_mode(mode : Int32)

TODO: better API for input modes?

Source
get_key(key : Int32)

TODO: better API for key pressed/released?

Source
get_mouse_button(button : Int32)

TODO: better API for mouse buttons?

Source
hide
Source
iconify
Source
make_current
Source
monitor
Source
position
Source
position=(value : NamedTuple(x: Int32, y: Int32))
Source
restore
Source
set_input_mode(mode : Int32, value : Int32)
Source
should_close=(value : Bool)
Source
should_close?
Source
show
Source
size
Source
size=(value : NamedTuple(width: Int32, height: Int32))
Source
swap_buffers
Source
title=(str : String)
Source
to_unsafe
Source
user_pointer

TODO: useful? dangerous? better API? Use for something else?

Source
user_pointer=(ptr : Pointer(Void))
Source