summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm/elm_app.rb
blob: dffd10582cadbb8d8fe442fb5bd96a7226c22572 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'efl/native'
require 'efl/native/elementary'
#
module Efl
    #
    module ElmApp
        #
        FCT_PREFIX = 'elm_app_' 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'
        #
        # ENUMS
        # typedef enum {...} Elm_App_View_State;
        enum :elm_app_view_state, [ :elm_app_view_state_unknown, 0, :elm_app_view_state_live, 1, :elm_app_view_state_paused, 2,
            :elm_app_view_state_closed, 3, :elm_app_view_state_shallow, 4 ]
        #
        # FUNCTIONS
        fcts = [
        # EAPI void elm_app_info_set(void *mainfunc, const char *dom, const char *checkfile);
        [ :elm_app_info_set, [ :pointer, :string, :string ], :void ],
        # EAPI void elm_app_name_set(const char *name);
        [ :elm_app_name_set, [ :string ], :void ],
        # EAPI void elm_app_desktop_entry_set(const char *path);
        [ :elm_app_desktop_entry_set, [ :string ], :void ],
        # EAPI void elm_app_compile_bin_dir_set(const char *dir);
        [ :elm_app_compile_bin_dir_set, [ :string ], :void ],
        # EAPI void elm_app_compile_lib_dir_set(const char *dir);
        [ :elm_app_compile_lib_dir_set, [ :string ], :void ],
        # EAPI void elm_app_compile_data_dir_set(const char *dir);
        [ :elm_app_compile_data_dir_set, [ :string ], :void ],
        # EAPI void elm_app_compile_locale_set(const char *dir);
        [ :elm_app_compile_locale_set, [ :string ], :void ],
        # EAPI const char *elm_app_name_get(void);
        [ :elm_app_name_get, [  ], :string ],
        # EAPI const char *elm_app_desktop_entry_get(void);
        [ :elm_app_desktop_entry_get, [  ], :string ],
        # EAPI const char *elm_app_prefix_dir_get(void);
        [ :elm_app_prefix_dir_get, [  ], :string ],
        # EAPI const char *elm_app_bin_dir_get(void);
        [ :elm_app_bin_dir_get, [  ], :string ],
        # EAPI const char *elm_app_lib_dir_get(void);
        [ :elm_app_lib_dir_get, [  ], :string ],
        # EAPI const char *elm_app_data_dir_get(void);
        [ :elm_app_data_dir_get, [  ], :string ],
        # EAPI const char *elm_app_locale_dir_get(void);
        [ :elm_app_locale_dir_get, [  ], :string ],
        ]
        #
        attach_fcts fcts
        #
    end
end
#
# EOF