GObject.Object
Gdk.Display
GdkX11.X11Display
Import line: | GdkX11 = imports.gi.GdkX11; |
GIR File: | GdkX11-3.0.gir |
C documentation: | GdkX11X11Display |
Class : | X11Display |
Extends: | Gdk.Display |
None |
Method / Constructor | Defined By | |
---|---|---|
new GdkX11.X11Display
()
Create a new GdkX11.X11Display
Create a new GdkX11.X11Display
|
||
Pops the error trap pushed by gdk_x11_display_error_trap_push().
Pops the error trap pushed by gdk_x11_display_error_trap_push().
Will XSync() if necessary and will always block until the error is known to have occurred or not occurred, so the error code can be returned. If you don't need to use the return value, gdk_x11_display_error_trap_pop_ignored() would be more efficient. See gdk_error_trap_pop() for the all-displays-at-once equivalent.
|
GdkX11.X11Display | |
GdkX11.X11Display.error_trap_pop_ignored
(Display display)
:
none
Pops the error trap pushed by gdk_x11_display_error_trap_push().
Pops the error trap pushed by gdk_x11_display_error_trap_push().
Does not block to see if an error occurred; merely records the range of requests to ignore errors for, and ignores those errors if they arrive asynchronously. See gdk_error_trap_pop_ignored() for the all-displays-at-once equivalent.
|
GdkX11.X11Display | |
GdkX11.X11Display.error_trap_push
(Display display)
:
none
Begins a range of X requests on display for which X error events
will be ignored.
Begins a range of X requests on display for which X error events
will be ignored. Unignored errors (when no trap is pushed) will abort the application. Use gdk_x11_display_error_trap_pop() or gdk_x11_display_error_trap_pop_ignored()to lift a trap pushed with this function. See also gdk_error_trap_push() to push a trap on all displays.
|
GdkX11.X11Display | |
Gets the startup notification ID for a display.
Gets the startup notification ID for a display.
|
GdkX11.X11Display | |
Returns the timestamp of the last user interaction on
by user interaction such as key presses or pointer movements.
Returns the timestamp of the last user interaction on
by user interaction such as key presses or pointer movements. See gdk_x11_window_set_user_time().
|
GdkX11.X11Display | |
GdkX11.X11Display.grab
(Display display)
:
none
Call XGrabServer() on display.
Call XGrabServer() on display.
To ungrab the display again, use gdk_x11_display_ungrab(). gdk_x11_display_grab()/gdk_x11_display_ungrab() calls can be nested.
|
GdkX11.X11Display | |
Sets the cursor theme from which the images for cursor
should be taken.
Sets the cursor theme from which the images for cursor
should be taken. If the windowing system supports it, existing cursors created with gdk_cursor_new(), gdk_cursor_new_for_display() and gdk_cursor_new_for_name() are updated to reflect the theme change. Custom cursors constructed with gdk_cursor_new_from_pixbuf() will have to be handled by the application (GTK+ applications can learn about cursor theme changes by listening for change notification for the corresponding GtkSetting).
|
GdkX11.X11Display | |
Sets the startup notification ID for a display.
Sets the startup notification ID for a display.
This is usually taken from the value of the DESKTOP_STARTUP_ID environment variable, but in some cases (such as the application not being launched using exec()) it can come from other sources. If the ID contains the string "_TIME" then the portion following that string is taken to be the X11 timestamp of the event that triggered the application to be launched and the GDK current event time is set accordingly. The startup ID is also what is used to signal that the startup is complete (for example, when opening a window or when calling gdk_notify_startup_complete()).
|
GdkX11.X11Display | |
Convert a string from the encoding of the current
locale into a form suitable for storing in a window property.
Convert a string from the encoding of the current
locale into a form suitable for storing in a window property.
|
GdkX11.X11Display | |
GdkX11.X11Display.text_property_to_text_list
(Display display, Atom encoding, gint32 format, guint8 text, gint32 length, String list)
:
gint32
Convert a text string from the encoding as it is stored
in a property into an array of strings in the encoding of the current locale.
Convert a text string from the encoding as it is stored
in a property into an array of strings in the encoding of the current locale. (The elements of the array represent the nul-separated elements of the original text string.) if the conversion failed
|
GdkX11.X11Display | |
GdkX11.X11Display.ungrab
(Display display)
:
none
Ungrab display after it has been grabbed with
gdk_x11_display_grab().
Ungrab display after it has been grabbed with
gdk_x11_display_grab().
|
GdkX11.X11Display | |
Converts from UTF-8 to compound text.
|
GdkX11.X11Display | |
beep
()
:
none
Emits a short beep on display
Emits a short beep on display
|
Gdk.Display | |
close
()
:
none
Closes the connection to the windowing system for the given display,
and cleans up associated resources.
Closes the connection to the windowing system for the given display,
and cleans up associated resources.
|
Gdk.Display | |
Returns TRUE if there is an ongoing grab on device for display.
Returns TRUE if there is an ongoing grab on device for display.
|
Gdk.Display | |
flush
()
:
none
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.
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.
|
Gdk.Display | |
get_app_launch_context
()
:
Gdk.AppLaunchContext
Returns a GdkAppLaunchContext suitable for launching
applications on the given display.
Returns a GdkAppLaunchContext suitable for launching
applications on the given display. Free with g_object_unref() when done
|
Gdk.Display | |
get_default_cursor_size
()
:
guint32
Returns the default size to use for cursors on display.
Returns the default size to use for cursors on display.
|
Gdk.Display | |
get_default_group
()
:
Gdk.Window
Returns the default group leader window for all toplevel windows
on display.
Returns the default group leader window for all toplevel windows
on display. This window is implicitly created by GDK. See gdk_window_set_group(). for display
|
Gdk.Display | |
get_default_screen
()
:
Gdk.Screen
Get the default GdkScreen for display.
Get the default GdkScreen for display.
|
Gdk.Display | |
get_device_manager
()
:
Gdk.DeviceManager
Returns the GdkDeviceManager associated to display.
Returns the GdkDeviceManager associated to display.
owned by GDK and must not be freed or unreferenced.
|
Gdk.Display | |
get_event
()
:
Gdk.Event
Gets the next GdkEvent to be processed for display, fetching events from the
windowing system if necessary.
Gets the next GdkEvent to be processed for display, fetching events from the
windowing system if necessary. are pending. The returned GdkEvent should be freed with gdk_event_free().
|
Gdk.Display | |
get_maximal_cursor_size
()
:
Object
|
Gdk.Display | |
get_n_screens
()
:
gint32
Gets the number of screen managed by the display.
Gets the number of screen managed by the display.
|
Gdk.Display | |
get_name
()
:
String
Gets the name of the display.
Gets the name of the display.
by GDK and should not be modified or freed.
|
Gdk.Display | |
get_pointer
()
:
Object
Gets the current location of the pointer and the current modifier
mask for a given display.
Gets the current location of the pointer and the current modifier
mask for a given display.
|
Gdk.Display | |
get_screen
(gint32 screen_num)
:
Gdk.Screen
Returns a screen object for one of the screens of the display.
Returns a screen object for one of the screens of the display.
|
Gdk.Display | |
get_window_at_pointer
(Object out_values)
:
Gdk.Window
Obtains the window underneath the mouse pointer, returning the location
of the pointer in that window in win_x, win_y for screen.
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).
|
Gdk.Display | |
has_pending
()
:
gboolean
Returns whether the display has events that are waiting
to be processed.
Returns whether the display has events that are waiting
to be processed.
|
Gdk.Display | |
is_closed
()
:
gboolean
Finds out if the display has been closed.
Finds out if the display has been closed.
|
Gdk.Display | |
keyboard_ungrab
(guint32 time_)
:
none
Release any keyboard grab
instead.
Release any keyboard grab
instead.
|
Gdk.Display | |
list_devices
()
:
Array
Returns the list of available input devices attached to display.
Returns the list of available input devices attached to display.
The list is statically allocated and should not be freed. a list of GdkDevice
|
Gdk.Display | |
notify_startup_complete
(String startup_id)
:
none
Indicates to the GUI environment that the application has
finished loading, using a given identifier.
Indicates to the GUI environment that the application has
finished loading, using a given identifier. GTK+ will call this function automatically for GtkWindow with custom startup-notification identifier unless gtk_window_set_auto_startup_notification() is called to disable that feature.
|
Gdk.Display | |
peek_event
()
:
Gdk.Event
Gets a copy of the first GdkEvent in the display's event queue, without
removing the event from the queue.
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.) if no events are in the queue. The returned GdkEvent should be freed with gdk_event_free().
|
Gdk.Display | |
pointer_is_grabbed
()
:
gboolean
Test if the pointer is grabbed.
Test if the pointer is grabbed.
|
Gdk.Display | |
pointer_ungrab
(guint32 time_)
:
none
Release any pointer grab.
Release any pointer grab.
instead.
|
Gdk.Display | |
put_event
(Event event)
:
none
Appends a copy of the given event onto the front of the event
queue for display.
Appends a copy of the given event onto the front of the event
queue for display.
|
Gdk.Display | |
Request GdkEventOwnerChange events for ownership changes
of the selection named by the given atom.
Request GdkEventOwnerChange events for ownership changes
of the selection named by the given atom. be sent.
|
Gdk.Display | |
set_double_click_distance
(guint32 distance)
:
none
Sets the double click distance (two clicks within this distance
count as a double click and result in a GDK_2BUTTON_PRESS event).
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 user-configured setting.
|
Gdk.Display | |
set_double_click_time
(guint32 msec)
:
none
Sets the double click time (two clicks within this time interval
count as a double click and result in a GDK_2BUTTON_PRESS event).
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 user-configured setting.
|
Gdk.Display | |
Issues a request to the clipboard manager to store the
clipboard data.
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
|
Gdk.Display | |
supports_clipboard_persistence
()
:
gboolean
Returns whether the speicifed display supports clipboard
persistance; i.e.
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.
|
Gdk.Display | |
supports_composite
()
:
gboolean
Returns TRUE if gdk_window_set_composited() can be used
to redirect drawing on the window using compositing.
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.
|
Gdk.Display | |
supports_cursor_alpha
()
:
gboolean
Returns TRUE if cursors can use an 8bit alpha channel
on display.
Returns TRUE if cursors can use an 8bit alpha channel
on display. Otherwise, cursors are restricted to bilevel alpha (i.e. a mask).
|
Gdk.Display | |
supports_cursor_color
()
:
gboolean
Returns TRUE if multicolored cursors are supported
on display.
Returns TRUE if multicolored cursors are supported
on display. Otherwise, cursors have only a forground and a background color.
|
Gdk.Display | |
supports_input_shapes
()
:
gboolean
Returns TRUE if gdk_window_input_shape_combine_mask() can
be used to modify the input shape of windows on display.
Returns TRUE if gdk_window_input_shape_combine_mask() can
be used to modify the input shape of windows on display.
|
Gdk.Display | |
supports_selection_notification
()
:
gboolean
Returns whether GdkEventOwnerChange events will be
sent when the owner of a selection changes.
Returns whether GdkEventOwnerChange events will be
sent when the owner of a selection changes. be sent.
|
Gdk.Display | |
supports_shapes
()
:
gboolean
Returns TRUE if gdk_window_shape_combine_mask() can
be used to create shaped windows on display.
Returns TRUE if gdk_window_shape_combine_mask() can
be used to create shaped windows on display.
|
Gdk.Display | |
sync
()
:
none
Flushes any requests queued for the windowing system and waits until all
requests have been handled.
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.
|
Gdk.Display | |
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.
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.
|
Gdk.Display |
Event | Defined By | |
---|---|---|
The ::closed signal is emitted when the connection to the windowing
system for display is closed.
The ::closed signal is emitted when the connection to the windowing
system for display is closed.
|
Gdk.Display | |
opened (Display self)
:
none
The ::opened signal is emitted when the connection to the windowing
system for display is opened.
The ::opened signal is emitted when the connection to the windowing
system for display is opened.
|
Gdk.Display |