Module: Window
- Defined in:
- lib/games_and_rpg_paradise/gui/gosu/books/additions.rb
Overview
#
-
Basic Additions - Loading Bitmaps, Calendar, String, Locate, Input, Color, Rect, Fake Viewport Scripter : Kyonides-Arkanthos 2017-09-03
#
Class Method Summary collapse
- .<<(new_window) ⇒ Object
-
.close ⇒ Object
# === Window.close ========================================================================= #.
- .fullscreen=(boolean) ⇒ Object
-
.fullscreen? ⇒ Boolean
fullscreen?.
- .height ⇒ Object
-
.now ⇒ Object
now.
- .toggle_fullscreen ⇒ Object
-
.width ⇒ Object
width.
Class Method Details
.<<(new_window) ⇒ Object
24 |
# File 'lib/games_and_rpg_paradise/gui/gosu/books/additions.rb', line 24 def <<(new_window) @window = new_window end |
.close ⇒ Object
#
Window.close
#
19 20 21 |
# File 'lib/games_and_rpg_paradise/gui/gosu/books/additions.rb', line 19 def self.close @window.close end |
.fullscreen=(boolean) ⇒ Object
40 |
# File 'lib/games_and_rpg_paradise/gui/gosu/books/additions.rb', line 40 def fullscreen=(boolean) @window.fullscreen = boolean end |
.fullscreen? ⇒ Boolean
fullscreen?
37 38 39 |
# File 'lib/games_and_rpg_paradise/gui/gosu/books/additions.rb', line 37 def fullscreen? @window.fullscreen? end |
.height ⇒ Object
33 34 35 |
# File 'lib/games_and_rpg_paradise/gui/gosu/books/additions.rb', line 33 def height @window.height end |
.now ⇒ Object
now
26 27 28 |
# File 'lib/games_and_rpg_paradise/gui/gosu/books/additions.rb', line 26 def now @window end |
.toggle_fullscreen ⇒ Object
41 |
# File 'lib/games_and_rpg_paradise/gui/gosu/books/additions.rb', line 41 def toggle_fullscreen() @window.fullscreen = !@window.fullscreen? end |
.width ⇒ Object
width
30 31 32 |
# File 'lib/games_and_rpg_paradise/gui/gosu/books/additions.rb', line 30 def width @window.width end |