summaryrefslogtreecommitdiff
path: root/libmetacity/meta-style-info-private.h
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-02-07 22:32:14 +0200
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-02-07 22:32:14 +0200
commit7c2c303d082faa1c010de83deb967992c008985e (patch)
tree751065aba32cc48a2e92bd2cbf12115abac6b47b /libmetacity/meta-style-info-private.h
parentc6b586dc2906a2d5e8ed1962ba5a654921670395 (diff)
downloadmetacity-7c2c303d082faa1c010de83deb967992c008985e.tar.gz
libmetacity: don't expose MetaStyleInfo
Diffstat (limited to 'libmetacity/meta-style-info-private.h')
-rw-r--r--libmetacity/meta-style-info-private.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/libmetacity/meta-style-info-private.h b/libmetacity/meta-style-info-private.h
new file mode 100644
index 00000000..7f4a7b08
--- /dev/null
+++ b/libmetacity/meta-style-info-private.h
@@ -0,0 +1,61 @@
+/*
+ * Copyright (C) 2001 Havoc Pennington
+ * Copyright (C) 2016 Alberts Muktupāvels
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef META_STYLE_INFO_PRIVATE_H
+#define META_STYLE_INFO_PRIVATE_H
+
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+typedef enum
+{
+ META_STYLE_ELEMENT_WINDOW,
+ META_STYLE_ELEMENT_DECORATION,
+ META_STYLE_ELEMENT_TITLEBAR,
+ META_STYLE_ELEMENT_TITLE,
+ META_STYLE_ELEMENT_BUTTON,
+ META_STYLE_ELEMENT_IMAGE,
+ META_STYLE_ELEMENT_LAST
+} MetaStyleElement;
+
+typedef struct
+{
+ int refcount;
+
+ GtkStyleContext *styles[META_STYLE_ELEMENT_LAST];
+} MetaStyleInfo;
+
+G_GNUC_INTERNAL
+MetaStyleInfo *meta_style_info_new (const gchar *theme_name,
+ const gchar *variant,
+ gboolean composited);
+
+G_GNUC_INTERNAL
+MetaStyleInfo *meta_style_info_ref (MetaStyleInfo *style_info);
+
+G_GNUC_INTERNAL
+void meta_style_info_unref (MetaStyleInfo *style_info);
+
+G_GNUC_INTERNAL
+void meta_style_info_set_flags (MetaStyleInfo *style_info,
+ MetaFrameFlags flags);
+
+G_END_DECLS
+
+#endif