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

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

?? sec-containers.html

?? gtk_text program sample&eg
?? HTML
?? 第 1 頁 / 共 4 頁
字號:
            <p>              <b>Figure 9. Homogeneous, with <span class=              "STRUCTNAME">fill = FALSE</span></b>            </p>          </div>          <div class="FIGURE">            <a name="FIG-PACKHOMOFILL"></a>            <p>              <img src="figures/packhomofill.png">            </p>            <p>              <b>Figure 10. Homogeneous, with <span class=               "STRUCTNAME">fill = TRUE</span></b>            </p>          </div>        </div>        <div class="SECT3">          <h3 class="SECT3">            <a name="Z52">Box Packing Summary</a>          </h3>          <p>            Figure <a href="sec-containers.html#FIG-ALLPACK">Figure            11</a> shows all five box-packing techniques together.            (They are packed into a homogeneous <tt class=            "CLASSNAME">GtkVBox</tt> with <span class="STRUCTNAME">            fill</span> set to <span class="STRUCTNAME">TRUE</span>            and an interchild spacing of two pixels.) This should            give you a sense of their relative effects. Keep in            mind that you can also tweak the <span class=            "STRUCTNAME">padding</span> and <span class=            "STRUCTNAME">spacing</span> parameters, to increase or            decrease the amount of blank space between widgets.            However, you can easily create an ugly layout by using            inconsistent spacing---it's a good idea to try to keep            widgets "lined up" and consistently spaced.          </p>          <div class="FIGURE">            <a name="FIG-ALLPACK"></a>            <p>              <img src="figures/allpack.png">            </p>            <p>              <b>Figure 11. All Five Ways to Pack a Box</b>            </p>          </div>          <p>            A final point: notice that the <span class=            "STRUCTNAME">expand</span> and <span class=            "STRUCTNAME">fill</span> parameters are only relevant            when a box's size allocation is larger than its size            request. That is, these parameters determine how <i            class="EMPHASIS">extra</i> space is distributed.            Typically, extra space appears when a user resizes a            window to make it larger than its default size. Thus,            you should always try resizing your windows to be sure            your boxes are packed correctly.          </p>        </div>      </div>      <div class="SECT2">        <h2 class="SECT2">          <a name="SEC-GTKTABLE"><tt class="CLASSNAME">          GtkTable</tt></a>        </h2>        <p>          The second most common layout container is <tt class=           "CLASSNAME">GtkTable</tt>. <tt class="CLASSNAME">          GtkTable</tt> divides a region into cells; you can assign          each child widget to a rectangle made up of one or more          cells. You can think of <tt class="CLASSNAME">          GtkTable</tt> as a sheet of graph paper (with more          flexibility---the grid lines do not have to be          equidistant, though they can be).        </p>        <p>          <tt class="CLASSNAME">GtkTable</tt> comes with the usual          constructor, and some functions to attach children to it;          these are shown in <a href=           "sec-containers.html#FL-GTKTABLE">Figure 12</a>. When          creating a table, you specify the number of cells you          plan to use; this is purely for efficiency. The table          will automatically grow if you place children in cells          outside its current area. Like boxes, tables can be          homogeneous or not.        </p>        <div class="FIGURE">          <a name="FL-GTKTABLE"></a>          <div class="FUNCSYNOPSIS">            <a name="FL-GTKTABLE.SYNOPSIS"></a>            <table border="0" bgcolor="#E0E0E0" width="100%">              <tr>                <td><pre class="FUNCSYNOPSISINFO">#include &lt;gtk/gtktable.h&gt;</pre>                </td>              </tr>            </table>            <p>              <code><code class="FUNCDEF">GtkWidget* <tt class=               "FUNCTION">gtk_table_new</tt></code>(guint <tt class=               "PARAMETER"><i>rows</i></tt>, guint <tt class=               "PARAMETER"><i>columns</i></tt>, gboolean <tt class=               "PARAMETER"><i>homogeneous</i></tt>);</code>            </p>            <p>              <code><code class="FUNCDEF">GtkWidget* <tt class=               "FUNCTION">gtk_table_attach</tt></code>(GtkTable* <tt              class="PARAMETER"><i>table</i></tt>, GtkWidget* <tt              class="PARAMETER"><i>child</i></tt>, guint <tt class=               "PARAMETER"><i>left_side</i></tt>, guint <tt class=               "PARAMETER"><i>right_side</i></tt>, guint <tt class=               "PARAMETER"><i>top_side</i></tt>, guint <tt class=               "PARAMETER"><i>bottom_side</i></tt>, GtkAttachOptions              <tt class="PARAMETER"><i>xoptions</i></tt>,              GtkAttachOptions <tt class="PARAMETER"><i>              yoptions</i></tt>, guint <tt class="PARAMETER"><i>              xpadding</i></tt>, guint <tt class="PARAMETER"><i>              ypadding</i></tt>);</code>            </p>          </div>          <p>            <b>Figure 12. <tt class="CLASSNAME">GtkTable</tt></b>          </p>        </div>        <p>          The first two arguments to <tt class="FUNCTION">          gtk_table_attach()</tt> are the table and the child to          place in the table. The next four specify which grid          lines should form the bounding box of the child. Grid          lines are numbered from the top left (northwest) corner          of the table, starting with 0; so a 2 by 3 table will          have vertical lines 0, 1, 2 and horizontal lines 0,1,2,3.          The last two arguments are the amount of padding to put          on the left-right sides of the child (<span class=           "STRUCTNAME">xpadding</span>) and the top-bottom (<span          class="STRUCTNAME">ypadding</span>). This is analagous to          padding in boxes.        </p>        <p>          The <span class="STRUCTNAME">GtkAttachOptions</span>          arguments require some explanation. Here's a summary of          possible values. The values are bitmasks, so more than          one can be specified by or-ing them together.        </p>        <ul>          <li>            <p>              <span class="STRUCTNAME">GTK_EXPAND</span> specifies              that this section of the table will expand to fit              available space, much like the <span class=              "STRUCTNAME">expand</span> option when packing              boxes.&#13;            </p>          </li>          <li>            <p>              <span class="STRUCTNAME">GTK_FILL</span> specifies              that the child widget will expand to fill available              space. Important only if <span class="STRUCTNAME">              GTK_EXPAND</span> is set, because <span class=               "STRUCTNAME">GTK_EXPAND</span> permits extra space to              exist.&#13;            </p>          </li>          <li>            <p>              <span class="STRUCTNAME">GTK_SHRINK</span> determines              what will happen if there is insufficient space to              meet the child's size request. If <span class=               "STRUCTNAME">GTK_SHRINK</span> is set, the child is              given a smaller allocation which reflects available              space---i.e., the table shrinks the child. If it              isn't set, the child is given its requested size;              this may result in overlapping children within the              table, and children will be "chopped off" at the              table edges (because they'll try to draw outside the              table's <span class="STRUCTNAME">              GdkWindow</span>).&#13;            </p>          </li>        </ul>        <p>          It's possible to set spacing between rows and columns, in          addition to padding around particular children; the terms          "spacing" and "padding" mean the same thing with respect          to tables and boxes. See <tt class="FILENAME">          gtk/gtktable.h</tt> for a complete list of available <tt          class="CLASSNAME">GtkTable</tt> functions.        </p>        <div class="SECT3">          <h3 class="SECT3">            <a name="Z53"><tt class="CLASSNAME">GtkTable</tt>            Example</a>          </h3>          <p>            The following code creates a table with four cells and            three children; one child covers two cells. The            children are packed using different parameters:          </p>          <table border="0" bgcolor="#E0E0E0" width="100%">            <tr>              <td><pre class="PROGRAMLISTING">&#13;  GtkWidget* window;  GtkWidget* button;  GtkWidget* container;  window = gtk_window_new(GTK_WINDOW_TOPLEVEL);  container = gtk_table_new(2, 2, FALSE);  gtk_container_add(GTK_CONTAINER(window), container);  gtk_window_set_title(GTK_WINDOW(window), "Table Attaching");  gtk_container_set_border_width(GTK_CONTAINER(container), 10);  /* This would be a bad idea in real code; but it lets us    * experiment with window resizing.    */  gtk_window_set_policy(GTK_WINDOW(window), TRUE, TRUE, TRUE);  gtk_signal_connect(GTK_OBJECT(window),                     "delete_event",                     GTK_SIGNAL_FUNC(delete_event_cb),                     NULL);  button = gtk_button_new_with_label("1. Doesn't shrink\nor expand");  gtk_table_attach(GTK_TABLE(container),                   button,                   0, 1,                   0, 1,                   GTK_FILL,                   GTK_FILL,                   0,                    0);  button = gtk_button_new_with_label("2. Expands and shrinks\nvertically");  gtk_table_attach(GTK_TABLE(container),                   button,                   0, 1,                   1, 2,                   GTK_FILL,                   GTK_FILL | GTK_EXPAND | GTK_SHRINK,                   0,                    0);  button = gtk_button_new_with_label("3. Expands and shrinks\nin both directions");  gtk_table_attach(GTK_TABLE(container),                   button,                   1, 2,                   0, 2,                   GTK_FILL | GTK_EXPAND | GTK_SHRINK,                   GTK_FILL | GTK_EXPAND | GTK_SHRINK,                   0,                    0);&#13;</pre>              </td>            </tr>          </table>          <p>            It's instructive to observe the resulting table as the            window is resized. First, a quick summary of how the            children are attached:          </p>          <ol type="1">            <li>              <p>                The first child will always receive its requested                size; it neither expands nor shrinks.&#13;              </p>            </li>            <li>              <p>                The second child can expand and shrink only in the                Y direction.&#13;              </p>            </li>            <li>              <p>                The third child can expand and shrink in either                direction.&#13;              </p>            </li>          </ol>          <p>            The window's natural size is shown in <a href=             "sec-containers.html#FIG-TABLENATURAL">Figure 13</a>;            notice that some cells are given more space than the            widgets inside them requested because table cells have            to remain aligned. (Recall that a button with a label            will request only enough space to display the entire            label.) The <span class="STRUCTNAME">GTK_FILL</span>            flag causes <tt class="CLASSNAME">GtkTable</tt> to            allocate extra space to the widgets themselves, instead            of leaving blank padding around them.          </p>          <div class="FIGURE">            <a name="FIG-TABLENATURAL"></a>            <p>              <img src="figures/tablenatural.png">            </p>            <p>              <b>Figure 13. <span class="STRUCTNAME">              GtkTable</span> before resizing</b>            </p>          </div>          <p>            Now imagine the user expands the window vertically;            notice that extra space is given to the widgets with            <span class="STRUCTNAME">GTK_EXPAND</span> turned on in            the Y direction---namely widgets two and three---while            the widget in the top-left corner remains unchanged. <a            href="sec-containers.html#FIG-TABLEVERTRESIZE">Figure            14</a> shows this state of affairs.          </p>          <div class="FIGURE">            <a name="FIG-TABLEVERTRESIZE"></a>            <p>              <img src="figures/tablevertresize.png">

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本欧美久久久久免费播放网| 日本亚洲欧美天堂免费| 亚洲电影一区二区三区| 久久er精品视频| 色婷婷精品大在线视频| 久久免费国产精品| 日韩成人精品在线| 欧美亚洲动漫精品| 亚洲国产成人私人影院tom| 日韩av中文在线观看| 在线观看成人免费视频| 日本一区二区三区国色天香| 蜜臀av一区二区在线观看| 91福利精品第一导航| 亚洲女性喷水在线观看一区| 国产高清在线精品| 精品日韩成人av| 青青草一区二区三区| 制服丝袜亚洲色图| 午夜精品影院在线观看| 欧美中文字幕一区二区三区亚洲| 中文字幕av资源一区| 激情六月婷婷综合| 日韩欧美一区二区久久婷婷| 日韩综合小视频| 3d成人动漫网站| 美国av一区二区| 精品久久人人做人人爱| 麻豆成人久久精品二区三区红| 欧美二区乱c少妇| 日韩精品亚洲专区| 91精品国产一区二区三区蜜臀 | 国产片一区二区| 国产suv精品一区二区6| 久久蜜桃av一区二区天堂| 久久精品噜噜噜成人av农村| 日韩一级视频免费观看在线| 久久国产精品99精品国产 | 黑人巨大精品欧美一区| 日韩欧美不卡在线观看视频| 美女视频第一区二区三区免费观看网站| 欧美午夜电影一区| 日本不卡不码高清免费观看| 精品乱人伦一区二区三区| 精品一区二区av| 国产女人水真多18毛片18精品视频| 国产精品资源在线观看| 国产精品你懂的| 欧美在线影院一区二区| 日韩av电影天堂| 久久久久国产精品麻豆ai换脸| eeuss国产一区二区三区| 亚洲男人的天堂网| 欧美一级日韩不卡播放免费| 国产在线国偷精品免费看| 国产欧美日韩在线看| 色综合久久88色综合天天6| 午夜精品影院在线观看| 一本色道久久综合亚洲aⅴ蜜桃| 一区二区免费视频| 欧美猛男男办公室激情| 国内精品久久久久影院一蜜桃| 国产精品色眯眯| 欧美情侣在线播放| 丁香激情综合国产| 亚洲精品国产成人久久av盗摄 | 蜜桃传媒麻豆第一区在线观看| 久久久久久亚洲综合影院红桃| 91网站在线观看视频| 免费在线看成人av| 国产精品动漫网站| 欧美一区二区三区免费视频| 成人综合在线观看| 蜜桃av一区二区三区电影| 国产女人aaa级久久久级| 91精品久久久久久久久99蜜臂| 国产传媒一区在线| 日韩精品免费视频人成| 国产欧美精品一区二区色综合朱莉| 色94色欧美sute亚洲线路一ni| 国产精品一品视频| 婷婷综合久久一区二区三区| 国产精品国产三级国产普通话99 | 91精品婷婷国产综合久久竹菊| 国产成人亚洲综合a∨猫咪| 亚洲成人动漫av| 国产精品视频yy9299一区| 精品国产91久久久久久久妲己| 欧美亚洲一区二区在线观看| 高潮精品一区videoshd| 精品一区二区三区视频在线观看 | 亚洲小少妇裸体bbw| 久久久久综合网| 日韩精品中文字幕在线一区| 欧美午夜电影网| 色综合久久综合网97色综合| 国产suv精品一区二区6| 国产一区不卡精品| 欧美aaa在线| 日韩精品欧美精品| 亚洲色欲色欲www在线观看| 国产天堂亚洲国产碰碰| 精品国产污污免费网站入口| 69久久夜色精品国产69蝌蚪网| 色婷婷av一区二区三区之一色屋| 国产精品系列在线观看| 精品影院一区二区久久久| 婷婷成人激情在线网| 亚洲高清免费在线| 亚洲高清免费在线| 亚洲黄色片在线观看| 亚洲精品成人精品456| 亚洲欧美日韩一区二区| 亚洲男人的天堂网| 亚洲一区免费观看| 亚洲成人精品一区二区| 午夜欧美在线一二页| 亚洲444eee在线观看| 午夜av一区二区| 青娱乐精品视频| 国产一区不卡视频| 成人听书哪个软件好| 不卡av免费在线观看| 91麻豆产精品久久久久久| 在线观看免费亚洲| 欧美人xxxx| 久久综合视频网| 欧美激情中文不卡| 亚洲免费观看视频| 丝袜诱惑亚洲看片| 韩国av一区二区| 丁香六月综合激情| 欧美图片一区二区三区| 欧美一级艳片视频免费观看| 久久久久久久久久久久电影| 国产精品免费免费| 亚洲一区二区三区国产| 蜜臀av性久久久久av蜜臀妖精| 激情成人午夜视频| 91蝌蚪porny九色| 欧美精品色一区二区三区| 精品国产伦理网| 亚洲色图一区二区| 日韩成人av影视| 白白色亚洲国产精品| 在线播放亚洲一区| 国产日本亚洲高清| 亚洲国产精品综合小说图片区| 蜜臀av亚洲一区中文字幕| 99久久精品免费看国产| 欧美电影在线免费观看| 国产欧美一区二区三区沐欲| 亚洲一区免费在线观看| 麻豆一区二区在线| 99久久精品免费精品国产| 6080国产精品一区二区| 国产精品灌醉下药二区| 天天色天天爱天天射综合| 成人h版在线观看| 欧美一区二区三区日韩视频| 亚洲视频一区二区在线| 国产乱码字幕精品高清av| 在线免费亚洲电影| 亚洲欧美怡红院| 毛片不卡一区二区| 久久精品国内一区二区三区 | 狠狠色狠狠色综合系列| 色婷婷av一区二区三区大白胸 | 一区二区三区四区不卡视频| 韩国在线一区二区| 在线不卡免费欧美| 亚洲精选在线视频| 成人av在线网| 国产亚洲午夜高清国产拍精品 | 亚洲综合图片区| 成人午夜激情影院| 精品国产免费视频| 日韩国产欧美在线观看| 色菇凉天天综合网| 国产精品传媒视频| 色综合久久久久综合| 国产校园另类小说区| 免费在线观看不卡| 欧美日韩免费一区二区三区 | 国产精品中文有码| 日韩欧美国产高清| 日韩国产欧美视频| 欧美日韩高清一区| 亚洲福中文字幕伊人影院| 欧美亚洲动漫制服丝袜| 亚洲女同ⅹxx女同tv| 波多野结衣中文一区| 国产精品三级av| 高清国产一区二区三区| 欧美国产成人精品| 国产成a人无v码亚洲福利| 欧美激情一区二区三区| 成人深夜视频在线观看| 中文字幕巨乱亚洲| 99re热视频精品|