close

GTK 如何傳遞signal  ?

GTK透過GDK來處理事件,GDK會將每個接受到的XEvent轉換為GdkEvent,然後傳播給GtkWidget,引發一個與事件相對應的事件Signal,再透過Callback函式處理事件。

from 良葛格GTK學習筆記 GDK 事件結構



In the X Window System core protocol, only four kinds of packets are sent, asynchronously, over the network: requests, replies, events, and errors.

from wiki : X Window System core protocol

Xlib is an X Window System protocol client library in the C programming language. It contains functions for interacting with an X server. These functions allow programmers to write programs without knowing the details of the protocol.

from wiki : Xlib




還不太能講清楚說明白的東西 @@
先暫存一下 持續補筆記

arrow
arrow
    全站熱搜

    tttt 發表在 痞客邦 留言(0) 人氣()