]> Dogcows Code - chaz/openbox/blob - openbox/popup.h
dont need client.h in this header
[chaz/openbox] / openbox / popup.h
1 #ifndef __popup_h
2 #define __popup_h
3
4 #include "frame.h"
5
6 typedef struct Popup Popup;
7
8 Popup *popup_new(gboolean hasicon);
9 void popup_free(Popup *self);
10
11 /*! Position the popup. The gravity rules are not the same X uses for windows,
12 instead of the position being the top-left of the window, the gravity
13 specifies which corner of the popup will be placed at the given coords.
14 Static and Forget gravity are equivilent to NorthWest.
15 */
16 void popup_position(Popup *self, int gravity, int x, int y);
17 /*! Set the sizes for the popup. When set to 0, the size will be based on
18 the text size. */
19 void popup_size(Popup *self, int w, int h);
20 void popup_size_to_string(Popup *self, char *text);
21
22 void popup_show(Popup *self, char *text, ObClientIcon *icon);
23 void popup_hide(Popup *self);
24
25 #endif
This page took 0.034593 seconds and 4 git commands to generate.