| 45 #define GNT_WINDOW_UNSET_FLAGS(obj, flags) (GNT_WINDOW_FLAGS(obj) &= ~(flags)) |
45 #define GNT_WINDOW_UNSET_FLAGS(obj, flags) (GNT_WINDOW_FLAGS(obj) &= ~(flags)) |
| 46 |
46 |
| 47 typedef struct _GntWindow GntWindow; |
47 typedef struct _GntWindow GntWindow; |
| 48 typedef struct _GntWindowPriv GntWindowPriv; |
48 typedef struct _GntWindowPriv GntWindowPriv; |
| 49 typedef struct _GntWindowClass GntWindowClass; |
49 typedef struct _GntWindowClass GntWindowClass; |
| |
50 |
| |
51 typedef enum |
| |
52 { |
| |
53 GNT_WINDOW_MAXIMIZE_X = 1 << 0, |
| |
54 GNT_WINDOW_MAXIMIZE_Y = 1 << 1, |
| |
55 } GntWindowFlags; |
| 50 |
56 |
| 51 struct _GntWindow |
57 struct _GntWindow |
| 52 { |
58 { |
| 53 GntBox parent; |
59 GntBox parent; |
| 54 GntMenu *menu; |
60 GntMenu *menu; |
| 110 * |
116 * |
| 111 * @since 2.3.0 |
117 * @since 2.3.0 |
| 112 */ |
118 */ |
| 113 const char * gnt_window_get_accel_item(GntWindow *window, const char *key); |
119 const char * gnt_window_get_accel_item(GntWindow *window, const char *key); |
| 114 |
120 |
| |
121 /** |
| |
122 * Maximize a window, either horizontally or vertically, or both. |
| |
123 * |
| |
124 * @param window The window to maximize. |
| |
125 * @param maximize The maximization state of the window. |
| |
126 * |
| |
127 * @since 2.3.0 |
| |
128 */ |
| |
129 void gnt_window_set_maximize(GntWindow *window, GntWindowFlags maximize); |
| |
130 |
| |
131 /** |
| |
132 * Get the maximization state of a window. |
| |
133 * |
| |
134 * @param window The window. |
| |
135 * |
| |
136 * @return The maximization state of the window. |
| |
137 * |
| |
138 * @since 2.3.0 |
| |
139 */ |
| |
140 GntWindowFlags gnt_window_get_maximize(GntWindow *window); |
| |
141 |
| 115 void gnt_window_workspace_hiding(GntWindow *); |
142 void gnt_window_workspace_hiding(GntWindow *); |
| 116 void gnt_window_workspace_showing(GntWindow *); |
143 void gnt_window_workspace_showing(GntWindow *); |
| 117 |
144 |
| 118 G_END_DECLS |
145 G_END_DECLS |
| 119 |
146 |