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

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

?? z186.html

?? gtk_text program sample&eg
?? HTML
?? 第 1 頁 / 共 3 頁
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>  <head>    <title>      Drawing Methods    </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 GnomeCanvasItem" href=     "cha-canvasitem.html">    <link rel="PREVIOUS" title="Writing a GnomeCanvasItem" href=     "cha-canvasitem.html">    <link rel="NEXT" title="Other Methods" href="z192.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-canvasitem.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="z192.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="Z186">Drawing Methods</a>      </h1>      <p>        The most important task of any canvas item is rendering        itself onto the canvas. Rendering is a two-stage process        for efficiency reasons. The first stage, implemented in a        <span class="STRUCTNAME">GnomeCanvasItem</span>'s <span        class="STRUCTNAME">update</span> method, is guaranteed to        happen only once per item per rendering cycle; the idea is        to do any expensive affine transformations or other        calculations in the update method. In the second stage, the        canvas item renders itself to some region on the screen.        The <span class="STRUCTNAME">render</span> method        implements stage two for antialiased items, while the <span        class="STRUCTNAME">draw</span> method implements stage two        for GDK items. An item's render or draw method may be        invoked multiple times during a canvas repaint.      </p>      <p>        Rendering occurs in a one-shot idle function. That is,        whenever the canvas receives an expose event or otherwise        determines that a redraw is needed, it adds an idle        function which removes itself after a single invocation.        (An idle function runs when no GTK+ events are pending and        the flow of execution is in the GTK+ main loop---see <a        href="sec-mainloop.html">the section called <i>The Main        Loop</i> in the chapter called <i>GTK+ Basics</i></a> for        details.) The canvas maintains a list of redraw regions and        adds to it whenever a redraw request is received, so it        knows which areas to repaint when the idle handler is        finally invoked.      </p>      <p>        Canvas items carry a flag indicating whether they need to        be updated. Whenever a canvas item "changes" (for example,        if you set a new fill color for <span class="STRUCTNAME">        GnomeCanvasRect</span>), it will call <tt class="FUNCTION">        gnome_canvas_item_request_update()</tt> to set the "update        needed" flag for itself and the groups that contain it, up        to and including the root canvas group. (The <tt class=         "CLASSNAME">GnomeCanvas</tt> widget is only aware of a        single canvas item, the root group---all other items are        handled recursively when methods are invoked on the root        group.) In its one-shot idle function, the canvas invokes        the update method of the root canvas item if its update        flag is set, then clears the flag so the update method will        not be run next time. The <span class="STRUCTNAME">        GnomeCanvasGroup</span> update method does the same for        each child item.      </p>      <p>        Once all canvas items have been updated, the rendering        process begins. The canvas creates an RGB or <span class=         "STRUCTNAME">GdkPixmap</span> buffer, converts its list of        redraw regions into a list of buffer-sized rectangles, then        invokes the render or draw method of the root canvas group        once per rectangle. After each rectangle is rendered, the        buffer is copied to the screen.      </p>      <div class="SECT2">        <h2 class="SECT2">          <a name="Z187">The Update Method</a>        </h2>        <p>          The update method is primarily used by antialiased canvas          items. <tt class="APPLICATION">libart_lgpl</tt> can          prebuild a vector path to be rendered, performing          clipping and affine transformation in advance. The render          method stamps the pre-assembled path into the RGB buffer.        </p>        <p>          The update method is one of the two that <span class=           "STRUCTNAME">GnomeCanvasRect</span> and <span class=           "STRUCTNAME">GnomeCanvasEllipse</span> have to implement          differently. Here is the <span class="STRUCTNAME">          GnomeCanvasRect</span> implementation:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;static voidgnome_canvas_rect_update (GnomeCanvasItem *item, double affine[6],                           ArtSVP *clip_path, gint flags){  GnomeCanvasRE *re;  ArtVpath vpath[11];  ArtVpath *vpath2;  double x0, y0, x1, y1;  double dx, dy;  double halfwidth;  int i;  gnome_canvas_re_update_shared (item, affine, clip_path, flags);  re = GNOME_CANVAS_RE (item);  if (item-&gt;canvas-&gt;aa) {    x0 = re-&gt;x1;    y0 = re-&gt;y1;    x1 = re-&gt;x2;    y1 = re-&gt;y2;    gnome_canvas_item_reset_bounds (item);    if (re-&gt;fill_set) {      vpath[0].code = ART_MOVETO;      vpath[0].x = x0;      vpath[0].y = y0;      vpath[1].code = ART_LINETO;      vpath[1].x = x0;      vpath[1].y = y1;      vpath[2].code = ART_LINETO;      vpath[2].x = x1;      vpath[2].y = y1;      vpath[3].code = ART_LINETO;      vpath[3].x = x1;      vpath[3].y = y0;      vpath[4].code = ART_LINETO;      vpath[4].x = x0;      vpath[4].y = y0;      vpath[5].code = ART_END;      vpath[5].x = 0;      vpath[5].y = 0;      vpath2 = art_vpath_affine_transform (vpath, affine);      gnome_canvas_item_update_svp_clip (item, &amp;re-&gt;fill_svp, art_svp_from_vpath (vpath2), clip_path);      art_free (vpath2);    } else      gnome_canvas_item_update_svp (item, &amp;re-&gt;fill_svp, NULL);    if (re-&gt;outline_set) {      if (re-&gt;width_pixels)        halfwidth = re-&gt;width * 0.5;      else        halfwidth = re-&gt;width * item-&gt;canvas-&gt;pixels_per_unit * 0.5;      if (halfwidth &lt; 0.25)        halfwidth = 0.25;      i = 0;      vpath[i].code = ART_MOVETO;      vpath[i].x = x0 - halfwidth;      vpath[i].y = y0 - halfwidth;      i++;      vpath[i].code = ART_LINETO;      vpath[i].x = x0 - halfwidth;      vpath[i].y = y1 + halfwidth;      i++;      vpath[i].code = ART_LINETO;      vpath[i].x = x1 + halfwidth;      vpath[i].y = y1 + halfwidth;      i++;      vpath[i].code = ART_LINETO;      vpath[i].x = x1 + halfwidth;      vpath[i].y = y0 - halfwidth;      i++;      vpath[i].code = ART_LINETO;      vpath[i].x = x0 - halfwidth;      vpath[i].y = y0 - halfwidth;      i++;      if (x1 - halfwidth &gt; x0 + halfwidth &amp;&amp;          y1 - halfwidth &gt; y0 + halfwidth) {        vpath[i].code = ART_MOVETO;        vpath[i].x = x0 + halfwidth;        vpath[i].y = y0 + halfwidth;        i++;        vpath[i].code = ART_LINETO;        vpath[i].x = x1 - halfwidth;        vpath[i].y = y0 + halfwidth;        i++;        vpath[i].code = ART_LINETO;        vpath[i].x = x1 - halfwidth;        vpath[i].y = y1 - halfwidth;        i++;        vpath[i].code = ART_LINETO;        vpath[i].x = x0 + halfwidth;        vpath[i].y = y1 - halfwidth;        i++;        vpath[i].code = ART_LINETO;        vpath[i].x = x0 + halfwidth;        vpath[i].y = y0 + halfwidth;        i++;      }      vpath[i].code = ART_END;      vpath[i].x = 0;      vpath[i].y = 0;      vpath2 = art_vpath_affine_transform (vpath, affine);      gnome_canvas_item_update_svp_clip (item, &amp;re-&gt;outline_svp, art_svp_from_vpath (vpath2), clip_path);      art_free (vpath2);    } else      gnome_canvas_item_update_svp (item, &amp;re-&gt;outline_svp, NULL);  } else {    get_bounds (re, &amp;x0, &amp;y0, &amp;x1, &amp;y1);    gnome_canvas_update_bbox (item, x0, y0, x1, y1);  }}      </pre>            </td>          </tr>        </table>        <p>          As you can see, the first thing this function does is          invoke an update function shared by <span class=           "STRUCTNAME">GnomeCanvasRect</span> and <span class=           "STRUCTNAME">GnomeCanvasEllipse</span>; here is that          function:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;static voidgnome_canvas_re_update_shared (GnomeCanvasItem *item, double *affine,                                ArtSVP *clip_path, int flags){  GnomeCanvasRE *re;  re = GNOME_CANVAS_RE (item);  if (re_parent_class-&gt;update)    (* re_parent_class-&gt;update) (item, affine, clip_path, flags);  if (!item-&gt;canvas-&gt;aa) {    set_gc_foreground (re-&gt;fill_gc, re-&gt;fill_pixel);    set_gc_foreground (re-&gt;outline_gc, re-&gt;outline_pixel);    set_stipple (re-&gt;fill_gc, &amp;re-&gt;fill_stipple,                  re-&gt;fill_stipple, TRUE);    set_stipple (re-&gt;outline_gc, &amp;re-&gt;outline_stipple,                  re-&gt;outline_stipple, TRUE);    set_outline_gc_width (re);  } }      </pre>            </td>          </tr>        </table>        <p>          There is a lot of code involved here; the update method          is almost always the most complicated one, since it does          all the work of preparing to render a canvas item. Also,          the update method is different for GDK and antialiased          mode; notice the code which depends on the <span class=           "STRUCTNAME">item-&gt;canvas-&gt;aa</span> flag.        </p>        <p>          The first thing <span class="STRUCTNAME">          GnomeCanvasRE</span> does during an update is invoke the          update method of its parent class. The <span class=           "STRUCTNAME">GnomeCanvasItem</span> default update method          does nothing whatsoever in Gnome 1.0, but it is good          practice to chain up for future robustness. Then, <span          class="STRUCTNAME">GnomeCanvasRE</span> calls a series of          utility routines to fill in its graphics contexts with          their correct values. These are straightforward          functions, so their implementations are omitted here.        </p>        <p>          Next <tt class="FUNCTION">gnome_canvas_rect_update()</tt>          continues with <span class="STRUCTNAME">          GnomeCanvasRect</span>-specific details. Several tasks          are accomplished:        </p>        <ul>          <li>            <p>              The bounding box of the canvas item is updated. Every              canvas item has an associated bounding box; the <span              class="STRUCTNAME">GnomeCanvasGroup</span> draw and              render methods use this box to determine which items              are in the redraw region. The bounding box must be              updated in both GDK and antialiased mode.            </p>          </li>          <li>            <p>              In antialiased mode, a <i class="FIRSTTERM">sorted              vector path</i> is created. A sorted vector path is              simply a series of drawing instructions, similar to              primitive PostScript operations, that <tt class=               "APPLICATION">libart_lgpl</tt> can render to an RGB

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
韩国女主播成人在线| 一本大道av一区二区在线播放| 一色屋精品亚洲香蕉网站| 91精品国产一区二区三区| 91高清视频免费看| 一本大道久久a久久精品综合| 91丝袜呻吟高潮美腿白嫩在线观看| 国产成人精品1024| 懂色av一区二区夜夜嗨| 成人开心网精品视频| 波多野结衣在线一区| 91女神在线视频| 欧美在线视频全部完| 欧美精品久久99久久在免费线 | 国产福利一区二区三区视频在线| 日韩**一区毛片| 麻豆免费精品视频| 国产乱人伦偷精品视频免下载| 久久精品国产在热久久| 久久99精品一区二区三区三区| 久久99精品国产麻豆不卡| 国内一区二区视频| av成人老司机| 8x福利精品第一导航| 久久综合丝袜日本网| 国产精品国产三级国产普通话三级 | 亚洲午夜视频在线| 另类成人小视频在线| 高清成人免费视频| 欧美视频一区二区在线观看| 日韩午夜中文字幕| 中文字幕中文字幕在线一区| 亚洲国产综合色| 国产精品亚洲成人| 欧美性受极品xxxx喷水| 久久综合久久久久88| 亚洲激情在线激情| 久久精品99久久久| 97国产一区二区| 欧美成人精品1314www| 亚洲欧洲av另类| 久久精品国产成人一区二区三区| 99天天综合性| 精品女同一区二区| 亚洲综合一区二区三区| 国产一区在线看| 欧美日韩国产综合一区二区 | 一区二区三区四区亚洲| 国精产品一区一区三区mba桃花| 成人久久久精品乱码一区二区三区 | 成人国产视频在线观看| 日韩亚洲欧美中文三级| 亚洲精品亚洲人成人网在线播放| 欧美成人官网二区| 91丨porny丨在线| 久久综合九色综合97婷婷女人 | 色网站国产精品| 久久久久国产精品厨房| 五月婷婷综合网| 91亚洲国产成人精品一区二三| 精品免费视频一区二区| 亚洲va欧美va国产va天堂影院| 成人高清视频在线观看| 日韩精品一区二区三区四区| 亚洲制服丝袜av| 99久久精品免费看| 国产精品入口麻豆原神| 国产一区二区三区日韩| 欧美一区二区在线观看| 成人午夜精品在线| 国产伦精品一区二区三区免费 | 国产99久久久久久免费看农村| 欧美理论电影在线| 亚洲自拍欧美精品| 99国产精品久久| 亚洲欧洲日韩综合一区二区| 成人性生交大片免费看中文| 中文字幕制服丝袜一区二区三区 | 欧美mv和日韩mv国产网站| 日韩精品一级中文字幕精品视频免费观看 | 91精品国产综合久久婷婷香蕉| 亚洲一区二区三区美女| 色婷婷综合久久久久中文一区二区 | 欧美丰满高潮xxxx喷水动漫| 天堂一区二区在线| 欧美日韩国产综合视频在线观看 | 欧美美女视频在线观看| 日韩精品一级中文字幕精品视频免费观看 | 国产亚洲成aⅴ人片在线观看 | 日本电影亚洲天堂一区| 一卡二卡三卡日韩欧美| 欧美日韩黄视频| 捆绑调教一区二区三区| 欧美一区二区福利视频| 久久精品人人做人人综合| 天堂va蜜桃一区二区三区漫画版| 97久久精品人人澡人人爽| 国产精品久99| 91一区二区三区在线观看| 亚洲男同1069视频| 一本久久a久久精品亚洲| 亚洲免费高清视频在线| 欧美无砖专区一中文字| 毛片av中文字幕一区二区| 9191久久久久久久久久久| 国产一区二区三区久久久 | 国产福利一区二区| 亚洲精品乱码久久久久久久久| 欧美日韩成人一区二区| 激情亚洲综合在线| 国产精品家庭影院| 精品日韩欧美在线| 五月婷婷久久综合| 久久久欧美精品sm网站| 91天堂素人约啪| 一区二区三区四区高清精品免费观看| 欧美三片在线视频观看| 九九国产精品视频| 亚洲精品一二三| 精品粉嫩超白一线天av| 一本久久a久久免费精品不卡| 免费人成在线不卡| 亚洲日本在线视频观看| 日韩欧美激情在线| 色婷婷久久99综合精品jk白丝| 精品综合久久久久久8888| 国产精品情趣视频| 日韩精品综合一本久道在线视频| 91日韩精品一区| 国产成人av电影在线播放| 日韩不卡一区二区三区 | 亚洲乱码国产乱码精品精98午夜 | 丝袜美腿亚洲色图| 综合久久久久久久| 久久精品亚洲精品国产欧美kt∨| 69成人精品免费视频| 色综合激情五月| 成人免费黄色大片| 国产一区二区三区免费| 久久精品国产在热久久| 热久久久久久久| 石原莉奈在线亚洲三区| 亚洲国产精品久久人人爱 | 在线不卡一区二区| 粉嫩一区二区三区在线看| 麻豆91在线观看| 日韩av一级片| 婷婷综合五月天| 亚洲午夜精品在线| 一区二区日韩av| 亚洲无线码一区二区三区| 亚洲精品伦理在线| 亚洲综合无码一区二区| 一区二区三区91| 性感美女极品91精品| 亚洲国产精品自拍| 天天av天天翘天天综合网色鬼国产| 一区二区三区美女视频| 亚洲一二三区视频在线观看| 亚洲国产综合91精品麻豆| 五月婷婷久久丁香| 日韩中文字幕不卡| 蜜桃在线一区二区三区| 麻豆精品视频在线观看免费| 蜜臀av国产精品久久久久| 狠狠色综合日日| 国产不卡视频在线观看| 成人免费看片app下载| 不卡的av中国片| 色婷婷亚洲一区二区三区| 欧美日本高清视频在线观看| 欧美一激情一区二区三区| 精品福利一二区| 国产精品久久久久影院老司| 一区二区高清视频在线观看| 日韩电影在线免费| 国产麻豆精品在线| 99v久久综合狠狠综合久久| 欧洲一区二区三区在线| 日韩欧美高清dvd碟片| 日本一区二区三区电影| 亚洲综合网站在线观看| 韩国精品一区二区| 不卡的av电影| 91超碰这里只有精品国产| 久久精品欧美日韩精品 | 欧美不卡在线视频| 中文字幕精品—区二区四季| 亚洲一区二区三区小说| 精品亚洲aⅴ乱码一区二区三区| 成人蜜臀av电影| 51精品久久久久久久蜜臀| 久久久亚洲精华液精华液精华液| 一区二区成人在线视频| 国产一区二区三区| 欧美日韩免费电影| 国产精品成人午夜| 国产在线不卡一卡二卡三卡四卡| 色婷婷亚洲综合| 国产精品久久久久久久久久免费看|