Class: Joyce::ApplicationView

Inherits:
Object
  • Object
show all
Includes:
PassiveRecord
Defined in:
lib/joyce.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#applicationObject (readonly)

Returns the value of attribute application.



19
20
21
# File 'lib/joyce.rb', line 19

def application
  @application
end

Instance Method Details

#fontObject



33
34
35
# File 'lib/joyce.rb', line 33

def font
  @font ||= Gosu::Font.new(20)
end

#mouse_positionObject



37
38
39
# File 'lib/joyce.rb', line 37

def mouse_position
  window.mouse_position
end

#renderObject



25
26
27
# File 'lib/joyce.rb', line 25

def render
  # ...
end

#windowObject



29
30
31
# File 'lib/joyce.rb', line 29

def window
  @application.window
end