summaryrefslogtreecommitdiffstats
path: root/lib/efl/elm/elm_bg.rb
diff options
context:
space:
mode:
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