diff options
author | Murray Cumming <murrayc@usa.net> | 2003-05-30 18:29:32 +0000 |
---|---|---|
committer | Murray Cumming <murrayc@src.gnome.org> | 2003-05-30 18:29:32 +0000 |
commit | 6006834d46434a2659f5f2b95643afe331baaa16 (patch) | |
tree | 5152493d7daa1abf121b87ff5f7d7ced3b72e97d /gtk/gtkalignment.h | |
parent | 717961aa8c5e9c461341027ebe88eddc9a9b7983 (diff) | |
download | gtk+-6006834d46434a2659f5f2b95643afe331baaa16.tar.gz |
Added 4-sided padding as properties with gtk_alignment_get_padding() and
2003-05-30 Murray Cumming <murrayc@usa.net>
* gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with
gtk_alignment_get_padding() and gtk_aligment_set_padding(). This
uses the new private data system - see g_type_class_add_private() in
gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE().
Diffstat (limited to 'gtk/gtkalignment.h')
-rw-r--r-- | gtk/gtkalignment.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gtkalignment.h b/gtk/gtkalignment.h index 8a06c887bb..8f45fa1214 100644 --- a/gtk/gtkalignment.h +++ b/gtk/gtkalignment.h @@ -43,10 +43,12 @@ extern "C" { #define GTK_IS_ALIGNMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ALIGNMENT)) #define GTK_IS_ALIGNMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ALIGNMENT)) #define GTK_ALIGNMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ALIGNMENT, GtkAlignmentClass)) +#define GTK_ALIGNMENT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GTK_TYPE_ALIGNMENT, GtkAlignmentPrivate)) typedef struct _GtkAlignment GtkAlignment; typedef struct _GtkAlignmentClass GtkAlignmentClass; +typedef struct _GtkAlignmentPrivate GtkAlignmentPrivate; struct _GtkAlignment { @@ -75,6 +77,17 @@ void gtk_alignment_set (GtkAlignment *alignment, gfloat xscale, gfloat yscale); +void gtk_alignment_set_padding (GtkAlignment *alignment, + guint padding_top, + guint padding_bottom, + guint padding_left, + guint padding_right); + +void gtk_alignment_get_padding (GtkAlignment *alignment, + guint *padding_top, + guint *padding_bottom, + guint *padding_left, + guint *padding_right); #ifdef __cplusplus } |