Mercurial > pidgin
diff finch/libgnt/gntwindow.h @ 21454:d78e440584e0
Add maximize flags for windows.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 12 Nov 2007 17:13:44 +0000 |
parents | 6de09629f091 |
children |
line wrap: on
line diff
--- a/finch/libgnt/gntwindow.h Mon Nov 12 16:53:54 2007 +0000 +++ b/finch/libgnt/gntwindow.h Mon Nov 12 17:13:44 2007 +0000 @@ -48,6 +48,12 @@ typedef struct _GntWindowPriv GntWindowPriv; typedef struct _GntWindowClass GntWindowClass; +typedef enum +{ + GNT_WINDOW_MAXIMIZE_X = 1 << 0, + GNT_WINDOW_MAXIMIZE_Y = 1 << 1, +} GntWindowFlags; + struct _GntWindow { GntBox parent; @@ -112,6 +118,27 @@ */ const char * gnt_window_get_accel_item(GntWindow *window, const char *key); +/** + * Maximize a window, either horizontally or vertically, or both. + * + * @param window The window to maximize. + * @param maximize The maximization state of the window. + * + * @since 2.3.0 + */ +void gnt_window_set_maximize(GntWindow *window, GntWindowFlags maximize); + +/** + * Get the maximization state of a window. + * + * @param window The window. + * + * @return The maximization state of the window. + * + * @since 2.3.0 + */ +GntWindowFlags gnt_window_get_maximize(GntWindow *window); + void gnt_window_workspace_hiding(GntWindow *); void gnt_window_workspace_showing(GntWindow *);