class SDL::Window
- SDL::Window
- Reference
- Object
Defined in:
window.crConstructors
Instance Method Summary
- #bordered=(value)
- #brightness
- #brightness=(value)
- #finalize
- #flags
- #fullscreen=(flag : Fullscreen)
- #fullscreen=(value : Bool)
- #gamma_ramp
- #gamma_ramp=(rgb)
- #grab
- #grab=(value)
- #height : Int32
- #hide
- #icon=(icon : Surface)
-
#icon=(path : String)
Sets the icon from the image located at path.
- #maximize
- #maximum_size
- #maximum_size=(wh)
- #minimize
- #minimum_size
- #minimum_size=(wh)
- #position
- #position=(wh)
- #raise
- #restore
- #show
- #size
- #size=(wh)
- #surface
- #title
- #title=(title)
- #to_unsafe : Pointer(LibSDL::Window)
-
#update
Copies the window
#surface
to the screen. - #width : Int32
Constructor Detail
def self.new(title, width : Int32, height : Int32, x : Position = Position::UNDEFINED, y : Position = Position::UNDEFINED, flags : Flags = Flags::SHOWN)
#