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

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

.closeObject

#

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?

Returns:

  • (Boolean)


37
38
39
# File 'lib/games_and_rpg_paradise/gui/gosu/books/additions.rb', line 37

def fullscreen?
  @window.fullscreen?
end

.heightObject



33
34
35
# File 'lib/games_and_rpg_paradise/gui/gosu/books/additions.rb', line 33

def height
  @window.height
end

.nowObject

now



26
27
28
# File 'lib/games_and_rpg_paradise/gui/gosu/books/additions.rb', line 26

def now
  @window
end

.toggle_fullscreenObject



41
# File 'lib/games_and_rpg_paradise/gui/gosu/books/additions.rb', line 41

def toggle_fullscreen() @window.fullscreen = !@window.fullscreen? end

.widthObject

width



30
31
32
# File 'lib/games_and_rpg_paradise/gui/gosu/books/additions.rb', line 30

def width
  @window.width
end