summaryrefslogtreecommitdiffstats
path: root/lib/efl
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-06 11:17:02 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-06 11:17:02 +0200
commit86c7bb0aa79ddea6fd26c4525af0fbf212658d1b (patch)
tree340b5e3267e971b85e4c67e09ecf48b951833dee /lib/efl
parente70f8fdfbb74919d38392123b26a764db3561192 (diff)
downloadffi-efl-86c7bb0aa79ddea6fd26c4525af0fbf212658d1b.zip
ffi-efl-86c7bb0aa79ddea6fd26c4525af0fbf212658d1b.tar.gz
Efl::Evas::REvasText and specs
Diffstat (limited to 'lib/efl')
-rw-r--r--lib/efl/evas.rb70
1 files changed, 70 insertions, 0 deletions
diff --git a/lib/efl/evas.rb b/lib/efl/evas.rb
index 942fc4e..3614784 100644
--- a/lib/efl/evas.rb
+++ b/lib/efl/evas.rb
@@ -280,6 +280,76 @@ module Efl
#
search_prefixes 'evas_object_text_'
#
+ def font_get
+ f = FFI::MemoryPointer.new :string
+ s = FFI::MemoryPointer.new :int
+ Native.evas_object_text_font_get @ptr, f, s
+ [ f.read_pointer.read_string, s.read_int ]
+ end
+ alias :font :font_get
+ def char_pos_get pos
+ cx = FFI::MemoryPointer.new :int
+ cy = FFI::MemoryPointer.new :int
+ cw = FFI::MemoryPointer.new :int
+ ch = FFI::MemoryPointer.new :int
+ Native.evas_object_text_char_pos_get @ptr, pos, cx, cy, cw, ch
+ return [ cx.read_int, cy.read_int, cw.read_int, ch.read_int ]
+ end
+ alias :char_pos :char_pos_get
+ def char_coords_get x, y
+ cx = FFI::MemoryPointer.new :int
+ cy = FFI::MemoryPointer.new :int
+ cw = FFI::MemoryPointer.new :int
+ ch = FFI::MemoryPointer.new :int
+ r = Native.evas_object_text_char_coords_get @ptr, x, y, cx, cy, cw, ch
+ return [ r, cx.read_int, cy.read_int, cw.read_int, ch.read_int ]
+ end
+ alias :char_coords :char_coords_get
+ def style_pad_get
+ l = FFI::MemoryPointer.new :int
+ r = FFI::MemoryPointer.new :int
+ t = FFI::MemoryPointer.new :int
+ b = FFI::MemoryPointer.new :int
+ Native.evas_object_text_shadow_color_get @ptr, l, r, t, b
+ return [ l.read_int, r.read_int, t.read_int, b.read_int ]
+ end
+ alias :style_pad :style_pad_get
+ def shadow_color_get
+ r = FFI::MemoryPointer.new :int
+ g = FFI::MemoryPointer.new :int
+ b = FFI::MemoryPointer.new :int
+ a = FFI::MemoryPointer.new :int
+ Native.evas_object_text_shadow_color_get @ptr, r, g, b, a
+ return [ r.read_int, g.read_int, b.read_int, a.read_int ]
+ end
+ alias :shadow_color :shadow_color_get
+ def glow_color_get
+ r = FFI::MemoryPointer.new :int
+ g = FFI::MemoryPointer.new :int
+ b = FFI::MemoryPointer.new :int
+ a = FFI::MemoryPointer.new :int
+ Native.evas_object_text_glow_color_get @ptr, r, g, b, a
+ return [ r.read_int, g.read_int, b.read_int, a.read_int ]
+ end
+ alias :glow_color :glow_color_get
+ def glow2_color_get
+ r = FFI::MemoryPointer.new :int
+ g = FFI::MemoryPointer.new :int
+ b = FFI::MemoryPointer.new :int
+ a = FFI::MemoryPointer.new :int
+ Native.evas_object_text_glow2_color_get @ptr, r, g, b, a
+ return [ r.read_int, g.read_int, b.read_int, a.read_int ]
+ end
+ alias :glow2_color :glow2_color_get
+ def outline_color_get
+ r = FFI::MemoryPointer.new :int
+ g = FFI::MemoryPointer.new :int
+ b = FFI::MemoryPointer.new :int
+ a = FFI::MemoryPointer.new :int
+ Native.evas_object_text_outline_color_get @ptr, r, g, b, a
+ return [ r.read_int, g.read_int, b.read_int, a.read_int ]
+ end
+ alias :outline_color :outline_color_get
end
end
end