gems/carbuncle-gui/mrblib/viewport.rb
module Carbuncle
class GUI
class Viewport < Carbuncle::GUI::Container
attr_reader :font, :gui
delegate :dispose, :disposed?, :draw, to: :gui
def initialize(font)
super(nil)
@font = font
@gui = Carbuncle::GUI.new(font)
end
def update(dt)
@gui.update(dt)
@children.each do |c|
c.update(dt)
end
end
end
end
end