-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCally-0.d.ts
300 lines (251 loc) · 8.96 KB
/
Cally-0.d.ts
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
/** Generated with https://github.com/Gr3q/GIR2TS - If possible do not modify. */
declare namespace imports.gi.Cally {
/** This construct is only for enabling class multi-inheritance,
* use {@link Actor} instead.
*/
interface IActor {
/**
* Removes a action, using the #action_id returned by {@link Cally.Actor.add_action}
* @param action_id the action id
* @returns %TRUE if the operation was succesful, %FALSE otherwise
*/
remove_action(action_id: number): boolean;
/**
* Removes an action, using the #action_name used when the action was added
* with {@link Cally.Actor.add_action}
* @param action_name the name of the action to remove
* @returns %TRUE if the operation was succesful, %FALSE otherwise
*/
remove_action_by_name(action_name: string): boolean;
}
type ActorInitOptionsMixin = Atk.GObjectAccessibleInitOptions & Atk.ActionInitOptions & Atk.ComponentInitOptions
export interface ActorInitOptions extends ActorInitOptionsMixin {}
/** This construct is only for enabling class multi-inheritance,
* use {@link Actor} instead.
*/
type ActorMixin = IActor & Atk.GObjectAccessible & Atk.Action & Atk.Component;
/**
* The <structname>CallyActor</structname> structure contains only private
* data and should be accessed using the provided API
*/
interface Actor extends ActorMixin {}
class Actor {
public constructor(options?: Partial<ActorInitOptions>);
/**
* Creates a new {@link Actor} for the given #actor
* @param actor a #ClutterActor
* @returns the newly created #AtkObject
*/
public static new(actor: Clutter.Actor): Atk.Object;
}
/** This construct is only for enabling class multi-inheritance,
* use {@link Clone} instead.
*/
interface IClone {
}
type CloneInitOptionsMixin = ActorInitOptions & Atk.ActionInitOptions & Atk.ComponentInitOptions
export interface CloneInitOptions extends CloneInitOptionsMixin {}
/** This construct is only for enabling class multi-inheritance,
* use {@link Clone} instead.
*/
type CloneMixin = IClone & Actor & Atk.Action & Atk.Component;
/**
* The <structname>CallyClone</structname> structure contains only private
* data and should be accessed using the provided API
*/
interface Clone extends CloneMixin {}
class Clone {
public constructor(options?: Partial<CloneInitOptions>);
/**
* Creates a new {@link Clone} for the given #actor. #actor must be a
* #ClutterClone.
* @param actor a #ClutterActor
* @returns the newly created #AtkObject
*/
public static new(actor: Clutter.Actor): Atk.Object;
}
/** This construct is only for enabling class multi-inheritance,
* use {@link Group} instead.
*/
interface IGroup {
}
type GroupInitOptionsMixin = ActorInitOptions & Atk.ActionInitOptions & Atk.ComponentInitOptions
export interface GroupInitOptions extends GroupInitOptionsMixin {}
/** This construct is only for enabling class multi-inheritance,
* use {@link Group} instead.
*/
type GroupMixin = IGroup & Actor & Atk.Action & Atk.Component;
/**
* The <structname>CallyGroup</structname> structure contains only
* private data and should be accessed using the provided API
*/
interface Group extends GroupMixin {}
class Group {
public constructor(options?: Partial<GroupInitOptions>);
/**
* Creates a {@link Group} for #actor
* @param actor a #ClutterGroup
* @returns the newly created {@link Group}
*/
public static new(actor: Clutter.Actor): Atk.Object;
}
/** This construct is only for enabling class multi-inheritance,
* use {@link Rectangle} instead.
*/
interface IRectangle {
}
type RectangleInitOptionsMixin = ActorInitOptions & Atk.ActionInitOptions & Atk.ComponentInitOptions
export interface RectangleInitOptions extends RectangleInitOptionsMixin {}
/** This construct is only for enabling class multi-inheritance,
* use {@link Rectangle} instead.
*/
type RectangleMixin = IRectangle & Actor & Atk.Action & Atk.Component;
/**
* The <structname>CallyRectangle</structname> structure contains only private
* data and should be accessed using the provided API
*/
interface Rectangle extends RectangleMixin {}
class Rectangle {
public constructor(options?: Partial<RectangleInitOptions>);
/**
* Creates a new {@link Rectangle} for the given #actor. #actor must be
* a #ClutterRectangle.
* @param actor a #ClutterActor
* @returns the newly created #AtkObject
*/
public static new(actor: Clutter.Actor): Atk.Object;
}
/** This construct is only for enabling class multi-inheritance,
* use {@link Root} instead.
*/
interface IRoot {
}
type RootInitOptionsMixin = Atk.GObjectAccessibleInitOptions
export interface RootInitOptions extends RootInitOptionsMixin {}
/** This construct is only for enabling class multi-inheritance,
* use {@link Root} instead.
*/
type RootMixin = IRoot & Atk.GObjectAccessible;
/**
* The <structname>CallyRoot</structname> structure contains only private
* data and should be accessed using the provided API
*/
interface Root extends RootMixin {}
class Root {
public constructor(options?: Partial<RootInitOptions>);
/**
* Creates a new {@link Root} object.
* @returns the newly created #AtkObject
*/
public static new(): Atk.Object;
}
/** This construct is only for enabling class multi-inheritance,
* use {@link Stage} instead.
*/
interface IStage {
}
type StageInitOptionsMixin = GroupInitOptions & Atk.ActionInitOptions & Atk.ComponentInitOptions & Atk.WindowInitOptions
export interface StageInitOptions extends StageInitOptionsMixin {}
/** This construct is only for enabling class multi-inheritance,
* use {@link Stage} instead.
*/
type StageMixin = IStage & Group & Atk.Action & Atk.Component & Atk.Window;
/**
* The <structname>CallyStage</structname> structure contains only
* private data and should be accessed using the provided API
*/
interface Stage extends StageMixin {}
class Stage {
public constructor(options?: Partial<StageInitOptions>);
/**
* Creates a new {@link Stage} for the given #actor. #actor should be a
* #ClutterStage.
* @param actor a #ClutterActor
* @returns the newly created #AtkObject
*/
public static new(actor: Clutter.Actor): Atk.Object;
}
/** This construct is only for enabling class multi-inheritance,
* use {@link Text} instead.
*/
interface IText {
}
type TextInitOptionsMixin = ActorInitOptions & Atk.ActionInitOptions & Atk.ComponentInitOptions & Atk.EditableTextInitOptions & Atk.TextInitOptions
export interface TextInitOptions extends TextInitOptionsMixin {}
/** This construct is only for enabling class multi-inheritance,
* use {@link Text} instead.
*/
type TextMixin = IText & Actor & Atk.Action & Atk.Component & Atk.EditableText & Atk.Text;
/**
* The <structname>CallyText</structname> structure contains only private
* data and should be accessed using the provided API
*/
interface Text extends TextMixin {}
class Text {
public constructor(options?: Partial<TextInitOptions>);
/**
* Creates a new {@link Text} for the given #actor. #actor must be a
* #ClutterText.
* @param actor a #ClutterActor
* @returns the newly created #AtkObject
*/
public static new(actor: Clutter.Actor): Atk.Object;
}
/** This construct is only for enabling class multi-inheritance,
* use {@link Util} instead.
*/
interface IUtil {
}
type UtilInitOptionsMixin = Atk.UtilInitOptions
export interface UtilInitOptions extends UtilInitOptionsMixin {}
/** This construct is only for enabling class multi-inheritance,
* use {@link Util} instead.
*/
type UtilMixin = IUtil & Atk.Util;
/**
* The <structname>CallyUtil</structname> structure contains only
* private data and should be accessed using the provided API
*/
interface Util extends UtilMixin {}
class Util {
public constructor(options?: Partial<UtilInitOptions>);
}
/**
* Action function, to be used on #AtkAction implementations as
* an individual action. Unlike {@link ActionFunc}, this function
* uses the #user_data argument passed to {@link Cally.Actor.add_action_full}.
*/
interface ActionCallback {
/**
* Action function, to be used on #AtkAction implementations as
* an individual action. Unlike {@link ActionFunc}, this function
* uses the #user_data argument passed to {@link Cally.Actor.add_action_full}.
* @param cally_actor a {@link Actor}
*/
(cally_actor: Actor): void;
}
/**
* Action function, to be used on #AtkAction implementations as a individual
* action
*/
interface ActionFunc {
/**
* Action function, to be used on #AtkAction implementations as a individual
* action
* @param cally_actor a {@link Actor}
*/
(cally_actor: Actor): void;
}
/**
* Initializes the accessibility support.
* @returns %TRUE if accessibility support has been correctly
* initialized.
*/
function accessibility_init(): boolean;
/**
* Returns if the accessibility support using cally is enabled.
* @returns %TRUE if accessibility support has been correctly
* initialized.
*/
function get_cally_initialized(): boolean;
}