GObject.Object
Gdk.Display
Import line: | Gdk = imports.gi.Gdk; |
GIR File: | Gdk-2.0.gir |
C documentation: | GdkDisplay |
Class : | Display |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
button_click_time : Array
read only
|
Gdk.Display | |
button_number : Array
read only
|
Gdk.Display | |
button_window : Array
read only
|
Gdk.Display | |
button_x : Array
read only
|
Gdk.Display | |
button_y : Array
read only
|
Gdk.Display | |
closed : Number
read only
|
Gdk.Display | |
core_pointer : Gdk.Device
read only
|
Gdk.Display | |
double_click_distance : Number
read only
|
Gdk.Display | |
double_click_time : Number
read only
|
Gdk.Display | |
ignore_core_events : Number
read only
|
Gdk.Display | |
keyboard_grab : Gdk.KeyboardGrabInfo
read only
|
Gdk.Display | |
last_event_time : Number
read only
|
Gdk.Display | |
parent_instance : GObject.Object
read only
|
Gdk.Display | |
pointer_grabs : Array
read only
|
Gdk.Display | |
pointer_hooks : Gdk.DisplayPointerHooks
read only
|
Gdk.Display | |
pointer_info : Gdk.PointerWindowInfo
read only
|
Gdk.Display | |
queued_events : Array
read only
|
Gdk.Display | |
queued_tail : Array
read only
|
Gdk.Display |
Method / Constructor | Defined By | |
---|---|---|
new Gdk.Display
(Object properties)
Create a new Gdk.Display
Create a new Gdk.Display
|
||
Gdk.Display.get_default
()
:
Gdk.Display
Gets the default GdkDisplay.
Gets the default GdkDisplay. This is a convenience function for
|
Gdk.Display | |
Opens a display.
Opens a display.
|
Gdk.Display | |
Gdk.Display.open_default_libgtk_only
()
:
Gdk.Display
Opens the default display specified by command line arguments or environment variables, sets it as the default display, and returns it.
Opens the default display specified by command line arguments or environment variables, sets it as the default display, and returns it. gdk_parse_args must have been called first. If the default display has previously been set, simply returns that. An internal function that should not be used by applications. otherwise NULL.
|
Gdk.Display | |
Adds a filter to be called when X ClientMessage events are received.
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.
|
Gdk.Display | |
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 | |
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_core_pointer
()
:
Gdk.Device
Returns the core pointer device for the given display display and should not be freed.
Returns the core pointer device for the given display display and should not be freed.
|
Gdk.Display | |
get_default_cursor_size
()
:
Number
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().
|
Gdk.Display | |
get_default_screen
()
:
Gdk.Screen
Get the default GdkScreen for display.
Get the default GdkScreen for display.
|
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
()
:
Number
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 | |
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
(Number 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 | |
keyboard_ungrab
(Number time_)
:
none
Release any keyboard grab
Release any keyboard grab
|
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
()
:
Boolean
Test if the pointer is grabbed.
Test if the pointer is grabbed.
|
Gdk.Display | |
pointer_ungrab
(Number time_)
:
none
Release any pointer grab.
Release any pointer grab.
|
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.
|
Gdk.Display | |
set_double_click_distance
(Number 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
|
Gdk.Display | |
set_double_click_time
(Number 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
|
Gdk.Display | |
set_pointer_hooks
(DisplayPointerHooks new_hooks)
:
Gdk.DisplayPointerHooks
This function allows for hooking into the operation of getting the current location of the pointer on a particular display.
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.
|
Gdk.Display | |
|
Gdk.Display | |
supports_clipboard_persistence
()
:
Boolean
|
Gdk.Display | |
supports_composite
()
:
Boolean
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
()
:
Boolean
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
()
:
Boolean
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
()
:
Boolean
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
()
:
Boolean
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
()
:
Boolean
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 |
Class / Namespace | Method / Signal / Properties |
---|---|
Gdk
Method |
Finds out the DND protocol supported by a window.
|
Gdk
Method |
On X11, sends an X ClientMessage event to a given window.
|
Gdk
Method |
Loads a GdkFont based on a Pango font description for use on display.
|
Gdk
Method |
Loads a font for use on display.
|
Gdk
Method |
Loads a fontset for use on display.
|
Gdk
Method |
Gdk.keyboard_grab_info_libgtk_only
(Display display, Window grab_window, Object out_values)
:
Boolean
Determines information about the current keyboard grab.
|
Gdk
Method |
Gdk.pointer_grab_info_libgtk_only
(Display display, Window grab_window, Object out_values)
:
Boolean
Determines information about the current pointer grab.
|
Gdk
Method |
Determine the owner of the given selection.
|
Gdk
Method |
Gdk.selection_owner_set_for_display
(Display display, Window owner, Atom selection, Number time_, Boolean send_event)
:
Boolean
Sets the GdkWindow owner as the current owner of the selection selection.
|
Gdk
Method |
Gdk.selection_send_notify_for_display
(Display display, Number requestor, Atom selection, Atom target, Atom property, Number time_)
:
none
Send a response to SelectionRequest event.
|
Gdk
Method |
Gdk.string_to_compound_text_for_display
(Display display, String str, Atom encoding, Object out_values)
:
Number
Convert a string from the encoding of the current locale into a form suitable for storing in a window property.
|
Gdk
Method |
Gdk.text_property_to_text_list_for_display
(Display display, Atom encoding, Number format, String text, Number length, String list)
:
Number
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.
|
Gdk
Method |
Gdk.text_property_to_utf8_list_for_display
(Display display, Atom encoding, Number format, String text, Number length, String list)
:
Number
Converts a text property in the given encoding to a list of UTF-8 strings.
|
Gdk
Method |
Gdk.utf8_to_compound_text_for_display
(Display display, String str, Atom encoding, Object out_values)
:
Boolean
Converts from UTF-8 to compound text.
|
Gdk.AppLaunchContext
Method |
set_display
(Display display)
:
none
Sets the display on which applications will be launched when using this context.
|
Gdk.Cursor
Method |
Create a new Gdk.Cursor
|
Gdk.Cursor
Method |
Create a new Gdk.Cursor
|
Gdk.Cursor
Method |
Create a new Gdk.Cursor
|
Gdk.Cursor
Method |
get_display
()
:
Gdk.Display
|
Gdk.DisplayManager
Property |
default_display : Gdk.Display
|
Gdk.DisplayManager
Signal |
display_opened
(DisplayManager self, Display display)
:
none
The ::display_opened signal is emitted when a display is opened.
|
Gdk.DisplayManager
Method |
get_default_display
()
:
Gdk.Display
Gets the default GdkDisplay.
|
Gdk.DisplayManager
Method |
set_default_display
(Display display)
:
none
Sets display as the default display.
|
Gdk.Drawable
Method |
get_display
()
:
Gdk.Display
Gets the GdkDisplay associated with a GdkDrawable.
|
Gdk.Font
Method |
get_display
()
:
Gdk.Display
|
Gdk.Keymap
Method |
|
Gdk.Pixmap
Method |
Wraps a native pixmap in a GdkPixmap.
|
Gdk.Pixmap
Method |
Looks up the GdkPixmap that wraps the given native pixmap handle.
|
Gdk.Screen
Method |
get_display
()
:
Gdk.Display
Gets the display to which the screen belongs.
|
Gdk.Window
Method |
Wraps a native window in a GdkWindow.
|
Gdk.Window
Method |
Looks up the GdkWindow that wraps the given native window handle.
|
Gtk
Method |
Gtk.selection_owner_set_for_display
(Display display, Widget widget, Atom selection, Number time_)
:
Boolean
Claim ownership of a given selection for a particular widget, or, if widget is NULL, release ownership of the selection.
|
Gtk.Clipboard
Method |
Returns the clipboard object for the given selection.
|
Gtk.Clipboard
Method |
get_display
()
:
Gdk.Display
Gets the GdkDisplay associated with clipboard
|
Gtk.Plug
Method |
Create a new Gtk.Plug
|
Gtk.Plug
Method |
Finish the initialization of plug for a given GtkSocket identified by This function will generally only be used by classes deriving from GtkPlug.
|
Gtk.SelectionData
Method |
get_display
()
:
Gdk.Display
Retrieves the display of the selection.
|
Gtk.Tooltip
Method |
Gtk.Tooltip.trigger_tooltip_query
(Display display)
:
none
Triggers a new tooltip query on display, in order to update the current visible tooltip, or to show/hide the current tooltip.
|
Gtk.Widget
Method |
get_display
()
:
Gdk.Display
Get the GdkDisplay for the toplevel window associated with this widget.
|