[gtk+/wip/css-background-position: 1/4] css: GtkBackgroundSize type



commit 7873783593ea8b6ae4776ccf3bdab45938202c76
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Mar 16 22:12:20 2012 +0100

    css: GtkBackgroundSize type

 gtk/gtkcsstypes.c        |    1 +
 gtk/gtkcsstypesprivate.h |    8 ++++++++
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcsstypes.c b/gtk/gtkcsstypes.c
index c454fea..508a3db 100644
--- a/gtk/gtkcsstypes.c
+++ b/gtk/gtkcsstypes.c
@@ -31,6 +31,7 @@ type_name ## _copy (const TypeName *foo) \
 G_DEFINE_BOXED_TYPE (TypeName, type_name, type_name ## _copy, g_free)
 
 DEFINE_BOXED_TYPE_WITH_COPY_FUNC (GtkCssBackgroundSize, _gtk_css_background_size)
+DEFINE_BOXED_TYPE_WITH_COPY_FUNC (GtkCssBackgroundPosition, _gtk_css_background_position)
 DEFINE_BOXED_TYPE_WITH_COPY_FUNC (GtkCssBorderCornerRadius, _gtk_css_border_corner_radius)
 DEFINE_BOXED_TYPE_WITH_COPY_FUNC (GtkCssBorderImageRepeat, _gtk_css_border_image_repeat)
 DEFINE_BOXED_TYPE_WITH_COPY_FUNC (GtkCssNumber, _gtk_css_number)
diff --git a/gtk/gtkcsstypesprivate.h b/gtk/gtkcsstypesprivate.h
index d481427..7f23931 100644
--- a/gtk/gtkcsstypesprivate.h
+++ b/gtk/gtkcsstypesprivate.h
@@ -99,6 +99,7 @@ typedef enum /*< skip >*/ {
 
 typedef struct _GtkCssNumber GtkCssNumber;
 typedef struct _GtkCssBackgroundSize GtkCssBackgroundSize;
+typedef struct _GtkCssBackgroundPosition GtkCssBackgroundPosition;
 typedef struct _GtkCssBorderCornerRadius GtkCssBorderCornerRadius;
 typedef struct _GtkCssBorderImageRepeat GtkCssBorderImageRepeat;
 
@@ -114,6 +115,11 @@ struct _GtkCssBackgroundSize {
   guint contain :1;
 };
 
+struct _GtkCssBackgroundPosition {
+  GtkCssNumber x;
+  GtkCssNumber y;
+};
+
 struct _GtkCssBorderCornerRadius {
   GtkCssNumber horizontal;
   GtkCssNumber vertical;
@@ -125,11 +131,13 @@ struct _GtkCssBorderImageRepeat {
 };
 
 #define GTK_TYPE_CSS_BACKGROUND_SIZE _gtk_css_background_size_get_type ()
+#define GTK_TYPE_CSS_BACKGROUND_POSITION _gtk_css_background_position_get_type ()
 #define GTK_TYPE_CSS_BORDER_CORNER_RADIUS _gtk_css_border_corner_radius_get_type ()
 #define GTK_TYPE_CSS_BORDER_IMAGE_REPEAT _gtk_css_border_image_repeat_get_type ()
 #define GTK_TYPE_CSS_NUMBER _gtk_css_number_get_type ()
 
 GType           _gtk_css_background_size_get_type               (void);
+GType           _gtk_css_background_position_get_type           (void);
 GType           _gtk_css_border_corner_radius_get_type          (void);
 GType           _gtk_css_border_image_repeat_get_type           (void);
 GType           _gtk_css_number_get_type                        (void);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]