summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm/elm_notify.rb
blob: 7cfc8c4735a3d98e256f0843ebcea3497eb69d10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#! /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