adesklets-ruby 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README ADDED
@@ -0,0 +1,5 @@
1
+ = TODO
2
+
3
+ * Separate from Base a EventHandler and a DesktopDrawer
4
+ * Add unit testing
5
+ * Add more documentation and more examples
data/examples/test.rb ADDED
@@ -0,0 +1,23 @@
1
+ require 'rubygems'
2
+ require 'adesklets'
3
+
4
+ class Test1 < ADesklets::BaseDesklets
5
+
6
+ def initialize
7
+ define_callbacks
8
+ super
9
+ event_loop
10
+ end
11
+
12
+ def ready(args)
13
+ puts 'ready'
14
+ window_resize(100,100)
15
+ window_show
16
+ end
17
+
18
+ def button_pressed(args)
19
+ puts args
20
+ end
21
+ end
22
+
23
+ Test1.new
data/examples/test2.rb ADDED
@@ -0,0 +1,34 @@
1
+ require 'rubygems'
2
+ require 'adesklets'
3
+
4
+ class Test1 < ADesklets::BaseEventHandler
5
+
6
+ def initialize
7
+ @t2 = Test2.new
8
+ define_callbacks
9
+ super
10
+ event_loop
11
+ end
12
+
13
+ def ready(args)
14
+ puts 'ready'
15
+ @t2.show
16
+ end
17
+
18
+ def button_pressed(args)
19
+ @t2.hide
20
+ end
21
+ end
22
+
23
+ class Test2 < ADesklets::BaseDesktopDrawer
24
+ def show
25
+ window_resize(100,100)
26
+ window_show
27
+ end
28
+
29
+ def hide
30
+ window_hide
31
+ end
32
+ end
33
+
34
+ Test1.new
data/lib/adesklets.rb ADDED
@@ -0,0 +1,65 @@
1
+ # ADesklets Ruby Bindings.
2
+ #
3
+ # Copyright (C) 2006 Luca Greco a.k.a. "ripley"
4
+ #
5
+ # This program is free software; you can redistribute it and/or modify
6
+ # it under the terms of the GNU General Public License as published by
7
+ # the Free Software Foundation; either version 2 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License
16
+ # along with this program; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+ #
19
+ ####
20
+ # require these before gems, because we want to use them from
21
+ # lib/ , or from normal install, if that's how Rog was started.
22
+ #
23
+ # If rote has been loaded through Gems, this will automatically
24
+ # come from the right lib directory...
25
+
26
+ require 'adesklets/autobinding'
27
+ require 'adesklets/base'
28
+
29
+ # Everything else should come first from Gems, if installed.
30
+ begin
31
+ require 'rubygems'
32
+ rescue LoadError
33
+ nil # just try without then...
34
+ end
35
+
36
+ # Master Rog version. Manage this from the Rake release support.
37
+ ADESKLETS_RUBY_VERSION = '0.2.0'
38
+
39
+ #####
40
+ ## *ADesklets-Ruby* is a ruby binding of the ADesklets (http://adesklets.sf.net).
41
+ ##
42
+ ## ADesklets-Ruby is (c)2006 Luca Greco (and contributors). See +LICENSE+ for details.
43
+
44
+ module ADesklets
45
+ # this space intentionally left blank
46
+ class Base
47
+ def initialize
48
+ @client = Client.instance
49
+ end
50
+ end
51
+
52
+ class BaseDesklets < Base
53
+ include EventHandler
54
+ include DesktopDrawer
55
+ end
56
+
57
+ class BaseEventHandler < Base
58
+ include EventHandler
59
+ end
60
+
61
+ class BaseDesktopDrawer < Base
62
+ include DesktopDrawer
63
+ end
64
+ end
65
+
@@ -0,0 +1,986 @@
1
+ # ADesklets Ruby Bindings.
2
+ #
3
+ # Copyright (C) 2006 Luca Greco a.k.a. "ripley"
4
+ #
5
+ # This program is free software; you can redistribute it and/or modify
6
+ # it under the terms of the GNU General Public License as published by
7
+ # the Free Software Foundation; either version 2 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License
16
+ # along with this program; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+ #
19
+ ####
20
+
21
+ ### Autogenerated
22
+ module ADesklets
23
+ module AutoGenerated
24
+
25
+ ## constants
26
+
27
+ TEXT_TO_RIGHT = 0
28
+
29
+ TEXT_TO_LEFT = 1
30
+
31
+ TEXT_TO_DOWN = 2
32
+
33
+ TEXT_TO_UP = 3
34
+
35
+ TEXT_TO_ANGLE = 4
36
+
37
+ OP_COPY = 0
38
+
39
+ OP_ADD = 1
40
+
41
+ OP_SUBSTRACT = 2
42
+
43
+ OP_RESHADE = 3
44
+
45
+ CHANNEL_RED = 0
46
+
47
+ CHANNEL_GREEN = 1
48
+
49
+ CHANNEL_BLUE = 2
50
+
51
+ CHANNEL_ALPHA = 3
52
+
53
+ WINDOW_UNMANAGED = 0
54
+
55
+ WINDOW_MANAGED = 1
56
+
57
+
58
+ ## functions
59
+
60
+ ## time_gate Set a time gate double gate
61
+
62
+ def time_gate(*args)
63
+ ADesklets::Client.instance.session.command("time_gate #{args.join(' ')}")
64
+ end
65
+
66
+ ## help Display short help about a command [const char * command]
67
+
68
+ def help(*args)
69
+ ADesklets::Client.instance.session.command("help #{args.join(' ')}")
70
+ end
71
+
72
+ ## ping Ping the interpreter void
73
+
74
+ def ping(*args)
75
+ ADesklets::Client.instance.session.command("ping #{args.join(' ')}")
76
+ end
77
+
78
+ ## pause Freeze the interpreter for debugging [int delay]
79
+
80
+ def pause(*args)
81
+ ADesklets::Client.instance.session.command("pause #{args.join(' ')}")
82
+ end
83
+
84
+ ## version Get interpreter version void
85
+
86
+ def version(*args)
87
+ ADesklets::Client.instance.session.command("version #{args.join(' ')}")
88
+ end
89
+
90
+ ## get_id Get current applet identificator void
91
+
92
+ def get_id(*args)
93
+ ADesklets::Client.instance.session.command("get_id #{args.join(' ')}")
94
+ end
95
+
96
+ ## history List/save commands history [const char * filename]
97
+
98
+ def history(*args)
99
+ ADesklets::Client.instance.session.command("history #{args.join(' ')}")
100
+ end
101
+
102
+ ## set Set or unset a textual variable [const * char name, const * char value]
103
+
104
+ def set(*args)
105
+ ADesklets::Client.instance.session.command("set #{args.join(' ')}")
106
+ end
107
+
108
+ ## unset_all Unset all defined textual variables void
109
+
110
+ def unset_all(*args)
111
+ ADesklets::Client.instance.session.command("unset_all #{args.join(' ')}")
112
+ end
113
+
114
+ ## echo Echo a string const char * string
115
+
116
+ def echo(*args)
117
+ ADesklets::Client.instance.session.command("echo #{args.join(' ')}")
118
+ end
119
+
120
+ ## start_recording Start recording a macro void
121
+
122
+ def start_recording(*args)
123
+ ADesklets::Client.instance.session.command("start_recording #{args.join(' ')}")
124
+ end
125
+
126
+ ## stop_recording Stop recording the macro void
127
+
128
+ def stop_recording(*args)
129
+ ADesklets::Client.instance.session.command("stop_recording #{args.join(' ')}")
130
+ end
131
+
132
+ ## play_get_abort_on_events Get replays interuptable status void
133
+
134
+ def play_get_abort_on_events(*args)
135
+ ADesklets::Client.instance.session.command("play_get_abort_on_events #{args.join(' ')}")
136
+ end
137
+
138
+ ## play_set_abort_on_events Set replays to be interuptable bool abort
139
+
140
+ def play_set_abort_on_events(*args)
141
+ ADesklets::Client.instance.session.command("play_set_abort_on_events #{args.join(' ')}")
142
+ end
143
+
144
+ ## play Play a given macro int beginning, int end
145
+
146
+ def play(*args)
147
+ ADesklets::Client.instance.session.command("play #{args.join(' ')}")
148
+ end
149
+
150
+ ## context_get_dither Get context dither void
151
+
152
+ def context_get_dither(*args)
153
+ ADesklets::Client.instance.session.command("context_get_dither #{args.join(' ')}")
154
+ end
155
+
156
+ ## context_get_anti_alias Get context anti alias void
157
+
158
+ def context_get_anti_alias(*args)
159
+ ADesklets::Client.instance.session.command("context_get_anti_alias #{args.join(' ')}")
160
+ end
161
+
162
+ ## context_get_blend Get context blending void
163
+
164
+ def context_get_blend(*args)
165
+ ADesklets::Client.instance.session.command("context_get_blend #{args.join(' ')}")
166
+ end
167
+
168
+ ## context_get_operation Get context operation void
169
+
170
+ def context_get_operation(*args)
171
+ ADesklets::Client.instance.session.command("context_get_operation #{args.join(' ')}")
172
+ end
173
+
174
+ ## context_get_cliprect Get clipping rectange void
175
+
176
+ def context_get_cliprect(*args)
177
+ ADesklets::Client.instance.session.command("context_get_cliprect #{args.join(' ')}")
178
+ end
179
+
180
+ ## context_get_image Get context image void
181
+
182
+ def context_get_image(*args)
183
+ ADesklets::Client.instance.session.command("context_get_image #{args.join(' ')}")
184
+ end
185
+
186
+ ## context_get_font Get context font void
187
+
188
+ def context_get_font(*args)
189
+ ADesklets::Client.instance.session.command("context_get_font #{args.join(' ')}")
190
+ end
191
+
192
+ ## context_get_color_range Get context color range void
193
+
194
+ def context_get_color_range(*args)
195
+ ADesklets::Client.instance.session.command("context_get_color_range #{args.join(' ')}")
196
+ end
197
+
198
+ ## context_get_color_modifier Get context color modifier void
199
+
200
+ def context_get_color_modifier(*args)
201
+ ADesklets::Client.instance.session.command("context_get_color_modifier #{args.join(' ')}")
202
+ end
203
+
204
+ ## context_get_filter Get context filter void
205
+
206
+ def context_get_filter(*args)
207
+ ADesklets::Client.instance.session.command("context_get_filter #{args.join(' ')}")
208
+ end
209
+
210
+ ## context_get_color Get context color void
211
+
212
+ def context_get_color(*args)
213
+ ADesklets::Client.instance.session.command("context_get_color #{args.join(' ')}")
214
+ end
215
+
216
+ ## context_get_angle Get context angle void
217
+
218
+ def context_get_angle(*args)
219
+ ADesklets::Client.instance.session.command("context_get_angle #{args.join(' ')}")
220
+ end
221
+
222
+ ## context_get_direction Get context direction void
223
+
224
+ def context_get_direction(*args)
225
+ ADesklets::Client.instance.session.command("context_get_direction #{args.join(' ')}")
226
+ end
227
+
228
+ ## context_set_dither Set context dither bool dither
229
+
230
+ def context_set_dither(*args)
231
+ ADesklets::Client.instance.session.command("context_set_dither #{args.join(' ')}")
232
+ end
233
+
234
+ ## context_set_anti_alias Set context anti-alias bool anti_alias
235
+
236
+ def context_set_anti_alias(*args)
237
+ ADesklets::Client.instance.session.command("context_set_anti_alias #{args.join(' ')}")
238
+ end
239
+
240
+ ## context_set_blend Set context blending bool blend
241
+
242
+ def context_set_blend(*args)
243
+ ADesklets::Client.instance.session.command("context_set_blend #{args.join(' ')}")
244
+ end
245
+
246
+ ## context_set_operation Set context operation enum OPERATIONS operation
247
+
248
+ def context_set_operation(*args)
249
+ ADesklets::Client.instance.session.command("context_set_operation #{args.join(' ')}")
250
+ end
251
+
252
+ ## context_set_cliprect Set context clipping rectangle int x, int y, int w, int h
253
+
254
+ def context_set_cliprect(*args)
255
+ ADesklets::Client.instance.session.command("context_set_cliprect #{args.join(' ')}")
256
+ end
257
+
258
+ ## context_set_image Set context image int image
259
+
260
+ def context_set_image(*args)
261
+ ADesklets::Client.instance.session.command("context_set_image #{args.join(' ')}")
262
+ end
263
+
264
+ ## context_set_font Set context font [int font]
265
+
266
+ def context_set_font(*args)
267
+ ADesklets::Client.instance.session.command("context_set_font #{args.join(' ')}")
268
+ end
269
+
270
+ ## context_set_color_range Set context color range [int color_range]
271
+
272
+ def context_set_color_range(*args)
273
+ ADesklets::Client.instance.session.command("context_set_color_range #{args.join(' ')}")
274
+ end
275
+
276
+ ## context_set_color_modifier Set context color modifier [int color_modifier]
277
+
278
+ def context_set_color_modifier(*args)
279
+ ADesklets::Client.instance.session.command("context_set_color_modifier #{args.join(' ')}")
280
+ end
281
+
282
+ ## context_set_filter Set context filter [int filter]
283
+
284
+ def context_set_filter(*args)
285
+ ADesklets::Client.instance.session.command("context_set_filter #{args.join(' ')}")
286
+ end
287
+
288
+ ## context_set_color Set context RGBA color int red, int green, int blue, int alpha
289
+
290
+ def context_set_color(*args)
291
+ ADesklets::Client.instance.session.command("context_set_color #{args.join(' ')}")
292
+ end
293
+
294
+ ## context_set_angle Set context angle double angle
295
+
296
+ def context_set_angle(*args)
297
+ ADesklets::Client.instance.session.command("context_set_angle #{args.join(' ')}")
298
+ end
299
+
300
+ ## context_set_direction Set context direction enum DIRECTIONS direction
301
+
302
+ def context_set_direction(*args)
303
+ ADesklets::Client.instance.session.command("context_set_direction #{args.join(' ')}")
304
+ end
305
+
306
+ ## add_color_to_color_range Add a color to a color range int distance_away
307
+
308
+ def add_color_to_color_range(*args)
309
+ ADesklets::Client.instance.session.command("add_color_to_color_range #{args.join(' ')}")
310
+ end
311
+
312
+ ## blend_image_onto_image Blend images together int source_image,char merge_alpha, int source_x,int source_y, int source_width,int source_height, int destination_x,int destination_y, int destination_width,int destination_height
313
+
314
+ def blend_image_onto_image(*args)
315
+ ADesklets::Client.instance.session.command("blend_image_onto_image #{args.join(' ')}")
316
+ end
317
+
318
+ ## blend_image_onto_image_at_angle Blend images together int source_image,char merge_alpha, int source_x,int source_y, int source_width,int source_height,int destination_x,int destination_y, int angle_x,int angle_y
319
+
320
+ def blend_image_onto_image_at_angle(*args)
321
+ ADesklets::Client.instance.session.command("blend_image_onto_image_at_angle #{args.join(' ')}")
322
+ end
323
+
324
+ ## blend_image_onto_image_skewed Blend images together int source_image,char merge_alpha, int source_x,int source_y, int source_width,int source_height,int destination_x,int destination_y, int h_angle_x,int h_angle_y, int v_angle_x,int v_angle_y
325
+
326
+ def blend_image_onto_image_skewed(*args)
327
+ ADesklets::Client.instance.session.command("blend_image_onto_image_skewed #{args.join(' ')}")
328
+ end
329
+
330
+ ## apply_filter Apply a dynamic filter const char * script
331
+
332
+ def apply_filter(*args)
333
+ ADesklets::Client.instance.session.command("apply_filter #{args.join(' ')}")
334
+ end
335
+
336
+ ## get_text_size Get size of text const char * text
337
+
338
+ def get_text_size(*args)
339
+ ADesklets::Client.instance.session.command("get_text_size #{args.join(' ')}")
340
+ end
341
+
342
+ ## get_text_advance Get advance of text const char * text
343
+
344
+ def get_text_advance(*args)
345
+ ADesklets::Client.instance.session.command("get_text_advance #{args.join(' ')}")
346
+ end
347
+
348
+ ## text_draw Draw a text string int x, int y, const char *text
349
+
350
+ def text_draw(*args)
351
+ ADesklets::Client.instance.session.command("text_draw #{args.join(' ')}")
352
+ end
353
+
354
+ ## modify_color_modifier_gamma Modify gamma correction double gamma_value
355
+
356
+ def modify_color_modifier_gamma(*args)
357
+ ADesklets::Client.instance.session.command("modify_color_modifier_gamma #{args.join(' ')}")
358
+ end
359
+
360
+ ## modify_color_modifier_brightness Modify brightness double brightness_value
361
+
362
+ def modify_color_modifier_brightness(*args)
363
+ ADesklets::Client.instance.session.command("modify_color_modifier_brightness #{args.join(' ')}")
364
+ end
365
+
366
+ ## modify_color_modifier_contrast Modify contrast double contrast_value
367
+
368
+ def modify_color_modifier_contrast(*args)
369
+ ADesklets::Client.instance.session.command("modify_color_modifier_contrast #{args.join(' ')}")
370
+ end
371
+
372
+ ## get_color_modifier_tables Get tables for a color modifier void
373
+
374
+ def get_color_modifier_tables(*args)
375
+ ADesklets::Client.instance.session.command("get_color_modifier_tables #{args.join(' ')}")
376
+ end
377
+
378
+ ## set_color_modifier_tables Set tables for a color modifier unsigned char * table
379
+
380
+ def set_color_modifier_tables(*args)
381
+ ADesklets::Client.instance.session.command("set_color_modifier_tables #{args.join(' ')}")
382
+ end
383
+
384
+ ## get_color_modifier_value Get a value for a color modifier enum RGBA_TABLES table, int index
385
+
386
+ def get_color_modifier_value(*args)
387
+ ADesklets::Client.instance.session.command("get_color_modifier_value #{args.join(' ')}")
388
+ end
389
+
390
+ ## set_color_modifier_value Set a value for a color modifier enum RGBA_TABLES table, int index, int value
391
+
392
+ def set_color_modifier_value(*args)
393
+ ADesklets::Client.instance.session.command("set_color_modifier_value #{args.join(' ')}")
394
+ end
395
+
396
+ ## apply_color_modifier Apply a color modifier void
397
+
398
+ def apply_color_modifier(*args)
399
+ ADesklets::Client.instance.session.command("apply_color_modifier #{args.join(' ')}")
400
+ end
401
+
402
+ ## apply_color_modifier_to_rectangle Apply a color modifier int x, int y, int width,int height
403
+
404
+ def apply_color_modifier_to_rectangle(*args)
405
+ ADesklets::Client.instance.session.command("apply_color_modifier_to_rectangle #{args.join(' ')}")
406
+ end
407
+
408
+ ## load_image_without_cache Load an image from disk bypassing the cache const char *file
409
+
410
+ def load_image_without_cache(*args)
411
+ ADesklets::Client.instance.session.command("load_image_without_cache #{args.join(' ')}")
412
+ end
413
+
414
+ ## load_image Load an image from disk const char *file
415
+
416
+ def load_image(*args)
417
+ ADesklets::Client.instance.session.command("load_image #{args.join(' ')}")
418
+ end
419
+
420
+ ## save_image Save an image to disk const char *filename
421
+
422
+ def save_image(*args)
423
+ ADesklets::Client.instance.session.command("save_image #{args.join(' ')}")
424
+ end
425
+
426
+ ## create_image Create an image int width, int height
427
+
428
+ def create_image(*args)
429
+ ADesklets::Client.instance.session.command("create_image #{args.join(' ')}")
430
+ end
431
+
432
+ ## create_image_using_data Create an image from data int width, int height,unsigned int * data
433
+
434
+ def create_image_using_data(*args)
435
+ ADesklets::Client.instance.session.command("create_image_using_data #{args.join(' ')}")
436
+ end
437
+
438
+ ## clone_image Create a copy of an image void
439
+
440
+ def clone_image(*args)
441
+ ADesklets::Client.instance.session.command("clone_image #{args.join(' ')}")
442
+ end
443
+
444
+ ## free_image Free an image int image
445
+
446
+ def free_image(*args)
447
+ ADesklets::Client.instance.session.command("free_image #{args.join(' ')}")
448
+ end
449
+
450
+ ## load_font Load a font const char *font_name
451
+
452
+ def load_font(*args)
453
+ ADesklets::Client.instance.session.command("load_font #{args.join(' ')}")
454
+ end
455
+
456
+ ## free_font Free a font int font
457
+
458
+ def free_font(*args)
459
+ ADesklets::Client.instance.session.command("free_font #{args.join(' ')}")
460
+ end
461
+
462
+ ## list_fonts List all fonts void
463
+
464
+ def list_fonts(*args)
465
+ ADesklets::Client.instance.session.command("list_fonts #{args.join(' ')}")
466
+ end
467
+
468
+ ## list_font_path List all fonts path void
469
+
470
+ def list_font_path(*args)
471
+ ADesklets::Client.instance.session.command("list_font_path #{args.join(' ')}")
472
+ end
473
+
474
+ ## add_path_to_font_path Add a font path const char *path
475
+
476
+ def add_path_to_font_path(*args)
477
+ ADesklets::Client.instance.session.command("add_path_to_font_path #{args.join(' ')}")
478
+ end
479
+
480
+ ## remove_path_from_font_path Remove a font path const char *path
481
+
482
+ def remove_path_from_font_path(*args)
483
+ ADesklets::Client.instance.session.command("remove_path_from_font_path #{args.join(' ')}")
484
+ end
485
+
486
+ ## create_color_range Create a color range void
487
+
488
+ def create_color_range(*args)
489
+ ADesklets::Client.instance.session.command("create_color_range #{args.join(' ')}")
490
+ end
491
+
492
+ ## free_color_range Free a color range int color_range
493
+
494
+ def free_color_range(*args)
495
+ ADesklets::Client.instance.session.command("free_color_range #{args.join(' ')}")
496
+ end
497
+
498
+ ## create_filter Create a filter void
499
+
500
+ def create_filter(*args)
501
+ ADesklets::Client.instance.session.command("create_filter #{args.join(' ')}")
502
+ end
503
+
504
+ ## free_filter Free a filter int filter
505
+
506
+ def free_filter(*args)
507
+ ADesklets::Client.instance.session.command("free_filter #{args.join(' ')}")
508
+ end
509
+
510
+ ## create_color_modifier Create a color modifier void
511
+
512
+ def create_color_modifier(*args)
513
+ ADesklets::Client.instance.session.command("create_color_modifier #{args.join(' ')}")
514
+ end
515
+
516
+ ## free_color_modifier Free a color modifier int color_modifier
517
+
518
+ def free_color_modifier(*args)
519
+ ADesklets::Client.instance.session.command("free_color_modifier #{args.join(' ')}")
520
+ end
521
+
522
+ ## polygon_new Create a polygon void
523
+
524
+ def polygon_new(*args)
525
+ ADesklets::Client.instance.session.command("polygon_new #{args.join(' ')}")
526
+ end
527
+
528
+ ## polygon_free Free a polygon int poly
529
+
530
+ def polygon_free(*args)
531
+ ADesklets::Client.instance.session.command("polygon_free #{args.join(' ')}")
532
+ end
533
+
534
+ ## polygon_add_point Add point to a polygon int poly, int x, int y
535
+
536
+ def polygon_add_point(*args)
537
+ ADesklets::Client.instance.session.command("polygon_add_point #{args.join(' ')}")
538
+ end
539
+
540
+ ## images_reset_all Free all images and refresh foreground void
541
+
542
+ def images_reset_all(*args)
543
+ ADesklets::Client.instance.session.command("images_reset_all #{args.join(' ')}")
544
+ end
545
+
546
+ ## images_info Get information on all images void
547
+
548
+ def images_info(*args)
549
+ ADesklets::Client.instance.session.command("images_info #{args.join(' ')}")
550
+ end
551
+
552
+ ## fonts_reset_all Free all fonts void
553
+
554
+ def fonts_reset_all(*args)
555
+ ADesklets::Client.instance.session.command("fonts_reset_all #{args.join(' ')}")
556
+ end
557
+
558
+ ## fonts_info Get information on all fonts void
559
+
560
+ def fonts_info(*args)
561
+ ADesklets::Client.instance.session.command("fonts_info #{args.join(' ')}")
562
+ end
563
+
564
+ ## color_ranges_reset_all Free all color ranges void
565
+
566
+ def color_ranges_reset_all(*args)
567
+ ADesklets::Client.instance.session.command("color_ranges_reset_all #{args.join(' ')}")
568
+ end
569
+
570
+ ## color_ranges_info Get information on all color ranges void
571
+
572
+ def color_ranges_info(*args)
573
+ ADesklets::Client.instance.session.command("color_ranges_info #{args.join(' ')}")
574
+ end
575
+
576
+ ## color_modifiers_reset_all Free all color modifiers void
577
+
578
+ def color_modifiers_reset_all(*args)
579
+ ADesklets::Client.instance.session.command("color_modifiers_reset_all #{args.join(' ')}")
580
+ end
581
+
582
+ ## color_modifiers_info Get information on all color modifiers void
583
+
584
+ def color_modifiers_info(*args)
585
+ ADesklets::Client.instance.session.command("color_modifiers_info #{args.join(' ')}")
586
+ end
587
+
588
+ ## filters_reset_all Free all filters void
589
+
590
+ def filters_reset_all(*args)
591
+ ADesklets::Client.instance.session.command("filters_reset_all #{args.join(' ')}")
592
+ end
593
+
594
+ ## filters_info Get information on all filters void
595
+
596
+ def filters_info(*args)
597
+ ADesklets::Client.instance.session.command("filters_info #{args.join(' ')}")
598
+ end
599
+
600
+ ## polygons_reset_all Free all polygons void
601
+
602
+ def polygons_reset_all(*args)
603
+ ADesklets::Client.instance.session.command("polygons_reset_all #{args.join(' ')}")
604
+ end
605
+
606
+ ## polygons_info Get information on all polygons void
607
+
608
+ def polygons_info(*args)
609
+ ADesklets::Client.instance.session.command("polygons_info #{args.join(' ')}")
610
+ end
611
+
612
+ ## image_has_alpha Get alpha channel setting of an image void
613
+
614
+ def image_has_alpha(*args)
615
+ ADesklets::Client.instance.session.command("image_has_alpha #{args.join(' ')}")
616
+ end
617
+
618
+ ## image_get_width Get width of an image void
619
+
620
+ def image_get_width(*args)
621
+ ADesklets::Client.instance.session.command("image_get_width #{args.join(' ')}")
622
+ end
623
+
624
+ ## image_get_height Get height of an image void
625
+
626
+ def image_get_height(*args)
627
+ ADesklets::Client.instance.session.command("image_get_height #{args.join(' ')}")
628
+ end
629
+
630
+ ## image_get_filename Get filename of an image void
631
+
632
+ def image_get_filename(*args)
633
+ ADesklets::Client.instance.session.command("image_get_filename #{args.join(' ')}")
634
+ end
635
+
636
+ ## image_get_data Get the data of an image void
637
+
638
+ def image_get_data(*args)
639
+ ADesklets::Client.instance.session.command("image_get_data #{args.join(' ')}")
640
+ end
641
+
642
+ ## image_query_pixel Query a pixel value int x, int y
643
+
644
+ def image_query_pixel(*args)
645
+ ADesklets::Client.instance.session.command("image_query_pixel #{args.join(' ')}")
646
+ end
647
+
648
+ ## image_set_has_alpha Set alpha channel of an image bool has_alpha
649
+
650
+ def image_set_has_alpha(*args)
651
+ ADesklets::Client.instance.session.command("image_set_has_alpha #{args.join(' ')}")
652
+ end
653
+
654
+ ## image_set_changes_on_disk Set image load time behavior void
655
+
656
+ def image_set_changes_on_disk(*args)
657
+ ADesklets::Client.instance.session.command("image_set_changes_on_disk #{args.join(' ')}")
658
+ end
659
+
660
+ ## image_set_format Set image format const char *format
661
+
662
+ def image_set_format(*args)
663
+ ADesklets::Client.instance.session.command("image_set_format #{args.join(' ')}")
664
+ end
665
+
666
+ ## image_filter_recurse void
667
+
668
+ def image_filter_recurse(*args)
669
+ ADesklets::Client.instance.session.command("image_filter_recurse #{args.join(' ')}")
670
+ end
671
+
672
+ ## image_draw_line Draw a line int x1, int y1, int x2, int y2,char make_updates
673
+
674
+ def image_draw_line(*args)
675
+ ADesklets::Client.instance.session.command("image_draw_line #{args.join(' ')}")
676
+ end
677
+
678
+ ## image_draw_rectangle Draw a rectangle int x, int y, int width, int height
679
+
680
+ def image_draw_rectangle(*args)
681
+ ADesklets::Client.instance.session.command("image_draw_rectangle #{args.join(' ')}")
682
+ end
683
+
684
+ ## image_fill_rectangle Draw a filled rectangle int x, int y, int width, int height
685
+
686
+ def image_fill_rectangle(*args)
687
+ ADesklets::Client.instance.session.command("image_fill_rectangle #{args.join(' ')}")
688
+ end
689
+
690
+ ## image_fill_color_range_rectangle Draw a gradian filled rectange int x, int y, int width,int height, double angle
691
+
692
+ def image_fill_color_range_rectangle(*args)
693
+ ADesklets::Client.instance.session.command("image_fill_color_range_rectangle #{args.join(' ')}")
694
+ end
695
+
696
+ ## image_draw_ellipse Draw an ellipse int xc, int yc, int a, int b
697
+
698
+ def image_draw_ellipse(*args)
699
+ ADesklets::Client.instance.session.command("image_draw_ellipse #{args.join(' ')}")
700
+ end
701
+
702
+ ## image_fill_ellipse Fill an ellipse int xc, int yc, int a, int b
703
+
704
+ def image_fill_ellipse(*args)
705
+ ADesklets::Client.instance.session.command("image_fill_ellipse #{args.join(' ')}")
706
+ end
707
+
708
+ ## image_copy_alpha_to_image Transfert alpha channel int image_source, int x,int y
709
+
710
+ def image_copy_alpha_to_image(*args)
711
+ ADesklets::Client.instance.session.command("image_copy_alpha_to_image #{args.join(' ')}")
712
+ end
713
+
714
+ ## image_copy_alpha_rectangle_to_image Transfert alpha channel int image_source,int x, int y, int width,int height,int destination_x,int destination_y
715
+
716
+ def image_copy_alpha_rectangle_to_image(*args)
717
+ ADesklets::Client.instance.session.command("image_copy_alpha_rectangle_to_image #{args.join(' ')}")
718
+ end
719
+
720
+ ## image_draw_polygon Draw a polygon onto image int poly, unsigned char closed
721
+
722
+ def image_draw_polygon(*args)
723
+ ADesklets::Client.instance.session.command("image_draw_polygon #{args.join(' ')}")
724
+ end
725
+
726
+ ## image_fill_polygon Fill a polygon onto image int poly
727
+
728
+ def image_fill_polygon(*args)
729
+ ADesklets::Client.instance.session.command("image_fill_polygon #{args.join(' ')}")
730
+ end
731
+
732
+ ## image_flip_horizontal Flip an image horizontally void
733
+
734
+ def image_flip_horizontal(*args)
735
+ ADesklets::Client.instance.session.command("image_flip_horizontal #{args.join(' ')}")
736
+ end
737
+
738
+ ## image_flip_vertical Flip an image vertically void
739
+
740
+ def image_flip_vertical(*args)
741
+ ADesklets::Client.instance.session.command("image_flip_vertical #{args.join(' ')}")
742
+ end
743
+
744
+ ## image_flip_diagonal Flip an image diagonally void
745
+
746
+ def image_flip_diagonal(*args)
747
+ ADesklets::Client.instance.session.command("image_flip_diagonal #{args.join(' ')}")
748
+ end
749
+
750
+ ## image_orientate Orientate an image int orientation
751
+
752
+ def image_orientate(*args)
753
+ ADesklets::Client.instance.session.command("image_orientate #{args.join(' ')}")
754
+ end
755
+
756
+ ## image_blur Blur an image int radius
757
+
758
+ def image_blur(*args)
759
+ ADesklets::Client.instance.session.command("image_blur #{args.join(' ')}")
760
+ end
761
+
762
+ ## image_sharpen Sharpen an image int radius
763
+
764
+ def image_sharpen(*args)
765
+ ADesklets::Client.instance.session.command("image_sharpen #{args.join(' ')}")
766
+ end
767
+
768
+ ## filter_set Set filter int xoff, int yoff, int a, int r, int g, int b
769
+
770
+ def filter_set(*args)
771
+ ADesklets::Client.instance.session.command("filter_set #{args.join(' ')}")
772
+ end
773
+
774
+ ## filter_set_red Set filter red channel int xoff, int yoff, int a, int r, int g, int b
775
+
776
+ def filter_set_red(*args)
777
+ ADesklets::Client.instance.session.command("filter_set_red #{args.join(' ')}")
778
+ end
779
+
780
+ ## filter_set_green Set filter grean channel int xoff, int yoff, int a, int r, int g, int b
781
+
782
+ def filter_set_green(*args)
783
+ ADesklets::Client.instance.session.command("filter_set_green #{args.join(' ')}")
784
+ end
785
+
786
+ ## filter_set_blue Set filter blue channel int xoff, int yoff, int a, int r, int g, int b
787
+
788
+ def filter_set_blue(*args)
789
+ ADesklets::Client.instance.session.command("filter_set_blue #{args.join(' ')}")
790
+ end
791
+
792
+ ## filter_set_alpha Set filter alpha channel int xoff, int yoff, int a, int r, int g, int b
793
+
794
+ def filter_set_alpha(*args)
795
+ ADesklets::Client.instance.session.command("filter_set_alpha #{args.join(' ')}")
796
+ end
797
+
798
+ ## filter_constants Set filter constants int a, int r, int g, int b
799
+
800
+ def filter_constants(*args)
801
+ ADesklets::Client.instance.session.command("filter_constants #{args.join(' ')}")
802
+ end
803
+
804
+ ## filter_divisors Set filter divisors int a, int r, int g, int b
805
+
806
+ def filter_divisors(*args)
807
+ ADesklets::Client.instance.session.command("filter_divisors #{args.join(' ')}")
808
+ end
809
+
810
+ ## menu_fire Fire a given menu int menu
811
+
812
+ def menu_fire(*args)
813
+ ADesklets::Client.instance.session.command("menu_fire #{args.join(' ')}")
814
+ end
815
+
816
+ ## menu_reset_all Reset all menus to initial state void
817
+
818
+ def menu_reset_all(*args)
819
+ ADesklets::Client.instance.session.command("menu_reset_all #{args.join(' ')}")
820
+ end
821
+
822
+ ## menu_add_menu Add a new menu void
823
+
824
+ def menu_add_menu(*args)
825
+ ADesklets::Client.instance.session.command("menu_add_menu #{args.join(' ')}")
826
+ end
827
+
828
+ ## menu_add_submenu Add a submenu to current menu const char * submenu
829
+
830
+ def menu_add_submenu(*args)
831
+ ADesklets::Client.instance.session.command("menu_add_submenu #{args.join(' ')}")
832
+ end
833
+
834
+ ## menu_add_item Add an item to current menu const char * add_item
835
+
836
+ def menu_add_item(*args)
837
+ ADesklets::Client.instance.session.command("menu_add_item #{args.join(' ')}")
838
+ end
839
+
840
+ ## menu_add_separator Add a separator to current menu void
841
+
842
+ def menu_add_separator(*args)
843
+ ADesklets::Client.instance.session.command("menu_add_separator #{args.join(' ')}")
844
+ end
845
+
846
+ ## menu_end_submenu End a submenu construction void
847
+
848
+ def menu_end_submenu(*args)
849
+ ADesklets::Client.instance.session.command("menu_end_submenu #{args.join(' ')}")
850
+ end
851
+
852
+ ## events_info Get all caught events void
853
+
854
+ def events_info(*args)
855
+ ADesklets::Client.instance.session.command("events_info #{args.join(' ')}")
856
+ end
857
+
858
+ ## events_get_echo Get events echo status void
859
+
860
+ def events_get_echo(*args)
861
+ ADesklets::Client.instance.session.command("events_get_echo #{args.join(' ')}")
862
+ end
863
+
864
+ ## events_get_send_sigusr1 Get sending of SIGUSR1 to parent on event void
865
+
866
+ def events_get_send_sigusr1(*args)
867
+ ADesklets::Client.instance.session.command("events_get_send_sigusr1 #{args.join(' ')}")
868
+ end
869
+
870
+ ## window_reset Reset the window enum WINDOW_MANAGER manager
871
+
872
+ def window_reset(*args)
873
+ ADesklets::Client.instance.session.command("window_reset #{args.join(' ')}")
874
+ end
875
+
876
+ ## window_show Map the window on the screen void
877
+
878
+ def window_show(*args)
879
+ ADesklets::Client.instance.session.command("window_show #{args.join(' ')}")
880
+ end
881
+
882
+ ## window_hide Unmap the window from the screen void
883
+
884
+ def window_hide(*args)
885
+ ADesklets::Client.instance.session.command("window_hide #{args.join(' ')}")
886
+ end
887
+
888
+ ## window_resize Resize the window int width, int height
889
+
890
+ def window_resize(*args)
891
+ ADesklets::Client.instance.session.command("window_resize #{args.join(' ')}")
892
+ end
893
+
894
+ ## window_get_transparency Get automatic transparency void
895
+
896
+ def window_get_transparency(*args)
897
+ ADesklets::Client.instance.session.command("window_get_transparency #{args.join(' ')}")
898
+ end
899
+
900
+ ## window_get_background_grab Get automatic grab void
901
+
902
+ def window_get_background_grab(*args)
903
+ ADesklets::Client.instance.session.command("window_get_background_grab #{args.join(' ')}")
904
+ end
905
+
906
+ ## window_get_background_image Get background image void
907
+
908
+ def window_get_background_image(*args)
909
+ ADesklets::Client.instance.session.command("window_get_background_image #{args.join(' ')}")
910
+ end
911
+
912
+ ## window_get_managed_status Get managed status void
913
+
914
+ def window_get_managed_status(*args)
915
+ ADesklets::Client.instance.session.command("window_get_managed_status #{args.join(' ')}")
916
+ end
917
+
918
+ ## window_set_transparency Set automatic transparency bool transparency
919
+
920
+ def window_set_transparency(*args)
921
+ ADesklets::Client.instance.session.command("window_set_transparency #{args.join(' ')}")
922
+ end
923
+
924
+ ## window_set_background_grab Set automatic grab bool grab
925
+
926
+ def window_set_background_grab(*args)
927
+ ADesklets::Client.instance.session.command("window_set_background_grab #{args.join(' ')}")
928
+ end
929
+
930
+ ## window_set_background_image Set background image int image
931
+
932
+ def window_set_background_image(*args)
933
+ ADesklets::Client.instance.session.command("window_set_background_image #{args.join(' ')}")
934
+ end
935
+
936
+ ## screen_get_width Get screen width void
937
+
938
+ def screen_get_width(*args)
939
+ ADesklets::Client.instance.session.command("screen_get_width #{args.join(' ')}")
940
+ end
941
+
942
+ ## screen_get_height Get screen height void
943
+
944
+ def screen_get_height(*args)
945
+ ADesklets::Client.instance.session.command("screen_get_height #{args.join(' ')}")
946
+ end
947
+
948
+ ## screen_get_depth Get screen depth void
949
+
950
+ def screen_get_depth(*args)
951
+ ADesklets::Client.instance.session.command("screen_get_depth #{args.join(' ')}")
952
+ end
953
+
954
+ ## get_charset Get input charset void
955
+
956
+ def get_charset(*args)
957
+ ADesklets::Client.instance.session.command("get_charset #{args.join(' ')}")
958
+ end
959
+
960
+ ## set_charset Set input charset const char * charset
961
+
962
+ def set_charset(*args)
963
+ ADesklets::Client.instance.session.command("set_charset #{args.join(' ')}")
964
+ end
965
+
966
+ ## charset_status Get charset capabilities void
967
+
968
+ def charset_status(*args)
969
+ ADesklets::Client.instance.session.command("charset_status #{args.join(' ')}")
970
+ end
971
+
972
+ ## x_status Status of connection to X Window server void
973
+
974
+ def x_status(*args)
975
+ ADesklets::Client.instance.session.command("x_status #{args.join(' ')}")
976
+ end
977
+
978
+ ## quit Quit the program void
979
+
980
+ def quit(*args)
981
+ ADesklets::Client.instance.session.command("quit #{args.join(' ')}")
982
+ end
983
+
984
+
985
+ end
986
+ end