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
Window
with 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
Window
should close. -
#focused?
Returns whether the
Window
is focused. -
#fullscreen?
Returns whether the
Window
is fullscreen. -
#height : Number
Returns the
Window
's height. -
#hidden?
Returns whether the
Window
is hidden. -
#maximized?
Returns whether the
Window
is 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
Window
is minimized. -
#ready?
Returns whether the
Window
is ready. -
#resizable=(resizable)
Sets whether the
Window
is resizable. -
#resizable?
Returns whether the
Window
is resizable. -
#resized?
Returns whether the
Window
is 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
Window
is 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
.