class Glint::Window
- Glint::Window
- Reference
- Object
Overview
The window is responsible for managing and organising the Game's visual presentation.
Defined in:
glint/window.crConstructors
-
.new(height : Number, width : Number, title : String)
Create a new
Windowwith width/height. - .new(size : Dimension, title : String)
Instance Method Summary
-
#bottom_center : Position
Returns the coordinate at the bottom center of the
Window. -
#bottom_left : Position
Returns the coordinate at the bottom left of the
Window. -
#bottom_right : Position
Returns the coordinate at the bottom right of the
Window. -
#center : Position
Returns the coordinate at the center of the
Window. -
#close
Closes the
Window. -
#close?
Returns whether the
Windowshould close. -
#focused?
Returns whether the
Windowis focused. -
#fullscreen?
Returns whether the
Windowis fullscreen. -
#height : Number
Returns the
Window's height. -
#hidden?
Returns whether the
Windowis hidden. -
#maximized?
Returns whether the
Windowis maximized. -
#middle_center : Position
Returns the coordinate at the middle centre of the
Window. -
#middle_left : Position
Returns the coordinate at the middle left of the
Window. -
#middle_right : Position
Returns the coordinate at the middle right of the
Window. -
#minimized?
Returns whether the
Windowis minimized. -
#ready?
Returns whether the
Windowis ready. -
#resizable=(resizable)
Sets whether the
Windowis resizable. -
#resizable?
Returns whether the
Windowis resizable. -
#resized?
Returns whether the
Windowis resized. -
#restore!
Restore the
Window. -
#title : String
Returns the
Window's title. -
#title=(title : String)
Sets the
Window's title. -
#toggle_fullscreen!
Toggles whether the
Windowis fullscreen. -
#top_center : Position
Returns the coordinate at the top center of the
Window. -
#top_left : Position
Returns the coordinate at the top left of the
Window. -
#top_right : Position
Returns the coordinate at the top righr of the
Window. -
#width : Number
Returns the
Window's width.
Constructor Detail
Create a new Window with width/height.
Instance Method Detail
Returns the coordinate at the bottom center of the Window.
Returns the coordinate at the bottom right of the Window.
Returns the coordinate at the middle centre of the Window.
Returns the coordinate at the middle right of the Window.