Class: MainController

Inherits:
RuGUI::BaseMainController show all
Defined in:
lib/rugui/generators/rugui/templates/framework_specific/qt/app/controllers/main_controller.rb,
lib/rugui/generators/rugui/templates/framework_specific/gtk/app/controllers/main_controller.rb,
lib/rugui/generators/rugui/templates/framework_specific/rubygame/app/controllers/main_controller.rb

Overview

The main controller for the application.

NOTE: This controller doesn’t inherit from ApplicationController, instead, it inherits from RuGUI::BaseMainController. Use it only as a starting point. Commonly it is used only to register global models and controllers, as well as the main view, but this is entirely up to you.

Instance Attribute Summary

Attributes inherited from RuGUI::BaseMainController

#screen

Attributes inherited from RuGUI::BaseController

#controllers, #main_models, #models, #parent_controller, #views

Instance Method Summary collapse

Methods inherited from RuGUI::BaseMainController

#clock, #event_queue, framerate, #framework_adapter, ignored_events, #initialize, #quit, quit_hooks, #refresh, #run, screen_depth, screen_flags, screen_height, screen_title, screen_width, #step, #tick

Methods inherited from RuGUI::BaseController

controllers, #framework_adapter, #initialize, #main_controller, main_models, models, #post_registration, #register_controller, #register_main_model, #register_model, #register_view, views

Methods included from RuGUI::InitializeHooks

included, #initialize_with_hooks, update_initialize_method

Methods included from RuGUI::EntityRegistrationSupport

included

Methods included from RuGUI::SignalSupport

#autoconnect_declared_signals, included

Methods included from RuGUI::LogSupport

included, #logger

Methods included from RuGUI::PropertyObserver

included, #named_observable_property_updated, #property_updated

Methods included from RuGUI::FrameworkAdapters::FrameworkAdapterSupport

#framework_adapter_for, included, #load_framework_adapter

Methods inherited from RuGUI::BaseObject

#inspect

Constructor Details

This class inherits a constructor from RuGUI::BaseMainController

Instance Method Details

#updateObject

Add your stuff here.



10
11
12
# File 'lib/rugui/generators/rugui/templates/framework_specific/rubygame/app/controllers/main_controller.rb', line 10

def update
  main_view.update_screen
end