class SDL::Window

Defined in:

window.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(title, width : Int32, height : Int32, x : Position = Position::UNDEFINED, y : Position = Position::UNDEFINED, flags : Flags = Flags::SHOWN) #

[View source]

Instance Method Detail

def bordered=(value) #

[View source]
def brightness #

[View source]
def brightness=(value) #

[View source]
def display : SDL::Display #

[View source]
def finalize #

[View source]
def flags #

[View source]
def fullscreen=(flag : Fullscreen) #

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

[View source]
def gamma_ramp #

[View source]
def gamma_ramp=(rgb) #

[View source]
def grab #

[View source]
def grab=(value) #

[View source]
def height : Int32 #

[View source]
def hide #

[View source]
def icon=(icon : Surface) #

[View source]
def icon=(path : String) #

Sets the icon from the image located at path. Requires SDL_image.


[View source]
def maximize #

[View source]
def maximum_size #

[View source]
def maximum_size=(wh) #

[View source]
def minimize #

[View source]
def minimum_size #

[View source]
def minimum_size=(wh) #

[View source]
def position #

[View source]
def position=(wh) #

[View source]
def raise #

[View source]
def restore #

[View source]
def show #

[View source]
def size #

[View source]
def size=(wh) #

[View source]
def surface #

[View source]
def title #

[View source]
def title=(title) #

[View source]
def to_unsafe : Pointer(LibSDL::Window) #

[View source]
def update #

Copies the window #surface to the screen.


[View source]
def width : Int32 #

[View source]