亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sec-gdkwindow.html

?? GTK+_ Gnome Application Development
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>  <head>    <title>      GdkWindow    </title>    <meta name="GENERATOR" content=    "Modular DocBook HTML Stylesheet Version 1.45">    <link rel="HOME" title="GTK+ / Gnome Application Development"    href="ggad.html">    <link rel="UP" title="GDK Basics" href="cha-gdk.html">    <link rel="PREVIOUS" title="GDK Basics" href="cha-gdk.html">    <link rel="NEXT" title="Visuals and Colormaps" href=     "sec-gdkvisual.html">  </head>  <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink=   "#840084" alink="#0000FF">    <div class="NAVHEADER">      <table width="100%" border="0" bgcolor="#ffffff" cellpadding=       "1" cellspacing="0">        <tr>          <th colspan="4" align="center">            <font color="#000000" size="2">GTK+ / Gnome Application            Development</font>          </th>        </tr>        <tr>          <td width="25%" bgcolor="#ffffff" align="left">            <a href="cha-gdk.html"><font color="#0000ff" size="2">            <b>&lt;&lt;&lt; Previous</b></font></a>          </td>          <td width="25%" colspan="2" bgcolor="#ffffff" align=           "center">            <font color="#0000ff" size="2"><b><a href="ggad.html">            <font color="#0000ff" size="2"><b>            Home</b></font></a></b></font>          </td>          <td width="25%" bgcolor="#ffffff" align="right">            <a href="sec-gdkvisual.html"><font color="#0000ff"            size="2"><b>Next &gt;&gt;&gt;</b></font></a>          </td>        </tr>      </table>    </div>    <div class="SECT1">      <h1 class="SECT1">        <a name="SEC-GDKWINDOW"><span class="STRUCTNAME">        GdkWindow</span></a>      </h1>      <p>        <span class="STRUCTNAME">GdkWindow</span> is a wrapper        around Xlib's <span class="STRUCTNAME">Window</span>        object. (It was discussed briefly in <a href=         "z57.html#SEC-REALIZINGSHOWING">the section called <i>        Realizing, Mapping, and Showing</i> in the chapter called        <i>GTK+ Basics</i></a>.) A <span class="STRUCTNAME">        GdkWindow</span> represents a region on the screen. It can        be shown or hidden (called <i class="FIRSTTERM">mapping</i>        and <i class="FIRSTTERM">unmapping</i> the window in Xlib).        You can capture events received by a <span class=        "STRUCTNAME">GdkWindow</span>, draw graphics inside it, and        move or resize it. <span class="STRUCTNAME">        GdkWindow</span>s are arranged in a tree structure; that        is, each window can have child windows. Child windows are        positioned relative to their parent window, and move when        the parent moves. Child windows don't draw outside of their        parent's bounds (i.e. they are clipped by the parent        window).      </p>      <p>        The tree of <span class="STRUCTNAME">GdkWindow</span>s is        not specific to each application; there is a global tree of        windows controlled by the X server and the window manager.        The <i class="FIRSTTERM">root window</i> has no parent; all        windows derive from it. All or part of it is visible as        your desktop background. Each window can be owned by a        different UNIX process; some windows will be created by the        window manager, some will come from user applications.      </p>      <p>        <span class="STRUCTNAME">GdkWindow</span> and <tt class=         "CLASSNAME">GtkWindow</tt> are very different things; <tt        class="CLASSNAME">GtkWindow</tt> is a GTK+ widget used to        represent toplevel windows (toplevel windows are the        highest application-controlled windows in the window        hierarchy). Window managers typically create <i class=         "FIRSTTERM">decorations</i> for toplevel windows;        decorations include title bars, close buttons, and the        like.      </p>      <p>        It's important to understand that an X window is primarily        an object on the X server. X clients receive a unique        integer ID for each window, and refer to windows by ID.        Thus, all window operations take place on the server; all        functions that deal with X windows go across the network.      </p>      <p>        <span class="STRUCTNAME">GdkWindow</span> is a wrapper        around the integer ID returned by X. It does keep local        copies of some information (such as the window's        dimensions), so some GDK operations are more efficient than        the corresponding Xlib operations. Still, <span class=         "STRUCTNAME">GdkWindow</span> is essentially a handle for a        server-side object. Many GDK objects are similar; fonts,        pixmaps, cursors, and so on are also handles for        server-side objects.      </p>      <div class="SECT2">        <h2 class="SECT2">          <a name="Z113"><span class="STRUCTNAME">GdkWindow</span>          and <span class="STRUCTNAME">GtkWidget</span></a>        </h2>        <p>          Many <span class="STRUCTNAME">GtkWidget</span> subclasses          have an associated <span class="STRUCTNAME">          GdkWindow</span>. In theory, GTK+ applications could          create only toplevel windows, and have all widgets draw          into them. However, it would make little sense to do so;          <span class="STRUCTNAME">GdkWindow</span> allows the X          Window System to automatically handle many details. For          example, events received from GDK are marked with the          window they occurred in; GTK+ can rapidly determine which          widget each event corresponds to.        </p>        <p>          There are some widgets with no associated <span class=           "STRUCTNAME">GdkWindow</span>; these are called "no          window" widgets, an allusion to the <span class=           "STRUCTNAME">GTK_NO_WINDOW</span> flag that marks them.          (You can test this flag with the macro <tt class=          "FUNCTION">GTK_WIDGET_NO_WINDOW()</tt>.) Widgets without          a window render themselves into their parent container's          <span class="STRUCTNAME">GdkWindow</span>. Windowless          widgets are relatively small and lightweight; <tt class=           "CLASSNAME">GtkLabel</tt> is the most common example.          Because events are always received on a <span class=           "STRUCTNAME">GdkWindow</span>, windowless widgets do not          receive events. (The <tt class="CLASSNAME">          GtkEventBox</tt> container can be used if you need to          capture events on a windowless widget.)        </p>      </div>      <div class="SECT2">        <h2 class="SECT2">          <a name="SEC-GDKWINATTR"><span class="STRUCTNAME">          GdkWindow</span> Attributes</a>        </h2>        <p>          <tt class="FUNCTION">gdk_window_new()</tt> (shown in <a          href="sec-gdkwindow.html#FL-GDKWINNEW">Figure 1</a>)          allows you to specify all of a window's attributes when          you create it; many of them can be changed later as well.          To specify a block of attributes, you pass in a <span          class="STRUCTNAME">GdkWindowAttr</span> object; its          contents will give you an idea what attributes a <span          class="STRUCTNAME">GdkWindow</span> can have:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;typedef struct _GdkWindowAttr GdkWindowAttr;struct _GdkWindowAttr{  gchar *title;  gint event_mask;  gint16 x, y;  gint16 width;  gint16 height;  GdkWindowClass wclass;  GdkVisual *visual;  GdkColormap *colormap;  GdkWindowType window_type;  GdkCursor *cursor;  gchar *wmclass_name;  gchar *wmclass_class;  gboolean override_redirect;};&#13;</pre>            </td>          </tr>        </table>        <p>          Because some of the fields in <span class="STRUCTNAME">          GdkWindowAttr</span> are optional, <tt class="FUNCTION">          gdk_window_new()</tt> is used with an <span class=           "STRUCTNAME">attributes_mask</span> to specify which          optional fields contain valid information (bit flags are          available representing each optional field). GDK will          only examine the optional fields given in the mask, so          you can let the default values remain for fields you          aren't interested in. <a href=           "sec-gdkwindow.html#TAB-GDKWINDOWATTR">Table 1</a>          summarizes them briefly; fields with no <span class=           "STRUCTNAME">attributes_mask</span> flag are required and          have no default value.        </p>        <p>          <tt class="FUNCTION">gdk_window_new()</tt> is typically          used in widget implementations to create the widget's          <span class="STRUCTNAME">GdkWindow</span>; you will          rarely use it in any other context. <tt class="FUNCTION">          gdk_window_destroy()</tt> destroys a window when you are          done with it. Windows are also reference counted; be sure          to read <a href="sec-gdkresourcemgmt.html">the section          called <i>GDK Resource Management</i></a> for more          details on this.        </p>        <div class="FIGURE">          <a name="FL-GDKWINNEW"></a>          <div class="FUNCSYNOPSIS">            <a name="FL-GDKWINNEW.SYNOPSIS"></a>            <table border="0" bgcolor="#E0E0E0" width="100%">              <tr>                <td><pre class="FUNCSYNOPSISINFO">#include &lt;gdk/gdk.h&gt;</pre>                </td>              </tr>            </table>            <p>              <code><code class="FUNCDEF">GdkWindow* <tt class=               "FUNCTION">gdk_window_new</tt></code>(GdkWindow* <tt              class="PARAMETER"><i>parent</i></tt>, GdkWindowAttr*              <tt class="PARAMETER"><i>attributes</i></tt>, gint              <tt class="PARAMETER"><i>              attributes_mask</i></tt>);</code>            </p>            <p>              <code><code class="FUNCDEF">void <tt class=              "FUNCTION">gdk_window_destroy</tt></code>(GdkWindow*              <tt class="PARAMETER"><i>window</i></tt>);</code>            </p>          </div>          <p>            <b>Figure 1. <span class="STRUCTNAME">            GdkWindow</span></b>          </p>        </div>        <p>          A <span class="STRUCTNAME">GdkWindow</span>'s title is          only really important for toplevel windows; most window          managers will place it in the titlebar. Usually you          should not specify it when creating a <span class=           "STRUCTNAME">GdkWindow</span>, however; instead, let your          widget's users call <tt class="FUNCTION">          gtk_window_set_title()</tt>.        </p>        <p>          The window's event mask determines which events will be          received on this window; <a href="sec-gdkevent.html">the          section called <i>Events</i></a> goes into more detail          about events.        </p>        <p>          The X and Y coordinates for a window are specified in          pixels, relative to the parent window's origin. The          origin of each window is its top left ("northwest")          corner. Notice that a 16-bit signed integer is used; X          windows have a maximum size of 32768 pixels. Negative          values are allowed, but the window will be clipped by its          parent window (only the portion inside the parent window          will be visible).        </p>        <p>          The width and height of a window are given in pixels, and          are also 16-bit signed integers.        </p>        <p>          A window's <span class="STRUCTNAME">GdkWindowClass</span>          can have one of two values:        </p>        <ul>          <li>            <p>              <span class="STRUCTNAME">GDK_INPUT_OUTPUT</span> is a              normal window.&#13;            </p>          </li>          <li>            <p>              <span class="STRUCTNAME">GDK_INPUT_ONLY</span> is a              window that has a position and receives events but              has no visual representation. Its children must also              be input only. You can set the cursor and other              attributes for an input only window, but there is no              way to draw to it (it's invisible). Input-only              windows are occasionally useful to capture events or              change the cursor in a region that overlaps two              normal windows.&#13;            </p>          </li>        </ul>        <p>          A <i class="FIRSTTERM">visual</i> describes the          color-handling characteristics of a display; a <i class=           "FIRSTTERM">colormap</i> contains the colors you can use          to draw. <a href="sec-gdkvisual.html">the section called          <i>Visuals and Colormaps</i></a> gives details on visuals          and colormaps.        </p>        <p>          Windows can be one of several different types, specified          by the <span class="STRUCTNAME">GdkWindowType</span>          enumeration:        </p>        <ul>          <li>            <p>              <span class="STRUCTNAME">GDK_WINDOW_ROOT</span> is              the type of the GDK wrapper for the root window,              created at initialization time.&#13;            </p>          </li>          <li>            <p>              <span class="STRUCTNAME">GDK_WINDOW_TOPLEVEL</span>              is a toplevel window; the <span class="STRUCTNAME">              parent</span> argument to <tt class="FUNCTION">              gdk_window_new()</tt> should be <span class=               "STRUCTNAME">NULL</span> in this case. GDK              automatically uses the root window as the window's              parent.&#13;            </p>          </li>          <li>            <p>              <span class="STRUCTNAME">GDK_WINDOW_CHILD</span> is a              subwindow within a toplevel window. &#13;            </p>          </li>          <li>            <p>              <span class="STRUCTNAME">GDK_WINDOW_DIALOG</span> is              essentially the same as a toplevel window; its parent              should be <span class="STRUCTNAME">NULL</span> and              GDK will substitute the root window. A hint will be              set to tell the window manager the window is a              dialog; some window managers take this into              account.&#13;            </p>          </li>          <li>            <p>              <span class="STRUCTNAME">GDK_WINDOW_TEMP</span> is              used for popup menus and the like; it's a window that              will exist only briefly. It's a toplevel window, so              its parent should be <span class="STRUCTNAME">              NULL</span>. These windows are always override              redirect and their cursor is always the same as their              parent's. So they will ignore those elements of the              attributes struct.&#13;            </p>          </li>          <li>            <p>              <span class="STRUCTNAME">GDK_WINDOW_PIXMAP</span> is              not a window at all; <span class="STRUCTNAME">              GdkPixmap</span> and <span class="STRUCTNAME">              GdkWindow</span> are almost always treated the same              way, so GDK uses the same struct to represent them.              They can both be considered kinds of <span class=               "STRUCTNAME">GdkDrawable</span>. See <a href=               "sec-gdkdrawable.html">the section called <i>              Drawables and Pixmaps</i></a>.&#13;            </p>          </li>          <li>            <p>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品久久7777| 一区二区三区在线观看视频| 精品国产一区二区三区av性色| 久久久久久久久久久久久夜| 又紧又大又爽精品一区二区| 日韩av电影天堂| 成人激情文学综合网| 欧美日韩国产成人在线免费| www欧美成人18+| 一区二区日韩电影| 韩国毛片一区二区三区| 欧美性受xxxx黑人xyx| 久久午夜老司机| 免费一级片91| 不卡免费追剧大全电视剧网站| 欧美三级电影网站| 国产精品久久久久精k8| 久久精品久久久精品美女| jlzzjlzz欧美大全| 精品久久久久久最新网址| 亚洲黄色性网站| 成人午夜电影小说| 精品久久久久香蕉网| 亚洲国产综合色| 99久久亚洲一区二区三区青草| 欧美刺激午夜性久久久久久久| 伊人婷婷欧美激情| 国产精品一区二区三区乱码| 777色狠狠一区二区三区| 国产精品短视频| 国产精品一级在线| 精品动漫一区二区三区在线观看| 亚洲在线成人精品| 91网站黄www| 综合久久给合久久狠狠狠97色 | 中文字幕日韩av资源站| 美腿丝袜亚洲三区| 欧美猛男gaygay网站| 中文字幕综合网| 国产suv精品一区二区三区| 精品免费一区二区三区| 日韩激情视频在线观看| 欧美日韩国产系列| 亚洲专区一二三| 色综合久久66| 亚洲天堂a在线| 91亚洲精品久久久蜜桃| 中文字幕一区二区三区视频| 成人黄色免费短视频| 国产蜜臀97一区二区三区| 国产风韵犹存在线视精品| 久久久亚洲精华液精华液精华液| 国产自产高清不卡| 久久久久高清精品| 风间由美一区二区三区在线观看 | 成人av电影免费在线播放| 国产亚洲精品久| 成人国产精品免费| 亚洲三级电影全部在线观看高清| a美女胸又www黄视频久久| 亚洲欧美日韩人成在线播放| 日本久久精品电影| 亚洲国产色一区| 99精品桃花视频在线观看| 亚洲色图视频免费播放| 在线视频中文字幕一区二区| 亚洲六月丁香色婷婷综合久久| 99精品欧美一区| 亚洲视频一二三| 99久久亚洲一区二区三区青草| 亚洲视频一区在线| 色综合 综合色| 亚洲成人综合在线| 欧美一区二区三区性视频| 午夜一区二区三区视频| 欧美美女黄视频| 国内成人免费视频| 中文字幕一区免费在线观看| 欧美日韩国产综合一区二区| 丝袜美腿成人在线| 国产日韩一级二级三级| 色激情天天射综合网| 日本女优在线视频一区二区| 国产日韩欧美激情| 91福利区一区二区三区| 久久99久久99小草精品免视看| 久久天天做天天爱综合色| 色综合天天综合色综合av | 成人av免费观看| 亚洲成人三级小说| 中文一区在线播放| 91精选在线观看| 不卡高清视频专区| 激情综合五月天| 午夜精品一区二区三区三上悠亚| 3atv一区二区三区| a级高清视频欧美日韩| 亚洲成人av一区二区| 日韩亚洲国产中文字幕欧美| 国产乱码精品一区二区三区忘忧草| 国产精品天天看| 日韩免费观看2025年上映的电影| 国产成人精品午夜视频免费| 一区二区成人在线视频| 国产清纯白嫩初高生在线观看91 | www.色精品| 九色综合狠狠综合久久| 亚洲一区二区三区四区在线| 国产欧美一区二区在线| 欧美第一区第二区| 欧美日韩和欧美的一区二区| 99vv1com这只有精品| 国产精品99久久久久久似苏梦涵| 青青草视频一区| 亚洲成av人片一区二区三区| 亚洲精品福利视频网站| 国产片一区二区| 久久在线观看免费| 欧美一区二区久久久| 欧美日韩另类国产亚洲欧美一级| 99久久久国产精品| www.视频一区| 丁香激情综合国产| 国产传媒欧美日韩成人| 国产一区二区三区黄视频| 美美哒免费高清在线观看视频一区二区| 亚洲美女视频一区| 亚洲精品一卡二卡| 一区二区三区在线不卡| 一区二区三区欧美激情| 亚洲男人都懂的| 亚洲精品视频自拍| 一区二区三区小说| 亚洲一区二区三区四区五区中文| 一区二区三区在线播放| 亚洲国产精品久久人人爱蜜臀| 一区二区欧美国产| 婷婷综合久久一区二区三区| 亚洲福利电影网| 日本aⅴ亚洲精品中文乱码| 日韩福利视频网| 麻豆成人av在线| 国产在线看一区| 波波电影院一区二区三区| 91一区二区三区在线播放| 欧美性生交片4| 日韩欧美一区二区视频| 亚洲精品一区二区三区福利| 中文字幕乱码一区二区免费| 亚洲欧美自拍偷拍色图| 亚洲在线免费播放| 日本成人在线电影网| 激情国产一区二区| 福利一区二区在线| 欧美在线观看视频一区二区| 欧美一区二视频| 国产精品三级久久久久三级| 一区二区三区.www| 加勒比av一区二区| 波多野结衣一区二区三区 | 欧美三级一区二区| 日韩欧美中文字幕精品| 精品三级av在线| 日韩美女视频一区| 亚洲无线码一区二区三区| 图片区小说区国产精品视频| 国产在线麻豆精品观看| 91福利国产精品| wwwwww.欧美系列| 亚洲制服欧美中文字幕中文字幕| 免费人成黄页网站在线一区二区| 丁香激情综合五月| 欧美疯狂做受xxxx富婆| 国产精品人人做人人爽人人添| 亚洲成人福利片| 成人精品免费网站| 日韩一区二区免费视频| 国产精品国产a| 久久99九九99精品| 在线一区二区视频| 国产午夜精品美女毛片视频| 亚洲午夜电影网| 成人av电影在线网| 精品国产一区二区在线观看| 日韩毛片精品高清免费| 狠狠色丁香久久婷婷综合丁香| 色综合久久综合网| 欧美经典一区二区| 美女诱惑一区二区| 日本高清视频一区二区| 国产日韩一级二级三级| 日本欧美加勒比视频| 欧美日韩国产一区| 午夜伊人狠狠久久| 欧美日韩国产片| 亚洲一区二区三区爽爽爽爽爽 | 久久久国产精品午夜一区ai换脸| 免费观看日韩av| 日韩欧美一区二区在线视频| 麻豆91在线播放免费|