summaryrefslogtreecommitdiff
path: root/src/api.h
diff options
context:
space:
mode:
authorrhp <rhp>2001-06-03 18:33:59 +0000
committerrhp <rhp>2001-06-03 18:33:59 +0000
commit4ae250ae97ca0a6c549e80490884b7c2225df2c6 (patch)
tree650afee3ab049d6100e3ee730df5a93b35cc22f4 /src/api.h
parent11fde3a11a88d8e13d6e6c99d8012c60b8ad6547 (diff)
downloadmetacity-4ae250ae97ca0a6c549e80490884b7c2225df2c6.tar.gz
metacity-4ae250ae97ca0a6c549e80490884b7c2225df2c6.tar.bz2
...
Diffstat (limited to 'src/api.h')
-rw-r--r--src/api.h36
1 files changed, 31 insertions, 5 deletions
diff --git a/src/api.h b/src/api.h
index 752f4bd..d2fa9c0 100644
--- a/src/api.h
+++ b/src/api.h
@@ -28,10 +28,36 @@
#include <X11/Xlib.h>
#include <pango/pangox.h>
-PangoContext* meta_get_pango_context (Screen *xscreen,
- const PangoFontDescription *desc,
- Window frame);
-gulong meta_get_x_pixel (Screen *xscreen,
- const PangoColor *color);
+/* Colors/state stuff matches GTK since we get the info from
+ * the GTK UI slave
+ */
+typedef struct _MetaUIColors MetaUIColors;
+
+typedef enum
+{
+ META_STATE_NORMAL,
+ META_STATE_ACTIVE,
+ META_STATE_PRELIGHT,
+ META_STATE_SELECTED,
+ META_STATE_INSENSITIVE
+} MetaUIState;
+
+struct _MetaUIColors
+{
+ PangoColor fg[5];
+ PangoColor bg[5];
+ PangoColor light[5];
+ PangoColor dark[5];
+ PangoColor mid[5];
+ PangoColor text[5];
+ PangoColor base[5];
+ PangoColor text_aa[5];
+};
+
+PangoContext* meta_get_pango_context (Screen *xscreen,
+ const PangoFontDescription *desc,
+ Window frame);
+gulong meta_get_x_pixel (Screen *xscreen,
+ const PangoColor *color);
#endif