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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? z166.html

?? gtk_text program sample&eg
?? HTML
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
<!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;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品嫩草影院com| 日韩毛片高清在线播放| www.日韩av| 亚洲国产乱码最新视频| 国产日韩影视精品| 久久精品二区亚洲w码| 中文字幕一区在线| 91啪亚洲精品| 亚洲二区在线观看| 国产三级三级三级精品8ⅰ区| 岛国精品在线观看| 免费在线观看一区| 久久精品一区二区三区不卡牛牛| 国产成人av资源| 国产清纯在线一区二区www| 欧美美女喷水视频| av一区二区不卡| 国产成人精品午夜视频免费| 肉色丝袜一区二区| 亚洲精品久久嫩草网站秘色| 国产三级一区二区| 久久午夜电影网| 精品久久久久一区| 99精品偷自拍| 欧美aaaaa成人免费观看视频| 欧美精品一区二区精品网| 337p亚洲精品色噜噜狠狠| 色先锋久久av资源部| 波波电影院一区二区三区| 国产v综合v亚洲欧| 午夜视频一区在线观看| 亚洲精品国产第一综合99久久| 欧美精品在欧美一区二区少妇| 黄页视频在线91| 激情文学综合网| 蜜臀久久99精品久久久久久9| 国产精品三级视频| 欧美日韩国产bt| 91超碰这里只有精品国产| 欧美日韩一区中文字幕| 欧美性生活影院| 欧美群妇大交群的观看方式| 欧美色国产精品| 91.com在线观看| 欧美一级xxx| 91福利在线播放| 色天天综合色天天久久| 在线观看视频91| 3d动漫精品啪啪1区2区免费 | 加勒比av一区二区| 喷白浆一区二区| 国产乱码精品一区二区三区av| 亚洲国产成人tv| 日韩制服丝袜av| 亚洲黄色尤物视频| 亚洲大型综合色站| 蜜桃久久精品一区二区| 国产成人av自拍| 色偷偷久久一区二区三区| 在线不卡一区二区| 亚洲精品在线电影| 日韩一区二区在线看| 久久精品这里都是精品| 综合久久久久综合| 亚洲18女电影在线观看| 国产真实乱子伦精品视频| 日日夜夜免费精品| 亚洲第一二三四区| 精品一区二区三区的国产在线播放| 亚洲国产一区视频| 国产在线观看免费一区| 不卡的av电影在线观看| 欧美日韩视频一区二区| 精品国产伦一区二区三区观看体验 | 久久久久国产精品麻豆| 日韩午夜激情电影| 国产亚洲精品aa午夜观看| 亚洲黄色免费网站| 美日韩黄色大片| 99国产欧美另类久久久精品| 欧美精品欧美精品系列| 久久夜色精品国产噜噜av| 综合久久久久久久| 麻豆成人久久精品二区三区红| 秋霞午夜鲁丝一区二区老狼| 成人一区二区三区中文字幕| 欧美日韩卡一卡二| 欧美精品xxxxbbbb| 国产精品视频一区二区三区不卡| 国产午夜精品在线观看| 亚洲国产视频在线| 国产成人精品三级麻豆| 91精品国产乱| 成人免费在线观看入口| 国产在线精品一区二区夜色 | 一本大道久久a久久综合婷婷| 成人综合婷婷国产精品久久蜜臀| 国产精品夜夜爽| 欧美日韩国产精品成人| 中文字幕av一区 二区| 美女一区二区视频| 色婷婷精品久久二区二区蜜臂av | 国产综合成人久久大片91| 蜜桃av噜噜一区| 国产一区在线看| 欧美色综合网站| 国产精品乱人伦中文| 老司机午夜精品99久久| 欧美中文字幕一区二区三区| 欧美一区二区私人影院日本| 亚洲欧美日韩成人高清在线一区| 亚洲综合清纯丝袜自拍| 成人综合婷婷国产精品久久蜜臀 | 成人少妇影院yyyy| 日韩欧美成人一区| 亚洲午夜视频在线观看| 99久久免费国产| 久久久久久99精品| 国产美女一区二区三区| 日韩一区二区不卡| 日韩精品免费专区| 欧美性大战xxxxx久久久| 亚洲精品久久久蜜桃| 91一区二区在线| 日韩精品专区在线影院重磅| 亚洲第一福利视频在线| 欧美视频一区二区| 亚洲激情综合网| 激情成人午夜视频| 欧美va亚洲va香蕉在线| 日韩一区有码在线| 成人久久视频在线观看| 欧美一级理论片| 天堂一区二区在线| 欧美精品第1页| 免费观看91视频大全| 欧美一区二区大片| 蜜桃av噜噜一区二区三区小说| 99精品一区二区| 亚洲丝袜自拍清纯另类| 一本一本大道香蕉久在线精品| 精品三级在线看| 久久99精品久久久久久| 精品国产乱码久久久久久1区2区 | 精品在线播放午夜| 精品电影一区二区三区| 激情五月婷婷综合网| 国产欧美日韩视频在线观看| 成人午夜av在线| 亚洲欧美二区三区| 欧美亚洲动漫另类| 捆绑变态av一区二区三区| 91黄色小视频| 日韩成人免费在线| 精品国产伦一区二区三区观看体验 | 国产女同互慰高潮91漫画| 粉嫩欧美一区二区三区高清影视| 制服视频三区第一页精品| 奇米影视7777精品一区二区| 精品剧情在线观看| av一本久道久久综合久久鬼色| 久久久青草青青国产亚洲免观| 天堂久久一区二区三区| 一本大道久久a久久精二百| 亚洲v中文字幕| www国产精品av| 一本大道综合伊人精品热热| 中文字幕一区二区三区乱码在线| 国产精品99久久久久久宅男| 国产精品国产三级国产普通话三级| 久久精品国产免费| 国产精品久久久久久妇女6080 | 日韩精品自拍偷拍| 99热在这里有精品免费| 亚洲午夜久久久久久久久电影院 | 日本福利一区二区| 国产精品福利在线播放| 欧美人体做爰大胆视频| 国产精品综合在线视频| 一区二区三区四区在线播放| 日韩欧美资源站| 91免费国产在线观看| 蜜臀av性久久久久av蜜臀妖精 | 亚洲欧洲日韩在线| 欧美夫妻性生活| 免费视频最近日韩| 亚洲特黄一级片| 久久丝袜美腿综合| 欧美日韩免费观看一区三区| 国产成人av影院| 免费亚洲电影在线| 一区二区免费看| 国产日韩精品一区二区三区在线| 国产东北露脸精品视频| 亚洲成av人影院在线观看网| 久久久国产精品不卡| 欧美日韩不卡视频| 高清成人在线观看| 久久狠狠亚洲综合| 亚洲国产精品尤物yw在线观看|