diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-08 07:18:28 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-08 07:18:28 +0200 |
commit | 8454b0a2513127425335dcfa377ed1b12010cca4 (patch) | |
tree | bf625d2c1504afd2f952246536857f8960438aaa | |
parent | f867009e8eef0069e72685ff97467beb7c7a22d8 (diff) | |
download | ffi-efl-8454b0a2513127425335dcfa377ed1b12010cca4.zip ffi-efl-8454b0a2513127425335dcfa377ed1b12010cca4.tar.gz |
fix ElmGenlistItemClassStruct, add ElmListItem and ElmGenList classes
-rw-r--r-- | lib/efl/elementary.rb | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/lib/efl/elementary.rb b/lib/efl/elementary.rb index 2b0b381..de6eda2 100644 --- a/lib/efl/elementary.rb +++ b/lib/efl/elementary.rb @@ -9,13 +9,13 @@ module Efl module Native # class ElmGenlistItemClassStruct < FFI::Struct - layout :item_style, :string, + layout :item_style, :pointer, :label_get, :pointer, :icon_get, :pointer, :state_get, :pointer, :del, :pointer, :moved, :pointer, - :mode_item_style, :string, + :mode_item_style, :pointer, end # end @@ -156,6 +156,16 @@ module Efl # end # + class ElmListItem < Efl::Evas::REvasObject + # + search_prefixes 'elm_list_item_', 'elm_object' + # + def data_get + Native::elm_list_item_data_get @ptr + end + alias :data :data_get + end + # class ElmIcon < Efl::Evas::REvasObject # include Helper @@ -285,6 +295,14 @@ module Efl # end # + class ElmGenlist < Efl::Evas::REvasObject + # + include Helper + constructor :elm_genlist_add + search_prefixes 'elm_genlist_', 'elm_object' + # + end + # end end # |