class Joyce::ApplicationView
Attributes
application[R]
Public Class Methods
new(application)
click to toggle source
# File lib/joyce/application_view.rb, line 5 def initialize(application) @application ||= application end
Public Instance Methods
font()
click to toggle source
# File lib/joyce/application_view.rb, line 17 def font @font ||= if defined?(Gosu) Gosu::Font.new(20) else nil # NullFont? end end
mouse_position()
click to toggle source
# File lib/joyce/application_view.rb, line 25 def mouse_position window.mouse_position end
render()
click to toggle source
# File lib/joyce/application_view.rb, line 9 def render # ... end
window()
click to toggle source
# File lib/joyce/application_view.rb, line 13 def window @application.window end