Class: Joyce::ApplicationView
- Inherits:
-
Object
- Object
- Joyce::ApplicationView
- Defined in:
- lib/joyce.rb
Instance Attribute Summary collapse
-
#application ⇒ Object
readonly
Returns the value of attribute application.
Instance Method Summary collapse
- #font ⇒ Object
-
#initialize(application) ⇒ ApplicationView
constructor
A new instance of ApplicationView.
- #mouse_position ⇒ Object
- #render ⇒ Object
- #window ⇒ Object
Constructor Details
#initialize(application) ⇒ ApplicationView
Returns a new instance of ApplicationView.
19 20 21 |
# File 'lib/joyce.rb', line 19 def initialize(application) @application ||= application end |
Instance Attribute Details
#application ⇒ Object (readonly)
Returns the value of attribute application.
17 18 19 |
# File 'lib/joyce.rb', line 17 def application @application end |
Instance Method Details
#font ⇒ Object
31 32 33 |
# File 'lib/joyce.rb', line 31 def font @font ||= Gosu::Font.new(20) end |
#mouse_position ⇒ Object
35 36 37 |
# File 'lib/joyce.rb', line 35 def mouse_position window.mouse_position end |
#render ⇒ Object
23 24 25 |
# File 'lib/joyce.rb', line 23 def render # ... end |
#window ⇒ Object
27 28 29 |
# File 'lib/joyce.rb', line 27 def window @application.window end |