#! /usr/bin/env ruby # -*- coding: UTF-8 -*- # require 'efl/native' require 'efl/native/elementary' # module Efl # module ElmNotify # FCT_PREFIX = 'elm_notify_' 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.so.1' # # FUNCTIONS fcts = [ # EAPI Evas_Object *elm_notify_add(Evas_Object *parent); [ :elm_notify_add, [ :pointer ], :pointer ], # EAPI void elm_notify_parent_set(Evas_Object *obj, Evas_Object *parent); [ :elm_notify_parent_set, [ :pointer, :pointer ], :void ], # EAPI Evas_Object *elm_notify_parent_get(const Evas_Object *obj); [ :elm_notify_parent_get, [ :pointer ], :pointer ], # EAPI void elm_notify_timeout_set(Evas_Object *obj, double timeout); [ :elm_notify_timeout_set, [ :pointer, :double ], :void ], # EAPI double elm_notify_timeout_get(const Evas_Object *obj); [ :elm_notify_timeout_get, [ :pointer ], :double ], # EAPI void elm_notify_allow_events_set(Evas_Object *obj, Eina_Bool allow); [ :elm_notify_allow_events_set, [ :pointer, :bool ], :void ], # EAPI Eina_Bool elm_notify_allow_events_get(const Evas_Object *obj); [ :elm_notify_allow_events_get, [ :pointer ], :bool ], # EAPI void elm_notify_align_set(Evas_Object *obj, double horizontal, double vertical); [ :elm_notify_align_set, [ :pointer, :double, :double ], :void ], # EAPI void elm_notify_align_get(const Evas_Object *obj, double *horizontal, double *vertical); [ :elm_notify_align_get, [ :pointer, :pointer, :pointer ], :void ], ] # attach_fcts fcts # end end # # EOF