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/eina_hash'
require 'efl/native/elementary'
#
module Efl
#
module ElmFonts
#
FCT_PREFIX = 'elm_fonts_' 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'
#
# TYPEDEFS
# typedef struct _Elm_Text_Class Elm_Text_Class;
typedef :pointer, :elm_text_class
# typedef struct _Elm_Font_Overlay Elm_Font_Overlay;
typedef :pointer, :elm_font_overlay
# typedef struct _Elm_Font_Properties Elm_Font_Properties;
typedef :pointer, :elm_font_properties
#
# FUNCTIONS
fcts = [
# EAPI Eina_List *elm_text_classes_list_get(void);
[ :elm_text_classes_list_get, [ ], :eina_list ],
# EAPI void elm_text_classes_list_free(Eina_List *list);
[ :elm_text_classes_list_free, [ :eina_list ], :void ],
# EAPI const Eina_List *elm_font_overlay_list_get(void);
[ :elm_font_overlay_list_get, [ ], :eina_list ],
# EAPI void elm_font_overlay_set(const char *text_class, const char *font, Evas_Font_Size size);
[ :elm_font_overlay_set, [ :string, :string, :int ], :void ],
# EAPI void elm_font_overlay_unset(const char *text_class);
[ :elm_font_overlay_unset, [ :string ], :void ],
# EAPI void elm_font_overlay_apply(void);
[ :elm_font_overlay_apply, [ ], :void ],
# EAPI Elm_Font_Properties *elm_font_properties_get(const char *font);
[ :elm_font_properties_get, [ :string ], :elm_font_properties ],
# EAPI void elm_font_properties_free(Elm_Font_Properties *efp);
[ :elm_font_properties_free, [ :elm_font_properties ], :void ],
# EAPI char *elm_font_fontconfig_name_get(const char *name, const char *style);
[ :elm_font_fontconfig_name_get, [ :string, :string ], :string ],
# EAPI void elm_font_fontconfig_name_free(char *name);
[ :elm_font_fontconfig_name_free, [ :string ], :void ],
# EAPI Eina_Hash *elm_font_available_hash_add(Eina_List *list);
[ :elm_font_available_hash_add, [ :eina_list ], :eina_hash ],
# EAPI void elm_font_available_hash_del(Eina_Hash *hash);
[ :elm_font_available_hash_del, [ :eina_hash ], :void ],
]
#
attach_fcts fcts
#
end
end
#
# EOF
|