File: ui.defs

package info (click to toggle)
libdesktop-agnostic 0.3.90-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,004 kB
  • ctags: 4,635
  • sloc: ansic: 30,148; python: 1,069; makefile: 24; xml: 12
file content (193 lines) | stat: -rw-r--r-- 4,987 bytes parent folder | download | duplicates (2)
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
;; -*- scheme -*-
; boxed definitions ...

; interface definitions ...

; object definitions ...

(define-object ColorButton
  (in-module "DesktopAgnosticUI")
  (parent "GtkColorButton")
  (c-name "DesktopAgnosticUIColorButton")
  (gtype-id "DESKTOP_AGNOSTIC_UI_TYPE_COLOR_BUTTON")
)

(define-object IconButton
  (in-module "DesktopAgnosticUI")
  (parent "GtkButton")
  (c-name "DesktopAgnosticUIIconButton")
  (gtype-id "DESKTOP_AGNOSTIC_UI_TYPE_ICON_BUTTON")
)

(define-object IconChooserDialog
  (in-module "DesktopAgnosticUI")
  (parent "GtkDialog")
  (c-name "DesktopAgnosticUIIconChooserDialog")
  (gtype-id "DESKTOP_AGNOSTIC_UI_TYPE_ICON_CHOOSER_DIALOG")
)

(define-object LauncherEditorDialog
  (in-module "DesktopAgnosticUI")
  (parent "GtkDialog")
  (c-name "DesktopAgnosticUILauncherEditorDialog")
  (gtype-id "DESKTOP_AGNOSTIC_UI_TYPE_LAUNCHER_EDITOR_DIALOG")
)

; pointer definitions ...

;; Enumerations and Flags ...

(define-enum IconType
  (in-module "DesktopAgnosticUI")
  (c-name "DesktopAgnosticUIIconType")
  (gtype-id "DESKTOP_AGNOSTIC_UI_TYPE_ICON_TYPE")
  (values
    '("none" "DESKTOP_AGNOSTIC_UI_ICON_TYPE_NONE")
    '("themed" "DESKTOP_AGNOSTIC_UI_ICON_TYPE_THEMED")
    '("file" "DESKTOP_AGNOSTIC_UI_ICON_TYPE_FILE")
  )
)


;; From ui.h

(define-function color_button_get_type
  (c-name "desktop_agnostic_ui_color_button_get_type")
  (return-type "GType")
)

(define-function color_button_new_with_color
  (c-name "desktop_agnostic_ui_color_button_new_with_color")
  (return-type "DesktopAgnosticUIColorButton*")
  (parameters
    '("DesktopAgnosticColor*" "color")
  )
)

(define-function color_button_construct_with_color
  (c-name "desktop_agnostic_ui_color_button_construct_with_color")
  (return-type "DesktopAgnosticUIColorButton*")
  (parameters
    '("GType" "object_type")
    '("DesktopAgnosticColor*" "color")
  )
)

(define-method set_alpha
  (of-object "DesktopAgnosticUIColorButton")
  (c-name "desktop_agnostic_ui_color_button_set_alpha")
  (return-type "none")
  (parameters
    '("guint16" "alpha")
  )
)

(define-function color_button_new
  (c-name "desktop_agnostic_ui_color_button_new")
  (is-constructor-of "DesktopAgnosticUIColorButton")
  (return-type "DesktopAgnosticUIColorButton*")
)

(define-function color_button_construct
  (c-name "desktop_agnostic_ui_color_button_construct")
  (return-type "DesktopAgnosticUIColorButton*")
  (parameters
    '("GType" "object_type")
  )
)

(define-method get_da_color
  (of-object "DesktopAgnosticUIColorButton")
  (c-name "desktop_agnostic_ui_color_button_get_da_color")
  (return-type "DesktopAgnosticColor*")
)

(define-method set_da_color
  (of-object "DesktopAgnosticUIColorButton")
  (c-name "desktop_agnostic_ui_color_button_set_da_color")
  (return-type "none")
  (parameters
    '("DesktopAgnosticColor*" "value")
  )
)

(define-function icon_button_get_type
  (c-name "desktop_agnostic_ui_icon_button_get_type")
  (return-type "GType")
)

(define-function icon_button_new
  (c-name "desktop_agnostic_ui_icon_button_new")
  (is-constructor-of "DesktopAgnosticUIIconButton")
  (return-type "DesktopAgnosticUIIconButton*")
  (properties
    '("icon")
  )
)

(define-function icon_button_construct
  (c-name "desktop_agnostic_ui_icon_button_construct")
  (return-type "DesktopAgnosticUIIconButton*")
  (parameters
    '("GType" "object_type")
    '("const-char*" "icon")
  )
)

(define-function icon_type_get_type
  (c-name "desktop_agnostic_ui_icon_type_get_type")
  (return-type "GType")
)

(define-method get_icon_type
  (of-object "DesktopAgnosticUIIconButton")
  (c-name "desktop_agnostic_ui_icon_button_get_icon_type")
  (return-type "DesktopAgnosticUIIconType")
)

(define-function icon_chooser_dialog_get_type
  (c-name "desktop_agnostic_ui_icon_chooser_dialog_get_type")
  (return-type "GType")
)

(define-function icon_chooser_dialog_new
  (c-name "desktop_agnostic_ui_icon_chooser_dialog_new")
  (is-constructor-of "DesktopAgnosticUIIconChooserDialog")
  (return-type "DesktopAgnosticUIIconChooserDialog*")
)

(define-function icon_chooser_dialog_construct
  (c-name "desktop_agnostic_ui_icon_chooser_dialog_construct")
  (return-type "DesktopAgnosticUIIconChooserDialog*")
  (parameters
    '("GType" "object_type")
  )
)

(define-function launcher_editor_dialog_get_type
  (c-name "desktop_agnostic_ui_launcher_editor_dialog_get_type")
  (return-type "GType")
)

(define-function launcher_editor_dialog_new
  (c-name "desktop_agnostic_ui_launcher_editor_dialog_new")
  (is-constructor-of "DesktopAgnosticUILauncherEditorDialog")
  (return-type "DesktopAgnosticUILauncherEditorDialog*")
  (properties
    '("file")
    '("output")
  )
)

(define-function launcher_editor_dialog_construct
  (c-name "desktop_agnostic_ui_launcher_editor_dialog_construct")
  (return-type "DesktopAgnosticUILauncherEditorDialog*")
  (parameters
    '("GType" "object_type")
    '("DesktopAgnosticVFSFile*" "file")
    '("DesktopAgnosticVFSFile*" "output")
    '("gboolean" "standalone")
  )
)