1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'efl/ffi/ecore_evas'
#
module Efl
#
module EcoreEvas
#
class REcoreEvas
include Efl::ClassHelper
@search_paths = [ [Efl::EcoreEvas,'ecore_evas_'].freeze ]
def initialize o=nil, &block
@ptr = (
case o
when NilClass
FFI::AutoPointer.new Efl::EcoreEvas.ecore_evas_new(nil, 0, 0, 0, 0, nil), method(:free)
when self.class
o.to_ptr
when FFI::AutoPointer
o
when FFI::Pointer
FFI::AutoPointer.new o, method(:free)
else
raise ArgumentError.new "wrong argument #{o.class.name}"
end
)
yield self if block_given?
end
def free
Efl::EcoreEvas.ecore_evas_free @ptr
@ptr=nil
end
def get
# EAPI Evas *ecore_evas_get(const Ecore_Evas *ee);
Efl::Evas::REvas.new Efl::EcoreEvas.ecore_evas_get @ptr
end
def object_image_new
# EAPI Evas_Object *ecore_evas_object_image_new(Ecore_Evas *ee_target);
Efl::Evas::REvasObject.new Efl::EcoreEvas.ecore_evas_object_image_new @prt
end
def object_associate_get
# EAPI Evas_Object *ecore_evas_object_associate_get(const Ecore_Evas *ee);
Efl::Evas::REvasObject.new Efl::EcoreEvas.ecore_evas_object_associate_get @prt
end
#
end
#
end
#
module Evas
#
class REvas
def ecore_evas_get
# EAPI Ecore_Evas *ecore_evas_ecore_evas_get(const Evas *e);
Efl::EcoreEvas::REcoreEvas.new Efl::EcoreEvas.ecore_evas_ecore_evas_get @ptr
end
end
#
class REvasObject
def ecore_evas_get
# EAPI Ecore_Evas *ecore_evas_object_ecore_evas_get(Evas_Object *obj);
Efl::EcoreEvas::REcoreEvas.new Efl::EcoreEvas.ecore_evas_object_ecore_evas_get @ptr
end
def evas_get
# EAPI Evas *ecore_evas_object_evas_get(Evas_Object *obj);
Efl::Evas::REvas.new Efl::EcoreEvas.ecore_evas_object_evas_get @ptr
end
end
end
# TODO
#EAPI unsigned char ecore_getopt_callback_ecore_evas_list_engines(const Ecore_Getopt *parser, const Ecore_Getopt_Desc *desc, const char *str, void *data, Ecore_Getopt_Value *storage);
#
end
#
# EOF
|