Window API.
More...
#include "gnt.h"
#include "gntbox.h"
#include "gntcolors.h"
#include "gntkeys.h"
#include "gntmenu.h"
Go to the source code of this file.
|
#define | GNT_TYPE_WINDOW (gnt_window_get_gtype()) |
|
#define | GNT_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_WINDOW, GntWindow)) |
|
#define | GNT_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_WINDOW, GntWindowClass)) |
|
#define | GNT_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_WINDOW)) |
|
#define | GNT_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_WINDOW)) |
|
#define | GNT_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_WINDOW, GntWindowClass)) |
|
#define | GNT_WINDOW_FLAGS(obj) (GNT_WINDOW(obj)->priv.flags) |
|
#define | GNT_WINDOW_SET_FLAGS(obj, flags) (GNT_WINDOW_FLAGS(obj) |= flags) |
|
#define | GNT_WINDOW_UNSET_FLAGS(obj, flags) (GNT_WINDOW_FLAGS(obj) &= ~(flags)) |
|
#define | gnt_vwindow_new(homo) gnt_window_box_new(homo, TRUE) |
|
#define | gnt_hwindow_new(homo) gnt_window_box_new(homo, FALSE) |
|
|
typedef struct _GntWindow | GntWindow |
|
typedef struct _GntWindowPriv | GntWindowPriv |
|
typedef struct _GntWindowClass | GntWindowClass |
|
|
enum | GntWindowFlags { GNT_WINDOW_MAXIMIZE_X = 1 << 0,
GNT_WINDOW_MAXIMIZE_Y = 1 << 1
} |
|
Window API.
Definition in file gntwindow.h.
GntWidget* gnt_window_box_new |
( |
gboolean |
homo, |
|
|
gboolean |
vert |
|
) |
| |
Create a new window.
- Parameters
-
homo | TRUE if the widgets inside the window should have the same dimensions. |
vert | TRUE if the widgets inside the window should be stacked vertically. |
- Returns
- The newly created window.
const char* gnt_window_get_accel_item |
( |
GntWindow * |
window, |
|
|
const char * |
key |
|
) |
| |
Return the id of a menuitem specified to a keystroke.
- Parameters
-
window | The window. |
key | The keystroke. |
- Returns
- The id of the menuitem bound to the keystroke, or
NULL
.
- Since
- 2.3.0
G_BEGIN_DECLS GType gnt_window_get_gtype |
( |
void |
| ) |
|
- Returns
- GType for GntWindow.
GntWindowFlags gnt_window_get_maximize |
( |
GntWindow * |
window | ) |
|
Get the maximization state of a window.
- Parameters
-
- Returns
- The maximization state of the window.
- Since
- 2.3.0
Create a new window.
- Returns
- The newly created window.
void gnt_window_set_maximize |
( |
GntWindow * |
window, |
|
|
GntWindowFlags |
maximize |
|
) |
| |
Maximize a window, either horizontally or vertically, or both.
- Parameters
-
window | The window to maximize. |
maximize | The maximization state of the window. |
- Since
- 2.3.0
Set the menu for a window.
- Parameters
-
window | The window. |
menu | The menu for the window. |