summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm/elm_calendar.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-27 15:48:45 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-27 15:48:45 +0100
commitef44077310b4ebf8d3cb31ccb57d15b96a94c9d3 (patch)
treec2bb690ccc1be37c03f6dcdcf892fbf3e17f5067 /lib/efl/native/elm/elm_calendar.rb
parentdbb2c5713e11489dfaeb318a82785017f1794dde (diff)
parentb030c490265bb13ee98a650da419a033495042ed (diff)
downloadffi-efl-ef44077310b4ebf8d3cb31ccb57d15b96a94c9d3.zip
ffi-efl-ef44077310b4ebf8d3cb31ccb57d15b96a94c9d3.tar.gz
Merge branch 'wip'
Conflicts: tools/genruby.rb
Diffstat (limited to 'lib/efl/native/elm/elm_calendar.rb')
-rw-r--r--lib/efl/native/elm/elm_calendar.rb76
1 files changed, 76 insertions, 0 deletions
diff --git a/lib/efl/native/elm/elm_calendar.rb b/lib/efl/native/elm/elm_calendar.rb
new file mode 100644
index 0000000..9677040
--- /dev/null
+++ b/lib/efl/native/elm/elm_calendar.rb
@@ -0,0 +1,76 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/elementary'
+#
+module Efl
+ #
+ module ElmCalendar
+ #
+ FCT_PREFIX = 'elm_calendar_' unless const_defined? :FCT_PREFIX
+ #
+ def self.method_missing meth, *args, &block
+ sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
+ self.send sym, *args, &block
+ end
+ #
+ end
+ #
+ module Native
+ #
+ ffi_lib 'elementary-ver-pre-svn-09.so.0'
+ #
+ # ENUMS
+ # typedef enum {...} Elm_Calendar_Mark_Repeat;
+ enum :elm_calendar_mark_repeat, [ :elm_calendar_unique, :elm_calendar_daily, :elm_calendar_weekly, :elm_calendar_monthly,
+ :elm_calendar_annually ]
+ #
+ # TYPEDEFS
+ # typedef struct _Elm_Calendar_Mark Elm_Calendar_Mark;
+ typedef :pointer, :elm_calendar_mark
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI Evas_Object *elm_calendar_add(Evas_Object *parent);
+ [ :elm_calendar_add, [ :evas_object ], :evas_object ],
+ # EAPI const char **elm_calendar_weekdays_names_get(const Evas_Object *obj);
+ [ :elm_calendar_weekdays_names_get, [ :evas_object ], :pointer ],
+ # EAPI void elm_calendar_weekdays_names_set(Evas_Object *obj, const char *weekdays[]);
+ # FIXME
+ # EAPI void elm_calendar_min_max_year_set(Evas_Object *obj, int min, int max);
+ [ :elm_calendar_min_max_year_set, [ :evas_object, :int, :int ], :void ],
+ # EAPI void elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max);
+ [ :elm_calendar_min_max_year_get, [ :evas_object, :pointer, :pointer ], :void ],
+ # EAPI void elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled);
+ [ :elm_calendar_day_selection_enabled_set, [ :evas_object, :bool ], :void ],
+ # EAPI Eina_Bool elm_calendar_day_selection_enabled_get(const Evas_Object *obj);
+ [ :elm_calendar_day_selection_enabled_get, [ :evas_object ], :bool ],
+ # EAPI void elm_calendar_selected_time_set(Evas_Object *obj, struct tm *selected_time);
+ [ :elm_calendar_selected_time_set, [ :evas_object, :pointer ], :void ],
+ # EAPI Eina_Bool elm_calendar_selected_time_get(const Evas_Object *obj, struct tm *selected_time);
+ [ :elm_calendar_selected_time_get, [ :evas_object, :pointer ], :bool ],
+ # EAPI void elm_calendar_format_function_set(Evas_Object *obj, char *(*format_function)(struct tm *stime));
+ # FIXME
+ # EAPI Elm_Calendar_Mark *elm_calendar_mark_add(Evas_Object *obj, const char *mark_type, struct tm *mark_time, Elm_Calendar_Mark_Repeat repeat);
+ [ :elm_calendar_mark_add, [ :evas_object, :string, :pointer, :elm_calendar_mark_repeat ], :elm_calendar_mark ],
+ # EAPI void elm_calendar_mark_del(Elm_Calendar_Mark *mark);
+ [ :elm_calendar_mark_del, [ :elm_calendar_mark ], :void ],
+ # EAPI void elm_calendar_marks_clear(Evas_Object *obj);
+ [ :elm_calendar_marks_clear, [ :evas_object ], :void ],
+ # EAPI const Eina_List *elm_calendar_marks_get(const Evas_Object *obj);
+ [ :elm_calendar_marks_get, [ :evas_object ], :eina_list ],
+ # EAPI void elm_calendar_marks_draw(Evas_Object *obj);
+ [ :elm_calendar_marks_draw, [ :evas_object ], :void ],
+ # EAPI void elm_calendar_interval_set(Evas_Object *obj, double interval);
+ [ :elm_calendar_interval_set, [ :evas_object, :double ], :void ],
+ # EAPI double elm_calendar_interval_get(const Evas_Object *obj);
+ [ :elm_calendar_interval_get, [ :evas_object ], :double ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF