[gtk+/css-fixes: 3/8] Add GtkCssArea enum
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/css-fixes: 3/8] Add GtkCssArea enum
- Date: Thu, 24 Nov 2011 21:12:47 +0000 (UTC)
commit ff51debb044fe814bb7d16528828e4ba1bdbe795
Author: Alexander Larsson <alexl redhat com>
Date: Thu Nov 24 20:57:02 2011 +0100
Add GtkCssArea enum
This will be used for background-clip and background-origin css properties.
gtk/gtkenums.h | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h
index 7045f92..45024a7 100644
--- a/gtk/gtkenums.h
+++ b/gtk/gtkenums.h
@@ -920,6 +920,26 @@ typedef enum {
GTK_BORDER_STYLE_OUTSET
} GtkBorderStyle;
+/**
+ * GtkCssArea:
+ * @GTK_CSS_AREA_BORDER_BOX: The border-box area
+ * @GTK_CSS_AREA_PADDING_BOX: The padding-box area
+ * @GTK_CSS_AREA_CONTENT_BOX: The content area
+ *
+ * Describes a region of a CSS box model. The border region includes the
+ * area of the border (sans margins and rounded corners), the padding is
+ * inside the border, and content is inside the padding area.
+ *
+ * This is used in e.g. background-clip and background-origin in CSS.
+ *
+ * Since: 3.4
+ */
+typedef enum {
+ GTK_CSS_AREA_BORDER_BOX,
+ GTK_CSS_AREA_PADDING_BOX,
+ GTK_CSS_AREA_CONTENT_BOX
+} GtkCssArea;
+
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]