summaryrefslogtreecommitdiff
path: root/libmetacity/meta-draw-spec-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmetacity/meta-draw-spec-private.h')
-rw-r--r--libmetacity/meta-draw-spec-private.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/libmetacity/meta-draw-spec-private.h b/libmetacity/meta-draw-spec-private.h
new file mode 100644
index 00000000..5a36dfc8
--- /dev/null
+++ b/libmetacity/meta-draw-spec-private.h
@@ -0,0 +1,73 @@
+/*
+ * 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_DRAW_SPEC_PRIVATE_H
+#define META_DRAW_SPEC_PRIVATE_H
+
+#include <gdk/gdk.h>
+
+G_BEGIN_DECLS
+
+typedef struct _MetaDrawSpec MetaDrawSpec;
+typedef struct _MetaThemeMetacity MetaThemeMetacity;
+typedef struct _MetaPositionExprEnv MetaPositionExprEnv;
+
+struct _MetaPositionExprEnv
+{
+ GdkRectangle rect;
+ /* size of an object being drawn, if it has a natural size */
+ int object_width;
+ int object_height;
+ /* global object sizes, always available */
+ int left_width;
+ int right_width;
+ int top_height;
+ int bottom_height;
+ int title_width;
+ int title_height;
+ int frame_x_center;
+ int frame_y_center;
+ int mini_icon_width;
+ int mini_icon_height;
+ int icon_width;
+ int icon_height;
+};
+
+G_GNUC_INTERNAL
+MetaDrawSpec *meta_draw_spec_new (MetaThemeMetacity *metacity,
+ const char *expr,
+ GError **error);
+
+G_GNUC_INTERNAL
+void meta_draw_spec_free (MetaDrawSpec *spec);
+
+G_GNUC_INTERNAL
+gint meta_draw_spec_parse_x_position (MetaDrawSpec *spec,
+ const MetaPositionExprEnv *env);
+
+G_GNUC_INTERNAL
+gint meta_draw_spec_parse_y_position (MetaDrawSpec *spec,
+ const MetaPositionExprEnv *env);
+
+G_GNUC_INTERNAL
+gint meta_draw_spec_parse_size (MetaDrawSpec *spec,
+ const MetaPositionExprEnv *env);
+
+G_END_DECLS
+
+#endif