- 论坛徽章:
- 0
|
由于要求开机的时候实现所有GUI程序均最小化,查到:
- void gdk_event_send_clientmessage_toall
- (GdkEvent *event);
- Sends an X ClientMessage event to all toplevel windows on the default GdkScreen.
- Toplevel windows are determined by checking for the WM_STATE property, as described in the Inter-Client Communication Conventions Manual (ICCCM). If no windows are found with the WM_STATE property set, the message is sent to all children of the root window.
- event : the GdkEvent to send, which should be a GdkEventClient.
- union GdkEvent
- {
- GdkEventType type;
- GdkEventAny any;
- GdkEventExpose expose;
- GdkEventNoExpose no_expose;
- GdkEventVisibility visibility;
- GdkEventMotion motion;
- GdkEventButton button;
- GdkEventScroll scroll;
- GdkEventKey key;
- GdkEventCrossing crossing;
- GdkEventFocus focus_change;
- GdkEventConfigure configure;
- GdkEventProperty property;
- GdkEventSelection selection;
- GdkEventOwnerChange owner_change;
- GdkEventProximity proximity;
- GdkEventClient client;
- GdkEventDND dnd;
- GdkEventWindowState window_state;
- GdkEventSetting setting;
- GdkEventGrabBroken grab_broken;
- };
- typedef struct {
- GdkEventType type;
- GdkWindow *window;
- gint8 send_event;
- GdkWindowState changed_mask;
- GdkWindowState new_window_state;
- } GdkEventWindowState;
复制代码
但是GdkWindowState只有
- typedef enum
- {
- GDK_WINDOW_STATE_WITHDRAWN = 1 << 0,
- GDK_WINDOW_STATE_ICONIFIED = 1 << 1,
- GDK_WINDOW_STATE_MAXIMIZED = 1 << 2,
- GDK_WINDOW_STATE_STICKY = 1 << 3,
- GDK_WINDOW_STATE_FULLSCREEN = 1 << 4,
- GDK_WINDOW_STATE_ABOVE = 1 << 5,
- GDK_WINDOW_STATE_BELOW = 1 << 6
- } GdkWindowState;
复制代码
没有MINIMIZE,不知道用这个函数能否实现最小化所有GUI应用程序?开机最小化所有GUI程序有没有更好的方法?谢谢 |
|