summaryrefslogtreecommitdiff
path: root/libmetacity/meta-button-private.h
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-08-18 18:54:38 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-08-18 19:05:19 +0300
commit2ee0ffbee0b52cb8fc3112906bea1eaa737559f7 (patch)
tree4b0276b21d5565933cdac49d6a81e8fbe5d4c975 /libmetacity/meta-button-private.h
parentdfa271fab6c2af18e7f0a320062fecb9a2bcb66c (diff)
downloadmetacity-2ee0ffbee0b52cb8fc3112906bea1eaa737559f7.tar.gz
libmetacity: don't expose MetaButton struct
Diffstat (limited to 'libmetacity/meta-button-private.h')
-rw-r--r--libmetacity/meta-button-private.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/libmetacity/meta-button-private.h b/libmetacity/meta-button-private.h
index d6e2ec6d..f849e086 100644
--- a/libmetacity/meta-button-private.h
+++ b/libmetacity/meta-button-private.h
@@ -18,7 +18,7 @@
#ifndef META_BUTTON_PRIVATE_H
#define META_BUTTON_PRIVATE_H
-#include <glib.h>
+#include "meta-button.h"
G_BEGIN_DECLS
@@ -47,6 +47,26 @@ typedef enum
META_BUTTON_FUNCTION_LAST
} MetaButtonFunction;
+struct _MetaButton
+{
+ MetaButtonType type;
+ MetaButtonState state;
+
+ /* The computed size of a button (really just a way of tying its visible
+ * and clickable areas together). The reason for two different rectangles
+ * here is Fitts' law & maximized windows; See bug #97703 for more details.
+ */
+ struct {
+ /* The area where the button's image is drawn. */
+ GdkRectangle visible;
+
+ /* The area where the button can be activated by clicking */
+ GdkRectangle clickable;
+ } rect;
+
+ gboolean visible;
+};
+
G_END_DECLS
#endif