summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm/elm_colorselector.rb
blob: 5652545ce7d0fd90cc4bdf9565c206ab7f14acf9 (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 ElmColorSelector
        #
        FCT_PREFIX = 'elm_colorselector_' 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_Colorselector_Mode;
        enum :elm_colorselector_mode, [ :elm_colorselector_palette, 0, :elm_colorselector_components, 1, :elm_colorselector_both, 2,
            :elm_colorselector_picker, 3, :elm_colorselector_all, 4 ]
        #
        # TYPEDEFS
        # typedef struct _Elm_Color_RGBA Elm_Color_RGBA;
        typedef :pointer, :elm_color_rgba
        # typedef struct _Elm_Custom_Palette Elm_Custom_Palette;
        typedef :pointer, :elm_custom_palette
        #
        # FUNCTIONS
        fcts = [
        # EAPI void elm_colorselector_palette_item_color_get(const Elm_Object_Item *it, int *r, int *g, int *b, int *a);
        [ :elm_colorselector_palette_item_color_get, [ :elm_object_item, :pointer, :pointer, :pointer, :pointer ], :void ],
        # EAPI void elm_colorselector_palette_item_color_set(Elm_Object_Item *it, int r, int g, int b, int a);
        [ :elm_colorselector_palette_item_color_set, [ :elm_object_item, :int, :int, :int, :int ], :void ],
        # EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent);
        [ :elm_colorselector_add, [ :pointer ], :pointer ],
        # EAPI void elm_colorselector_color_set(Evas_Object *obj, int r, int g, int b, int a);
        [ :elm_colorselector_color_set, [ :pointer, :int, :int, :int, :int ], :void ],
        # EAPI void elm_colorselector_color_get(const Evas_Object *obj, int *r, int *g, int *b, int *a);
        [ :elm_colorselector_color_get, [ :pointer, :pointer, :pointer, :pointer, :pointer ], :void ],
        # EAPI void elm_colorselector_mode_set(Evas_Object *obj, Elm_Colorselector_Mode mode);
        [ :elm_colorselector_mode_set, [ :pointer, :elm_colorselector_mode ], :void ],
        # EAPI Elm_Colorselector_Mode elm_colorselector_mode_get(const Evas_Object *obj);
        [ :elm_colorselector_mode_get, [ :pointer ], :elm_colorselector_mode ],
        # EAPI Elm_Object_Item *elm_colorselector_palette_color_add(Evas_Object *obj, int r, int g, int b, int a);
        [ :elm_colorselector_palette_color_add, [ :pointer, :int, :int, :int, :int ], :elm_object_item ],
        # EAPI void elm_colorselector_palette_clear(Evas_Object *obj);
        [ :elm_colorselector_palette_clear, [ :pointer ], :void ],
        # EAPI void elm_colorselector_palette_name_set(Evas_Object *obj, const char *palette_name);
        [ :elm_colorselector_palette_name_set, [ :pointer, :string ], :void ],
        # EAPI const char *elm_colorselector_palette_name_get(const Evas_Object *obj);
        [ :elm_colorselector_palette_name_get, [ :pointer ], :string ],
        ]
        #
        attach_fcts fcts
        #
    end
end
#
# EOF