summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm/elm_icon.rb
blob: dabfeb4fb6260c8742be0997fe8e6a9786042df9 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'efl/native'
require 'efl/native/elementary'
#
module Efl
    #
    module ElmIcon
        #
        FCT_PREFIX = 'elm_icon_' 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_Icon_Type;
        enum :elm_icon_type, [ :elm_icon_none, :elm_icon_file, :elm_icon_standard ]
        # typedef enum {...} Elm_Icon_Lookup_Order;
        enum :elm_icon_lookup_order, [ :elm_icon_lookup_fdo_theme, :elm_icon_lookup_theme_fdo, :elm_icon_lookup_fdo, :elm_icon_lookup_theme ]
        #
        # FUNCTIONS
        fcts = [
        # EAPI Evas_Object *elm_icon_add(Evas_Object *parent);
        [ :elm_icon_add, [ :evas_object ], :evas_object ],
        # EAPI Eina_Bool elm_icon_file_set(Evas_Object *obj, const char *file, const char *group);
        [ :elm_icon_file_set, [ :evas_object, :string, :string ], :bool ],
        # EAPI Eina_Bool elm_icon_memfile_set(Evas_Object *obj, const void *img, size_t size, const char *format, const char *key);
        [ :elm_icon_memfile_set, [ :evas_object, :pointer, :ulong, :string, :string ], :bool ],
        # EAPI void elm_icon_file_get(const Evas_Object *obj, const char **file, const char **group);
        [ :elm_icon_file_get, [ :evas_object, :pointer, :pointer ], :void ],
        # EAPI void elm_icon_thumb_set(Evas_Object *obj, const char *file, const char *group);
        [ :elm_icon_thumb_set, [ :evas_object, :string, :string ], :void ],
        # EAPI Eina_Bool elm_icon_standard_set(Evas_Object *obj, const char *name);
        [ :elm_icon_standard_set, [ :evas_object, :string ], :bool ],
        # EAPI const char *elm_icon_standard_get(const Evas_Object *obj);
        [ :elm_icon_standard_get, [ :evas_object ], :string ],
        # EAPI void elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth);
        [ :elm_icon_smooth_set, [ :evas_object, :bool ], :void ],
        # EAPI Eina_Bool elm_icon_smooth_get(const Evas_Object *obj);
        [ :elm_icon_smooth_get, [ :evas_object ], :bool ],
        # EAPI void elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale);
        [ :elm_icon_no_scale_set, [ :evas_object, :bool ], :void ],
        # EAPI Eina_Bool elm_icon_no_scale_get(const Evas_Object *obj);
        [ :elm_icon_no_scale_get, [ :evas_object ], :bool ],
        # EAPI void elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down);
        [ :elm_icon_scale_set, [ :evas_object, :bool, :bool ], :void ],
        # EAPI void elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down);
        [ :elm_icon_scale_get, [ :evas_object, :pointer, :pointer ], :void ],
        # EAPI void elm_icon_size_get(const Evas_Object *obj, int *w, int *h);
        [ :elm_icon_size_get, [ :evas_object, :pointer, :pointer ], :void ],
        # EAPI void elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside);
        [ :elm_icon_fill_outside_set, [ :evas_object, :bool ], :void ],
        # EAPI Eina_Bool elm_icon_fill_outside_get(const Evas_Object *obj);
        [ :elm_icon_fill_outside_get, [ :evas_object ], :bool ],
        # EAPI void elm_icon_prescale_set(Evas_Object *obj, int size);
        [ :elm_icon_prescale_set, [ :evas_object, :int ], :void ],
        # EAPI int elm_icon_prescale_get(const Evas_Object *obj);
        [ :elm_icon_prescale_get, [ :evas_object ], :int ],
        # EAPI Evas_Object *elm_icon_object_get(Evas_Object *obj);
        [ :elm_icon_object_get, [ :evas_object ], :evas_object ],
        # EAPI void elm_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order);
        [ :elm_icon_order_lookup_set, [ :evas_object, :elm_icon_lookup_order ], :void ],
        # EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj);
        [ :elm_icon_order_lookup_get, [ :evas_object ], :elm_icon_lookup_order ],
        # EAPI void elm_icon_preload_set(Evas_Object *obj, Eina_Bool disable);
        [ :elm_icon_preload_set, [ :evas_object, :bool ], :void ],
        # EAPI Eina_Bool elm_icon_animated_available_get(const Evas_Object *obj);
        [ :elm_icon_animated_available_get, [ :evas_object ], :bool ],
        # EAPI void elm_icon_animated_set(Evas_Object *obj, Eina_Bool animated);
        [ :elm_icon_animated_set, [ :evas_object, :bool ], :void ],
        # EAPI Eina_Bool elm_icon_animated_get(const Evas_Object *obj);
        [ :elm_icon_animated_get, [ :evas_object ], :bool ],
        # EAPI void elm_icon_animated_play_set(Evas_Object *obj, Eina_Bool play);
        [ :elm_icon_animated_play_set, [ :evas_object, :bool ], :void ],
        # EAPI Eina_Bool elm_icon_animated_play_get(const Evas_Object *obj);
        [ :elm_icon_animated_play_get, [ :evas_object ], :bool ],
        # EAPI void elm_icon_aspect_fixed_set(Evas_Object *obj, Eina_Bool fixed);
        [ :elm_icon_aspect_fixed_set, [ :evas_object, :bool ], :void ],
        # EAPI Eina_Bool elm_icon_aspect_fixed_get(const Evas_Object *obj);
        [ :elm_icon_aspect_fixed_get, [ :evas_object ], :bool ],
        ]
        #
        attach_fcts fcts
        #
    end
end
#
# EOF