Module: Efl::Evas

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

Defined Under Namespace

Classes: REvas, REvasBox, REvasLine, REvasObject, REvasPolygon, REvasRectangle, REvasText

Constant Summary

EVAS_ENGINE_BUFFER_DEPTH_ARGB32 =
0
EVAS_ENGINE_BUFFER_DEPTH_BGRA32 =
1
EVAS_ENGINE_BUFFER_DEPTH_RGB24 =
2
EVAS_ENGINE_BUFFER_DEPTH_BGR24 =
3
EVAS_ENGINE_BUFFER_DEPTH_RGB32 =
4
EVAS_HINT_FILL =
1.0
EVAS_HINT_EXPAND =
1.0

Class Method Summary (collapse)

Class Method Details

+ (Object) method_missing(m, *args, &block)



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

def self.method_missing m, *args, &block
    sym = '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

+ (Object) version



51
52
53
# File 'lib/efl/evas.rb', line 51

def self.version
    Native::VersionStruct.new(Native.evas_version)
end