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

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

?? z166.html

?? gtk_text program sample&eg
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>  <head>    <title>      GtkVBox: A Windowless Container    </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="Writing a GtkWidget" href=    "cha-widget.html">    <link rel="PREVIOUS" title="GtkWidget In Detail" href=     "sec-widgetindetail.html">    <link rel="NEXT" title="GnomeAppBar: A Trivial Composite    Widget" href="z170.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="sec-widgetindetail.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="z170.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="Z166"><tt class="CLASSNAME">GtkVBox</tt>: A        Windowless Container</a>      </h1>      <p>        This section describes some aspects of the <tt class=         "CLASSNAME">GtkVBox</tt> widget, which differs        substantially from the <tt class="CLASSNAME">GtkEv</tt>        widget presented earlier in the chapter. To understand this        section you must first understand how <tt class=        "CLASSNAME">GtkBox</tt> works from a user's point of view;        see <a href="sec-containers.html#SEC-GTKBOX">the section        called <i><tt class="CLASSNAME">GtkBox</tt></i> in the        chapter called <i>GTK+ Basics</i></a>. You might want to        look through the files <tt class="FILENAME">gtkvbox.h</tt>        and <tt class="FILENAME">gtkvbox.c</tt> from your GTK+        distribution as you read.      </p>      <p>        Most of <tt class="CLASSNAME">GtkVBox</tt> is implemented        in the <tt class="CLASSNAME">GtkBox</tt> base class; <tt        class="CLASSNAME">GtkVBox</tt> itself implements only size        request and allocation. The <tt class="CLASSNAME">        GtkBox</tt> instance struct looks like this:      </p>      <table border="0" bgcolor="#E0E0E0" width="100%">        <tr>          <td><pre class="PROGRAMLISTING">&#13;typedef struct _GtkBox        GtkBox;struct _GtkBox{  GtkContainer container;    GList *children;  gint16 spacing;  guint homogeneous : 1;};    </pre>          </td>        </tr>      </table>      <p>        <tt class="CLASSNAME">GtkBoxClass</tt> adds nothing to <tt        class="CLASSNAME">GtkContainerClass</tt>, and <tt class=         "CLASSNAME">GtkVBox</tt> adds nothing to <tt class=         "CLASSNAME">GtkBox</tt>.      </p>      <div class="SECT2">        <h2 class="SECT2">          <a name="Z167">Coding a <span class="STRUCTNAME">          GTK_NO_WINDOW</span> Widget</a>        </h2>        <p>          The implementation of windowless widgets is slightly          different from the implementation of "normal" widgets.        </p>        <p>          Windowless widgets must set the <span class="STRUCTNAME">          GTK_NO_WINDOW</span> flag, so GTK+ can treat them          appropriately. This should be done in the init function:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;static voidgtk_box_init (GtkBox *box){  GTK_WIDGET_SET_FLAGS (box, GTK_NO_WINDOW);  box-&gt;children = NULL;  box-&gt;spacing = 0;  box-&gt;homogeneous = FALSE;}      </pre>            </td>          </tr>        </table>        <p>          <tt class="CLASSNAME">GtkBox</tt> uses the default          realize method described in <a href=           "sec-widgetindetail.html#SEC-REALIZEMETHOD">the section          called <i>Realization</i></a>; because no <span class=           "STRUCTNAME">GdkWindow</span> needs to be created, a          <span class="STRUCTNAME">GTK_NO_WINDOW</span> widget          rarely needs a realize method. Recall that the default          realize implementation sets the windowless widget's <span          class="STRUCTNAME">window</span> field to the parent          widget's <span class="STRUCTNAME">window</span> field.        </p>        <p>          Because boxes are invisible layout containers, the <tt          class="CLASSNAME">GtkBox</tt> draw and expose          implementations simply pass the draw or expose request on          to the box's children. This is identical to <tt class=           "CLASSNAME">GtkBin</tt>'s draw and expose          implementations, except that there's a list of children          to iterate over.        </p>        <p>          A <span class="STRUCTNAME">GTK_NO_WINDOW</span> widget          that <i class="EMPHASIS">isn't</i> invisible, such as <tt          class="CLASSNAME">GtkLabel</tt>, should be careful not to          draw a background; the parent widget's background is          used.        </p>      </div>      <div class="SECT2">        <h2 class="SECT2">          <a name="Z168">Size Negotiation</a>        </h2>        <p>          <tt class="CLASSNAME">GtkVBox</tt>'s purpose in life is          size negotiation; it passes size requests up from its          children, and then divides a size allocation among them.          This leads to the layout behavior described in <a href=           "sec-containers.html#SEC-GTKBOX">the section called <i>          <tt class="CLASSNAME">GtkBox</tt></i> in the chapter          called <i>GTK+ Basics</i></a>.        </p>        <p>          Here is the size request implementation:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;static voidgtk_vbox_size_request (GtkWidget      *widget,                       GtkRequisition *requisition){  GtkBox *box;  GtkBoxChild *child;  GtkRequisition child_requisition;  GList *children;  gint nvis_children;  gint height;  g_return_if_fail (widget != NULL);  g_return_if_fail (GTK_IS_VBOX (widget));  g_return_if_fail (requisition != NULL);  box = GTK_BOX (widget);  requisition-&gt;width = 0;  requisition-&gt;height = 0;  nvis_children = 0;  children = box-&gt;children;  while (children)    {      child = children-&gt;data;      children = children-&gt;next;      if (GTK_WIDGET_VISIBLE (child-&gt;widget))        {          gtk_widget_size_request (child-&gt;widget, &amp;child_requisition);          if (box-&gt;homogeneous)            {              height = child_requisition.height + child-&gt;padding * 2;              requisition-&gt;height = MAX (requisition-&gt;height, height);            }          else            {              requisition-&gt;height += child_requisition.height + child-&gt;padding * 2;            }          requisition-&gt;width = MAX (requisition-&gt;width, child_requisition.width);          nvis_children += 1;        }    }  if (nvis_children &gt; 0)    {      if (box-&gt;homogeneous)        requisition-&gt;height *= nvis_children;      requisition-&gt;height += (nvis_children - 1) * box-&gt;spacing;    }  requisition-&gt;width += GTK_CONTAINER (box)-&gt;border_width * 2;  requisition-&gt;height += GTK_CONTAINER (box)-&gt;border_width * 2;}      </pre>            </td>          </tr>        </table>        <p>          If the box is homogenous, it multiplies the maximum child          requisition times the number of children; otherwise, it          sums the child requisitions. Then it adds padding,          spacing, and border width, as appropriate. Recall that          all containers must honor their border width, set with          <tt class="FUNCTION">          gtk_container_set_border_width()</tt> and available as          the <span class="STRUCTNAME">border_width</span> field in          the <tt class="CLASSNAME">GtkContainer</tt> instance          struct.        </p>        <p>          When reading this code, it may help to know that <tt          class="CLASSNAME">GtkBox</tt> stores a small struct for          each child widget in its <span class="STRUCTNAME">          children</span> field. The struct looks like this:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;typedef struct _GtkBoxChild   GtkBoxChild;struct _GtkBoxChild{  GtkWidget *widget;  guint16 padding;  guint expand : 1;  guint fill : 1;  guint pack : 1;};      </pre>            </td>          </tr>        </table>        <p>          Size allocation is more complex; here, all the          box-packing flags come into play. It will probably take          you a while to fully understand this function, but there          is no need to; the important thing is to see how layout          takes place via size allocation.        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;static voidgtk_vbox_size_allocate (GtkWidget     *widget,                        GtkAllocation *allocation){  GtkBox *box;  GtkBoxChild *child;  GList *children;  GtkAllocation child_allocation;  gint nvis_children;  gint nexpand_children;  gint child_height;  gint height;  gint extra;  gint y;  g_return_if_fail (widget != NULL);  g_return_if_fail (GTK_IS_VBOX (widget));  g_return_if_fail (allocation != NULL);  box = GTK_BOX (widget);  widget-&gt;allocation = *allocation;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产乱码久久久久久久久| 亚洲精品国产精品乱码不99| 日韩一区二区三区在线视频| 欧美一级片在线看| 国产精品美女久久久久久2018| 26uuu精品一区二区在线观看| 午夜精品一区二区三区电影天堂| 国产欧美日韩在线看| 制服丝袜亚洲精品中文字幕| 亚洲欧美偷拍三级| 久久久噜噜噜久噜久久综合| www.亚洲人| 91尤物视频在线观看| 欧美美女视频在线观看| 国产日韩精品视频一区| 亚洲精品一二三四区| 国产自产高清不卡| 91美女在线观看| 欧美xxxxx牲另类人与| 亚洲色图视频网| 国产激情精品久久久第一区二区| 成人丝袜视频网| 26uuu亚洲综合色欧美| 午夜在线电影亚洲一区| 成人精品免费看| 久久综合九色综合97婷婷| 一区二区三区久久| 97国产一区二区| 日本一区免费视频| 国产精品99久久久久久久女警| 欧洲精品一区二区| 欧美高清在线一区二区| 国产一区二区久久| 精品免费视频.| 爽爽淫人综合网网站| 欧美色网站导航| 午夜精品一区在线观看| 欧美日韩卡一卡二| 亚洲成人激情av| 欧美精品vⅰdeose4hd| 日本亚洲免费观看| 美女网站在线免费欧美精品| 欧美性淫爽ww久久久久无| 亚洲第一狼人社区| 欧美另类久久久品| 国产在线精品一区二区不卡了| 精品剧情v国产在线观看在线| 国内精品伊人久久久久av一坑| 久久久99免费| 欧美丝袜丝交足nylons图片| 亚洲国产精品天堂| 国产精品自在在线| 国产精品99久久久久| 欧美国产一区视频在线观看| 成人av免费网站| 天堂精品中文字幕在线| 欧美激情一区二区| 欧美日韩国产一二三| 国产精品888| 亚洲一区二区三区小说| 精品嫩草影院久久| 91国产福利在线| 国内久久精品视频| 日本不卡不码高清免费观看| 国产精品伦一区| 91精品国产欧美一区二区18| eeuss鲁片一区二区三区 | 自拍偷拍国产亚洲| 欧美大片拔萝卜| 欧洲精品视频在线观看| 成人免费视频app| 激情综合色播激情啊| 男人的天堂久久精品| 亚洲大尺度视频在线观看| 国产精品麻豆欧美日韩ww| 久久先锋影音av鲁色资源网| 91精品蜜臀在线一区尤物| 欧美午夜精品一区二区蜜桃| 99精品视频在线播放观看| 国产精品1区2区3区在线观看| 精品在线免费观看| 久久成人麻豆午夜电影| 男人的j进女人的j一区| 美女在线视频一区| 国产在线不卡一区| 国产99久久久久| 91小视频免费看| 91成人免费在线视频| 欧美日韩一区不卡| 日韩丝袜情趣美女图片| 精品国产一区二区三区久久影院| 久久久久久久综合日本| 国产精品久久久久久久第一福利 | 精东粉嫩av免费一区二区三区| 国产真实精品久久二三区| 成人午夜电影久久影院| 色屁屁一区二区| 精品国产三级电影在线观看| 久久久久久久久久久99999| 亚洲人成亚洲人成在线观看图片 | 3d动漫精品啪啪1区2区免费 | 国产精品中文有码| 色综合亚洲欧洲| 日韩精品一区国产麻豆| 国产精品久久久久久妇女6080 | 欧美三级电影网站| 日韩精品中文字幕一区| 一区二区国产盗摄色噜噜| 免费视频一区二区| 91国偷自产一区二区三区成为亚洲经典 | 欧美在线高清视频| 国产午夜精品一区二区三区嫩草| 亚洲美女偷拍久久| 成人在线综合网| 欧美成人一区二区三区在线观看 | 一本到一区二区三区| 久久久激情视频| 精品一区二区三区的国产在线播放| 91小视频在线| 一区二区三区精品在线| 国产91清纯白嫩初高中在线观看| 欧美电影免费观看高清完整版在| 亚洲小说欧美激情另类| 欧美系列亚洲系列| 亚洲成人你懂的| 欧美高清激情brazzers| 天天色天天爱天天射综合| 欧洲国内综合视频| 日韩精品电影在线| 欧美v国产在线一区二区三区| 亚洲第一综合色| 欧美电影免费提供在线观看| 日本vs亚洲vs韩国一区三区二区| 91精品国产综合久久福利软件| 亚洲福利视频一区二区| 欧美一级二级在线观看| 国产激情一区二区三区四区 | 成人一级视频在线观看| 国产精品情趣视频| 欧美日韩不卡在线| 看片的网站亚洲| ...中文天堂在线一区| 欧美综合色免费| 国内成人精品2018免费看| 自拍偷自拍亚洲精品播放| 欧美午夜精品免费| 国产二区国产一区在线观看| 一区二区三区四区不卡视频| 欧美一区二区三区男人的天堂| 国产a精品视频| 免费观看在线色综合| 亚洲精品videosex极品| 国产三区在线成人av| 3d成人h动漫网站入口| 99久久伊人网影院| 国产一区二区三区高清播放| 亚洲色图另类专区| 中文字幕免费观看一区| 欧美一区二区三区免费大片| 色呦呦国产精品| 成人精品一区二区三区中文字幕| 日韩国产欧美视频| 亚洲精品成人少妇| 亚洲欧美电影院| 中文字幕一区二区三区视频| 久久久久久久久一| 精品国产百合女同互慰| 91精品久久久久久久久99蜜臂| 91国产福利在线| 色国产精品一区在线观看| 成人avav影音| av动漫一区二区| 99麻豆久久久国产精品免费| 成人av午夜电影| 91久久久免费一区二区| 91视视频在线观看入口直接观看www | 国产成人av影院| 国产成人夜色高潮福利影视| 国产成人精品一区二区三区四区 | 亚洲欧美另类综合偷拍| 亚洲色图.com| 日韩激情av在线| 国产精品77777| 色香蕉成人二区免费| 91麻豆精品国产综合久久久久久| 在线播放91灌醉迷j高跟美女| 久久久亚洲欧洲日产国码αv| 欧美日韩国产电影| 久久久国产精品午夜一区ai换脸| 欧美国产亚洲另类动漫| 亚洲一区中文在线| 日本不卡一二三区黄网| 国产精品一二一区| 欧洲生活片亚洲生活在线观看| 欧美一区二区三区在线观看| 国产精品午夜在线| 蜜臀av在线播放一区二区三区| 成人污污视频在线观看| 日韩免费一区二区| 亚洲高清免费一级二级三级|