blob: c2c201cf382150e0e2c25fe7e97a5416f3b7c231 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
/* vim: set ts=8 sw=8 noexpandtab: */
/* The Gtk+ CSS Drawing Library.
* Copyright (C) 2008 Robert Staudinger
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#ifndef CCSS_GTK_PROPERTY_H
#define CCSS_GTK_PROPERTY_H
#ifndef CCSS_GTK_H
#ifndef CCSS_GTK_BUILD
#error "Only <ccss-gtk/ccss-gtk.h> can be included directly."
#endif
#endif
#include <ccss-cairo/ccss-cairo.h>
#include <gtk/gtk.h>
typedef struct {
ccss_property_base_t base;
char *class_name;
char *property_name;
GType gtype;
union {
gboolean gboolean_val;
gchararray gchararray_val;
gfloat gfloat_val;
gint gint_val;
guchar guchar_val;
GdkColor gdkcolor_val;
GtkBorder gtkborder_val;
GtkReliefStyle gtkreliefstyle_val;
GtkRequisition gtkrequisition_val;
GtkShadowType gtkshadowtype_val;
GtkToolbarSpaceStyle gtktoolbarspacestyle_val;
} content;
} ccss_gtk_property_t;
bool
ccss_gtk_property_is_style_property (ccss_property_base_t const *self);
ccss_property_class_t const *
ccss_gtk_property_get_property_classes (void);
void
ccss_gtk_property_set_fallback_class (ccss_property_class_t const *property_class);
#endif /* CCSS_GTK_PROPERTY_H */
|