summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm/elm_scale.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/efl/native/elm/elm_scale.rb')
-rw-r--r--lib/efl/native/elm/elm_scale.rb41
1 files changed, 41 insertions, 0 deletions
diff --git a/lib/efl/native/elm/elm_scale.rb b/lib/efl/native/elm/elm_scale.rb
new file mode 100644
index 0000000..e9cf1ce
--- /dev/null
+++ b/lib/efl/native/elm/elm_scale.rb
@@ -0,0 +1,41 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/elementary'
+#
+module Efl
+ #
+ module ElmScale
+ #
+ FCT_PREFIX = 'elm_scale_' 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'
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI double elm_scale_get(void);
+ [ :elm_scale_get, [ ], :double ],
+ # EAPI void elm_scale_set(double scale);
+ [ :elm_scale_set, [ :double ], :void ],
+ # EAPI void elm_object_scale_set(Evas_Object *obj, double scale);
+ [ :elm_object_scale_set, [ :evas_object, :double ], :void ],
+ # EAPI double elm_object_scale_get(const Evas_Object *obj);
+ [ :elm_object_scale_get, [ :evas_object ], :double ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF