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

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

?? z109.html

?? gtk_text program sample&eg
?? HTML
?? 第 1 頁 / 共 4 頁
字號:
              allow users to bind keyboard accelerators to these              signals using statements in the <tt class="FILENAME">              .gtkrc</tt> configuration file.&#13;            </p>          </li>          <li>            <p>              <span class="STRUCTNAME">GTK_RUN_NO_HOOKS</span>              means that emission hooks are not allowed (you can't              monitor this signal for an entire object type, only              for particular object instances). It is used for              <span class="STRUCTNAME">GtkObject</span>'s <span              class="SYMBOL">"destroy"</span> signal because hooks              are not invoked on objects with the <span class=               "STRUCTNAME">GTK_DESTROYED</span> flag set and that              flag is set before emitting <span class="SYMBOL">              "destroy"</span>. It's probably not good for anything              else. &#13;            </p>          </li>        </ul>        <p>          The last few arguments to <tt class="FUNCTION">          gtk_signal_new()</tt> provide a <i class="FIRSTTERM">          marshaller</i>, and tell GTK+ the marshaller's type. A          marshaller invokes a callback function, based on an array          of <span class="STRUCTNAME">GtkArg</span> it receives          from GTK+. Marshallers are needed because C function          argument lists cannot be constructed at runtime. GTK+          comes with a number of prewritten marshallers; here is          the one used for all <tt class="CLASSNAME">GtkButton</tt>          signals:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;typedef void (*GtkSignal_NONE__NONE) (GtkObject* object,                                      gpointer user_data);void gtk_marshal_NONE__NONE (GtkObject * object,                        GtkSignalFunc func,                        gpointer func_data,                        GtkArg * args){  GtkSignal_NONE__NONE rfunc;  rfunc = (GtkSignal_NONE__NONE) func;  (*rfunc) (object,            func_data);}&#13;</pre>            </td>          </tr>        </table>        <p>          As you can see, the <span class="STRUCTNAME">          NONE__NONE</span> refers to the fact that the expected          callback type returns no value and has no "special"          arguments. GTK+ automatically passes the object emitting          the signal and a <span class="STRUCTNAME">          user_data</span> field to all callbacks; special signal          arguments are inserted in between these two. Since there          are no signal-specific arguments in this case, the array          of <span class="STRUCTNAME">GtkArg</span> is ignored.        </p>        <p>          The naming convention for marshallers places a double          underscore between the return value and the special          arguments, if any. Here's a more complex example:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;typedef gint (*GtkSignal_INT__POINTER) (GtkObject * object,                                        gpointer arg1,                                        gpointer user_data);void gtk_marshal_INT__POINTER (GtkObject * object,                          GtkSignalFunc func,                          gpointer func_data,                          GtkArg * args){  GtkSignal_INT__POINTER rfunc;  gint *return_val;  return_val = GTK_RETLOC_INT (args[1]);  rfunc = (GtkSignal_INT__POINTER) func;  *return_val = (*rfunc) (object,                          GTK_VALUE_POINTER (args[0]),                          func_data);}&#13;</pre>            </td>          </tr>        </table>        <p>          Notice that the last element of the array of <span class=           "STRUCTNAME">GtkArg</span> is a space for the return          value; if there is no return value, this element will          have type <span class="STRUCTNAME">GTK_TYPE_NONE</span>          and can be ignored. GTK+ provides macros such as <tt          class="FUNCTION">GTK_RETLOC_INT()</tt> to extract a          "return location" from a <span class="STRUCTNAME">          GtkArg</span>. Similar <span class="STRUCTNAME">          GTK_RETLOC_</span> macros exist for all the fundamental          types.        </p>        <p>          The function pointer signatures in the class structure          for an object will correspond to the type of the signal.          This is a convenient way to find out what signature the          callbacks connected to a signal should have, if the GTK+          header files are readily available on your system.        </p>        <p>          The last arguments to <tt class="FUNCTION">          gtk_signal_new()</tt> give the type of the signal's          marshaller. First a return value type is given, then the          number of special arguments, then a variable argument          list containing that many <span class="STRUCTNAME">          GtkType</span> values in the appropriate order. Since <tt          class="CLASSNAME">GtkButton</tt> has no examples of          signals with arguments, here is one from <tt class=           "CLASSNAME">GtkWidget</tt>:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;  widget_signals[BUTTON_PRESS_EVENT] =    gtk_signal_new("button_press_event",                   GTK_RUN_LAST,                   object_class-&gt;type,                   GTK_SIGNAL_OFFSET (GtkWidgetClass, button_press_event),                   gtk_marshal_BOOL__POINTER,                   GTK_TYPE_BOOL, 1,                   GTK_TYPE_GDK_EVENT);&#13;</pre>            </td>          </tr>        </table>        <p>          <span class="SYMBOL">"button_press_event"</span> returns          a boolean value, and has a <span class="STRUCTNAME">          GdkEvent*</span> argument. Notice that the marshaller          works with any <span class="STRUCTNAME">          GTK_TYPE_POINTER</span>, but the signal requires the          more-specific boxed type <span class="STRUCTNAME">          GTK_TYPE_GDK_EVENT</span>, allowing language bindings to          query the correct <i class="EMPHASIS">kind</i> of          pointer.        </p>        <p>          Signals can have many arguments; here is one from <tt          class="CLASSNAME">GtkCList</tt>:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;  clist_signals[SELECT_ROW] =    gtk_signal_new ("select_row",                    GTK_RUN_FIRST,                    object_class-&gt;type,                    GTK_SIGNAL_OFFSET (GtkCListClass, select_row),                    gtk_marshal_NONE__INT_INT_POINTER,                    GTK_TYPE_NONE, 3,                    GTK_TYPE_INT,                    GTK_TYPE_INT,                    GTK_TYPE_GDK_EVENT);&#13;</pre>            </td>          </tr>        </table>        <p>          The <span class="SYMBOL">"select_row"</span> signal          returns no value, but has three arguments (the selected          row and column number, and the event that caused the          selection).        </p>      </div>      <div class="SECT2">        <h2 class="SECT2">          <a name="Z110">Using Existing Signals</a>        </h2>        <p>          <a href="z109.html#FL-USINGSIGNALS">Figure 4</a> shows          the wide array of functions available for manipulating          signals. You should already be familiar with the most          fundamental signal operation: connecting a signal handler          to be invoked when the signal is emitted, like this:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;  gtk_signal_connect(GTK_OBJECT(window),                     "delete_event",                     GTK_SIGNAL_FUNC(delete_event_cb),                     NULL);  gtk_signal_connect(GTK_OBJECT(button),                     "clicked",                     GTK_SIGNAL_FUNC(button_click_cb),                     label);&#13;</pre>            </td>          </tr>        </table>        <p>          You may not be aware that <tt class="FUNCTION">          gtk_signal_connect()</tt> returns a "handler ID" which          can be used to refer to the connection it creates. Using          the handler ID, you can unregister the callback with <tt          class="FUNCTION">gtk_signal_disconnect()</tt>. You can          also temporarily "block" the callback by calling <tt          class="FUNCTION">gtk_signal_handler_block()</tt>. This          increments a "block count"; the callback will not be          invoked until the block count returns to <tt class=           "APPLICATION">0</tt>. <tt class="FUNCTION">          gtk_signal_handler_unblock()</tt> decrements the block          count. Both <tt class="FUNCTION">          gtk_signal_disconnect()</tt> and <tt class="FUNCTION">          gtk_signal_handler_unblock()</tt> have variants that          search for the handler ID given a callback function or          user data pointer; these are possibly more convenient,          with some loss of efficiency.        </p>        <p>          It can be useful to block signal handlers if you'll be          changing some aspect of an object yourself, and thus          don't need to run the callbacks you use to respond to          user actions. For example, you normally change some          boolean variable if the user clicks a toggle button, in a          callback to the <span class="SYMBOL">"toggled"</span>          signal. If you update the toggle button programmatically          because the flag was changed via some mechanism other          than the button, <span class="SYMBOL">"toggled"</span>          will still be emitted; but you want to block your          callback, since the flag is already correct.        </p>        <p>          <tt class="FUNCTION">gtk_signal_connect()</tt> is not the          only way to connect to a signal. You can also use <tt          class="FUNCTION">gtk_signal_connect_object()</tt>; this          simply swaps the signal-emitting object pointer and the          user data pointer in the arguments passed to the          callback. Normally, the object comes first, then any          arguments unique to the signal, and finally the user data          pointer; with <tt class="FUNCTION">          gtk_signal_connect_object()</tt>, the object is last and          user data is first. This function is useful when you want          to use a pre-existing function as a callback without          writing a wrapper to move its arguments. For example:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;  gtk_signal_connect_object(GTK_OBJECT(button),                            "clicked",                            GTK_SIGNAL_FUNC(gtk_widget_destroy),                            GTK_OBJECT(dialog));&#13;</pre>            </td>          </tr>        </table>        <p>          Because the user data and the button are swapped, the          first argument to <tt class="FUNCTION">          gtk_widget_destroy()</tt> will be the dialog rather than          the button, closing the dialog. When using <tt class=           "FUNCTION">gtk_signal_connect_object()</tt>, your          callback data must be a <span class="STRUCTNAME">          GtkObject</span> to avoid confusing marshallers that          expect an object as their first argument.        </p>        <p>          <tt class="FUNCTION">gtk_signal_connect_after()</tt> asks          GTK+ to run the callback after the object's default          signal handler, rather than before it. This only works          with certain signals, those with the <span class=           "STRUCTNAME">GTK_RUN_LAST</span> flag set; <a href=           "z109.html#SEC-ADDINGSIGNAL">the section called <i>Adding          a New Signal</i></a> explains this flag.        </p>        <p>          <tt class="FUNCTION">          gtk_signal_connect_object_after()</tt> combines the          effects of <tt class="FUNCTION">          gtk_signal_connect_object()</tt> and <tt class=          "FUNCTION">gtk_signal_connect_after()</tt>.        </p>        <p>          <tt class="FUNCTION">gtk_signal_connect_full()</tt> gives          you complete control over the connection and is mostly          useful in language bindings. The <span class=          "STRUCTNAME">object_signal</span> and <span class=           "STRUCTNAME">after</span> arguments can be <span class=           "STRUCTNAME">TRUE</span> or <span class="STRUCTNAME">          FALSE</span>, toggling argument order and time of          callback invocation. The functions we just mentioned also          let you change this, so <tt class="FUNCTION">          gtk_signal_connect_full()</tt> adds little. Its unique          features are the ability to specify a callback          marshaller, and the ability to specify a <span class=           "STRUCTNAME">GtkDestroyNotify</span> function. Notice          that <tt class="FUNCTION">gtk_signal_connect_full()</tt>          does not expect the same kind of marshaller described in          <a href="z109.html#SEC-ADDINGSIGNAL">the section called          <i>Adding a New Signal</i></a>; it expects a more general          marshaller appropriate for marshalling functions written          in languages other than C. If you give a non-<span class=           "STRUCTNAME">NULL</span><span class=          "STRUCTNAME">GtkDestroyNotify</span> function, it will be          invoked on the user data pointer when this handler is          disconnected or the <span class="STRUCTNAME">          GtkObject</span> is destroyed. Here is the proper          signature for the function:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;  typedef void (*GtkDestroyNotify)   (gpointer   data);&#13;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美zozo另类异族| 波多野结衣视频一区| 国产一区在线视频| 91原创在线视频| 日韩丝袜情趣美女图片| 亚洲视频在线观看一区| 久久99精品久久久久| 91精品办公室少妇高潮对白| 久久夜色精品国产欧美乱极品| 一片黄亚洲嫩模| 成人午夜av电影| 久久久久久99精品| 免费观看成人鲁鲁鲁鲁鲁视频| 一本在线高清不卡dvd| 国产午夜精品福利| 国产又粗又猛又爽又黄91精品| 777午夜精品视频在线播放| 中文字幕一区二| 成人小视频免费在线观看| 欧美一卡二卡在线| 日韩av电影免费观看高清完整版 | 久久日一线二线三线suv| 亚洲综合免费观看高清完整版在线| 成人综合在线观看| 国产午夜三级一区二区三| 麻豆国产欧美一区二区三区| 在线播放欧美女士性生活| 亚洲在线观看免费视频| 色婷婷久久久综合中文字幕 | 国产精品黄色在线观看| 国产一区二区三区久久久| 欧美一级理论性理论a| 偷拍一区二区三区| 555www色欧美视频| 蜜桃免费网站一区二区三区| 欧美一区二区大片| 韩国女主播一区二区三区| 久久午夜羞羞影院免费观看| 精品一区二区在线观看| 精品国产91洋老外米糕| 国产乱淫av一区二区三区| 国产亚洲欧洲997久久综合| 国产成人免费视频| 亚洲六月丁香色婷婷综合久久| 色播五月激情综合网| 亚洲国产日韩a在线播放| 欧美性感一类影片在线播放| 亚洲成人av资源| 欧美精品一区二区三区蜜桃 | 精品卡一卡二卡三卡四在线| 久久精品国产亚洲高清剧情介绍| 精品久久久久久久久久久久久久久| 韩国v欧美v日本v亚洲v| 国产精品美女一区二区三区 | 亚洲成人免费电影| 亚洲午夜精品久久久久久久久| 欧美日韩一区二区三区高清| 日韩福利视频网| 中文字幕成人网| 69堂成人精品免费视频| 国产中文字幕一区| 亚洲欧美日韩一区二区| 欧美乱妇一区二区三区不卡视频| 精品一区二区三区在线播放视频| 日本一区二区三区在线不卡| 欧美影视一区在线| 国产a级毛片一区| 亚洲午夜羞羞片| 国产亚洲欧美色| 91精品欧美久久久久久动漫| 国产福利一区二区| 视频一区二区国产| 国产精品久久久久三级| 欧美一区二区视频在线观看| 成人精品小蝌蚪| 麻豆91在线观看| 亚洲欧美aⅴ...| 久久精品一区二区三区四区| 91国产视频在线观看| 国内偷窥港台综合视频在线播放| 亚洲精品亚洲人成人网| 久久色在线观看| 日韩欧美一级特黄在线播放| 在线国产电影不卡| 成人激情免费网站| 激情伊人五月天久久综合| 一区二区三区在线影院| 久久久久国产精品麻豆| 555夜色666亚洲国产免| 日本久久精品电影| av在线一区二区三区| 国产精品亚洲一区二区三区妖精| 免费高清在线一区| 午夜亚洲国产au精品一区二区| 中文字幕一区二区不卡| 国产日韩精品一区二区三区| 日韩一区二区三区精品视频| 欧美系列在线观看| 一本一道综合狠狠老| av一区二区三区四区| 国产91综合网| 粉嫩一区二区三区在线看| 国产主播一区二区| 精品一区二区三区免费观看| 天使萌一区二区三区免费观看| 樱花草国产18久久久久| 亚洲色图在线看| 亚洲精品免费一二三区| **欧美大码日韩| 亚洲免费视频成人| 一区二区三区免费在线观看| 国产精品盗摄一区二区三区| 国产亚洲精品久| 中文字幕成人网| 亚洲欧洲国产日韩| 综合分类小说区另类春色亚洲小说欧美 | 精品国产一区二区三区四区四| 欧美日韩精品三区| 6080午夜不卡| 日韩精品一区二| 久久久午夜精品| 国产精品久久久久7777按摩 | 91在线国产福利| 色偷偷久久一区二区三区| a亚洲天堂av| 欧美无砖砖区免费| 欧美一区二区三区系列电影| 欧美一区二区三区视频在线观看 | 久久狠狠亚洲综合| 国产91精品精华液一区二区三区| 丁香激情综合五月| 色噜噜狠狠色综合欧洲selulu| 欧美亚洲一区二区在线| 91麻豆精品国产| 国产婷婷色一区二区三区| 国产精品国产a| 亚洲伦理在线精品| 免费看日韩精品| 成人美女视频在线观看| 99热精品一区二区| 欧美精品乱码久久久久久| 日韩欧美久久久| 中文字幕日本不卡| 午夜视频一区二区| 国产福利91精品| 欧美性三三影院| 久久夜色精品国产欧美乱极品| 一区精品在线播放| 亚洲大片精品永久免费| 国产一区二三区| 欧美天堂亚洲电影院在线播放| 日韩视频在线你懂得| 国产精品天美传媒| 日韩高清国产一区在线| 丁香激情综合国产| 欧美一区二区黄色| 国产精品国产三级国产a| 偷窥少妇高潮呻吟av久久免费| 成熟亚洲日本毛茸茸凸凹| 欧美日韩在线播放一区| 久久蜜桃av一区二区天堂| 1区2区3区欧美| 国产一区二区三区视频在线播放| 在线精品视频免费观看| 2024国产精品| 亚洲一区二区中文在线| 国产高清在线观看免费不卡| 欧美日韩国产综合一区二区| 国产日产欧产精品推荐色| 免费观看在线色综合| 色噜噜久久综合| 欧美国产日韩精品免费观看| 五月激情丁香一区二区三区| 不卡大黄网站免费看| 精品久久久久久久久久久久久久久 | 婷婷久久综合九色国产成人| 成人sese在线| 久久久一区二区三区| 日日摸夜夜添夜夜添精品视频| 99久久婷婷国产| 中文字幕免费在线观看视频一区| 蜜桃av一区二区在线观看| 在线视频观看一区| 亚洲人午夜精品天堂一二香蕉| 国产精品99久久久久久久女警| 欧美一级视频精品观看| 亚洲www啪成人一区二区麻豆| 91视频你懂的| 亚洲视频资源在线| 成人app在线观看| 国产婷婷色一区二区三区四区| 激情欧美一区二区| 精品久久久久久久久久久院品网| 日韩黄色一级片| 欧美男男青年gay1069videost| 亚洲乱码国产乱码精品精小说| 99国产欧美另类久久久精品| 国产精品视频第一区| 粉嫩av一区二区三区粉嫩| 久久久久国产一区二区三区四区 |