/
Display.d
745 lines (685 loc) · 22.3 KB
/
Display.d
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
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
/*
* This file is part of gtkD.
*
* gtkD is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version, with
* some exceptions, please read the COPYING file.
*
* gtkD is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with gtkD; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
*/
// generated automatically - do not change
// find conversion definition on APILookup.txt
// implement new conversion functionalities on the wrap.utils pakage
/*
* Conversion parameters:
* inFile = GdkDisplay.html
* outPack = gdk
* outFile = Display
* strct = GdkDisplay
* realStrct=
* ctorStrct=
* clss = Display
* interf =
* class Code: No
* interface Code: No
* template for:
* extend =
* implements:
* prefixes:
* - gdk_display_
* omit structs:
* omit prefixes:
* omit code:
* omit signals:
* imports:
* - glib.Str
* - gdk.Screen
* - glib.ListG
* - gdk.Event
* - gdk.Window
* structWrap:
* - GList* -> ListG
* - GdkDisplay* -> Display
* - GdkEvent* -> Event
* - GdkScreen* -> Screen
* - GdkWindow* -> Window
* module aliases:
* local aliases:
* overrides:
*/
module gdk.Display;
public import gtkc.gdktypes;
private import gtkc.gdk;
private import glib.ConstructionException;
private import gobject.Signals;
public import gtkc.gdktypes;
private import glib.Str;
private import gdk.Screen;
private import glib.ListG;
private import gdk.Event;
private import gdk.Window;
private import gobject.ObjectG;
/**
* Description
* GdkDisplay objects purpose are two fold:
* To grab/ungrab keyboard focus and mouse pointer
* To manage and provide information about the GdkScreen(s)
* available for this GdkDisplay
* GdkDisplay objects are the GDK representation of the X Display which can be
* described as a workstation consisting of a keyboard a pointing
* device (such as a mouse) and one or more screens.
* It is used to open and keep track of various GdkScreen objects currently
* instanciated by the application. It is also used to grab and release the keyboard
* and the mouse pointer.
*/
public class Display : ObjectG
{
/** the main Gtk struct */
protected GdkDisplay* gdkDisplay;
public GdkDisplay* getDisplayStruct()
{
return gdkDisplay;
}
/** the main Gtk struct as a void* */
protected override void* getStruct()
{
return cast(void*)gdkDisplay;
}
/**
* Sets our main struct and passes it to the parent class
*/
public this (GdkDisplay* gdkDisplay)
{
if(gdkDisplay is null)
{
this = null;
return;
}
//Check if there already is a D object for this gtk struct
void* ptr = getDObject(cast(GObject*)gdkDisplay);
if( ptr !is null )
{
this = cast(Display)ptr;
return;
}
super(cast(GObject*)gdkDisplay);
this.gdkDisplay = gdkDisplay;
}
protected override void setStruct(GObject* obj)
{
super.setStruct(obj);
gdkDisplay = cast(GdkDisplay*)obj;
}
/**
*/
int[string] connectedSignals;
void delegate(gboolean, Display)[] onClosedListeners;
/**
* The ::closed signal is emitted when the connection to the windowing
* system for display is closed.
* TRUE if the display was closed due to an error
* Since 2.2
*/
void addOnClosed(void delegate(gboolean, Display) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
{
if ( !("closed" in connectedSignals) )
{
Signals.connectData(
getStruct(),
"closed",
cast(GCallback)&callBackClosed,
cast(void*)this,
null,
connectFlags);
connectedSignals["closed"] = 1;
}
onClosedListeners ~= dlg;
}
extern(C) static void callBackClosed(GdkDisplay* displayStruct, gboolean isError, Display display)
{
foreach ( void delegate(gboolean, Display) dlg ; display.onClosedListeners )
{
dlg(isError, display);
}
}
/**
* Opens a display.
* Since 2.2
* Params:
* displayName = the name of the display to open
* Returns: a GdkDisplay, or NULL if the display could not be opened.
*/
public static Display open(string displayName)
{
// GdkDisplay * gdk_display_open (const gchar *display_name);
auto p = gdk_display_open(Str.toStringz(displayName));
if(p is null)
{
return null;
}
return new Display(cast(GdkDisplay*) p);
}
/**
* Gets the default GdkDisplay. This is a convenience
* function for
* gdk_display_manager_get_default_display (gdk_display_manager_get()).
* Since 2.2
* Returns: a GdkDisplay, or NULL if there is no default display. [transfer none]
*/
public static Display getDefault()
{
// GdkDisplay * gdk_display_get_default (void);
auto p = gdk_display_get_default();
if(p is null)
{
return null;
}
return new Display(cast(GdkDisplay*) p);
}
/**
* Gets the name of the display.
* Since 2.2
* Returns: a string representing the display name. This string is owned by GDK and should not be modified or freed.
*/
public string getName()
{
// const gchar * gdk_display_get_name (GdkDisplay *display);
return Str.toString(gdk_display_get_name(gdkDisplay));
}
/**
* Gets the number of screen managed by the display.
* Since 2.2
* Returns: number of screens.
*/
public int getNScreens()
{
// gint gdk_display_get_n_screens (GdkDisplay *display);
return gdk_display_get_n_screens(gdkDisplay);
}
/**
* Returns a screen object for one of the screens of the display.
* Since 2.2
* Params:
* screenNum = the screen number
* Returns: the GdkScreen object
*/
public Screen getScreen(int screenNum)
{
// GdkScreen * gdk_display_get_screen (GdkDisplay *display, gint screen_num);
auto p = gdk_display_get_screen(gdkDisplay, screenNum);
if(p is null)
{
return null;
}
return new Screen(cast(GdkScreen*) p);
}
/**
* Get the default GdkScreen for display.
* Since 2.2
* Returns: the default GdkScreen object for display
*/
public Screen getDefaultScreen()
{
// GdkScreen * gdk_display_get_default_screen (GdkDisplay *display);
auto p = gdk_display_get_default_screen(gdkDisplay);
if(p is null)
{
return null;
}
return new Screen(cast(GdkScreen*) p);
}
/**
* Release any pointer grab.
* Since 2.2
* Params:
* time = a timestap (e.g. GDK_CURRENT_TIME).
*/
public void pointerUngrab(uint time)
{
// void gdk_display_pointer_ungrab (GdkDisplay *display, guint32 time_);
gdk_display_pointer_ungrab(gdkDisplay, time);
}
/**
* Release any keyboard grab
* Since 2.2
* Params:
* time = a timestap (e.g GDK_CURRENT_TIME).
*/
public void keyboardUngrab(uint time)
{
// void gdk_display_keyboard_ungrab (GdkDisplay *display, guint32 time_);
gdk_display_keyboard_ungrab(gdkDisplay, time);
}
/**
* Test if the pointer is grabbed.
* Since 2.2
* Returns: TRUE if an active X pointer grab is in effect
*/
public int pointerIsGrabbed()
{
// gboolean gdk_display_pointer_is_grabbed (GdkDisplay *display);
return gdk_display_pointer_is_grabbed(gdkDisplay);
}
/**
* Emits a short beep on display
* Since 2.2
*/
public void beep()
{
// void gdk_display_beep (GdkDisplay *display);
gdk_display_beep(gdkDisplay);
}
/**
* Flushes any requests queued for the windowing system and waits until all
* requests have been handled. This is often used for making sure that the
* display is synchronized with the current state of the program. Calling
* gdk_display_sync() before gdk_error_trap_pop() makes sure that any errors
* generated from earlier requests are handled before the error trap is
* removed.
* This is most useful for X11. On windowing systems where requests are
* handled synchronously, this function will do nothing.
* Since 2.2
*/
public void sync()
{
// void gdk_display_sync (GdkDisplay *display);
gdk_display_sync(gdkDisplay);
}
/**
* Flushes any requests queued for the windowing system; this happens automatically
* when the main loop blocks waiting for new events, but if your application
* is drawing without returning control to the main loop, you may need
* to call this function explicitely. A common case where this function
* needs to be called is when an application is executing drawing commands
* from a thread other than the thread where the main loop is running.
* This is most useful for X11. On windowing systems where requests are
* handled synchronously, this function will do nothing.
* Since 2.4
*/
public void flush()
{
// void gdk_display_flush (GdkDisplay *display);
gdk_display_flush(gdkDisplay);
}
/**
* Closes the connection to the windowing system for the given display,
* and cleans up associated resources.
* Since 2.2
*/
public void close()
{
// void gdk_display_close (GdkDisplay *display);
gdk_display_close(gdkDisplay);
}
/**
* Finds out if the display has been closed.
* Since 2.22
* Returns: TRUE if the display is closed.
*/
public int isClosed()
{
// gboolean gdk_display_is_closed (GdkDisplay *display);
return gdk_display_is_closed(gdkDisplay);
}
/**
* Returns the list of available input devices attached to display.
* The list is statically allocated and should not be freed.
* Since 2.2
* Returns: a list of GdkDevice
*/
public ListG listDevices()
{
// GList * gdk_display_list_devices (GdkDisplay *display);
auto p = gdk_display_list_devices(gdkDisplay);
if(p is null)
{
return null;
}
return new ListG(cast(GList*) p);
}
/**
* Gets the next GdkEvent to be processed for display, fetching events from the
* windowing system if necessary.
* Since 2.2
* Returns: the next GdkEvent to be processed, or NULL if no events are pending. The returned GdkEvent should be freed with gdk_event_free().
*/
public Event getEvent()
{
// GdkEvent * gdk_display_get_event (GdkDisplay *display);
auto p = gdk_display_get_event(gdkDisplay);
if(p is null)
{
return null;
}
return new Event(cast(GdkEvent*) p);
}
/**
* Gets a copy of the first GdkEvent in the display's event queue, without
* removing the event from the queue. (Note that this function will
* not get more events from the windowing system. It only checks the events
* that have already been moved to the GDK event queue.)
* Since 2.2
* Returns: a copy of the first GdkEvent on the event queue, or NULL if no events are in the queue. The returned GdkEvent should be freed with gdk_event_free().
*/
public Event peekEvent()
{
// GdkEvent * gdk_display_peek_event (GdkDisplay *display);
auto p = gdk_display_peek_event(gdkDisplay);
if(p is null)
{
return null;
}
return new Event(cast(GdkEvent*) p);
}
/**
* Appends a copy of the given event onto the front of the event
* queue for display.
* Since 2.2
* Params:
* event = a GdkEvent.
*/
public void putEvent(Event event)
{
// void gdk_display_put_event (GdkDisplay *display, const GdkEvent *event);
gdk_display_put_event(gdkDisplay, (event is null) ? null : event.getEventStruct());
}
/**
* Adds a filter to be called when X ClientMessage events are received.
* See gdk_window_add_filter() if you are interested in filtering other
* types of events.
* Since 2.2
* Params:
* messageType = the type of ClientMessage events to receive.
* This will be checked against the message_type field
* of the XClientMessage event struct.
* func = the function to call to process the event.
* data = user data to pass to func.
*/
public void addClientMessageFilter(GdkAtom messageType, GdkFilterFunc func, void* data)
{
// void gdk_display_add_client_message_filter (GdkDisplay *display, GdkAtom message_type, GdkFilterFunc func, gpointer data);
gdk_display_add_client_message_filter(gdkDisplay, messageType, func, data);
}
/**
* Sets the double click time (two clicks within this time interval
* count as a double click and result in a GDK_2BUTTON_PRESS event).
* Applications should not set this, it is a global
* user-configured setting.
* Since 2.2
* Params:
* msec = double click time in milliseconds (thousandths of a second)
*/
public void setDoubleClickTime(uint msec)
{
// void gdk_display_set_double_click_time (GdkDisplay *display, guint msec);
gdk_display_set_double_click_time(gdkDisplay, msec);
}
/**
* Sets the double click distance (two clicks within this distance
* count as a double click and result in a GDK_2BUTTON_PRESS event).
* See also gdk_display_set_double_click_time().
* Applications should not set this, it is a global
* user-configured setting.
* Since 2.4
* Params:
* distance = distance in pixels
*/
public void setDoubleClickDistance(uint distance)
{
// void gdk_display_set_double_click_distance (GdkDisplay *display, guint distance);
gdk_display_set_double_click_distance(gdkDisplay, distance);
}
/**
* Gets the current location of the pointer and the current modifier
* mask for a given display.
* Since 2.2
* Params:
* screen = location to store the screen that the
* cursor is on, or NULL. [out][allow-none]
* x = location to store root window X coordinate of pointer, or NULL. [out][allow-none]
* y = location to store root window Y coordinate of pointer, or NULL. [out][allow-none]
* mask = location to store current modifier mask, or NULL. [out][allow-none]
*/
public void getPointer(out Screen screen, out int x, out int y, out GdkModifierType mask)
{
// void gdk_display_get_pointer (GdkDisplay *display, GdkScreen **screen, gint *x, gint *y, GdkModifierType *mask);
GdkScreen* outscreen = null;
gdk_display_get_pointer(gdkDisplay, &outscreen, &x, &y, &mask);
screen = new Screen(outscreen);
}
/**
* Obtains the window underneath the mouse pointer, returning the location
* of the pointer in that window in win_x, win_y for screen. Returns NULL
* if the window under the mouse pointer is not known to GDK (for example,
* belongs to another application).
* Since 2.2
* Params:
* winX = return location for x coordinate of the pointer location relative
* to the window origin, or NULL. [out][allow-none]
* winY = return location for y coordinate of the pointer location relative
* to the window origin, or NULL. [out][allow-none]
* Returns: the window under the mouse pointer, or NULL. [transfer none]
*/
public Window getWindowAtPointer(out int winX, out int winY)
{
// GdkWindow * gdk_display_get_window_at_pointer (GdkDisplay *display, gint *win_x, gint *win_y);
auto p = gdk_display_get_window_at_pointer(gdkDisplay, &winX, &winY);
if(p is null)
{
return null;
}
return new Window(cast(GdkWindow*) p);
}
/**
* Warning
* gdk_display_set_pointer_hooks has been deprecated since version 2.24 and should not be used in newly-written code. This function will go away in GTK 3 for lack of use cases.
* This function allows for hooking into the operation
* of getting the current location of the pointer on a particular
* display. This is only useful for such low-level tools as an
* event recorder. Applications should never have any
* reason to use this facility.
* Since 2.2
* Params:
* newHooks = a table of pointers to functions for getting
* quantities related to the current pointer position,
* or NULL to restore the default table.
* Returns: the previous pointer hook table
*/
public GdkDisplayPointerHooks* setPointerHooks(GdkDisplayPointerHooks* newHooks)
{
// GdkDisplayPointerHooks * gdk_display_set_pointer_hooks (GdkDisplay *display, const GdkDisplayPointerHooks *new_hooks);
return gdk_display_set_pointer_hooks(gdkDisplay, newHooks);
}
/**
* Warps the pointer of display to the point x,y on
* the screen screen, unless the pointer is confined
* to a window by a grab, in which case it will be moved
* as far as allowed by the grab. Warping the pointer
* creates events as if the user had moved the mouse
* instantaneously to the destination.
* Note that the pointer should normally be under the
* control of the user. This function was added to cover
* some rare use cases like keyboard navigation support
* for the color picker in the GtkColorSelectionDialog.
* Since 2.8
* Params:
* screen = the screen of display to warp the pointer to
* x = the x coordinate of the destination
* y = the y coordinate of the destination
*/
public void warpPointer(Screen screen, int x, int y)
{
// void gdk_display_warp_pointer (GdkDisplay *display, GdkScreen *screen, gint x, gint y);
gdk_display_warp_pointer(gdkDisplay, (screen is null) ? null : screen.getScreenStruct(), x, y);
}
/**
* Returns TRUE if multicolored cursors are supported
* on display. Otherwise, cursors have only a forground
* and a background color.
* Since 2.4
* Returns: whether cursors can have multiple colors.
*/
public int supportsCursorColor()
{
// gboolean gdk_display_supports_cursor_color (GdkDisplay *display);
return gdk_display_supports_cursor_color(gdkDisplay);
}
/**
* Returns TRUE if cursors can use an 8bit alpha channel
* on display. Otherwise, cursors are restricted to bilevel
* alpha (i.e. a mask).
* Since 2.4
* Returns: whether cursors can have alpha channels.
*/
public int supportsCursorAlpha()
{
// gboolean gdk_display_supports_cursor_alpha (GdkDisplay *display);
return gdk_display_supports_cursor_alpha(gdkDisplay);
}
/**
* Returns the default size to use for cursors on display.
* Since 2.4
* Returns: the default cursor size.
*/
public uint getDefaultCursorSize()
{
// guint gdk_display_get_default_cursor_size (GdkDisplay *display);
return gdk_display_get_default_cursor_size(gdkDisplay);
}
/**
* Gets the maximal size to use for cursors on display.
* Since 2.4
* Params:
* width = the return location for the maximal cursor width
* height = the return location for the maximal cursor height
*/
public void getMaximalCursorSize(out uint width, out uint height)
{
// void gdk_display_get_maximal_cursor_size (GdkDisplay *display, guint *width, guint *height);
gdk_display_get_maximal_cursor_size(gdkDisplay, &width, &height);
}
/**
* Returns the default group leader window for all toplevel windows
* on display. This window is implicitly created by GDK.
* See gdk_window_set_group().
* Since 2.4
* Returns: The default group leader window for display
*/
public Window getDefaultGroup()
{
// GdkWindow * gdk_display_get_default_group (GdkDisplay *display);
auto p = gdk_display_get_default_group(gdkDisplay);
if(p is null)
{
return null;
}
return new Window(cast(GdkWindow*) p);
}
/**
* Returns whether GdkEventOwnerChange events will be
* sent when the owner of a selection changes.
* Since 2.6
* Returns: whether GdkEventOwnerChange events will be sent.
*/
public int supportsSelectionNotification()
{
// gboolean gdk_display_supports_selection_notification (GdkDisplay *display);
return gdk_display_supports_selection_notification(gdkDisplay);
}
/**
* Request GdkEventOwnerChange events for ownership changes
* of the selection named by the given atom.
* Since 2.6
* Params:
* selection = the GdkAtom naming the selection for which
* ownership change notification is requested
* Returns: whether GdkEventOwnerChange events will be sent.
*/
public int requestSelectionNotification(GdkAtom selection)
{
// gboolean gdk_display_request_selection_notification (GdkDisplay *display, GdkAtom selection);
return gdk_display_request_selection_notification(gdkDisplay, selection);
}
/**
* Returns whether the speicifed display supports clipboard
* persistance; i.e. if it's possible to store the clipboard data after an
* application has quit. On X11 this checks if a clipboard daemon is
* running.
* Since 2.6
* Returns: TRUE if the display supports clipboard persistance.
*/
public int supportsClipboardPersistence()
{
// gboolean gdk_display_supports_clipboard_persistence (GdkDisplay *display);
return gdk_display_supports_clipboard_persistence(gdkDisplay);
}
/**
* Issues a request to the clipboard manager to store the
* clipboard data. On X11, this is a special program that works
* according to the freedesktop clipboard specification, available at
* http://www.freedesktop.org/Standards/clipboard-manager-spec.
* Since 2.6
* Params:
* clipboardWindow = a GdkWindow belonging to the clipboard owner
* time = a timestamp
* targets = an array of targets that should be saved, or NULL
* if all available targets should be saved.
*/
public void storeClipboard(Window clipboardWindow, uint time, GdkAtom[] targets)
{
// void gdk_display_store_clipboard (GdkDisplay *display, GdkWindow *clipboard_window, guint32 time_, const GdkAtom *targets, gint n_targets);
gdk_display_store_clipboard(gdkDisplay, (clipboardWindow is null) ? null : clipboardWindow.getWindowStruct(), time, targets.ptr, cast(int) targets.length);
}
/**
* Returns TRUE if gdk_window_shape_combine_mask() can
* be used to create shaped windows on display.
* Since 2.10
* Returns: TRUE if shaped windows are supported
*/
public int supportsShapes()
{
// gboolean gdk_display_supports_shapes (GdkDisplay *display);
return gdk_display_supports_shapes(gdkDisplay);
}
/**
* Returns TRUE if gdk_window_input_shape_combine_mask() can
* be used to modify the input shape of windows on display.
* Since 2.10
* Returns: TRUE if windows with modified input shape are supported
*/
public int supportsInputShapes()
{
// gboolean gdk_display_supports_input_shapes (GdkDisplay *display);
return gdk_display_supports_input_shapes(gdkDisplay);
}
/**
* Returns TRUE if gdk_window_set_composited() can be used
* to redirect drawing on the window using compositing.
* Currently this only works on X11 with XComposite and
* XDamage extensions available.
* Since 2.12
* Signal Details
* The "closed" signal
* void user_function (GdkDisplay *display,
* gboolean is_error,
* gpointer user_data) : Run Last
* The ::closed signal is emitted when the connection to the windowing
* system for display is closed.
* Since 2.2
* Returns: TRUE if windows may be composited.
*/
public int supportsComposite()
{
// gboolean gdk_display_supports_composite (GdkDisplay *display);
return gdk_display_supports_composite(gdkDisplay);
}
}