Module: Efl::EcoreEvas

Defined in:
lib/efl/ecore_evas.rb,
lib/efl/native/ecore_evas.rb

Defined Under Namespace

Classes: REcoreEvas

Class Method Summary collapse

Class Method Details

.ecore_evas_listObject



10
11
12
# File 'lib/efl/ecore_evas.rb', line 10

def self.ecore_evas_list
    EinaList::REinaList.new Native.ecore_evas_ecore_evas_list_get
end

.engines_listObject



13
14
15
# File 'lib/efl/ecore_evas.rb', line 13

def self.engines_list
    EinaList::REinaList.new Native.ecore_evas_engines_get
end

.method_missing(m, *args, &block) ⇒ Object



10
11
12
13
14
15
# File 'lib/efl/native/ecore_evas.rb', line 10

def self.method_missing m, *args, &block
    sym = 'ecore_evas_'+m.to_s
    raise NameError.new "#{self.name}.#{sym} (#{m})" if not Efl::Native.respond_to? sym
    self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(*args); yield r if block_given?; r; end"
    self.send m, *args, &block
end