Back to Seed Clases

Gdk


Classes

Interfaces

Structs

Unions

Enums

GObject.Object
parent-child marker Gdk.Window

Class Gdk.Window

Import line: Gdk = imports.gi.Gdk;
GIR File: Gdk-3.0.gir
C documentation: GdkWindow
Class : Window
Extends: GObject.Object
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
Events - usage syntax: this.signals.EVENTNAME.connect( Function )
Event Defined By
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Gdk
Method
Gdk.cairo_create (Window window) : cairo.Context
Creates a Cairo context for drawing to window.
Gdk
Method
Gdk.cairo_set_source_window (Context cr, Window window, gdouble x, gdouble y) : none
Sets the given window as the source pattern for cr.
Gdk
Method
Gdk.drag_begin (Window window, Array targets) : Gdk.DragContext
Starts a drag and creates a new drag context for it.
Gdk
Method
Gdk.drag_begin_for_device (Window window, Device device, Array targets) : Gdk.DragContext
Starts a drag and creates a new drag context for it.
Gdk
Method
Gdk.drag_find_window_for_screen (DragContext context, Window drag_window, Screen screen, gint32 x_root, gint32 y_root) : Object
Finds the destination window and DND protocol to use at the
given pointer position.
Gdk
Method
Gdk.drag_motion (DragContext context, Window dest_window, DragProtocol protocol, gint32 x_root, gint32 y_root, DragAction suggested_action, DragAction possible_actions, guint32 time_) : gboolean
Updates the drag context when the pointer moves or the
set of actions changes.
Gdk
Method
Gdk.get_default_root_window () : Gdk.Window
Obtains the root window (parent all other windows are inside)
for the default display and screen.
Gdk
Method
Gdk.keyboard_grab (Window window, gboolean owner_events, guint32 time_) : Gdk.GrabStatus
Grabs the keyboard so that all events are passed to this
application until the keyboard is ungrabbed with gdk_keyboard_ungrab().
Gdk
Method
Gdk.offscreen_window_get_embedder (Window window) : Gdk.Window
Gets the window that window is embedded in.
Gdk
Method
Gdk.offscreen_window_get_surface (Window window) : cairo.Surface
Gets the offscreen surface that an offscreen window renders into.
Gdk
Method
Gdk.offscreen_window_set_embedder (Window window, Window embedder) : none
Sets window to be embedded in embedder.
Gdk
Method
Gdk.pixbuf_get_from_window (Window window, gint32 src_x, gint32 src_y, gint32 width, gint32 height) : GdkPixbuf.Pixbuf
Transfers image data from a GdkWindow and converts it to an RGB(A)
representation inside a GdkPixbuf.
Gdk
Method
Gdk.pointer_grab (Window window, gboolean owner_events, EventMask event_mask, Window confine_to, Cursor cursor, guint32 time_) : Gdk.GrabStatus
Grabs the pointer (usually a mouse) so that all events are passed to this
application until the pointer is ungrabbed with gdk_pointer_ungrab(), or
the grab window becomes unviewable.
Gdk
Method
Gdk.property_delete (Window window, Atom property) : none
Deletes a property from a window.
Gdk
Method
Gdk.property_get (Window window, Atom property, Atom type, guint32 offset, guint32 length, gint32 pdelete, Object out_values) : gboolean
Retrieves a portion of the contents of a property.
Gdk
Method
Gdk.selection_convert (Window requestor, Atom selection, Atom target, guint32 time_) : none
Retrieves the contents of a selection in a given
form.
Gdk
Method
Gdk.selection_owner_get (Atom selection) : Gdk.Window
Determines the owner of the given selection.
Gdk
Method
Gdk.selection_owner_get_for_display (Display display, Atom selection) : Gdk.Window
Determine the owner of the given selection.
Gdk
Method
Gdk.selection_owner_set (Window owner, Atom selection, guint32 time_, gboolean send_event) : gboolean
Sets the owner of the given selection.
Gdk
Method
Gdk.selection_owner_set_for_display (Display display, Window owner, Atom selection, guint32 time_, gboolean send_event) : gboolean
Sets the GdkWindow owner as the current owner of the selection selection.
Gdk
Method
Gdk.selection_send_notify (Window requestor, Atom selection, Atom target, Atom property, guint32 time_) : none
Sends a response to SelectionRequest event.
Gdk
Method
Gdk.selection_send_notify_for_display (Display display, Window requestor, Atom selection, Atom target, Atom property, guint32 time_) : none
Send a response to SelectionRequest event.
Gdk
Method
Gdk.synthesize_window_state (Window window, WindowState unset_flags, WindowState set_flags) : none
Gdk
Method
Gdk.test_render_sync (Window window) : none
Retrieves a pixel from window to force the windowing
system to carry out any pending rendering commands.
Gdk
Method
Gdk.test_simulate_button (Window window, gint32 x, gint32 y, guint32 button, ModifierType modifiers, EventType button_pressrelease) : gboolean
This function is intended to be used in GTK+ test programs.
Gdk
Method
Gdk.test_simulate_key (Window window, gint32 x, gint32 y, guint32 keyval, ModifierType modifiers, EventType key_pressrelease) : gboolean
This function is intended to be used in GTK+ test programs.
Gdk.Device
Method
get_window_at_position (Object out_values) : Gdk.Window
Obtains the window underneath device, returning the location of the device in win_x and win_y.
Gdk.Device
Method
grab (Window window, GrabOwnership grab_ownership, gboolean owner_events, EventMask event_mask, Cursor cursor, guint32 time_) : Gdk.GrabStatus
Grabs the device so that all events coming from this device are passed to
this application until the device is ungrabbed with gdk_device_ungrab(),
or the window becomes unviewable.
Gdk.Display
Method
get_default_group () : Gdk.Window
Returns the default group leader window for all toplevel windows
on display.
Gdk.Display
Method
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.
Gdk.Display
Method
store_clipboard (Window clipboard_window, guint32 time_, Array targets, gint32 n_targets) : none
Issues a request to the clipboard manager to store the
clipboard data.
Gdk.DragContext
Method
get_dest_window () : Gdk.Window
Returns the destination windw for the DND operation.
Gdk.DragContext
Method
get_source_window () : Gdk.Window
Returns the GdkWindow where the DND operation started.
Gdk.Screen
Method
get_active_window () : Gdk.Window
Returns the screen's currently active window.
Gdk.Screen
Method
get_monitor_at_window (Window window) : gint32
Returns the number of the monitor in which the largest area of the
bounding rectangle of window resides.
Gdk.Screen
Method
get_root_window () : Gdk.Window
Gets the root window of screen.
GdkX11
Method
GdkX11.x11_get_server_time (Window window) : guint32
Routine to get the current X server time stamp.
GdkX11.X11Window
Method
GdkX11.X11Window.lookup_for_display (Display display, Window window) : Gdk.Window
Looks up the GdkWindow that wraps the given native window handle.
GdkX11.X11Window
Method
GdkX11.X11Window.move_to_current_desktop (Window window) : none
Moves the window to the correct workspace when running under a
window manager that supports multiple workspaces, as described
in the Extended
Window Manager Hints
.
GdkX11.X11Window
Method
GdkX11.X11Window.set_theme_variant_gtk_only (Window window, String variant) : none
GdkX11.X11Window
Method
GdkX11.X11Window.set_user_time (Window window, guint32 timestamp) : none
The application can use this call to update the _NET_WM_USER_TIME
property on a toplevel window.
Gtk
Method
Gtk.cairo_should_draw_window (Context cr, Window window) : gboolean
This function is supposed to be called in GtkWidget::draw
implementations for widgets that support multiple windows.
Gtk
Method
Gtk.cairo_transform_to_window (Context cr, Widget widget, Window window) : none
Transforms the given cairo context cr that from widget-relative
coordinates to window-relative coordinates.
Gtk.Button
Method
get_event_window () : Gdk.Window
Returns the button's event window if it is realized, NULL otherwise.
Gtk.IMContext
Method
set_client_window (Window window) : none
Set the client window for the input context; this is the
GdkWindow in which the input appears.
Gtk.Layout
Method
get_bin_window () : Gdk.Window
Retrieve the bin window of the layout used for drawing operations.
Gtk.Paned
Method
get_handle_window () : Gdk.Window
Returns the GdkWindow of the handle.
Gtk.Plug
Property
socket_window : Gdk.Window read only
Gtk.Range
Method
get_event_window () : Gdk.Window
Returns the range's event window if it is realized, NULL otherwise.
Gtk.Style
Method
apply_default_background (Context cr, Window window, StateType state_type, gint32 x, gint32 y, gint32 width, gint32 height) : none
Gtk.Style
Method
set_background (Window window, StateType state_type) : none
Sets the background of window to the background color or pixmap
specified by style for the given state.
Gtk.StyleContext
Method
notify_state_change (Window window, void* region_id, StateType state, gboolean state_value) : none
Notifies a state change on context, so if the current style makes use
of transition animations, one will be started so all rendered elements
under region_id are animated for state state being set to value
The window parameter is used in order to invalidate the rendered area
as the animation runs, so make sure it is the same window that is being
rendered on by the gtk_render_*() functions.
Gtk.StyleContext
Method
scroll_animations (Window window, gint32 dx, gint32 dy) : none
This function is analogous to gdk_window_scroll(), and
should be called together with it so the invalidation
areas for any ongoing animation are scrolled together
with it.
Gtk.StyleContext
Method
set_background (Window window) : none
Sets the background of window to the background pattern or
color specified in context for its current state.
Gtk.TextView
Method
get_window (TextWindowType win) : Gdk.Window
Retrieves the GdkWindow corresponding to an area of the text view;
possible windows include the overall widget window, child windows
on the left, right, top, bottom, and the window that displays the
text buffer.
Gtk.TextView
Method
get_window_type (Window window) : Gtk.TextWindowType
Usually used to find out which window an event corresponds to.
Gtk.TreeView
Method
get_bin_window () : Gdk.Window
Returns the window that tree_view renders to.
Gtk.Viewport
Method
get_bin_window () : Gdk.Window
Gets the bin window of the GtkViewport.
Gtk.Viewport
Method
get_view_window () : Gdk.Window
Gets the view window of the GtkViewport.
Gtk.Widget
Property
window : Gdk.Window read only
The widget's window if it is realized, NULL otherwise.
Gtk.Widget
Method
drag_dest_set_proxy (Window proxy_window, DragProtocol protocol, gboolean use_coordinates) : none
Set up this widget to proxy drags elsewhere.
Gtk.Widget
Method
get_parent_window () : Gdk.Window
Gets widget's parent window.
Gtk.Widget
Method
get_root_window () : Gdk.Window
Get the root window where this widget is located.
Gtk.Widget
Method
get_window () : Gdk.Window
Returns the widget's window if it is realized, NULL otherwise
Gtk.Widget
Method
set_parent_window (Window parent_window) : none
Sets a non default parent window for widget.
Gtk.Widget
Method
set_window (Window window) : none
Sets a widget's window.
GtkSource.Gutter
Method
get_window () : Gdk.Window
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:10:55 GMT+0800 (HKT)