Module: ClutterGtk

Defined in:
lib/clutter-gtk.rb

Defined Under Namespace

Classes: InitError, Loader

Constant Summary collapse

LOG_DOMAIN =
"Clutter-Gtk"

Class Method Summary collapse

Class Method Details

.const_missing(name) ⇒ Object



26
27
28
29
30
31
32
33
# File 'lib/clutter-gtk.rb', line 26

def const_missing(name)
  init()
  if const_defined?(name)
    const_get(name)
  else
    super
  end
end

.init(argv = []) ⇒ Object



35
36
37
38
39
40
41
42
43
44
# File 'lib/clutter-gtk.rb', line 35

def init(argv=[])
  class << self
    remove_method(:init)
    remove_method(:const_missing)
  end
  Gtk.init if Gtk.respond_to?(:init)
  loader = Loader.new(self, argv)
  loader.load
  Clutter.init(argv) if Clutter.respond_to?(:init)
end