summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-10 07:01:35 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-10 07:01:35 +0200
commit887c737b4fa4d73f45c58945acde4ff912e7e5b7 (patch)
tree1ac5b55da2158160e7c485093d0f899f2dd9794f
parente866b254a291156f29094bd49528a5be185fa643 (diff)
downloadffi-efl-887c737b4fa4d73f45c58945acde4ff912e7e5b7.zip
ffi-efl-887c737b4fa4d73f45c58945acde4ff912e7e5b7.tar.gz
add REvasObject#size_hint_align_fill and REvasObject#size_hint_weight_expand
-rw-r--r--lib/efl/evas.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/efl/evas.rb b/lib/efl/evas.rb
index 560cc49..e701ef8 100644
--- a/lib/efl/evas.rb
+++ b/lib/efl/evas.rb
@@ -45,6 +45,9 @@ module Efl
EVAS_ENGINE_BUFFER_DEPTH_BGR24 = 3
EVAS_ENGINE_BUFFER_DEPTH_RGB32 = 4
#
+ EVAS_HINT_FILL = -1.0
+ EVAS_HINT_EXPAND = 1.0
+ #
class REvas
#
include Efl::ClassHelper
@@ -232,6 +235,10 @@ module Efl
[ Native.enum_type(:evas_aspect_control)[a.read_int], w.read_int, h.read_int ]
end
alias :size_hint_aspect :size_hint_aspect_get
+ def size_hint_align_set_fill
+ Native.evas_object_size_hint_align_set @ptr, EVAS_HINT_FILL, EVAS_HINT_FILL
+ end
+ alias :size_hint_align_fill :size_hint_align_set_fill
def size_hint_align_get
w = FFI::MemoryPointer.new :double
h = FFI::MemoryPointer.new :double
@@ -239,6 +246,10 @@ module Efl
[ w.read_double, h.read_double ]
end
alias :size_hint_align :size_hint_align_get
+ def size_hint_weight_set_expand
+ Native.evas_object_size_hint_weight_set @ptr, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
+ end
+ alias :size_hint_weight_expand :size_hint_weight_set_expand
def size_hint_weight_get
w = FFI::MemoryPointer.new :double
h = FFI::MemoryPointer.new :double