Back to Seed Clases

Gdk


Classes

Interfaces

Structs

Unions

Enums

Class Gdk.Window

Import line: Gdk = imports.gi.Gdk;
GIR File: Gdk-2.0.gir
C documentation: GdkWindow
Class : Window
Extends: Gdk.Drawable
  Show / Hide Inherited methods, properties and signals
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.drag_find_window (DragContext context, Window drag_window, Number x_root, Number y_root) : Object
Finds the destination window and DND protocol to use at the given pointer position.
Gdk
Method
Gdk.drag_find_window_for_screen (DragContext context, Window drag_window, Screen screen, Number x_root, Number 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, Number x_root, Number y_root, DragAction suggested_action, DragAction possible_actions, Number time_) : Boolean
Updates the drag context when the pointer moves or the set of actions changes.
Gdk
Method
Gdk.event_get_graphics_expose (Window window) : Gdk.Event
Waits for a GraphicsExpose or NoExpose event from the X server.
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.input_set_extension_events (Window window, Number mask, ExtensionMode mode) : none
Gdk
Method
Gdk.keyboard_grab (Window window, Boolean owner_events, Number time_) : Gdk.GrabStatus
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.offscreen_window_get_embedder (Window window) : Gdk.Window
Gets the window that window is embedded in.
Gdk
Method
Gdk.offscreen_window_get_pixmap (Window window) : Gdk.Pixmap
Gets the offscreen pixmap 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.pointer_grab (Window window, Boolean owner_events, EventMask event_mask, Window confine_to, Cursor cursor, Number time_) : Gdk.GrabStatus
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
Gdk.property_change (Window window, Atom property, Atom type, Number format, PropMode mode, String data, Number nelements) : none
Gdk
Method
Gdk.property_delete (Window window, Atom property) : none
Gdk
Method
Gdk.property_get (Window window, Atom property, Atom type, Number offset, Number length, Number pdelete, Atom actual_property_type, Object out_values) : Boolean
Gdk
Method
Gdk.selection_convert (Window requestor, Atom selection, Atom target, Number time_) : none
Gdk
Method
Gdk.selection_owner_get (Atom selection) : Gdk.Window
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, Number time_, Boolean send_event) : Boolean
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_property_get (Window requestor, Object out_values, Atom prop_type) : Number
Retrieves selection data that was stored by the selection data in response to a call to gdk_selection_convert().
Gdk
Method
Gdk.synthesize_window_state (Window window, WindowState unset_flags, WindowState set_flags) : none
Gdk
Method
Gdk.test_render_sync (Window window) : none
This function 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, Number x, Number y, Number button, ModifierType modifiers, EventType button_pressrelease) : Boolean
Gdk
Method
Gdk.test_simulate_key (Window window, Number x, Number y, Number keyval, ModifierType modifiers, EventType key_pressrelease) : Boolean
Gdk.Device
Method
get_state (Window window, Number axes, ModifierType mask) : Number
Gets the current state of a device.
Gdk.Device
Method
get_history (Window window, Number start, Number stop, Object out_values) : Boolean
Obtains the motion history for a device; given a starting and ending timestamp, return all events in the motion history for the device in the given range of time.
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
get_default_group () : Gdk.Window
Returns the default group leader window for all toplevel windows on display.
Gdk.Display
Method
store_clipboard (Window clipboard_window, Number time_, Atom targets, Number n_targets) : none
Gdk.Screen
Method
get_root_window () : Gdk.Window
Gets the root window of screen.
Gdk.Screen
Method
get_monitor_at_window (Window window) : Number
Returns the number of the monitor in which the largest area of the bounding rectangle of window resides.
Gdk.Screen
Method
get_active_window () : Gdk.Window
Gladeui
Method
Gladeui.cursor_set (Window window, CursorType type) : none
Sets the cursor for window to something appropriate based on type.
Gladeui
Method
Gladeui.util_draw_selection_nodes (Window expose_win) : none
Redraws any selection nodes that intersect expose_win.
Gtk
Method
Gtk.drag_dest_set_proxy (Widget widget, Window proxy_window, DragProtocol protocol, Boolean use_coordinates) : none
Gtk
Method
Gtk.draw_arrow (Style style, Window window, StateType state_type, ShadowType shadow_type, ArrowType arrow_type, Boolean fill, Number x, Number y, Number width, Number height) : none
Draws an arrow in the given rectangle on window using the given parameters.
Gtk
Method
Gtk.draw_box (Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height) : none
Draws a box on window with the given parameters.
Gtk
Method
Gtk.draw_box_gap (Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height, PositionType gap_side, Number gap_x, Number gap_width) : none
Draws a box in window using the given style and state and shadow type, leaving a gap in one side.
Gtk
Method
Gtk.draw_check (Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height) : none
Draws a check button indicator in the given rectangle on window with the given parameters.
Gtk
Method
Gtk.draw_diamond (Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height) : none
Draws a diamond in the given rectangle on window using the given parameters.
Gtk
Method
Gtk.draw_expander (Style style, Window window, StateType state_type, Number x, Number y, ExpanderStyle expander_style) : none
Draws an expander as used in GtkTreeView.
Gtk
Method
Gtk.draw_extension (Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height, PositionType gap_side) : none
Draws an extension, i.e.
Gtk
Method
Gtk.draw_flat_box (Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height) : none
Draws a flat box on window with the given parameters.
Gtk
Method
Gtk.draw_focus (Style style, Window window, Number x, Number y, Number width, Number height) : none
Draws a focus indicator around the given rectangle on window using the given style.
Gtk
Method
Gtk.draw_handle (Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height, Orientation orientation) : none
Draws a handle as used in GtkHandleBox and GtkPaned.
Gtk
Method
Gtk.draw_hline (Style style, Window window, StateType state_type, Number x1, Number x2, Number y) : none
Draws a horizontal line from (x1, y) to (x2, y) in window using the given style and state.
Gtk
Method
Gtk.draw_layout (Style style, Window window, StateType state_type, Boolean use_text, Number x, Number y, Layout layout) : none
Draws a layout on window using the given parameters.
Gtk
Method
Gtk.draw_option (Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height) : none
Draws a radio button indicator in the given rectangle on window with the given parameters.
Gtk
Method
Gtk.draw_polygon (Style style, Window window, StateType state_type, ShadowType shadow_type, Point points, Number npoints, Boolean fill) : none
Draws a polygon on window with the given parameters.
Gtk
Method
Gtk.draw_resize_grip (Style style, Window window, StateType state_type, WindowEdge edge, Number x, Number y, Number width, Number height) : none
Draws a resize grip in the given rectangle on window using the given parameters.
Gtk
Method
Gtk.draw_shadow (Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height) : none
Draws a shadow around the given rectangle in window using the given style and state and shadow type.
Gtk
Method
Gtk.draw_shadow_gap (Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height, PositionType gap_side, Number gap_x, Number gap_width) : none
Draws a shadow around the given rectangle in window using the given style and state and shadow type, leaving a gap in one side.
Gtk
Method
Gtk.draw_slider (Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height, Orientation orientation) : none
Draws a slider in the given rectangle on window using the given style and orientation.
Gtk
Method
Gtk.draw_string (Style style, Window window, StateType state_type, Number x, Number y, String string) : none
Draws a text string on window with the given parameters.
Gtk
Method
Gtk.draw_tab (Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height) : none
Draws an option menu tab (i.e.
Gtk
Method
Gtk.draw_vline (Style style, Window window, StateType state_type, Number y1_, Number y2_, Number x) : none
Draws a vertical line from (x, y1_) to (x, y2_) in window using the given style and state.
Gtk
Method
Gtk.paint_arrow (Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, ArrowType arrow_type, Boolean fill, Number x, Number y, Number width, Number height) : none
Draws an arrow in the given rectangle on window using the given parameters.
Gtk
Method
Gtk.paint_box (Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height) : none
Draws a box on window with the given parameters.
Gtk
Method
Gtk.paint_box_gap (Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, PositionType gap_side, Number gap_x, Number gap_width) : none
Draws a box in window using the given style and state and shadow type, leaving a gap in one side.
Gtk
Method
Gtk.paint_check (Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height) : none
Draws a check button indicator in the given rectangle on window with the given parameters.
Gtk
Method
Gtk.paint_diamond (Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height) : none
Draws a diamond in the given rectangle on window using the given parameters.
Gtk
Method
Gtk.paint_expander (Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x, Number y, ExpanderStyle expander_style) : none
Draws an expander as used in GtkTreeView.
Gtk
Method
Gtk.paint_extension (Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, PositionType gap_side) : none
Draws an extension, i.e.
Gtk
Method
Gtk.paint_flat_box (Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height) : none
Draws a flat box on window with the given parameters.
Gtk
Method
Gtk.paint_focus (Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height) : none
Draws a focus indicator around the given rectangle on window using the given style.
Gtk
Method
Gtk.paint_handle (Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, Orientation orientation) : none
Draws a handle as used in GtkHandleBox and GtkPaned.
Gtk
Method
Gtk.paint_hline (Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x1, Number x2, Number y) : none
Draws a horizontal line from (x1, y) to (x2, y) in window using the given style and state.
Gtk
Method
Gtk.paint_layout (Style style, Window window, StateType state_type, Boolean use_text, Rectangle area, Widget widget, String detail, Number x, Number y, Layout layout) : none
Draws a layout on window using the given parameters.
Gtk
Method
Gtk.paint_option (Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height) : none
Draws a radio button indicator in the given rectangle on window with the given parameters.
Gtk
Method
Gtk.paint_polygon (Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Point points, Number n_points, Boolean fill) : none
Draws a polygon on window with the given parameters.
Gtk
Method
Gtk.paint_resize_grip (Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, WindowEdge edge, Number x, Number y, Number width, Number height) : none
Draws a resize grip in the given rectangle on window using the given parameters.
Gtk
Method
Gtk.paint_shadow (Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height) : none
Draws a shadow around the given rectangle in window using the given style and state and shadow type.
Gtk
Method
Gtk.paint_shadow_gap (Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, PositionType gap_side, Number gap_x, Number gap_width) : none
Draws a shadow around the given rectangle in window using the given style and state and shadow type, leaving a gap in one side.
Gtk
Method
Gtk.paint_slider (Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, Orientation orientation) : none
Draws a slider in the given rectangle on window using the given style and orientation.
Gtk
Method
Gtk.paint_spinner (Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number step, Number x, Number y, Number width, Number height) : none
Draws a spinner on window using the given parameters.
Gtk
Method
Gtk.paint_string (Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x, Number y, String string) : none
Draws a text string on window with the given parameters.
Gtk
Method
Gtk.paint_tab (Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height) : none
Draws an option menu tab (i.e.
Gtk
Method
Gtk.paint_vline (Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number y1_, Number y2_, Number x) : none
Draws a vertical line from (x, y1_) to (x, y2_) in window using the given style and state.
Gtk.CellRenderer
Method
render (Window window, Widget widget, Rectangle background_area, Rectangle cell_area, Rectangle expose_area, CellRendererState flags) : none
Invokes the virtual render function of the GtkCellRenderer.
Gtk.Entry
Method
get_text_window () : Gdk.Window
Returns the GdkWindow which contains the text.
Gtk.Entry
Method
get_icon_window (EntryIconPosition icon_pos) : Gdk.Window
Returns the GdkWindow which contains the entry's icon at entry in an expose-event callback because it enables the callback to distinguish between the text window and entry's icon windows.
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
The window of the socket the plug is embedded in.
Gtk.Plug
Method
get_socket_window () : Gdk.Window
Retrieves the socket the plug is embedded in.
Gtk.Preview
Method
put (Window window, GC gc, Number srcx, Number srcy, Number destx, Number desty, Number width, Number height) : none
Gtk.Socket
Method
get_plug_window () : Gdk.Window
Retrieves the window of the plug.
Gtk.Style
Method
attach (Window window) : Gtk.Style
Attaches a style to a window; this process allocates the colors and creates the GC's for the style - it specializes it to a particular visual and colormap.
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.Style
Method
apply_default_background (Window window, Boolean set_bg, StateType state_type, Rectangle area, Number x, Number y, Number width, Number height) : none
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.Widget
Property
window : Gdk.Window read only
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
get_parent_window () : Gdk.Window
Gets widget's parent window.
Gtk.Widget
Method
set_window (Window window) : none
Sets a widget's window.
Gtk.Widget
Method
get_window () : Gdk.Window
Returns the widget's window if it is realized, NULL otherwise
Gtk.Widget
Method
get_root_window () : Gdk.Window
Get the root window where this widget is located.
GtkSource.Gutter
Method
get_window () : Gdk.Window
Get the GdkWindow of the gutter.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Tue Jun 22 2010 16:33:24 GMT+0800 (HKT)