메인 콘텐츠로 건너뛰기
Knowledgebase
Home
Renesas Korea

How do you define custom events in GUIX?

Latest Updated:10/13/2016

Question:

How do you define custom events in GUIX?

Answer:

You can add custom events within GUIX and define them by using GX_FIRST_APP_EVENT as a starting point. Here is a simple example.

#define APP_EVENT_STATUS_CHANGED (GX_FIRST_APP_EVENT + 1)
#define APP_EVENT_VOLUME_CHANGED (GX_FIRST_APP_EVENT + 2)
#define APP_EVENT_USB_INSERTED   (GX_FIRST_APP_EVENT + 3)
#define APP_EVENT_USB_REMOVED    (GX_FIRST_APP_EVENT + 4)

#define APP_EVENT_ERROR          (GX_FIRST_APP_EVENT + 5)

  • 이 기사가 도움이 되셨나요?