2 /* Copyright (C) 2004 Olivier Chapuis */
4 #ifndef FVWMLIB_FTIPS_H
5 #define FVWMLIB_FTIPS_H
7 /* ---------------------------- included header files ---------------------- */
9 /* ---------------------------- global definitions ------------------------- */
11 /* ---------------------------- global macros ------------------------------ */
13 /* ---------------------------- type definitions --------------------------- */
20 FTIPS_PLACEMENT_RIGHT
,
21 FTIPS_PLACEMENT_AUTO_UPDOWN
,
22 FTIPS_PLACEMENT_AUTO_LEFTRIGHT
27 FTIPS_JUSTIFICATION_CENTER
,
28 FTIPS_JUSTIFICATION_LEFT_UP
,
29 FTIPS_JUSTIFICATION_RIGHT_DOWN
40 ftips_placement_t placement
;
41 ftips_position_t justification
;
42 unsigned int placement_offset
; /* pixel */
43 unsigned int justification_offset
; /* pixel */
44 unsigned long delay
; /* ms */
45 unsigned long mapped_delay
; /* ms */
48 /* ---------------------------- exported variables (globals) --------------- */
50 /* ---------------------------- interface functions ------------------------ */
52 Bool
FTipsInit(Display
*dpy
);
54 ftips_config
*FTipsNewConfig(void);
57 Display
*dpy
, Window win_f
, ftips_config
*fc
, void *id
, char *str
,
58 int x
, int y
, int w
, int h
);
60 void FTipsCancel(Display
*dpy
);
62 unsigned long FTipsCheck(Display
*dpy
);
64 Bool
FTipsExpose(Display
*dpy
, XEvent
*ev
);
66 Bool
FTipsHandleEvents(Display
*dpy
, XEvent
*ev
);
68 void FTipsUpdateLabel(Display
*dpy
, char *str
);
70 void FTipsColorsetChanged(Display
*dpy
, int cs
);