⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gtkwindow.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
  "<a class="link" href="GtkWindow.html#GtkWindow--icon-name">icon-name</a>"                <ahref="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray">gchararray</a>            : Read / Write  "<a class="link" href="GtkWindow.html#GtkWindow--is-active">is-active</a>"                <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read  "<a class="link" href="GtkWindow.html#GtkWindow--modal">modal</a>"                    <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkWindow.html#GtkWindow--opacity">opacity</a>"                  <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a>               : Read / Write  "<a class="link" href="GtkWindow.html#GtkWindow--resizable">resizable</a>"                <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkWindow.html#GtkWindow--role">role</a>"                     <ahref="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray">gchararray</a>            : Read / Write  "<a class="link" href="GtkWindow.html#GtkWindow--screen">screen</a>"                   <ahref="/usr/share/gtk-doc/html/gdk/GdkScreen.html">GdkScreen</a>             : Read / Write  "<a class="link" href="GtkWindow.html#GtkWindow--skip-pager-hint">skip-pager-hint</a>"          <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkWindow.html#GtkWindow--skip-taskbar-hint">skip-taskbar-hint</a>"        <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkWindow.html#GtkWindow--startup-id">startup-id</a>"               <ahref="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray">gchararray</a>            : Write  "<a class="link" href="GtkWindow.html#GtkWindow--title">title</a>"                    <ahref="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray">gchararray</a>            : Read / Write  "<a class="link" href="GtkWindow.html#GtkWindow--transient-for">transient-for</a>"            <a class="link" href="GtkWindow.html" title="GtkWindow">GtkWindow</a>             : Read / Write / Construct  "<a class="link" href="GtkWindow.html#GtkWindow--type">type</a>"                     <a class="link" href="gtk-Standard-Enumerations.html#GtkWindowType">GtkWindowType</a>         : Read / Write / Construct Only  "<a class="link" href="GtkWindow.html#GtkWindow--type-hint">type-hint</a>"                <ahref="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindowTypeHint">GdkWindowTypeHint</a>     : Read / Write  "<a class="link" href="GtkWindow.html#GtkWindow--urgency-hint">urgency-hint</a>"             <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkWindow.html#GtkWindow--window-position">window-position</a>"          <a class="link" href="gtk-Standard-Enumerations.html#GtkWindowPosition">GtkWindowPosition</a>     : Read / Write</pre></div><div class="refsect1" lang="en"><a name="id3379075"></a><h2>Signals</h2><pre class="synopsis">  "<a class="link" href="GtkWindow.html#GtkWindow-activate-default">activate-default</a>"                               : Run Last / Action  "<a class="link" href="GtkWindow.html#GtkWindow-activate-focus">activate-focus</a>"                                 : Run Last / Action  "<a class="link" href="GtkWindow.html#GtkWindow-frame-event">frame-event</a>"                                    : Run Last  "<a class="link" href="GtkWindow.html#GtkWindow-keys-changed">keys-changed</a>"                                   : Run First  "<a class="link" href="GtkWindow.html#GtkWindow-set-focus">set-focus</a>"                                      : Run Last</pre></div><div class="refsect1" lang="en"><a name="id3379145"></a><h2>Description</h2><p></p></div><div class="refsect1" lang="en"><a name="id3379159"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id3379169"></a><h3><a name="GtkWindow-struct"></a>GtkWindow</h3><a class="indexterm" name="id3379182"></a><pre class="programlisting">typedef struct _GtkWindow GtkWindow;</pre><p></p></div><hr><div class="refsect2" lang="en"><a name="id3379197"></a><h3><a name="gtk-window-new"></a>gtk_window_new ()</h3><a class="indexterm" name="id3379210"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_window_new                      (<a class="link" href="gtk-Standard-Enumerations.html#GtkWindowType">GtkWindowType</a> type);</pre><p>Creates a new <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>, which is a toplevel window that cancontain other widgets. Nearly always, the type of the window shouldbe <a class="link" href="gtk-Standard-Enumerations.html#GTK-WINDOW-TOPLEVEL:CAPS"><span class="type">GTK_WINDOW_TOPLEVEL</span></a>. If you're implementing something like apopup menu from scratch (which is a bad idea, just use <a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a>),you might use <a class="link" href="gtk-Standard-Enumerations.html#GTK-WINDOW-POPUP:CAPS"><span class="type">GTK_WINDOW_POPUP</span></a>. <a class="link" href="gtk-Standard-Enumerations.html#GTK-WINDOW-POPUP:CAPS"><span class="type">GTK_WINDOW_POPUP</span></a> is not fordialogs, though in some other toolkits dialogs are called "popups".In GTK+, <a class="link" href="gtk-Standard-Enumerations.html#GTK-WINDOW-POPUP:CAPS"><span class="type">GTK_WINDOW_POPUP</span></a> means a pop-up menu or pop-up tooltip.On X11, popup windows are not controlled by the <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>.</p><p>If you simply want an undecorated window (no window borders), use<a class="link" href="GtkWindow.html#gtk-window-set-decorated"><code class="function">gtk_window_set_decorated()</code></a>, don't use <a class="link" href="gtk-Standard-Enumerations.html#GTK-WINDOW-POPUP:CAPS"><span class="type">GTK_WINDOW_POPUP</span></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>type</code></em>&#160;:</span></p></td><td> type of window</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a new <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3379367"></a><h3><a name="gtk-window-set-title"></a>gtk_window_set_title ()</h3><a class="indexterm" name="id3379380"></a><pre class="programlisting">void                gtk_window_set_title                (<a class="link" href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *title);</pre><p>Sets the title of the <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>. The title of a window will bedisplayed in its title bar; on the X Window System, the title baris rendered by the <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">windowmanager</a>, so exactly how the title appears to users may varyaccording to a user's exact configuration. The title should help auser distinguish this window from other windows they may haveopen. A good title might include the application name and currentdocument filename, for example.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>title</code></em>&#160;:</span></p></td><td> title of the window</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3379482"></a><h3><a name="gtk-window-set-wmclass"></a>gtk_window_set_wmclass ()</h3><a class="indexterm" name="id3379495"></a><pre class="programlisting">void                gtk_window_set_wmclass              (<a class="link" href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *wmclass_name,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *wmclass_class);</pre><p>Don't use this function. It sets the X Window System "class" and"name" hints for a window.  According to the ICCCM, you shouldalways set these to the same value for all windows in anapplication, and GTK+ sets them to that value by default, so callingthis function is sort of pointless. However, you may want to call<a class="link" href="GtkWindow.html#gtk-window-set-role"><code class="function">gtk_window_set_role()</code></a> on each window in your application, for thebenefit of the session manager. Setting the role allows the windowmanager to restore window positions when loading a saved session.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>wmclass_name</code></em>&#160;:</span></p></td><td> window name hint</td></tr><tr><td><p><span class="term"><em class="parameter"><code>wmclass_class</code></em>&#160;:</span></p></td><td> window class hint</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3379616"></a><h3>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -