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

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

?? question_index.sgml

?? linux下電話本所依賴的一些圖形庫
?? SGML
?? 第 1 頁 / 共 3 頁
字號:
reduce the portability of your code.  </para></listitem></varlistentry><varlistentry><term>escaped UTF-8</term><listitem><para>Even if your toolchain can't handle UTF-8 directly, you can still encode stringliterals in UTF-8 by using octal or hexadecimal escapes like <literal>\212</literal> or <literal>\xa8</literal> toencode each byte. This is portable, but modifying the escaped strings is notvery convenient. Be careful when mixing hexadecimal escapes with ordinary text;<literal>"\xa8abcd"</literal> is a string of length 1 !</para></listitem></varlistentry><varlistentry><term>runtime conversion</term><listitem><para>If the string literals can be represented in an encoding which your toolchaincan handle (e.g. IS0-8859-1), you can write your source files in that encodingand use <link linkend="g-convert">g_convert()</link> to convert the strings to UTF-8 at runtime. Note that this has some runtime overhead, so you may want tomove the conversion out of inner loops.</para></listitem></varlistentry></variablelist>Here is an example showing the three approaches using the copyright sign &copy; which has Unicode and ISO-8859-1 codepoint 169 and is represented inUTF-8 by the two bytes 194, 169:<informalexample><programlisting>g_print ("direct UTF-8: &copy;");g_print ("escaped UTF-8: \302\251");text = g_convert ("runtime conversion: &copy;", -1, "ISO-8859-1", "UTF-8", NULL, NULL, NULL);g_print(text);g_free (text);</programlisting></informalexample></para></answer></qandaentry><qandaentry><question><para>How do I use GTK+ with C++?</para></question><answer><para>There are two ways to approach this. The GTK+ header files use the subset of C that's also valid C++, so you can simply use the normal GTK+ API in a C++ program. Alternatively, you can use a "C++ binding" such as <ulink url="http://gtkmm.sourceforge.net/">gtkmm</ulink>which provides a C++-native API.</para><para>When using GTK+ directly, keep in mind that only functions can beconnected to signals, not methods. So you will need to use globalfunctions or "static" class functions for signal connections.</para><para>Another common issue when using GTK+ directly is that C++ will not implicitly convert an integer to an enumeration. This comes up when using bitfields; in C you can write the followingcode:<informalexample><programlisting>  gdk_window_set_events (gdk_window,                          GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);</programlisting></informalexample>while in C++ you must write:<informalexample><programlisting>  gdk_window_set_events (gdk_window,                          (GdkEventMask) GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);</programlisting></informalexample>There are very few functions that require this cast, however.</para></answer></qandaentry><qandaentry><question><para>How do I use GTK+ with other non-C languages?</para></question><answer><para>See the <ulink url="http://www.gtk.org/bindings.html">list of languagebindings</ulink> on <ulink                           url="http://www.gtk.org">http://www.gtk.org</ulink>.</para></answer></qandaentry><qandaentry><question><para>How do I load an image or animation from a file?</para></question><answer><para>To load an image file straight into a display widget, use <linklinkend="gtk-image-new-from-file">gtk_image_new_from_file()</link><footnote><para> If the file load fails, <linklinkend="gtk-image-new-from-file">gtk_image_new_from_file()</link>will display a "broken image" graphic &mdash; to detect a failed loadyourself, use <linklinkend="gdk-pixbuf-new-from-file">gdk_pixbuf_new_from_file()</link>directly then <linklinkend="gtk-image-new-from-pixbuf">gtk_image_new_from_pixbuf()</link>.</para></footnote>. To load an image for another purpose, use <linklinkend="gdk-pixbuf-new-from-file">gdk_pixbuf_new_from_file()</link>.To load an animation, use <linklinkend="gdk-pixbuf-animation-new-from-file">gdk_pixbuf_animation_new_from_file()</link>.<linklinkend="gdk-pixbuf-animation-new-from-file">gdk_pixbuf_animation_new_from_file()</link>can also load non-animated images, so use it in combination with <link      linkend="gdk-pixbuf-animation-is-static-image">gdk_pixbuf_animation_is_static_image()</link> to load a file of unknown type. </para><para>To load an image or animation file asynchronously (without blocking), use <link linkend="GdkPixbufLoader">GdkPixbufLoader</link>.</para></answer></qandaentry><qandaentry><question><para>How do I draw text ?</para></question><answer><para>To draw a piece of text, use a Pango layout and <link linkend="gdk-draw-layout">gdk_draw_layout()</link>, using code like the following:<informalexample><programlisting> layout = gtk_widget_create_pango_layout (widget, text); fontdesc = pango_font_description_from_string ("Luxi Mono 12"); pango_layout_set_font_description (layout, fontdesc);  gdk_draw_layout (..., layout); pango_font_description_free (fontdesc); g_object_unref (layout);</programlisting></informalexample>Do not use the deprecated <link linkend="GdkFont">GdkFont</link> and <link linkend="gdk-draw-text">gdk_draw_text()</link>.</para><para>See also the "Text Handling in GTK 2" section of <ulink url="http://developer.gnome.org/dotplan/porting/">Porting applications to the GNOME 2.0 platform</ulink>.</para></answer></qandaentry><qandaentry><question><para>How do I measure the size of a piece of text ?</para></question><answer><para>To obtain the size of a piece of text, use a Pango layout and <link		linkend="pango-layout-get-pixel-size">pango_layout_get_pixel_size()</link>, using code like the following:<informalexample><programlisting> layout = gtk_widget_create_pango_layout (widget, text); fontdesc = pango_font_description_from_string ("Luxi Mono 12"); pango_layout_set_font_description (layout, fontdesc);  pango_layout_get_pixel_size (layout, &amp;width, &amp;height); pango_font_description_free (fontdesc); g_object_unref (layout);</programlisting></informalexample>Do not use the deprecated function <link linkend="gdk-text-width">gdk_text_width()</link>.</para><para>See also the "Text Handling in GTK 2" section of <ulink url="http://developer.gnome.org/dotplan/porting/">Porting applications to the GNOME 2.0 platform</ulink>.</para></answer></qandaentry><qandaentry><question><para>Why are types not registered if I use their <literal>GTK_TYPE_BLAH</literal> macro ?</para></question><answer><para>The <literal>GTK_TYPE_BLAH</literal> macros are defined as calls to <literal>gtk_blah_get_type()</literal>, and the <literal>_get_type()</literal> functionsare declared as <literal>G_GNUC_CONST</literal> which allows the compiler to optimizethe call away if it appears that the value is not being used.</para><para>A common workaround for this problem is to store the result in a volatile variable,which keeps the compiler from optimizing the call away.<informalexample><programlisting>volatile GType dummy = GTK_TYPE_BLAH;</programlisting></informalexample></para></answer></qandaentry></qandadiv><qandadiv><title>Which widget should I use...</title><qandaentry><question><para>...for lists and trees?</para></question><answer><para>See <link linkend="TreeWidget">tree widget overview</link> &mdash; youshould use the <link linkend="GtkTreeView">GtkTreeView</link> widget.(A list is just a tree with no branches, so the tree widget is usedfor lists as well.) Do not use the deprecated widgets <linklinkend="GtkTree">GtkTree</link> or <linklinkend="GtkCList">GtkCList</link>/<linklinkend="GtkCTree">GtkCTree</link> in newly-written code, they areless flexible and result in an inferior user interface.</para></answer></qandaentry><qandaentry><question><para>...for multi-line text display or editing?</para></question><answer><para>See <link linkend="TextWidget">text widget overview</link> &mdash; youshould use the <link linkend="GtkTextView">GtkTextView</link> widget.Do not use the deprecated widget <linklinkend="GtkText">GtkText</link> in newly-written code, it has anumber of problems that are best avoided.</para><para>If you only have a small amount of text, <linklinkend="GtkLabel">GtkLabel</link> may also be appropriate of course.It can be made selectable with <link linkend="gtk-label-set-selectable">gtk_label_set_selectable()</link>. For a single-line text entry, see <link linkend="GtkEntry">GtkEntry</link>.</para></answer></qandaentry><qandaentry><question><para>...to display an image or animation?</para></question><answer><para><link linkend="GtkImage">GtkImage</link> can display imagesin just about any format GTK+ understands. You can also use <link linkend="GtkDrawingArea">GtkDrawingArea</link> if you need to do something more complex, such as draw text or graphics over thetop of the image.</para></answer></qandaentry><qandaentry><question><para>...for presenting a set of mutually-exclusive choices, where Windowswould use a combo box?</para></question><answer><para>With GTK+, a <link linkend="GtkOptionMenu">GtkOptionMenu</link> isrecommended instead of a combo box, if the user is selecting from afixed set of options. That is, non-editable combo boxes are notencouraged. <link linkend="GtkOptionMenu">GtkOptionMenu</link> ismuch easier to use than <link linkend="GtkCombo">GtkCombo</link>as well. Use <link linkend="GtkCombo">GtkCombo</link> only when you need the editable text entry.</para><para>(As a future enhancement to GTK+, a new widget to replace <linklinkend="GtkOptionMenu">GtkOptionMenu</link> and <linklinkend="GtkCombo">GtkCombo</link> is planned.  This widget will bethemeable to look like either a combo box or the current option menu,and will address some shortcomings in the <linklinkend="GtkCombo">GtkCombo</link> API.  <ulinkurl="http://bugzilla.gnome.org/show_bug.cgi?id=50554">Bug50554</ulink> tracks this issue, if you want to check status or postcomments.)</para></answer></qandaentry></qandadiv><qandadiv><title><link linkend="GtkWidget">GtkWidget</link></title><qandaentry><question><para>How do I change the color of a widget?</para></question><answer><para>See <link linkend="gtk-widget-modify-fg">gtk_widget_modify_fg()</link>,

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲激情自拍偷拍| 岛国精品一区二区| 91麻豆自制传媒国产之光| 欧美午夜免费电影| 久久亚洲欧美国产精品乐播| 一区二区三区在线观看视频| 国产一区二区在线观看免费| 91麻豆精品国产综合久久久久久| 亚洲女同一区二区| 国产成人亚洲综合色影视| 欧美一级生活片| 一区二区三区欧美日| 成人性色生活片| 精品国产成人在线影院| 日本欧美一区二区三区| 欧美色爱综合网| 亚洲伊人伊色伊影伊综合网| 99精品视频一区| 亚洲欧美日韩国产综合在线| voyeur盗摄精品| 亚洲日本欧美天堂| 91蜜桃在线免费视频| 亚洲欧洲性图库| 91免费在线视频观看| 亚洲欧洲无码一区二区三区| 成人黄色av电影| **欧美大码日韩| 91高清在线观看| 亚洲一区二区影院| 欧美日韩国产中文| 美女在线视频一区| 精品免费99久久| 国产99一区视频免费| 欧美国产成人精品| 91蜜桃婷婷狠狠久久综合9色| 亚洲女爱视频在线| 欧美性高清videossexo| 亚洲成人一区在线| 91麻豆精品91久久久久久清纯| 日日摸夜夜添夜夜添亚洲女人| 6080国产精品一区二区| 美女在线观看视频一区二区| 精品久久久久99| 成人免费视频caoporn| 亚洲精品视频免费看| 欧美喷水一区二区| 精品系列免费在线观看| 欧美国产精品劲爆| 欧美在线短视频| 久久精品国产精品亚洲精品 | 久久精品国产**网站演员| 91精品国产91久久久久久一区二区| 老司机精品视频在线| 国产精品国产自产拍高清av| 色欧美88888久久久久久影院| 亚洲成av人综合在线观看| 精品少妇一区二区三区免费观看| 国产91丝袜在线播放0| 亚洲欧美日韩小说| 欧美大片顶级少妇| 91在线视频官网| 日韩综合小视频| 国产精品免费aⅴ片在线观看| 在线观看国产日韩| 国产在线不卡一区| 亚洲永久精品国产| 国产偷国产偷精品高清尤物 | 成人看片黄a免费看在线| 亚洲精品免费一二三区| 欧美xxxx老人做受| 色嗨嗨av一区二区三区| 经典一区二区三区| 一区二区三区欧美视频| 国产三级精品视频| 69久久夜色精品国产69蝌蚪网| 成人午夜看片网址| 热久久国产精品| 亚洲午夜久久久久久久久电影院| 337p日本欧洲亚洲大胆精品| 在线视频你懂得一区| 成人精品国产免费网站| 久久99国产精品久久99| 天天操天天干天天综合网| 日韩一区在线免费观看| 久久精品网站免费观看| 欧美一区二区网站| 欧美少妇xxx| av中文字幕不卡| 国产成人在线视频网站| 奇米影视一区二区三区| 亚洲一区免费观看| 国产精品久久久久天堂| 久久精品亚洲乱码伦伦中文| 精品三级在线观看| 欧美一区二区在线视频| 4hu四虎永久在线影院成人| 色综合天天做天天爱| 成人精品免费网站| 粉嫩13p一区二区三区| 国产在线观看免费一区| 国产一区在线精品| 久久99久久99小草精品免视看| 日韩二区三区四区| 天天综合色天天综合| 天堂va蜜桃一区二区三区漫画版| 亚洲综合色自拍一区| 亚洲精选一二三| 亚洲国产欧美日韩另类综合 | 日日嗨av一区二区三区四区| 亚洲一区自拍偷拍| 亚洲va天堂va国产va久| 亚洲18色成人| 蜜桃视频在线一区| 美日韩一级片在线观看| 国产在线视视频有精品| 国产一区二区在线电影| 国产成人av电影在线观看| 国产99久久久国产精品免费看| 狠狠网亚洲精品| 国产精品白丝av| 成人亚洲一区二区一| 99国产欧美另类久久久精品| 欧美va亚洲va香蕉在线| 精品1区2区在线观看| 久久精品一区二区三区不卡牛牛| 久久久国产精品午夜一区ai换脸| 国产三区在线成人av| 最近日韩中文字幕| 亚洲成人免费在线| 精彩视频一区二区三区| 成人性视频免费网站| 在线亚洲+欧美+日本专区| 欧美日韩国产片| 国产亚洲精品资源在线26u| 综合色中文字幕| 天天综合色天天综合| 精品无人码麻豆乱码1区2区 | 亚洲综合男人的天堂| 日韩一区精品字幕| 国产精品12区| 欧美色综合天天久久综合精品| 欧美一区午夜精品| 国产精品久久久一区麻豆最新章节| 一区二区三区精密机械公司| 免费一级片91| 国产成人精品三级麻豆| 欧美性大战久久久久久久 | 日韩视频永久免费| 久久久久久久久久美女| 亚洲一区二区在线视频| 国产麻豆精品theporn| 欧美亚洲一区三区| 国产日产亚洲精品系列| 日韩中文字幕av电影| 成人亚洲一区二区一| 日韩色在线观看| 一区二区三区四区在线播放| 国产乱对白刺激视频不卡| 在线视频中文字幕一区二区| 国产网红主播福利一区二区| 亚洲一二三区不卡| 成人毛片视频在线观看| 精品国偷自产国产一区| 亚洲乱码一区二区三区在线观看| 久草精品在线观看| 欧美午夜精品电影| 国产精品高清亚洲| 国产成人高清在线| 欧美一区二区三区不卡| 亚洲影院在线观看| 91亚洲精品乱码久久久久久蜜桃 | 欧美一区二区三区思思人| 亚洲欧美综合色| 国产精品538一区二区在线| 欧美日韩一区精品| 亚洲人成影院在线观看| 国产成人aaa| 久久久影院官网| 另类中文字幕网| 欧美一级黄色大片| 香蕉久久一区二区不卡无毒影院 | 日韩电影网1区2区| 欧美亚洲一区二区三区四区| 专区另类欧美日韩| av资源网一区| 国产精品人人做人人爽人人添 | 精品一区二区免费在线观看| 欧美日韩精品一区视频| 亚洲一区二区三区免费视频| 91啪亚洲精品| 一区二区三区四区不卡视频| 91在线高清观看| 亚洲欧洲性图库| 91丝袜美女网| 亚洲综合色视频| 欧美日韩一区二区三区在线| 午夜a成v人精品| 91精品国产综合久久精品app| 视频一区国产视频| 欧美一区二区在线看|