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

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

?? z177.html

?? gtk_text program sample&eg
?? HTML
?? 第 1 頁 / 共 3 頁
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>  <head>    <title>      Using the Canvas    </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="GnomeCanvas" href="cha-canvas.html">    <link rel="PREVIOUS" title="Basic Canvas Architecture" href=     "z174.html">    <link rel="NEXT" title="Standard Canvas Item Reference" href=     "sec-itemreference.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="z174.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-itemreference.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="Z177">Using the Canvas</a>      </h1>      <p>        <tt class="CLASSNAME">GnomeCanvas</tt> is easy to use; this        is its virtue compared to <tt class="CLASSNAME">        GtkDrawingArea</tt> or some other low-level approach. This        section describes how to create a canvas, and work with        canvas items. It ends with a programming example.      </p>      <div class="SECT2">        <h2 class="SECT2">          <a name="SEC-CANVASPREPARE">Preparing the <tt class=           "CLASSNAME">GnomeCanvas</tt> Widget</a>        </h2>        <p>          The first decision you have to make is whether to use the          canvas in GDK mode or antialiased mode. When you create a          canvas widget, you must specify the mode you want; there          is no way to change it later. <tt class="FUNCTION">          gnome_canvas_new()</tt> creates a GDK canvas. <tt class=           "FUNCTION">gnome_canvas_new_aa()</tt> creates an          antialiased canvas. These are shown in <a href=           "z177.html#FL-CANVASCONSTRUCT">Figure 5</a>.        </p>        <p>          Sometimes it matters which visual and colormap the canvas          will use. In particular:        </p>        <ul>          <li>            <p>              In GDK mode, if you want to use the <span class=               "STRUCTNAME">GnomeCanvasImage</span> item to display              images, you must use Imlib's visual and colormap.              <span class="STRUCTNAME">GnomeCanvasImage</span> uses              Imlib to render images.            </p>          </li>          <li>            <p>              In antialiased mode, GDK's RGB buffer rendering              facilities (see <a href="z132.html#SEC-GDKRGB">the              section called <i>RGB Buffers</i> in the chapter              called <i>GDK Basics</i></a>) are used to copy the              RGB buffer to the screen. You must use the visual and              colormap from the GDK RGB module.            </p>          </li>        </ul>        <p>          To create a widget with a non-default visual and          colormap, <tt class="FUNCTION">          gtk_widget_push_visual()</tt> and <tt class="FUNCTION">          gtk_widget_push_colormap()</tt> are used. Here is the          code to create a GDK canvas that supports the image item:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;  GtkWidget* canvas;  gtk_widget_push_visual(gdk_imlib_get_visual());  gtk_widget_push_colormap(gdk_imlib_get_colormap());  canvas = gnome_canvas_new();  gtk_widget_pop_visual();  gtk_widget_pop_colormap();      </pre>            </td>          </tr>        </table>        <p>          To create an antialiased canvas, do this:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;  GtkWidget* canvas;  gtk_widget_push_visual(gdk_rgb_get_visual());  gtk_widget_push_colormap(gdk_rgb_get_cmap());  canvas = gnome_canvas_new_aa();  gtk_widget_pop_colormap();  gtk_widget_pop_visual();      </pre>            </td>          </tr>        </table>        <div class="FIGURE">          <a name="FL-CANVASCONSTRUCT"></a>          <div class="FUNCSYNOPSIS">            <a name="FL-CANVASCONSTRUCT.SYNOPSIS"></a>            <table border="0" bgcolor="#E0E0E0" width="100%">              <tr>                <td><pre class="FUNCSYNOPSISINFO">       #include &lt;libgnomeui/gnome-canvas.h&gt;      </pre>                </td>              </tr>            </table>            <p>              <code><code class="FUNCDEF">GtkWidget* <tt class=               "FUNCTION">gnome_canvas_new</tt></code>(void);</code>            </p>            <p>              <code><code class="FUNCDEF">GtkWidget* <tt class=               "FUNCTION">              gnome_canvas_new_aa</tt></code>(void);</code>            </p>          </div>          <p>            <b>Figure 5. Canvas Constructors</b>          </p>        </div>        <div class="SECT3">          <h3 class="SECT3">            <a name="Z178">Scroll Region</a>          </h3>          <p>            The canvas is practically infinite from a programmer's            standpoint; however, in reality your application            probably uses only a small area. When using the canvas            you must specify which region is interesting to the            user with <tt class="FUNCTION">            gnome_canvas_set_scroll_region()</tt> (<a href=             "z177.html#FL-CANVASSCROLLING">Figure 6</a>). The            scroll region is given in world coordinates. You can            query the scroll region with <tt class="FUNCTION">            gnome_canvas_get_scroll_region()</tt>.          </p>          <p>            To add scroll bars to the canvas, simply create a <tt            class="CLASSNAME">GtkScrolledWindow</tt> and add the            canvas to it:          </p>          <table border="0" bgcolor="#E0E0E0" width="100%">            <tr>              <td><pre class="PROGRAMLISTING">&#13;  GtkWidget* sw;  sw = gtk_scrolled_window_new(NULL, NULL);  gtk_container_add(GTK_CONTAINER(sw), canvas);    </pre>              </td>            </tr>          </table>          <p>            If you want to implement scrolling via some mechanism            other than the scroll bars, you can get and set the            "scroll offsets." The scroll offsets are in canvas            pixel coordinates; they specify the top left visible            pixel. Remember that canvas pixel coordinates are            relative to the scroll region.          </p>          <div class="FIGURE">            <a name="FL-CANVASSCROLLING"></a>            <div class="FUNCSYNOPSIS">              <a name="FL-CANVASSCROLLING.SYNOPSIS"></a>              <table border="0" bgcolor="#E0E0E0" width="100%">                <tr>                  <td><pre class="FUNCSYNOPSISINFO">         #include &lt;libgnomeui/gnome-canvas.h&gt;        </pre>                  </td>                </tr>              </table>              <p>                <code><code class="FUNCDEF">void <tt class=                "FUNCTION">                gnome_canvas_set_scroll_region</tt></code>(GnomeCanvas*                <tt class="PARAMETER"><i>canvas</i></tt>, double                <tt class="PARAMETER"><i>x1</i></tt>, double <tt                class="PARAMETER"><i>y1</i></tt>, double <tt class=                 "PARAMETER"><i>x2</i></tt>, double <tt class=                 "PARAMETER"><i>y2</i></tt>);</code>              </p>              <p>                <code><code class="FUNCDEF">void <tt class=                "FUNCTION">                gnome_canvas_get_scroll_region</tt></code>(GnomeCanvas*                <tt class="PARAMETER"><i>canvas</i></tt>, double*                <tt class="PARAMETER"><i>x1</i></tt>, double* <tt                class="PARAMETER"><i>y1</i></tt>, double* <tt                class="PARAMETER"><i>x2</i></tt>, double* <tt                class="PARAMETER"><i>y2</i></tt>);</code>              </p>              <p>                <code><code class="FUNCDEF">void <tt class=                "FUNCTION">                gnome_canvas_scroll_to</tt></code>(GnomeCanvas* <tt                class="PARAMETER"><i>canvas</i></tt>, gint <tt                class="PARAMETER"><i>cx</i></tt>, gint <tt class=                 "PARAMETER"><i>cy</i></tt>);</code>              </p>              <p>                <code><code class="FUNCDEF">void <tt class=                "FUNCTION">                gnome_canvas_get_scroll_offsets</tt></code>(GnomeCanvas*                <tt class="PARAMETER"><i>canvas</i></tt>, gint* <tt                class="PARAMETER"><i>cx</i></tt>, gint* <tt class=                 "PARAMETER"><i>cy</i></tt>);</code>              </p>            </div>            <p>              <b>Figure 6. Canvas Scrolling</b>            </p>          </div>        </div>        <div class="SECT3">          <h3 class="SECT3">            <a name="Z179">Zooming</a>          </h3>          <p>            The canvas gives you zooming "for free"; it is included            in the world-to-canvas and canvas-to-world coordinate            system conversions. You can set the zoom factor with            <tt class="FUNCTION">            gnome_canvas_set_pixels_per_unit()</tt> (<a href=             "z177.html#FL-CANVASZOOMING">Figure 7</a>). By default,            there ratio of pixels to canvas units is 1.0, meaning            no zoom. Specifying a value less than 1.0 means reduced            size; greater than 1.0 means increased size.          </p>          <p>            In antialiased mode, you could achieve the same visual            effect by applying a scaling affine transformation to            the root canvas group. The <span class="STRUCTNAME">            pixels_per_unit</span> member of the <span class=             "STRUCTNAME">GnomeCanvas</span> struct predates the            canvas's use of affines. Still, <tt class="FUNCTION">            gnome_canvas_set_pixels_per_unit()</tt> is a bit more            convenient than the affine transform method, and it            does work in GDK mode. (Because GDK mode uses Xlib            primitives, it's nontrivial to implement arbitrary            affine transformations; a future version of Gnome may            do so, however.)          </p>          <div class="FIGURE">            <a name="FL-CANVASZOOMING"></a>            <div class="FUNCSYNOPSIS">              <a name="FL-CANVASZOOMING.SYNOPSIS"></a>              <table border="0" bgcolor="#E0E0E0" width="100%">                <tr>                  <td><pre class="FUNCSYNOPSISINFO">         #include &lt;libgnomeui/gnome-canvas.h&gt;        </pre>                  </td>                </tr>              </table>              <p>                <code><code class="FUNCDEF">void <tt class=                "FUNCTION">                gnome_canvas_set_pixels_per_unit</tt></code>(GnomeCanvas*                <tt class="PARAMETER"><i>canvas</i></tt>, double                <tt class="PARAMETER"><i>ppu</i></tt>);</code>              </p>            </div>            <p>              <b>Figure 7. Canvas Zooming</b>            </p>          </div>        </div>      </div>      <div class="SECT2">        <h2 class="SECT2">          <a name="Z180">Canvas Items</a>        </h2>        <p>          Most of the time you will be interested in canvas items          rather than the canvas itself. Canvas items are typically          very easy to use, compared to widgets; none of the          standard items have any unique signals, since they are          not interactive. (Since <span class="STRUCTNAME">          GnomeCanvasItem</span> is a subclass of <span class=           "STRUCTNAME">GtkObject</span>, however, you could          certainly have an item with signals if you wanted to.)          The <span class="STRUCTNAME">GnomeCanvasItem</span> base          class has a single signal, <span class="SYMBOL">          "event"</span>, which is used to convey all types of          event. The <span class="SYMBOL">"event"</span> signal has          no default handler; canvas items do not respond to events          unless you connect handlers of your own. <a href=           "z177.html#FL-CANVASITEMS">Figure 8</a> lists all the          useful functions for working with the <span class=           "STRUCTNAME">GnomeCanvasItem</span> base class.        </p>        <p>          To create a canvas item, you use the generic <tt class=           "FUNCTION">gnome_canvas_item_new()</tt> (or <tt class=           "FUNCTION">gnome_canvas_item_newv()</tt>). This function          accepts the group to place the item in, the <span class=           "STRUCTNAME">GtkType</span> of the <span class=          "STRUCTNAME">GnomeCanvasItem</span> subclass to create,          and finally a NULL-terminated list of arguments to set.          The argument list is purely for convenience, so you don't          have to call <tt class="FUNCTION">          gnome_canvas_item_set()</tt> immediately. <tt class= 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
美腿丝袜一区二区三区| 伊人色综合久久天天人手人婷| 日本最新不卡在线| 日韩视频一区二区三区| 久草这里只有精品视频| 精品久久99ma| 国产91精品久久久久久久网曝门| 中文字幕精品一区二区三区精品| 成人激情动漫在线观看| **网站欧美大片在线观看| 在线观看亚洲专区| 日欧美一区二区| 久久众筹精品私拍模特| 成人小视频在线观看| 一区二区三区资源| 欧美一区二区三区电影| 欧美日韩一级大片网址| 美女视频一区二区三区| 夜夜夜精品看看| 日韩视频在线一区二区| 激情图区综合网| 中文字幕一区三区| 在线成人高清不卡| 国产激情一区二区三区| 亚洲与欧洲av电影| 久久亚洲春色中文字幕久久久| av一区二区三区在线| 爽爽淫人综合网网站| 国产免费成人在线视频| 精品视频1区2区3区| 国产精品资源网站| 亚洲一区二区三区视频在线播放| 久久午夜羞羞影院免费观看| 91黄色小视频| 国产精品456| 亚洲大片免费看| 中文字幕精品三区| 精品国产污网站| 欧美日韩精品一区二区三区蜜桃| 久久91精品国产91久久小草| 亚洲欧美日韩国产手机在线| 精品国产髙清在线看国产毛片| 91亚洲精品久久久蜜桃网站| 国产麻豆视频一区| 婷婷开心激情综合| 亚洲色图制服丝袜| 中文在线一区二区| 欧美xxx久久| 欧美日韩不卡在线| 色综合天天综合在线视频| 国内精品视频一区二区三区八戒| 亚洲第一二三四区| 一区二区三区在线观看国产| 国产午夜精品美女毛片视频| 日韩一区二区在线看| 色综合久久六月婷婷中文字幕| 国产乱码精品一区二区三区av | 欧美男女性生活在线直播观看| 成人av网在线| 国产精品一品视频| 麻豆精品一二三| 日韩精品视频网| 亚洲一二三四久久| 亚洲欧美视频在线观看视频| 日本一二三不卡| 国产色产综合色产在线视频| 欧美电影精品一区二区| 5月丁香婷婷综合| 欧美日韩的一区二区| 欧美日韩五月天| 在线这里只有精品| 色哦色哦哦色天天综合| 日本久久精品电影| 日本韩国欧美一区| 日本乱人伦aⅴ精品| 在线观看亚洲精品| 欧美在线免费观看亚洲| 91原创在线视频| av亚洲产国偷v产偷v自拍| 懂色av噜噜一区二区三区av| 国产成人亚洲综合a∨婷婷图片 | 麻豆精品在线看| 亚洲成人一区在线| 五月激情丁香一区二区三区| 午夜伦欧美伦电影理论片| 日韩中文字幕av电影| 日韩精品国产精品| 久久成人羞羞网站| 国内精品免费在线观看| 国产 欧美在线| 99免费精品视频| 色综合久久天天综合网| 欧美日韩亚洲国产综合| 91麻豆精品国产91久久久久久| 欧美日韩亚洲综合一区 | 精彩视频一区二区三区| 国产精品一区二区91| 不卡一区二区三区四区| 日本道精品一区二区三区| 色婷婷av一区二区三区之一色屋| 欧美日韩二区三区| 久久亚洲一级片| 日韩毛片精品高清免费| 日精品一区二区三区| 国产一区二区毛片| 97se亚洲国产综合自在线| 欧美在线观看18| 精品国一区二区三区| 国产欧美精品一区二区三区四区 | 亚洲在线视频一区| 美国av一区二区| av一二三不卡影片| 制服丝袜亚洲播放| 国产欧美日韩不卡免费| 亚洲午夜久久久久中文字幕久| 久久精品久久精品| 99热精品国产| 精品国产乱码久久久久久夜甘婷婷 | 99re视频精品| 日韩一区二区三区视频在线| 国产精品久久三| 日日夜夜一区二区| 91视频观看免费| 26uuu成人网一区二区三区| 亚洲视频在线一区观看| 另类中文字幕网| 色婷婷久久久亚洲一区二区三区| 精品乱码亚洲一区二区不卡| 亚洲欧美视频在线观看视频| 国产在线观看一区二区| 欧美亚洲自拍偷拍| 国产女人18毛片水真多成人如厕| 午夜在线电影亚洲一区| av电影在线不卡| 精品久久久久99| 五月天国产精品| 91丨porny丨户外露出| 欧美videossexotv100| 一区二区三区四区在线| 国产成人在线视频网站| 日韩欧美一二三四区| 一区二区三区欧美日韩| 成人免费毛片aaaaa**| 欧美mv日韩mv国产网站app| 偷拍一区二区三区四区| 91论坛在线播放| 国产精品网站在线播放| 国产精品一区一区三区| 欧美一级午夜免费电影| 亚洲成人你懂的| 色综合久久久久| 国产精品欧美精品| 极品瑜伽女神91| 制服丝袜中文字幕一区| 亚洲第一激情av| 欧美日韩免费在线视频| 亚洲欧美色图小说| 色综合久久中文综合久久牛| 成人免费一区二区三区视频 | 中文字幕亚洲一区二区va在线| 激情综合色综合久久| 欧美一二三区在线观看| 日韩黄色一级片| 欧美日本国产一区| 午夜电影网亚洲视频| 欧美性猛交xxxx乱大交退制版| 亚洲柠檬福利资源导航| 91免费国产视频网站| 亚洲欧洲日产国码二区| av综合在线播放| 一区在线观看免费| 99国产精品国产精品久久| 中文字幕一区二区三区色视频 | 亚洲激情综合网| 91福利区一区二区三区| 亚洲图片欧美视频| 欧美三区在线视频| 午夜欧美一区二区三区在线播放| 欧美日韩久久一区| 免费成人在线网站| 精品国产乱码久久久久久闺蜜 | 成人a级免费电影| 成人欧美一区二区三区1314| 99国产精品99久久久久久| 国产精品久久久久久久蜜臀| 99久久综合国产精品| 亚洲理论在线观看| 欧美日韩黄色一区二区| 日本不卡一区二区三区 | 国产精品剧情在线亚洲| 99re热视频精品| 日韩高清不卡一区| 精品国产乱码久久久久久蜜臀| 成人性生交大片免费看中文| 一区二区在线看| 日韩欧美你懂的| 粉嫩一区二区三区在线看| 亚洲精品一卡二卡| 91精品国产一区二区三区| 国产精品夜夜爽|