class Window

Defined in:

window.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(title : String, width : UInt16 = 800, height : UInt16 = 600, fullscreen : Bool = false, cursor_visible : Bool = false) #

[View source]

Instance Method Detail

def cursor_position : RenderLoop::Position #
Description copied from class RenderLoop::Window(Key, MouseButton)

TODO This is implementation specific and shouldn't be part of this lib.


[View source]
def cursor_position=(position : RenderLoop::Position) #
Description copied from class RenderLoop::Window(Key, MouseButton)

TODO This is implementation specific and shouldn't be part of this lib.


[View source]
def cursor_visible=(visible : Bool) #
Description copied from class RenderLoop::Window(Key, MouseButton)

TODO This is implementation specific and shouldn't be part of this lib. abstract def cursor_visible? : Bool

TODO This is implementation specific and shouldn't be part of this lib.


[View source]
def cursor_visible? : Bool #

[View source]
def destroy #

[View source]
def fullscreen? : Bool #

[View source]
def height : UInt16 #

[View source]
def hide #

[View source]
def input #

[View source]
def key_pressed?(k : Key) : Bool #
Description copied from class RenderLoop::Window(Key, MouseButton)

TODO This is implementation specific and shouldn't be part of this lib.


[View source]
def mouse_button_pressed?(b : MouseButton) : Bool #
Description copied from class RenderLoop::Window(Key, MouseButton)

TODO This is implementation specific and shouldn't be part of this lib.


[View source]
def render #

[View source]
def should_close? : Bool #

[View source]
def show #

[View source]
def size(s : RenderLoop::Size) #
Description copied from class RenderLoop::Window(Key, MouseButton)

TODO This is implementation specific and shouldn't be part of this lib.


[View source]
def size : RenderLoop::Size #
Description copied from class RenderLoop::Window(Key, MouseButton)

TODO This is implementation specific and shouldn't be part of this lib.


[View source]
def startup(adapter : WGPU::Adapter, device : WGPU::Device) #

[View source]
def startup #

[View source]
def surface : WGPU::Surface | Nil #

Graphics resources


[View source]
def swap_chain : WGPU::SwapChain | Nil #

[View source]
def title : String #

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

[View source]
def update #

[View source]
def visible? : Bool? #

[View source]
def width : UInt16 #

[View source]