class GLFW::Window

Defined in:

glfw/window.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(width, height, title, monitor : MonitorLike | Nil = nil, share : WindowLike | Nil = nil, hints = {} of Int32 => Int32) #

[View source]
def self.new(width, height, title, monitor : MonitorLike | Nil, hints) #

[View source]
def self.new(width, height, title, share : WindowLike | Nil, hints) #

[View source]
def self.new(width, height, title, hints) #

[View source]
def self.new(handle : LibGLFW3::Window) #

[View source]

Class Method Detail

def self.create(width, height, title, monitor = nil, share = nil) : LibGLFW3::Window #

[View source]
def self.current #

[View source]
def self.hints=(hints_map : Hash(Int32, Int32)) #

[View source]
def self.hints=(hints_map : Nil) : Nil #

[View source]

Instance Method Detail

def ==(other : Window) #

[View source]
def ==(other : LibGLFW3::Window) #

[View source]
def attribute(key) #

TODO better API for attributes?


[View source]
def clipboard : String #

[View source]
def clipboard=(str : String) #

[View source]
def close : Nil #

[View source]
def cursor=(value : Cursor) #

[View source]
def cursor_position #

[View source]
def cursor_position=(value : NamedTuple(x: Float64, y: Float64)) #

[View source]
def destroy : Nil #

[View source]
def dont_close : Nil #

[View source]
def finalize #

[View source]
def frame_size #

[View source]
def framebuffer_size #

[View source]
def get_input_mode(mode : Int32) #

TODO better API for input modes?


[View source]
def get_key(key : Int32) #

TODO better API for key pressed/released?


[View source]
def get_mouse_button(button : Int32) #

TODO better API for mouse buttons?


[View source]
def hide #

[View source]
def iconify #

[View source]
def make_current : Nil #

[View source]
def monitor #

[View source]
def position #

[View source]
def position=(value : NamedTuple(x: Int32, y: Int32)) #

[View source]
def restore #

[View source]
def set_input_mode(mode : Int32, value : Int32) #

[View source]
def should_close=(value : Bool) #

[View source]
def should_close? : Bool #

[View source]
def show #

[View source]
def size #

[View source]
def size=(value : NamedTuple(width: Int32, height: Int32)) #

[View source]
def swap_buffers : Nil #

[View source]
def title=(str : String) #

[View source]
def to_unsafe : LibGLFW3::Window #

[View source]
def user_pointer : Pointer(Void) #

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


[View source]
def user_pointer=(ptr : Pointer(Void)) #

[View source]