Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > e3918135d52936bad0ecc8654eedea12 > files > 374

Falcon-doc-0.9.6.8-1.fc15.noarch.rpm

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >
<head><meta content="text/html;charset=&amp;quot;utf-8&amp;quot;" http-equiv="Content-type"/><link href="faldoc.css" rel="stylesheet" type="text/css"/><title> - Class GtkWindow</title></head><body class="faldoc"><ul class="navi_top"><li class="top"><a href="index.html">Top: Table of contents</a></li>
         <li class="up"><a href="gtk.html">Up: The Falcon GTK Binding module</a></li>
         <li class="prev"><a href="gtk_GtkWidget.html">Previous: Class GtkWidget</a></li>
         <li class="next"><a href="gtk_GtkWindowGroup.html">Next: Class GtkWindowGroup</a></li>
         <li class="clear"></li>
         </ul><div id="page_body"><h1><span class="toc_number">10.147</span>Class GtkWindow</h1><p class="brief">Toplevel which can contain other widgets. </p>
         <pre class="prototype">Class GtkWindow( [type] )</pre>
         <table class="prototype">
         <tbody><tr class="optparam"><td class="name">type</td><td class="content"> GTK_WINDOW_TOPLEVEL (default) or GTK_WINDOW_POPUP </td></tr>
               </tbody>
            </table>
         <p>Creates a new GtkWindow, which is a toplevel window that can contain other widgets. Nearly always, the type of the window should be GTK_WINDOW_TOPLEVEL. If you're implementing something like a popup menu from scratch (which is a bad idea, just use GtkMenu), you might use GTK_WINDOW_POPUP. GTK_WINDOW_POPUP is not for dialogs, though in some other toolkits dialogs are called "popups". In GTK+, GTK_WINDOW_POPUP means a pop-up menu or pop-up tooltip. On X11, popup windows are not controlled by the window manager. </p>
<p>If you simply want an undecorated window (no window borders), use gtk_window_set_decorated(), don't use GTK_WINDOW_POPUP. </p>
<table class="members">
         <tbody><tr class="member_type"><td class="member_type" colspan="2">Methods</td></tr>
               <tr><td><a href="#activate_default">activate_default</a></td><td>Activates the default widget for the window </td></tr>
               <tr><td><a href="#activate_focus">activate_focus</a></td><td>Activates the current focused widget within the window. </td></tr>
               <tr><td><a href="#add_mnemonic">add_mnemonic</a></td><td>Adds a mnemonic to this window. </td></tr>
               <tr><td><a href="#begin_move_drag">begin_move_drag</a></td><td>Starts moving a window. </td></tr>
               <tr><td><a href="#begin_resize_drag">begin_resize_drag</a></td><td>Starts resizing a window. </td></tr>
               <tr><td><a href="#deiconify">deiconify</a></td><td>Asks to deiconify (i.e. unminimize) the specified window. </td></tr>
               <tr><td><a href="#fullscreen">fullscreen</a></td><td>Asks to place window in the fullscreen state. </td></tr>
               <tr><td><a href="#get_accept_focus">get_accept_focus</a></td><td>Gets the value set by set_accept_focus(). </td></tr>
               <tr><td><a href="#get_decorated">get_decorated</a></td><td>Returns whether the window has been set to have decorations such as a title bar via set_decorated(). </td></tr>
               <tr><td><a href="#get_default_icon_name">get_default_icon_name</a></td><td>Gets the window default icon name. </td></tr>
               <tr><td><a href="#get_default_size">get_default_size</a></td><td>Gets the default size of the window. </td></tr>
               <tr><td><a href="#get_default_widget">get_default_widget</a></td><td>Returns the default widget for window. </td></tr>
               <tr><td><a href="#get_deletable">get_deletable</a></td><td>Returns whether the window has been set to have a close button via set_deletable(). </td></tr>
               <tr><td><a href="#get_destroy_with_parent">get_destroy_with_parent</a></td><td>Returns whether the window will be destroyed with its transient parent. </td></tr>
               <tr><td><a href="#get_focus">get_focus</a></td><td>Retrieves the current focused widget within the window. </td></tr>
               <tr><td><a href="#get_focus_on_map">get_focus_on_map</a></td><td>Gets the value set by gtk_window_set_focus_on_map(). </td></tr>
               <tr><td><a href="#get_frame_dimensions">get_frame_dimensions</a></td><td>Retrieves the dimensions of the frame window for this toplevel. </td></tr>
               <tr><td><a href="#get_gravity">get_gravity</a></td><td>Gets the value set by set_gravity(). </td></tr>
               <tr><td><a href="#get_has_frame">get_has_frame</a></td><td>Accessor for whether the window has a frame window exterior to window->window. </td></tr>
               <tr><td><a href="#get_icon_name">get_icon_name</a></td><td>Returns the name of the themed icon for the window, see set_icon_name(). </td></tr>
               <tr><td><a href="#get_mnemonic_modifier">get_mnemonic_modifier</a></td><td>Returns the mnemonic modifier for this window. </td></tr>
               <tr><td><a href="#get_mnemonics_visible">get_mnemonics_visible</a></td><td>Gets the value of the "mnemonics-visible" property. </td></tr>
               <tr><td><a href="#get_modal">get_modal</a></td><td>Returns whether the window is modal. </td></tr>
               <tr><td><a href="#get_opacity">get_opacity</a></td><td>Fetches the requested opacity for this window. </td></tr>
               <tr><td><a href="#get_position">get_position</a></td><td>Gets the window position. </td></tr>
               <tr><td><a href="#get_resizable">get_resizable</a></td><td>Gets the value set by set_resizable(). </td></tr>
               <tr><td><a href="#get_role">get_role</a></td><td>Returns the role of the window. </td></tr>
               <tr><td><a href="#get_screen">get_screen</a></td><td>Returns the GdkScreen associated with window. </td></tr>
               <tr><td><a href="#get_size">get_size</a></td><td>Obtains the current size of window. </td></tr>
               <tr><td><a href="#get_skip_pager_hint">get_skip_pager_hint</a></td><td>Gets the value set by set_skip_pager_hint(). </td></tr>
               <tr><td><a href="#get_skip_taskbar_hint">get_skip_taskbar_hint</a></td><td>Gets the value set by set_skip_taskbar_hint() </td></tr>
               <tr><td><a href="#get_title">get_title</a></td><td>Retrieves the title of the window. </td></tr>
               <tr><td><a href="#get_transient_for">get_transient_for</a></td><td>Fetches the transient parent for this window. </td></tr>
               <tr><td><a href="#get_type_hint">get_type_hint</a></td><td>Gets the type hint for this window. </td></tr>
               <tr><td><a href="#get_urgency_hint">get_urgency_hint</a></td><td>Gets the value set by set_urgency_hint() </td></tr>
               <tr><td><a href="#get_window_type">get_window_type</a></td><td>Gets the type of the window. </td></tr>
               <tr><td><a href="#has_topelevel_focus">has_topelevel_focus</a></td><td>Returns whether the input focus is within this GtkWindow. </td></tr>
               <tr><td><a href="#iconify">iconify</a></td><td>Asks to iconify (i.e. minimize) the specified window. </td></tr>
               <tr><td><a href="#is_active">is_active</a></td><td>Returns whether the window is part of the current active toplevel. </td></tr>
               <tr><td><a href="#list_toplevels">list_toplevels</a></td><td>Returns a list of all existing toplevel windows. </td></tr>
               <tr><td><a href="#maximize">maximize</a></td><td>Asks to maximize window, so that it becomes full-screen. </td></tr>
               <tr><td><a href="#mnemonic_activate">mnemonic_activate</a></td><td>Activates the targets associated with the mnemonic. </td></tr>
               <tr><td><a href="#move">move</a></td><td>Asks the window manager to move window to the given position. </td></tr>
               <tr><td><a href="#parse_geometry">parse_geometry</a></td><td>Parses a standard X Window System geometry string </td></tr>
               <tr><td><a href="#present">present</a></td><td>Presents a window to the user. </td></tr>
               <tr><td><a href="#present_with_time">present_with_time</a></td><td>Presents a window to the user in response to a user interaction. </td></tr>
               <tr><td><a href="#remove_mnemonic">remove_mnemonic</a></td><td>Removes a mnemonic from this window. </td></tr>
               <tr><td><a href="#reshow_initial_size">reshow_initial_size</a></td><td>Hides window, then reshows it, resetting the default size and position of the window. </td></tr>
               <tr><td><a href="#resize">resize</a></td><td>Resizes the window as if the user had done so, obeying geometry constraints. </td></tr>
               <tr><td><a href="#set_accept_focus">set_accept_focus</a></td><td>Sets the window accept-focus hint. </td></tr>
               <tr><td><a href="#set_auto_startup_notification">set_auto_startup_notification</a></td><td>Sets the window startup notification. </td></tr>
               <tr><td><a href="#set_decorated">set_decorated</a></td><td>Sets the window decorations. </td></tr>
               <tr><td><a href="#set_default">set_default</a></td><td>Sets the default widget. </td></tr>
               <tr><td><a href="#set_default_icon_name">set_default_icon_name</a></td><td>Sets an icon to be used as fallback. </td></tr>
               <tr><td><a href="#set_default_size">set_default_size</a></td><td>Sets the default size of a window. </td></tr>
               <tr><td><a href="#set_deletable">set_deletable</a></td><td>Sets the window deletable. </td></tr>
               <tr><td><a href="#set_destroy_with_parent">set_destroy_with_parent</a></td><td>Destroys the window along with its parent. </td></tr>
               <tr><td><a href="#set_focus">set_focus</a></td><td>Sets the focus on a widget. </td></tr>
               <tr><td><a href="#set_focus_on_map">set_focus_on_map</a></td><td>Sets the window focus-on-map hint. </td></tr>
               <tr><td><a href="#set_frame_dimensions">set_frame_dimensions</a></td><td>Sets the window frame dimensions. </td></tr>
               <tr><td><a href="#set_geometry_hints">set_geometry_hints</a></td><td>This function sets up hints about how a window can be resized by the user. </td></tr>
               <tr><td><a href="#set_gravity">set_gravity</a></td><td>Sets window gravity. </td></tr>
               <tr><td><a href="#set_has_frame">set_has_frame</a></td><td>Sets the window frame. </td></tr>
               <tr><td><a href="#set_icon_name">set_icon_name</a></td><td>Sets the icon for the window from a named themed icon. </td></tr>
               <tr><td><a href="#set_keep_above">set_keep_above</a></td><td>Asks to keep window above, so that it stays on top. </td></tr>
               <tr><td><a href="#set_keep_below">set_keep_below</a></td><td>Asks to keep window below, so that it stays in bottom. </td></tr>
               <tr><td><a href="#set_mnemonic_modifier">set_mnemonic_modifier</a></td><td>Sets the mnemonic modifier for this window. </td></tr>
               <tr><td><a href="#set_mnemonics_visible">set_mnemonics_visible</a></td><td>Sets the "mnemonics-visible" property. </td></tr>
               <tr><td><a href="#set_modal">set_modal</a></td><td>Sets a window modal or non-modal. </td></tr>
               <tr><td><a href="#set_opacity">set_opacity</a></td><td>Sets the window opacity. </td></tr>
               <tr><td><a href="#set_position">set_position</a></td><td>Sets a position constraint for this window. </td></tr>
               <tr><td><a href="#set_resizable">set_resizable</a></td><td>Sets whether the user can resize a window. </td></tr>
               <tr><td><a href="#set_role">set_role</a></td><td>Sets the window role. </td></tr>
               <tr><td><a href="#set_screen">set_screen</a></td><td>Sets the GdkScreen where the window is displayed. </td></tr>
               <tr><td><a href="#set_skip_pager_hint">set_skip_pager_hint</a></td><td>Sets the window pager hint. </td></tr>
               <tr><td><a href="#set_skip_taskbar_hint">set_skip_taskbar_hint</a></td><td>Sets the window taskbar hint. </td></tr>
               <tr><td><a href="#set_startup_id">set_startup_id</a></td><td>Sets the window startup identifier. </td></tr>
               <tr><td><a href="#set_title">set_title</a></td><td>Sets the title of the GtkWindow. </td></tr>
               <tr><td><a href="#set_transient_for">set_transient_for</a></td><td>Sets the window transient for a parent window. </td></tr>
               <tr><td><a href="#set_type_hint">set_type_hint</a></td><td>Sets the window type hint. </td></tr>
               <tr><td><a href="#set_urgency_hint">set_urgency_hint</a></td><td>Sets the window urgency hint. </td></tr>
               <tr><td><a href="#set_wmclass">set_wmclass</a></td><td>Don't use this function. </td></tr>
               <tr><td><a href="#signal_activate_default">signal_activate_default</a></td><td>The ::activate-default signal is a keybinding signal which gets emitted when the user activates the default widget of window. </td></tr>
               <tr><td><a href="#signal_activate_focus">signal_activate_focus</a></td><td>The activate-focus signal is a keybinding signal which gets emitted when the user activates the currently focused widget of window. </td></tr>
               <tr><td><a href="#signal_frame_event">signal_frame_event</a></td><td>. </td></tr>
               <tr><td><a href="#signal_keys_changed">signal_keys_changed</a></td><td>The keys-changed signal gets emitted when the set of accelerators or mnemonics that are associated with window changes. </td></tr>
               <tr><td><a href="#signal_set_focus">signal_set_focus</a></td><td>. </td></tr>
               <tr><td><a href="#stick">stick</a></td><td>Asks to stick window, which means that it will appear on all user desktops. </td></tr>
               <tr><td><a href="#unfullscreen">unfullscreen</a></td><td>Asks to toggle off the fullscreen state for window. </td></tr>
               <tr><td><a href="#unmaximize">unmaximize</a></td><td>Asks to unmaximize window. </td></tr>
               <tr><td><a href="#unstick">unstick</a></td><td>Asks to unstick window, which means that it will appear on only one of the user's desktops. </td></tr>
               </tbody>
            </table>
         <h2>Methods</h2><h3><a name="activate_default">activate_default</a></h3><p class="brief">Activates the default widget for the window </p>
         <pre class="prototype">GtkWindow.activate_default()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">(boolean) true if a widget got activated. </td></tr>
               </tbody>
            </table>
         <p>Activates the default widget for the window, unless the current focused widget has been configured to receive the default action (see gtk_widget_set_receives_default()), in which case the focused widget is activated. </p>
<h3><a name="activate_focus">activate_focus</a></h3><p class="brief">Activates the current focused widget within the window. </p>
         <pre class="prototype">GtkWindow.activate_focus()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">(boolean) true if a widget got activated. </td></tr>
               </tbody>
            </table>
         <h3><a name="add_mnemonic">add_mnemonic</a></h3><p class="brief">Adds a mnemonic to this window. </p>
         <pre class="prototype">GtkWindow.add_mnemonic( keyval, target )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">keyval</td><td class="content"> the mnemonic character </td></tr>
               <tr class="param"><td class="name">target</td><td class="content"> the widget that gets activated by the mnemonic (GtkWidget) </td></tr>
               </tbody>
            </table>
         <h3><a name="begin_move_drag">begin_move_drag</a></h3><p class="brief">Starts moving a window. </p>
         <pre class="prototype">GtkWindow.begin_move_drag( button, root_x, root_y, timestamp )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">button</td><td class="content"> mouse button that initiated the drag (integer) </td></tr>
               <tr class="param"><td class="name">root_x</td><td class="content"> X position where the user clicked to initiate the drag, in root window coordinates (integer) </td></tr>
               <tr class="param"><td class="name">root_y</td><td class="content"> Y position where the user clicked to initiate the drag (integer) </td></tr>
               <tr class="param"><td class="name">timestamp</td><td class="content"> timestamp from the click event that initiated the drag (integer) </td></tr>
               </tbody>
            </table>
         <p>This function is used if an application has window movement grips. When GDK can support it, the window movement will be done using the standard mechanism for the window manager or windowing system. Otherwise, GDK will try to emulate window movement, potentially not all that well, depending on the windowing system. </p>
<h3><a name="begin_resize_drag">begin_resize_drag</a></h3><p class="brief">Starts resizing a window. </p>
         <pre class="prototype">GtkWindow.begin_resize_drag( edge, button, root_x, root_y, timestamp )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">edge</td><td class="content"> position of the resize control (integer, GdkWindowEdge) </td></tr>
               <tr class="param"><td class="name">button</td><td class="content"> mouse button that initiated the drag (integer) </td></tr>
               <tr class="param"><td class="name">root_x</td><td class="content"> X position where the user clicked to initiate the drag, in root window coordinates (integer) </td></tr>
               <tr class="param"><td class="name">root_y</td><td class="content"> Y position where the user clicked to initiate the drag (integer) </td></tr>
               <tr class="param"><td class="name">timestamp</td><td class="content"> timestamp from the click event that initiated the drag (integer) </td></tr>
               </tbody>
            </table>
         <p>This function is used if an application has window resizing controls. When GDK can support it, the resize will be done using the standard mechanism for the window manager or windowing system. Otherwise, GDK will try to emulate window resizing, potentially not all that well, depending on the windowing system. </p>
<h3><a name="deiconify">deiconify</a></h3><p class="brief">Asks to deiconify (i.e. unminimize) the specified window. </p>
         <pre class="prototype">GtkWindow.deiconify()</pre>
         <p>Note that you shouldn't assume the window is definitely deiconified afterward, because other entities (e.g. the user or window manager) could iconify it again before your code which assumes deiconification gets to run. </p>
<p>You can track iconification via the "window-state-event" signal on GtkWidget. </p>
<h3><a name="fullscreen">fullscreen</a></h3><p class="brief">Asks to place window in the fullscreen state. </p>
         <pre class="prototype">GtkWindow.fullscreen()</pre>
         <p>Note that you shouldn't assume the window is definitely full screen afterward, because other entities (e.g. the user or window manager) could unfullscreen it again, and not all window managers honor requests to fullscreen windows. But normally the window will end up fullscreen. Just don't write code that crashes if not. </p>
<p>You can track the fullscreen state via the "window-state-event" signal on GtkWidget. </p>
<h3><a name="get_accept_focus">get_accept_focus</a></h3><p class="brief">Gets the value set by set_accept_focus(). </p>
         <pre class="prototype">GtkWindow.get_accept_focus()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">true if window should receive the input focus (boolean) </td></tr>
               </tbody>
            </table>
         <h3><a name="get_decorated">get_decorated</a></h3><p class="brief">Returns whether the window has been set to have decorations such as a title bar via set_decorated(). </p>
         <pre class="prototype">GtkWindow.get_decorated()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">(boolean) true if the window has been set to have decorations </td></tr>
               </tbody>
            </table>
         <h3><a name="get_default_icon_name">get_default_icon_name</a></h3><p class="brief">Gets the window default icon name. </p>
         <pre class="prototype">GtkWindow.get_default_icon_name()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">the fallback icon name for windows, or nil </td></tr>
               </tbody>
            </table>
         <p>Returns the fallback icon name for windows that has been set with set_default_icon_name(). It is only valid until the next call to set_default_icon_name(). </p>
<h3><a name="get_default_size">get_default_size</a></h3><p class="brief">Gets the default size of the window. </p>
         <pre class="prototype">GtkWindow.get_default_size()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">an array [ default width, default height ] </td></tr>
               </tbody>
            </table>
         <p>A value of -1 for the width or height indicates that a default size has not been explicitly set for that dimension, so the "natural" size of the window will be used. </p>
<h3><a name="get_default_widget">get_default_widget</a></h3><p class="brief">Returns the default widget for window. </p>
         <pre class="prototype">GtkWindow.get_default_widget()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">the default widget, or nil if there is none. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_deletable">get_deletable</a></h3><p class="brief">Returns whether the window has been set to have a close button via set_deletable(). </p>
         <pre class="prototype">GtkWindow.get_deletable()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">(boolean) true if the window has been set to have a close button </td></tr>
               </tbody>
            </table>
         <h3><a name="get_destroy_with_parent">get_destroy_with_parent</a></h3><p class="brief">Returns whether the window will be destroyed with its transient parent. </p>
         <pre class="prototype">GtkWindow.get_destroy_with_parent()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">(boolean) true if the window will be destroyed with its transient parent. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_focus">get_focus</a></h3><p class="brief">Retrieves the current focused widget within the window. </p>
         <pre class="prototype">GtkWindow.get_focus()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">the currently focused widget, or nil if there is none. </td></tr>
               </tbody>
            </table>
         <p>Note that this is the widget that would have the focus if the toplevel window focused; if the toplevel window is not focused then gtk_widget_has_focus (widget) will not be TRUE for the widget. </p>
<h3><a name="get_focus_on_map">get_focus_on_map</a></h3><p class="brief">Gets the value set by gtk_window_set_focus_on_map(). </p>
         <pre class="prototype">GtkWindow.get_focus_on_map()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">true if window should receive the input focus when mapped. (boolean) </td></tr>
               </tbody>
            </table>
         <h3><a name="get_frame_dimensions">get_frame_dimensions</a></h3><p class="brief">Retrieves the dimensions of the frame window for this toplevel. </p>
         <pre class="prototype">GtkWindow.get_frame_dimensions()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">an array [ left, top, right, bottom ] </td></tr>
               </tbody>
            </table>
         <p>(Note: this is a special-purpose function intended for the framebuffer port; see set_has_frame(). It will not return the size of the window border drawn by the window manager, which is the normal case when using a windowing system. See gdk_window_get_frame_extents() to get the standard window border extents.) </p>
<p>See gtk_window_set_has_frame(), gtk_window_set_frame_dimensions(). </p>
<h3><a name="get_gravity">get_gravity</a></h3><p class="brief">Gets the value set by set_gravity(). </p>
         <pre class="prototype">GtkWindow.get_gravity()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">(integer) </td></tr>
               </tbody>
            </table>
         <h3><a name="get_has_frame">get_has_frame</a></h3><p class="brief">Accessor for whether the window has a frame window exterior to window->window. </p>
         <pre class="prototype">GtkWindow.get_has_frame()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">(boolean) true if a frame has been added to the window via set_has_frame(). </td></tr>
               </tbody>
            </table>
         <p>Gets the value set by set_has_frame(). </p>
<h3><a name="get_icon_name">get_icon_name</a></h3><p class="brief">Returns the name of the themed icon for the window, see set_icon_name(). </p>
         <pre class="prototype">GtkWindow.get_icon_name()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">the icon name or nil if the window has no themed icon </td></tr>
               </tbody>
            </table>
         <h3><a name="get_mnemonic_modifier">get_mnemonic_modifier</a></h3><p class="brief">Returns the mnemonic modifier for this window. </p>
         <pre class="prototype">GtkWindow.get_mnemonic_modifier()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">the modifier mask used to activate mnemonics on this window. (GdkModifierType) </td></tr>
               </tbody>
            </table>
         <p>See set_mnemonic_modifier(). </p>
<h3><a name="get_mnemonics_visible">get_mnemonics_visible</a></h3><p class="brief">Gets the value of the "mnemonics-visible" property. </p>
         <pre class="prototype">GtkWindow.get_mnemonics_visible()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">TRUE if mnemonics are supposed to be visible in this window. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_modal">get_modal</a></h3><p class="brief">Returns whether the window is modal. </p>
         <pre class="prototype">GtkWindow.get_modal()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">(boolean) true if the window is set to be modal and establishes a grab when shown </td></tr>
               </tbody>
            </table>
         <p>See set_modal(). </p>
<h3><a name="get_opacity">get_opacity</a></h3><p class="brief">Fetches the requested opacity for this window. </p>
         <pre class="prototype">GtkWindow.get_opacity()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">the requested opacity for this window. (float) </td></tr>
               </tbody>
            </table>
         <p>See set_opacity(). </p>
<h3><a name="get_position">get_position</a></h3><p class="brief">Gets the window position. </p>
         <pre class="prototype">GtkWindow.get_position()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">an array [ root_x, root_y ] </td></tr>
               </tbody>
            </table>
         <p>This function returns the position you need to pass to gtk_window_move() to keep window in its current position. This means that the meaning of the returned value varies with window gravity. See gtk_window_move() for more details. </p>
<p>If you haven't changed the window gravity, its gravity will be GDK_GRAVITY_NORTH_WEST. This means that gtk_window_get_position() gets the position of the top-left corner of the window manager frame for the window. gtk_window_move() sets the position of this same top-left corner. </p>
<p>gtk_window_get_position() is not 100% reliable because the X Window System does not specify a way to obtain the geometry of the decorations placed on a window by the window manager. Thus GTK+ is using a "best guess" that works with most window managers. </p>
<p>Moreover, nearly all window managers are historically broken with respect to their handling of window gravity. So moving a window to its current position as returned by gtk_window_get_position() tends to result in moving the window slightly. Window managers are slowly getting better over time. </p>
<p>If a window has gravity GDK_GRAVITY_STATIC the window manager frame is not relevant, and thus gtk_window_get_position() will always produce accurate results. However you can't use static gravity to do things like place a window in a corner of the screen, because static gravity ignores the window manager decorations. </p>
<p>If you are saving and restoring your application's window positions, you should know that it's impossible for applications to do this without getting it somewhat wrong because applications do not have sufficient knowledge of window manager state. The Correct Mechanism is to support the session management protocol (see the "GnomeClient" object in the GNOME libraries for example) and allow the window manager to save your window sizes and positions. </p>
<h3><a name="get_resizable">get_resizable</a></h3><p class="brief">Gets the value set by set_resizable(). </p>
         <pre class="prototype">GtkWindow.get_resizable()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">TRUE if the user can resize the window </td></tr>
               </tbody>
            </table>
         <h3><a name="get_role">get_role</a></h3><p class="brief">Returns the role of the window. </p>
         <pre class="prototype">GtkWindow.get_role()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">the role of the window if set, or nil. </td></tr>
               </tbody>
            </table>
         <p>See set_role() for further explanation. </p>
<h3><a name="get_screen">get_screen</a></h3><p class="brief">Returns the GdkScreen associated with window. </p>
         <pre class="prototype">GtkWindow.get_screen()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">a GdkScreen. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_size">get_size</a></h3><p class="brief">Obtains the current size of window. </p>
         <pre class="prototype">GtkWindow.get_size()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">an array [ width, height ] </td></tr>
               </tbody>
            </table>
         <p>If window is not onscreen, it returns the size GTK+ will suggest to the window manager for the initial window size (but this is not reliably the same as the size the window manager will actually select). The size obtained by gtk_window_get_size() is the last size received in a GdkEventConfigure, that is, GTK+ uses its locally-stored size, rather than querying the X server for the size. As a result, if you call gtk_window_resize() then immediately call gtk_window_get_size(), the size won't have taken effect yet. After the window manager processes the resize request, GTK+ receives notification that the size has changed via a configure event, and the size of the window gets updated. </p>
<p>Note 1: Nearly any use of this function creates a race condition, because the size of the window may change between the time that you get the size and the time that you perform some action assuming that size is the current size. To avoid race conditions, connect to "configure-event" on the window and adjust your size-dependent state to match the size delivered in the GdkEventConfigure. </p>
<p>Note 2: The returned size does not include the size of the window manager decorations (aka the window frame or border). Those are not drawn by GTK+ and GTK+ has no reliable method of determining their size. </p>
<p>Note 3: If you are getting a window size in order to position the window onscreen, there may be a better way. The preferred way is to simply set the window's semantic type with gtk_window_set_type_hint(), which allows the window manager to e.g. center dialogs. Also, if you set the transient parent of dialogs with gtk_window_set_transient_for() window managers will often center the dialog over its parent window. It's much preferred to let the window manager handle these things rather than doing it yourself, because all apps will behave consistently and according to user prefs if the window manager handles it. Also, the window manager can take the size of the window decorations/border into account, while your application cannot. </p>
<p>In any case, if you insist on application-specified window positioning, there's still a better way than doing it yourself - gtk_window_set_position() will frequently handle the details for you. </p>
<h3><a name="get_skip_pager_hint">get_skip_pager_hint</a></h3><p class="brief">Gets the value set by set_skip_pager_hint(). </p>
         <pre class="prototype">GtkWindow.get_skip_pager_hint()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">true if window shouldn't be in pager (boolean) </td></tr>
               </tbody>
            </table>
         <h3><a name="get_skip_taskbar_hint">get_skip_taskbar_hint</a></h3><p class="brief">Gets the value set by set_skip_taskbar_hint() </p>
         <pre class="prototype">GtkWindow.get_skip_taskbar_hint()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">true if window shouldn't be in taskbar (boolean) </td></tr>
               </tbody>
            </table>
         <h3><a name="get_title">get_title</a></h3><p class="brief">Retrieves the title of the window. </p>
         <pre class="prototype">GtkWindow.get_title()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">the title of the window, or nil if none has been set explicitely. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_transient_for">get_transient_for</a></h3><p class="brief">Fetches the transient parent for this window. </p>
         <pre class="prototype">GtkWindow.get_transient_for()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">the transient parent for this window, or NULL if no transient parent has been set. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_type_hint">get_type_hint</a></h3><p class="brief">Gets the type hint for this window. </p>
         <pre class="prototype">GtkWindow.get_type_hint()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">the type hint for window. (GdkWindowTypeHint) </td></tr>
               </tbody>
            </table>
         <h3><a name="get_urgency_hint">get_urgency_hint</a></h3><p class="brief">Gets the value set by set_urgency_hint() </p>
         <pre class="prototype">GtkWindow.get_urgency_hint()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">true if window is urgent (boolean) </td></tr>
               </tbody>
            </table>
         <h3><a name="get_window_type">get_window_type</a></h3><p class="brief">Gets the type of the window. </p>
         <pre class="prototype">GtkWindow.get_window_type()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">the type of the window (GtkWindowType) </td></tr>
               </tbody>
            </table>
         <h3><a name="has_topelevel_focus">has_topelevel_focus</a></h3><p class="brief">Returns whether the input focus is within this GtkWindow. </p>
         <pre class="prototype">GtkWindow.has_topelevel_focus()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">(boolean) </td></tr>
               </tbody>
            </table>
         <p>For real toplevel windows, this is identical to gtk_window_is_active(), but for embedded windows, like GtkPlug, the results will differ. </p>
<h3><a name="iconify">iconify</a></h3><p class="brief">Asks to iconify (i.e. minimize) the specified window. </p>
         <pre class="prototype">GtkWindow.iconify()</pre>
         <p>Note that you shouldn't assume the window is definitely iconified afterward, because other entities (e.g. the user or window manager) could deiconify it again, or there may not be a window manager in which case iconification isn't possible, etc. But normally the window will end up iconified. Just don't write code that crashes if not. </p>
<p>It's permitted to call this function before showing a window, in which case the window will be iconified before it ever appears onscreen. </p>
<p>You can track iconification via the "window-state-event" signal on GtkWidget. </p>
<h3><a name="is_active">is_active</a></h3><p class="brief">Returns whether the window is part of the current active toplevel. </p>
         <pre class="prototype">GtkWindow.is_active()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">(boolean) true if the window part of the current active window. </td></tr>
               </tbody>
            </table>
         <p>(That is, the toplevel window receiving keystrokes.) The return value is TRUE if the window is active toplevel itself, but also if it is, say, a GtkPlug embedded in the active toplevel. You might use this function if you wanted to draw a widget differently in an active window from a widget in an inactive window. See gtk_window_has_toplevel_focus() </p>
<h3><a name="list_toplevels">list_toplevels</a></h3><p class="brief">Returns a list of all existing toplevel windows. </p>
         <pre class="prototype">GtkWindow.list_toplevels()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">An array of GtkWindow </td></tr>
               </tbody>
            </table>
         <h3><a name="maximize">maximize</a></h3><p class="brief">Asks to maximize window, so that it becomes full-screen. </p>
         <pre class="prototype">GtkWindow.maximize()</pre>
         <p>Note that you shouldn't assume the window is definitely maximized afterward, because other entities (e.g. the user or window manager) could unmaximize it again, and not all window managers support maximization. But normally the window will end up maximized. Just don't write code that crashes if not. </p>
<p>It's permitted to call this function before showing a window, in which case the window will be maximized when it appears onscreen initially. </p>
<p>You can track maximization via the "window-state-event" signal on GtkWidget. </p>
<h3><a name="mnemonic_activate">mnemonic_activate</a></h3><p class="brief">Activates the targets associated with the mnemonic. </p>
         <pre class="prototype">GtkWindow.mnemonic_activate( keyval, modifier )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">keyval</td><td class="content"> the mnemonic character </td></tr>
               <tr class="param"><td class="name">modifier</td><td class="content"> the modifiers (GdkModifierType) </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">true if the activation is done. </td></tr>
               </tbody>
            </table>
         <h3><a name="move">move</a></h3><p class="brief">Asks the window manager to move window to the given position. </p>
         <pre class="prototype">GtkWindow.move( x, y )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">x</td><td class="content"> X coordinate to move window to </td></tr>
               <tr class="param"><td class="name">y</td><td class="content"> Y coordinate to move window to </td></tr>
               </tbody>
            </table>
         <p>Asks the window manager to move window to the given position. Window managers are free to ignore this; most window managers ignore requests for initial window positions (instead using a user-defined placement algorithm) and honor requests after the window has already been shown. </p>
<p>Note: the position is the position of the gravity-determined reference point for the window. The gravity determines two things: first, the location of the reference point in root window coordinates; and second, which point on the window is positioned at the reference point. </p>
<p>By default the gravity is GDK_GRAVITY_NORTH_WEST, so the reference point is simply the x, y supplied to gtk_window_move(). The top-left corner of the window decorations (aka window frame or border) will be placed at x, y. Therefore, to position a window at the top left of the screen, you want to use the default gravity (which is GDK_GRAVITY_NORTH_WEST) and move the window to 0,0. </p>
<p>To position a window at the bottom right corner of the screen, you would set GDK_GRAVITY_SOUTH_EAST, which means that the reference point is at x + the window width and y + the window height, and the bottom-right corner of the window border will be placed at that reference point. So, to place a window in the bottom right corner you would first set gravity to south east, then write: gtk_window_move (window, gdk_screen_width() - window_width, gdk_screen_height() - window_height) (note that this example does not take multi-head scenarios into account). </p>
<p>The Extended Window Manager Hints specification at http:<i>www.freedesktop.org/Standards/wm-spec has a nice table of gravities in     the "implementation notes" section. </i></p>
<p>The gtk_window_get_position() documentation may also be relevant. </p>
<h3><a name="parse_geometry">parse_geometry</a></h3><p class="brief">Parses a standard X Window System geometry string </p>
         <pre class="prototype">GtkWindow.parse_geometry( geometry )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">geometry</td><td class="content"> geometry string </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">true if string was parsed successfully (boolean) </td></tr>
               </tbody>
            </table>
         <p>Parses a standard X Window System geometry string - see the manual page for X (type 'man X') for details on this. gtk_window_parse_geometry() does work on all GTK+ ports including Win32 but is primarily intended for an X environment. </p>
<p>If either a size or a position can be extracted from the geometry string, gtk_window_parse_geometry() returns TRUE and calls gtk_window_set_default_size() and/or gtk_window_move() to resize/move the window. </p>
<p>If gtk_window_parse_geometry() returns TRUE, it will also set the GDK_HINT_USER_POS and/or GDK_HINT_USER_SIZE hints indicating to the window manager that the size/position of the window was user-specified. This causes most window managers to honor the geometry. </p>
<p>Note that for gtk_window_parse_geometry() to work as expected, it has to be called when the window has its "final" size, i.e. after calling gtk_widget_show_all() on the contents and gtk_window_set_geometry_hints() on the window. </p>
<h3><a name="present">present</a></h3><p class="brief">Presents a window to the user. </p>
         <pre class="prototype">GtkWindow.present()</pre>
         <p>This may mean raising the window in the stacking order, deiconifying it, moving it to the current desktop, and/or giving it the keyboard focus, possibly dependent on the user's platform, window manager, and preferences. </p>
<p>If window is hidden, this function calls show() as well. </p>
<p>This function should be used when the user tries to open a window that's already open. Say for example the preferences dialog is currently open, and the user chooses Preferences from the menu a second time; use present() to move the already-open dialog where the user can see it. </p>
<p>If you are calling this function in response to a user interaction, it is preferable to use present_with_time(). </p>
<h3><a name="present_with_time">present_with_time</a></h3><p class="brief">Presents a window to the user in response to a user interaction. </p>
         <pre class="prototype">GtkWindow.present_with_time( timestamp )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">timestamp</td><td class="content"> the timestamp of the user interaction (typically a button or key press event) which triggered this call </td></tr>
               </tbody>
            </table>
         <p>If you need to present a window without a timestamp, use present(). </p>
<h3><a name="remove_mnemonic">remove_mnemonic</a></h3><p class="brief">Removes a mnemonic from this window. </p>
         <pre class="prototype">GtkWindow.remove_mnemonic( keyval, target )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">keyval</td><td class="content"> the mnemonic character </td></tr>
               <tr class="param"><td class="name">target</td><td class="content"> the widget that gets activated by the mnemonic (GtkWidget) </td></tr>
               </tbody>
            </table>
         <h3><a name="reshow_initial_size">reshow_initial_size</a></h3><p class="brief">Hides window, then reshows it, resetting the default size and position of the window. </p>
         <pre class="prototype">GtkWindow.reshow_initial_size()</pre>
         <p>Used by GUI builders only. </p>
<h3><a name="resize">resize</a></h3><p class="brief">Resizes the window as if the user had done so, obeying geometry constraints. </p>
         <pre class="prototype">GtkWindow.resize( width, height )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">width</td><td class="content"> width in pixels to resize the window to </td></tr>
               <tr class="param"><td class="name">height</td><td class="content"> height in pixels to resize the window to </td></tr>
               </tbody>
            </table>
         <p>The default geometry constraint is that windows may not be smaller than their size request; to override this constraint, call gtk_widget_set_size_request() to set the window's request to a smaller value. </p>
<p>If gtk_window_resize() is called before showing a window for the first time, it overrides any default size set with gtk_window_set_default_size(). </p>
<p>Windows may not be resized smaller than 1 by 1 pixels. </p>
<h3><a name="set_accept_focus">set_accept_focus</a></h3><p class="brief">Sets the window accept-focus hint. </p>
         <pre class="prototype">GtkWindow.set_accept_focus( setting )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">setting</td><td class="content"> (boolean) True to let this window receive input focus </td></tr>
               </tbody>
            </table>
         <p>Windows may set a hint asking the desktop environment not to receive the input focus. This function sets this hint. </p>
<h3><a name="set_auto_startup_notification">set_auto_startup_notification</a></h3><p class="brief">Sets the window startup notification. </p>
         <pre class="prototype">GtkWindow.set_auto_startup_notification( setting )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">setting</td><td class="content"> true to automatically do startup notification (boolean) </td></tr>
               </tbody>
            </table>
         <p>By default, after showing the first GtkWindow, GTK+ calls gdk_notify_startup_complete(). Call this function to disable the automatic startup notification. You might do this if your first window is a splash screen, and you want to delay notification until after your real main window has been shown, for example. </p>
<p>In that example, you would disable startup notification temporarily, show your splash screen, then re-enable it so that showing the main window would automatically result in notification. </p>
<h3><a name="set_decorated">set_decorated</a></h3><p class="brief">Sets the window decorations. </p>
         <pre class="prototype">GtkWindow.set_decorated( setting )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">setting</td><td class="content"> (boolean) true to decorate the window </td></tr>
               </tbody>
            </table>
         <p>By default, windows are decorated with a title bar, resize controls, etc. Some window managers allow GTK+ to disable these decorations, creating a borderless window. If you set the decorated property to FALSE using this function, GTK+ will do its best to convince the window manager not to decorate the window. Depending on the system, this function may not have any effect when called on a window that is already visible, so you should call it before calling gtk_window_show(). </p>
<p>On Windows, this function always works, since there's no window manager policy involved. </p>
<h3><a name="set_default">set_default</a></h3><p class="brief">Sets the default widget. </p>
         <pre class="prototype">GtkWindow.set_default( default_widget )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">default_widget</td><td class="content"> widget to be the default, or NULL to unset the default widget for the toplevel. </td></tr>
               </tbody>
            </table>
         <p>The default widget is the widget that's activated when the user presses Enter in a dialog (for example). This function sets or unsets the default widget for a GtkWindow about. When setting (rather than unsetting) the default widget it's generally easier to call gtk_widget_grab_focus() on the widget. Before making a widget the default widget, you must set the GTK_CAN_DEFAULT flag on the widget you'd like to make the default using GTK_WIDGET_SET_FLAGS(). </p>
<h3><a name="set_default_icon_name">set_default_icon_name</a></h3><p class="brief">Sets an icon to be used as fallback. </p>
         <pre class="prototype">GtkWindow.set_default_icon_name( name )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">name</td><td class="content"> the name of the themed icon </td></tr>
               </tbody>
            </table>
         <p>Sets an icon to be used as fallback for windows that haven't had set_icon_list() called on them from a named themed icon, see set_icon_name(). </p>
<h3><a name="set_default_size">set_default_size</a></h3><p class="brief">Sets the default size of a window. </p>
         <pre class="prototype">GtkWindow.set_default_size( width, height )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">width</td><td class="content"> width in pixels, or -1 to unset the default width </td></tr>
               <tr class="param"><td class="name">height</td><td class="content"> height in pixels, or -1 to unset the default height </td></tr>
               </tbody>
            </table>
         <p>If the window's "natural" size (its size request) is larger than the default, the default will be ignored. More generally, if the default size does not obey the geometry hints for the window (set_geometry_hints() can be used to set these explicitly), the default size will be clamped to the nearest permitted size. </p>
<p>Unlike set_size_request(), which sets a size request for a widget and thus would keep users from shrinking the window, this function only sets the initial size, just as if the user had resized the window themselves. Users can still shrink the window again as they normally would. Setting a default size of -1 means to use the "natural" default size (the size request of the window). </p>
<p>For more control over a window's initial size and how resizing works, investigate set_geometry_hints(). </p>
<p>For some uses, resize() is a more appropriate function. resize() changes the current size of the window, rather than the size to be used on initial display. resize() always affects the window itself, not the geometry widget. </p>
<p>The default size of a window only affects the first time a window is shown; if a window is hidden and re-shown, it will remember the size it had prior to hiding, rather than using the default size. </p>
<p>Windows can't actually be 0x0 in size, they must be at least 1x1, but passing 0 for width and height is OK, resulting in a 1x1 default size. </p>
<h3><a name="set_deletable">set_deletable</a></h3><p class="brief">Sets the window deletable. </p>
         <pre class="prototype">GtkWindow.set_deletable( setting )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">setting</td><td class="content"> (boolean) true to decorate the window as deletable. </td></tr>
               </tbody>
            </table>
         <p>By default, windows have a close button in the window frame. Some window managers allow GTK+ to disable this button. If you set the deletable property to FALSE using this function, GTK+ will do its best to convince the window manager not to show a close button. Depending on the system, this function may not have any effect when called on a window that is already visible, so you should call it before calling gtk_window_show(). </p>
<p>On Windows, this function always works, since there's no window manager policy involved. </p>
<h3><a name="set_destroy_with_parent">set_destroy_with_parent</a></h3><p class="brief">Destroys the window along with its parent. </p>
         <pre class="prototype">GtkWindow.set_destroy_with_parent( setting )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">setting</td><td class="content"> whether to destroy window with its transient parent (boolean) </td></tr>
               </tbody>
            </table>
         <p>If setting is TRUE, then destroying the transient parent of window will also destroy window itself. This is useful for dialogs that shouldn't persist beyond the lifetime of the main window they're associated with, for example. </p>
<h3><a name="set_focus">set_focus</a></h3><p class="brief">Sets the focus on a widget. </p>
         <pre class="prototype">GtkWindow.set_focus( focus )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">focus</td><td class="content"> widget to be the new focus widget, or NULL to unset any focus widget for the toplevel window. </td></tr>
               </tbody>
            </table>
         <p>If focus is not the current focus widget, and is focusable, sets it as the focus widget for the window. If focus is NULL, unsets the focus widget for this window. To set the focus to a particular widget in the toplevel, it is usually more convenient to use grab_focus() instead of this function. </p>
<h3><a name="set_focus_on_map">set_focus_on_map</a></h3><p class="brief">Sets the window focus-on-map hint. </p>
         <pre class="prototype">GtkWindow.set_focus_on_map( setting )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">setting</td><td class="content"> (boolean) true to let this window receive input focus on map </td></tr>
               </tbody>
            </table>
         <p>Windows may set a hint asking the desktop environment not to receive the input focus when the window is mapped. This function sets this hint. </p>
<h3><a name="set_frame_dimensions">set_frame_dimensions</a></h3><p class="brief">Sets the window frame dimensions. </p>
         <pre class="prototype">GtkWindow.set_frame_dimensions( left, top, right, bottom )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">left</td><td class="content"> The width of the left border (integer) </td></tr>
               <tr class="param"><td class="name">top</td><td class="content"> The height of the top border (integer) </td></tr>
               <tr class="param"><td class="name">right</td><td class="content"> The width of the right border (integer) </td></tr>
               <tr class="param"><td class="name">bottom</td><td class="content"> The height of the bottom border (integer) </td></tr>
               </tbody>
            </table>
         <p>(Note: this is a special-purpose function intended for the framebuffer port; see gtk_window_set_has_frame(). It will have no effect on the window border drawn by the window manager, which is the normal case when using the X Window system.) </p>
<p>For windows with frames (see gtk_window_set_has_frame()) this function can be used to change the size of the frame border. </p>
<h3><a name="set_geometry_hints">set_geometry_hints</a></h3><p class="brief">This function sets up hints about how a window can be resized by the user. </p>
         <pre class="prototype">GtkWindow.set_geometry_hints( geometry_widget, geometry, geom_mask )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">geometry_widget</td><td class="content"> widget the geometry hints will be applied to or NULL. </td></tr>
               <tr class="param"><td class="name">geometry</td><td class="content"> GdkGeometry containing geometry information or NULL. </td></tr>
               <tr class="param"><td class="name">geom_mask</td><td class="content"> mask (GdkWindowHints) indicating which struct fields should be paid attention to </td></tr>
               </tbody>
            </table>
         <p>You can set a minimum and maximum size; allowed resize increments (e.g. for xterm, you can only resize by the size of a character); aspect ratios; and more. See the GdkGeometry struct. </p>
<h3><a name="set_gravity">set_gravity</a></h3><p class="brief">Sets window gravity. </p>
         <pre class="prototype">GtkWindow.set_gravity( gravity )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">gravity</td><td class="content"> a valid GdkGravity value </td></tr>
               </tbody>
            </table>
         <p>Window gravity defines the meaning of coordinates passed to move(). See gtk_window_move() and GdkGravity for more details. </p>
<p>The default window gravity is GDK_GRAVITY_NORTH_WEST which will typically "do what you mean." </p>
<h3><a name="set_has_frame">set_has_frame</a></h3><p class="brief">Sets the window frame. </p>
         <pre class="prototype">GtkWindow.set_has_frame( setting )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">setting</td><td class="content"> (boolean) </td></tr>
               </tbody>
            </table>
         <p>(Note: this is a special-purpose function for the framebuffer port, that causes GTK+ to draw its own window border. For most applications, you want set_decorated() instead, which tells the window manager whether to draw the window border.) </p>
<p>If this function is called on a window with setting of TRUE, before it is realized or showed, it will have a "frame" window around window->window, accessible in window->frame. Using the signal frame_event you can receive all events targeted at the frame. </p>
<p>This function is used by the linux-fb port to implement managed windows, but it could conceivably be used by X-programs that want to do their own window decorations. </p>
<h3><a name="set_icon_name">set_icon_name</a></h3><p class="brief">Sets the icon for the window from a named themed icon. </p>
         <pre class="prototype">GtkWindow.set_icon_name( the )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">the</td><td class="content"> name of the themed icon (or nil) </td></tr>
               </tbody>
            </table>
         <p>See the docs for GtkIconTheme for more details. </p>
<p>Note that this has nothing to do with the WM_ICON_NAME property which is mentioned in the ICCCM. </p>
<h3><a name="set_keep_above">set_keep_above</a></h3><p class="brief">Asks to keep window above, so that it stays on top. </p>
         <pre class="prototype">GtkWindow.set_keep_above( setting )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">setting</td><td class="content"> whether to keep window above other windows (boolean) </td></tr>
               </tbody>
            </table>
         <p>Note that you shouldn't assume the window is definitely above afterward, because other entities (e.g. the user or window manager) could not keep it above, and not all window managers support keeping windows above. But normally the window will end kept above. Just don't write code that crashes if not. </p>
<p>It's permitted to call this function before showing a window, in which case the window will be kept above when it appears onscreen initially. </p>
<p>You can track the above state via the "window-state-event" signal on GtkWidget. </p>
<p>Note that, according to the Extended Window Manager Hints specification, the above state is mainly meant for user preferences and should not be used by applications e.g. for drawing attention to their dialogs. </p>
<h3><a name="set_keep_below">set_keep_below</a></h3><p class="brief">Asks to keep window below, so that it stays in bottom. </p>
         <pre class="prototype">GtkWindow.set_keep_below( setting )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">setting</td><td class="content"> whether to keep window below other windows (boolean) </td></tr>
               </tbody>
            </table>
         <p>Note that you shouldn't assume the window is definitely below afterward, because other entities (e.g. the user or window manager) could not keep it below, and not all window managers support putting windows below. But normally the window will be kept below. Just don't write code that crashes if not. </p>
<p>It's permitted to call this function before showing a window, in which case the window will be kept below when it appears onscreen initially. </p>
<p>You can track the below state via the "window-state-event" signal on GtkWidget. </p>
<p>Note that, according to the Extended Window Manager Hints specification, the above state is mainly meant for user preferences and should not be used by applications e.g. for drawing attention to their dialogs. </p>
<h3><a name="set_mnemonic_modifier">set_mnemonic_modifier</a></h3><p class="brief">Sets the mnemonic modifier for this window. </p>
         <pre class="prototype">GtkWindow.set_mnemonic_modifier( modifier )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">modifier</td><td class="content"> the modifier mask used to activate mnemonics on this window. (GdkModifierType) </td></tr>
               </tbody>
            </table>
         <h3><a name="set_mnemonics_visible">set_mnemonics_visible</a></h3><p class="brief">Sets the "mnemonics-visible" property. </p>
         <pre class="prototype">GtkWindow.set_mnemonics_visible( visible )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">visible</td><td class="content"> TRUE to set mnemonics visible </td></tr>
               </tbody>
            </table>
         <h3><a name="set_modal">set_modal</a></h3><p class="brief">Sets a window modal or non-modal. </p>
         <pre class="prototype">GtkWindow.set_modal()</pre>
         <p>Modal windows prevent interaction with other windows in the same application. To keep modal dialogs on top of main application windows, use set_transient_for() to make the dialog transient for the parent; most window managers will then disallow lowering the dialog below the parent. </p>
<h3><a name="set_opacity">set_opacity</a></h3><p class="brief">Sets the window opacity. </p>
         <pre class="prototype">GtkWindow.set_opacity( opacity )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">opacity</td><td class="content"> desired opacity, between 0 and 1 (float) </td></tr>
               </tbody>
            </table>
         <p>Request the windowing system to make window partially transparent, with opacity 0 being fully transparent and 1 fully opaque. (Values of the opacity parameter are clamped to the [0,1] range.) On X11 this has any effect only on X screens with a compositing manager running. See gtk_widget_is_composited(). On Windows it should work always. </p>
<p>Note that setting a window's opacity after the window has been shown causes it to flicker once on Windows. </p>
<h3><a name="set_position">set_position</a></h3><p class="brief">Sets a position constraint for this window. </p>
         <pre class="prototype">GtkWindow.set_position( position )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">position</td><td class="content"> a position constraint. (GtkWindowPosition) </td></tr>
               </tbody>
            </table>
         <p>If the old or new constraint is GTK_WIN_POS_CENTER_ALWAYS, this will also cause the window to be repositioned to satisfy the new constraint. </p>
<h3><a name="set_resizable">set_resizable</a></h3><p class="brief">Sets whether the user can resize a window. </p>
         <pre class="prototype">GtkWindow.set_resizable( resizable )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">resizable</td><td class="content"> true if the user can resize this window </td></tr>
               </tbody>
            </table>
         <p>Windows are user resizable by default. </p>
<h3><a name="set_role">set_role</a></h3><p class="brief">Sets the window role. </p>
         <pre class="prototype">GtkWindow.set_role( role )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">role</td><td class="content"> unique identifier for the window to be used when restoring a session (string) </td></tr>
               </tbody>
            </table>
         <p>This function is only useful on X11, not with other GTK+ targets. </p>
<p>In combination with the window title, the window role allows a window manager to identify "the same" window when an application is restarted. So for example you might set the "toolbox" role on your app's toolbox window, so that when the user restarts their session, the window manager can put the toolbox back in the same place. </p>
<p>If a window already has a unique title, you don't need to set the role, since the WM can use the title to identify the window when restoring the session. </p>
<h3><a name="set_screen">set_screen</a></h3><p class="brief">Sets the GdkScreen where the window is displayed. </p>
         <pre class="prototype">GtkWindow.set_screen( screen )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">screen</td><td class="content"> a GdkScreen. </td></tr>
               </tbody>
            </table>
         <p>If the window is already mapped, it will be unmapped, and then remapped on the new screen. </p>
<h3><a name="set_skip_pager_hint">set_skip_pager_hint</a></h3><p class="brief">Sets the window pager hint. </p>
         <pre class="prototype">GtkWindow.set_skip_pager_hint( setting )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">setting</td><td class="content"> (boolean) true to keep this window from appearing in the pager </td></tr>
               </tbody>
            </table>
         <p>Windows may set a hint asking the desktop environment not to display the window in the pager. This function sets this hint. (A "pager" is any desktop navigation tool such as a workspace switcher that displays a thumbnail representation of the windows on the screen.) </p>
<h3><a name="set_skip_taskbar_hint">set_skip_taskbar_hint</a></h3><p class="brief">Sets the window taskbar hint. </p>
         <pre class="prototype">GtkWindow.set_skip_taskbar_hint( setting )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">setting</td><td class="content"> (boolean) true to keep this window from appearing in the task bar </td></tr>
               </tbody>
            </table>
         <p>Windows may set a hint asking the desktop environment not to display the window in the task bar. This function sets this hint. </p>
<h3><a name="set_startup_id">set_startup_id</a></h3><p class="brief">Sets the window startup identifier. </p>
         <pre class="prototype">GtkWindow.set_startup_id( startup_id )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">startup_id</td><td class="content"> a string with startup-notification identifier </td></tr>
               </tbody>
            </table>
         <p>Startup notification identifiers are used by desktop environment to track application startup, to provide user feedback and other features. This function changes the corresponding property on the underlying GdkWindow. Normally, startup identifier is managed automatically and you should only use this function in special cases like transferring focus from other processes. You should use this function before calling present() or any equivalent function generating a window map event. </p>
<p>This function is only useful on X11, not with other GTK+ targets. </p>
<h3><a name="set_title">set_title</a></h3><p class="brief">Sets the title of the GtkWindow. </p>
         <pre class="prototype">GtkWindow.set_title( title )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">title</td><td class="content"> title of the window </td></tr>
               </tbody>
            </table>
         <p>The title of a window will be displayed in its title bar; on the X Window System, the title bar is rendered by the window manager, so exactly how the title appears to users may vary according to a user's exact configuration. The title should help a user distinguish this window from other windows they may have open. A good title might include the application name and current document filename, for example. </p>
<h3><a name="set_transient_for">set_transient_for</a></h3><p class="brief">Sets the window transient for a parent window. </p>
         <pre class="prototype">GtkWindow.set_transient_for( parent )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">parent</td><td class="content"> parent window, or NULL. </td></tr>
               </tbody>
            </table>
         <p>Dialog windows should be set transient for the main application window they were spawned from. This allows window managers to e.g. keep the dialog on top of the main window, or center the dialog over the main window. gtk_dialog_new_with_buttons() and other convenience functions in GTK+ will sometimes call gtk_window_set_transient_for() on your behalf. </p>
<p>Passing NULL for parent unsets the current transient window. </p>
<p>On Windows, this function puts the child window on top of the parent, much as the window manager would have done on X. </p>
<h3><a name="set_type_hint">set_type_hint</a></h3><p class="brief">Sets the window type hint. </p>
         <pre class="prototype">GtkWindow.set_type_hint( hint )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">hint</td><td class="content"> the window type (GdkWindowTypeHint) </td></tr>
               </tbody>
            </table>
         <p>By setting the type hint for the window, you allow the window manager to decorate and handle the window in a way which is suitable to the function of the window in your application. </p>
<p>This function should be called before the window becomes visible. </p>
<h3><a name="set_urgency_hint">set_urgency_hint</a></h3><p class="brief">Sets the window urgency hint. </p>
         <pre class="prototype">GtkWindow.set_urgency_hint( setting )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">setting</td><td class="content"> (boolean) true to mark this window as urgent </td></tr>
               </tbody>
            </table>
         <p>Windows may set a hint asking the desktop environment to draw the users attention to the window. This function sets this hint. </p>
<h3><a name="set_wmclass">set_wmclass</a></h3><p class="brief">Don't use this function. </p>
         <pre class="prototype">GtkWindow.set_wmclass( wmclass_name, wmclass_class )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">wmclass_name</td><td class="content"> window name hint </td></tr>
               <tr class="param"><td class="name">wmclass_class</td><td class="content"> window class hint </td></tr>
               </tbody>
            </table>
         <p>It sets the X Window System "class" and "name" hints for a window. According to the ICCCM, you should always set these to the same value for all windows in an application, and GTK+ sets them to that value by default, so calling this function is sort of pointless. However, you may want to call gtk_window_set_role() on each window in your application, for the benefit of the session manager. Setting the role allows the window manager to restore window positions when loading a saved session. </p>
<h3><a name="signal_activate_default">signal_activate_default</a></h3><p class="brief">The ::activate-default signal is a keybinding signal which gets emitted when the user activates the default widget of window. </p>
         <pre class="prototype">GtkWindow.signal_activate_default()</pre>
         <h3><a name="signal_activate_focus">signal_activate_focus</a></h3><p class="brief">The activate-focus signal is a keybinding signal which gets emitted when the user activates the currently focused widget of window. </p>
         <pre class="prototype">GtkWindow.signal_activate_focus()</pre>
         <h3><a name="signal_frame_event">signal_frame_event</a></h3><p class="brief">. </p>
         <pre class="prototype">GtkWindow.signal_frame_event()</pre>
         <h3><a name="signal_keys_changed">signal_keys_changed</a></h3><p class="brief">The keys-changed signal gets emitted when the set of accelerators or mnemonics that are associated with window changes. </p>
         <pre class="prototype">GtkWindow.signal_keys_changed()</pre>
         <h3><a name="signal_set_focus">signal_set_focus</a></h3><p class="brief">. </p>
         <pre class="prototype">GtkWindow.signal_set_focus()</pre>
         <h3><a name="stick">stick</a></h3><p class="brief">Asks to stick window, which means that it will appear on all user desktops. </p>
         <pre class="prototype">GtkWindow.stick()</pre>
         <p>Note that you shouldn't assume the window is definitely stuck afterward, because other entities (e.g. the user or window manager) could unstick it again, and some window managers do not support sticking windows. But normally the window will end up stuck. Just don't write code that crashes if not. </p>
<p>It's permitted to call this function before showing a window. </p>
<p>You can track stickiness via the "window-state-event" signal on GtkWidget. </p>
<h3><a name="unfullscreen">unfullscreen</a></h3><p class="brief">Asks to toggle off the fullscreen state for window. </p>
         <pre class="prototype">GtkWindow.unfullscreen()</pre>
         <p>Note that you shouldn't assume the window is definitely not full screen afterward, because other entities (e.g. the user or window manager) could fullscreen it again, and not all window managers honor requests to unfullscreen windows. But normally the window will end up restored to its normal state. Just don't write code that crashes if not. </p>
<p>You can track the fullscreen state via the "window-state-event" signal on GtkWidget. </p>
<h3><a name="unmaximize">unmaximize</a></h3><p class="brief">Asks to unmaximize window. </p>
         <pre class="prototype">GtkWindow.unmaximize()</pre>
         <p>Note that you shouldn't assume the window is definitely unmaximized afterward, because other entities (e.g. the user or window manager) could maximize it again, and not all window managers honor requests to unmaximize. But normally the window will end up unmaximized. Just don't write code that crashes if not. </p>
<p>You can track maximization via the "window-state-event" signal on GtkWidget. </p>
<h3><a name="unstick">unstick</a></h3><p class="brief">Asks to unstick window, which means that it will appear on only one of the user's desktops. </p>
         <pre class="prototype">GtkWindow.unstick()</pre>
         <p>Note that you shouldn't assume the window is definitely unstuck afterward, because other entities (e.g. the user or window manager) could stick it again. But normally the window will end up stuck. Just don't write code that crashes if not. </p>
<p>You can track stickiness via the "window-state-event" signal on GtkWidget. </p>
</div><ul class="navi_bottom"><li class="top"><a href="index.html">Top: Table of contents</a></li>
         <li class="up"><a href="gtk.html">Up: The Falcon GTK Binding module</a></li>
         <li class="prev"><a href="gtk_GtkWidget.html">Previous: Class GtkWidget</a></li>
         <li class="next"><a href="gtk_GtkWindowGroup.html">Next: Class GtkWindowGroup</a></li>
         <li class="clear"></li>
         </ul><div class="signature">Made with <a href="faldoc 3.0">http://www.falconpl.org</a></div></body></html>