Class: Joyce::ApplicationView
- Inherits:
-
Object
- Object
- Joyce::ApplicationView
- Includes:
- PassiveRecord
- 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.
21 22 23 |
# File 'lib/joyce.rb', line 21 def initialize(application) @application ||= application end |
Instance Attribute Details
#application ⇒ Object (readonly)
Returns the value of attribute application.
19 20 21 |
# File 'lib/joyce.rb', line 19 def application @application end |
Instance Method Details
#font ⇒ Object
33 34 35 |
# File 'lib/joyce.rb', line 33 def font @font ||= Gosu::Font.new(20) end |
#mouse_position ⇒ Object
37 38 39 |
# File 'lib/joyce.rb', line 37 def mouse_position window.mouse_position end |
#render ⇒ Object
25 26 27 |
# File 'lib/joyce.rb', line 25 def render # ... end |
#window ⇒ Object
29 30 31 |
# File 'lib/joyce.rb', line 29 def window @application.window end |