forked from AuroraMiddleware/gtk
css: GtkBackgroundSize type
This commit is contained in:
parent
dab9517d19
commit
ca07559672
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user