diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-08-18 18:54:38 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-08-18 19:05:19 +0300 |
commit | 2ee0ffbee0b52cb8fc3112906bea1eaa737559f7 (patch) | |
tree | 4b0276b21d5565933cdac49d6a81e8fbe5d4c975 /libmetacity/meta-button.h | |
parent | dfa271fab6c2af18e7f0a320062fecb9a2bcb66c (diff) | |
download | metacity-2ee0ffbee0b52cb8fc3112906bea1eaa737559f7.tar.gz |
libmetacity: don't expose MetaButton struct
Diffstat (limited to 'libmetacity/meta-button.h')
-rw-r--r-- | libmetacity/meta-button.h | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/libmetacity/meta-button.h b/libmetacity/meta-button.h index a087e147..9edf2753 100644 --- a/libmetacity/meta-button.h +++ b/libmetacity/meta-button.h @@ -48,25 +48,12 @@ typedef enum META_BUTTON_STATE_LAST } MetaButtonState; -typedef struct -{ - 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; +typedef struct _MetaButton MetaButton; - /* The area where the button can be activated by clicking */ - GdkRectangle clickable; - } rect; +MetaButtonType meta_button_get_type (MetaButton *button); - gboolean visible; -} MetaButton; +void meta_button_get_event_rect (MetaButton *button, + GdkRectangle *rect); G_END_DECLS |