GTK+ 2.0 教學-Idle 函式

點閱人數:40次 三月 3rd, 2008 by ㄚ琪 | 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

如果你想在程式空閒時呼叫一個函式怎麼辦?

gint gtk_idle_add( GtkFunction function,
                   gpointer    data );

該函式讓 GTK 在程式空閒時呼叫指定的函式。

void gtk_idle_remove( gint tag );

我不會解釋各參數的意義,它們跟前面的差不多。第一個參數指向的函式會在任何機會出現時被呼叫。和其它函式一樣,傳回 FALSE 停止呼叫 idle 函式。

喜歡這篇文章嗎?請幫這篇加入共用書籤,謝謝:
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Hemidemi
  • MyShare
  • Technorati
  • StumbleUpon
  • Diigo
  • Facebook
  • Twitter

Random Posts

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

One Response to “GTK+ 2.0 教學-Idle 函式”

  1. [...] GTK+ 2.0 教學-Idle 函式 [...]

發表迴響

名稱:(必)
電子郵件位址(並不會被公開)(必)
個人網站


Fatal error: Call to undefined function cbnet_comment_captcha() in /home/job/public_html/wp-content/themes/achi/comments.php on line 84