summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm/elm_cnp.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-03-07 00:48:20 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-03-07 00:48:20 +0100
commit82bfaab0b6487697b12c8544b6c70e72b4e4f7cf (patch)
treefb30f4ffe2c7b3f1c8a5c4a4b4ed02373649554d /lib/efl/native/elm/elm_cnp.rb
parent8c2f3d46390d2f44d2fcd58cd4f39ad621e6b3db (diff)
parent7d430af815626bb783f0eb435d7df549733958d2 (diff)
downloadffi-efl-82bfaab0b6487697b12c8544b6c70e72b4e4f7cf.zip
ffi-efl-82bfaab0b6487697b12c8544b6c70e72b4e4f7cf.tar.gz
Merge branch 'master' of asynk.ch:ffi-efl
Diffstat (limited to 'lib/efl/native/elm/elm_cnp.rb')
-rw-r--r--lib/efl/native/elm/elm_cnp.rb54
1 files changed, 54 insertions, 0 deletions
diff --git a/lib/efl/native/elm/elm_cnp.rb b/lib/efl/native/elm/elm_cnp.rb
new file mode 100644
index 0000000..7b90c9c
--- /dev/null
+++ b/lib/efl/native/elm/elm_cnp.rb
@@ -0,0 +1,54 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/elementary'
+#
+module Efl
+ #
+ module ElmCnp
+ #
+ FCT_PREFIX = 'elm_cnp_' unless const_defined? :FCT_PREFIX
+ #
+ def self.method_missing meth, *args, &block
+ sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
+ self.send sym, *args, &block
+ end
+ #
+ end
+ #
+ module Native
+ #
+ ffi_lib 'elementary-ver-pre-svn-09.so.0'
+ #
+ # ENUMS
+ # typedef enum {...} Elm_Sel_Type;
+ enum :elm_sel_type, [ :elm_sel_type_primary, :elm_sel_type_secondary, :elm_sel_type_xdnd, :elm_sel_type_clipboard ]
+ # typedef enum {...} Elm_Sel_Format;
+ enum :elm_sel_format, [ :elm_sel_format_targets, -1, :elm_sel_format_none, 0x0, :elm_sel_format_text, 0x01, :elm_sel_format_markup, 0x02,
+ :elm_sel_format_image, 0x04, :elm_sel_format_vcard, 0x08, :elm_sel_format_html, 0x10 ]
+ #
+ # TYPEDEFS
+ # typedef struct _Elm_Selection_Data Elm_Selection_Data;
+ typedef :pointer, :elm_selection_data
+ #
+ # CALLBACKS
+ # typedef Eina_Bool (*Elm_Drop_Cb) (void *data, Evas_Object *obj, Elm_Selection_Data *ev);
+ callback :elm_drop_cb, [ :pointer, :evas_object, :elm_selection_data ], :bool
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI Eina_Bool elm_cnp_selection_set(Evas_Object *obj, Elm_Sel_Type selection, Elm_Sel_Format format, const void *buf, size_t buflen);
+ [ :elm_cnp_selection_set, [ :evas_object, :elm_sel_type, :elm_sel_format, :pointer, :ulong ], :bool ],
+ # EAPI Eina_Bool elm_cnp_selection_get(Evas_Object *obj, Elm_Sel_Type selection, Elm_Sel_Format format, Elm_Drop_Cb datacb, void *udata);
+ [ :elm_cnp_selection_get, [ :evas_object, :elm_sel_type, :elm_sel_format, :elm_drop_cb, :pointer ], :bool ],
+ # EAPI Eina_Bool elm_object_cnp_selection_clear(Evas_Object *obj, Elm_Sel_Type selection);
+ [ :elm_object_cnp_selection_clear, [ :evas_object, :elm_sel_type ], :bool ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF