]> Pileus Git - ~andy/gtk/blob - gtk/gtkcsstypesprivate.h
Bug 663856 - Make option-foo accelerators use the right symbol
[~andy/gtk] / gtk / gtkcsstypesprivate.h
1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 2011 Benjamin Otte <otte@gnome.org>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 #ifndef __GTK_CSS_TYPES_PRIVATE_H__
21 #define __GTK_CSS_TYPES_PRIVATE_H__
22
23 #include <glib-object.h>
24
25 G_BEGIN_DECLS
26
27 typedef enum {
28   GTK_CSS_BACKGROUND_REPEAT_STYLE_NONE,
29   GTK_CSS_BACKGROUND_REPEAT_STYLE_REPEAT,
30   GTK_CSS_BACKGROUND_REPEAT_STYLE_NO_REPEAT,
31 } GtkCssBackgroundRepeatStyle;
32
33 typedef enum {
34   GTK_CSS_REPEAT_STYLE_NONE,
35   GTK_CSS_REPEAT_STYLE_REPEAT,
36   GTK_CSS_REPEAT_STYLE_ROUND,
37   GTK_CSS_REPEAT_STYLE_SPACE
38 } GtkCssBorderRepeatStyle;
39
40 typedef struct _GtkCssBackgroundRepeat GtkCssBackgroundRepeat;
41
42 typedef struct _GtkCssBorderCornerRadius GtkCssBorderCornerRadius;
43 typedef struct _GtkCssBorderRadius GtkCssBorderRadius;
44 typedef struct _GtkCssBorderImageRepeat GtkCssBorderImageRepeat;
45
46 struct _GtkCssBackgroundRepeat {
47   /* FIXME: will have vrepeat and hrepeat instead */
48   GtkCssBackgroundRepeatStyle repeat;
49 };
50
51 struct _GtkCssBorderCornerRadius {
52   double horizontal;
53   double vertical;
54 };
55
56 struct _GtkCssBorderRadius {
57   GtkCssBorderCornerRadius top_left;
58   GtkCssBorderCornerRadius top_right;
59   GtkCssBorderCornerRadius bottom_right;
60   GtkCssBorderCornerRadius bottom_left;
61 };
62
63 struct _GtkCssBorderImageRepeat {
64   GtkCssBorderRepeatStyle vrepeat;
65   GtkCssBorderRepeatStyle hrepeat;
66 };
67
68 #define GTK_TYPE_CSS_BACKGROUND_REPEAT _gtk_css_background_repeat_get_type ()
69
70 #define GTK_TYPE_CSS_BORDER_CORNER_RADIUS _gtk_css_border_corner_radius_get_type ()
71 #define GTK_TYPE_CSS_BORDER_RADIUS _gtk_css_border_radius_get_type ()
72 #define GTK_TYPE_CSS_BORDER_IMAGE_REPEAT _gtk_css_border_image_repeat_get_type ()
73
74 GType           _gtk_css_background_repeat_get_type             (void);
75
76 GType           _gtk_css_border_corner_radius_get_type          (void);
77 GType           _gtk_css_border_radius_get_type                 (void);
78 GType           _gtk_css_border_image_repeat_get_type           (void);
79
80 G_END_DECLS
81
82 #endif /* __GTK_CSS_TYPES_PRIVATE_H__ */