summaryrefslogtreecommitdiffstats
path: root/lib/efl/elm/elm_bg.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-27 12:35:14 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-27 12:35:14 +0100
commit63df15daae7a3b86478d635128e814149918bb09 (patch)
treee76fbea0f1b0432ec17c105310d9928e420dfa06 /lib/efl/elm/elm_bg.rb
parent7603f4c0902bf5845c7e7654c3745f5519347c8b (diff)
downloadffi-efl-63df15daae7a3b86478d635128e814149918bb09.zip
ffi-efl-63df15daae7a3b86478d635128e814149918bb09.tar.gz
add elementary,elementary_all,elm/elm_bg,elm/elm_label,elm/elm_object,elm/elm_win
Diffstat (limited to 'lib/efl/elm/elm_bg.rb')
-rw-r--r--lib/efl/elm/elm_bg.rb37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/efl/elm/elm_bg.rb b/lib/efl/elm/elm_bg.rb
new file mode 100644
index 0000000..1eea4ce
--- /dev/null
+++ b/lib/efl/elm/elm_bg.rb
@@ -0,0 +1,37 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/elm/elm_object'
+require 'efl/native/elm/elm_bg'
+#
+module Efl
+ #
+ module Elm
+ #
+ class ElmBg < ElmObject
+ #
+ include Helper
+ constructor :elm_bg_add
+ search_prefixes 'elm_bg_'
+ #
+ def file_get
+ f = FFI::MemoryPointer.new :pointer
+ g = FFI::MemoryPointer.new :pointer
+ Native.elm_bg_file_get @ptr, f, g
+ [ f.read_pointer.read_string, g.read_pointer.read_string ]
+ end
+ alias :file :file_get
+ def color_get
+ r = FFI::MemoryPointer.new :int
+ g = FFI::MemoryPointer.new :int
+ b = FFI::MemoryPointer.new :int
+ Native.elm_bg_color_get @ptr, r, g, b
+ [ r.read_int, g.read_int, b.read_int ]
+ end
+ alias :color :color_get
+ end
+ #
+ end
+end
+#
+# EOF