37 #define GNT_TYPE_WM (gnt_wm_get_gtype()) 38 #define GNT_WM(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_WM, GntWM)) 39 #define GNT_WM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_WM, GntWMClass)) 40 #define GNT_IS_WM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_WM)) 41 #define GNT_IS_WM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_WM)) 42 #define GNT_WM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_WM, GntWMClass)) 44 typedef enum _GntKeyPressMode
49 GNT_KP_MODE_WAIT_ON_CHILD
62 typedef struct _GntWM GntWM;
76 void (*callback)(void);
97 GHashTable *name_places;
98 GHashTable *title_places;
117 GntKeyPressMode mode;
119 GHashTable *positions;
134 void (*new_window)(GntWM *wm,
GntWidget *win);
136 void (*decorate_window)(GntWM *wm,
GntWidget *win);
138 gboolean (*close_window)(GntWM *wm,
GntWidget *win);
141 gboolean (*window_resize_confirm)(GntWM *wm,
GntWidget *win,
int *w,
int *h);
143 void (*window_resized)(GntWM *wm,
GntNode *node);
146 gboolean (*window_move_confirm)(GntWM *wm,
GntWidget *win,
int *x,
int *y);
148 void (*window_moved)(GntWM *wm,
GntNode *node);
154 void (*window_update)(GntWM *wm,
GntNode *node);
161 gboolean (*key_pressed)(GntWM *wm,
const char *key);
163 gboolean (*mouse_clicked)(GntWM *wm, GntMouseEvent event,
int x,
int y,
GntWidget *widget);
166 void (*give_focus)(GntWM *wm,
GntWidget *widget);
177 void (*terminal_refresh)(GntWM *wm);
321 void gnt_wm_set_event_stack(GntWM *wm, gboolean
set);
void gnt_wm_add_workspace(GntWM *wm, GntWS *ws)
Add a workspace.
void gnt_wm_raise_window(GntWM *wm, GntWidget *widget)
Raise a window.
void gnt_wm_move_window(GntWM *wm, GntWidget *widget, int x, int y)
Move a window.
gboolean gnt_wm_switch_workspace_prev(GntWM *wm)
Switch to the previous workspace from the current one.
GntWS * gnt_wm_widget_find_workspace(GntWM *wm, GntWidget *widget)
Find the workspace that contains a specific widget.
void gnt_wm_new_window(GntWM *wm, GntWidget *widget)
Process a new window.
time_t gnt_wm_get_idle_time(void)
GntMenu * menu
There can be at most one menu at a time on the screen.
void gnt_wm_window_close(GntWM *wm, GntWidget *widget)
Close a window.
An application can register actions which will show up in a 'start-menu' like popup.
gboolean gnt_wm_process_click(GntWM *wm, GntMouseEvent event, int x, int y, GntWidget *widget)
Process a click event.
gboolean gnt_wm_process_input(GntWM *wm, const char *string)
Process input.
G_BEGIN_DECLS GType gnt_wm_get_gtype(void)
gboolean gnt_wm_switch_workspace(GntWM *wm, gint n)
Switch to a workspace.
void gnt_wm_widget_move_workspace(GntWM *wm, GntWS *neww, GntWidget *widget)
Move a window to a specific workspace.
void gnt_wm_set_workspaces(GntWM *wm, GList *workspaces)
Set the list of workspaces .
struct _GntAction GntAction
An application can register actions which will show up in a 'start-menu' like popup.
void gnt_wm_window_decorate(GntWM *wm, GntWidget *widget)
Decorate a window.
void gnt_wm_update_window(GntWM *wm, GntWidget *widget)
Update a window.
gboolean gnt_wm_switch_workspace_next(GntWM *wm)
Switch to the next workspace from the current one.
void gnt_wm_resize_window(GntWM *wm, GntWidget *widget, int width, int height)
Resize a window.
gboolean event_stack
'event_stack' will be set to TRUE when a user-event, ie.