File: FTips.h

package info (click to toggle)
fvwm 1:2.6.8-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 15,804 kB
  • sloc: ansic: 145,770; xml: 17,093; perl: 7,302; sh: 4,921; makefile: 1,094; yacc: 688; lex: 187; sed: 11
file content (72 lines) | stat: -rw-r--r-- 1,722 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* -*-c-*- */
/* Copyright (C) 2004  Olivier Chapuis */

#ifndef FVWMLIB_FTIPS_H
#define FVWMLIB_FTIPS_H

/* ---------------------------- included header files ---------------------- */

/* ---------------------------- global definitions ------------------------- */

/* ---------------------------- global macros ------------------------------ */

/* ---------------------------- type definitions --------------------------- */

typedef enum
{
	FTIPS_PLACEMENT_UP,
	FTIPS_PLACEMENT_DOWN,
	FTIPS_PLACEMENT_LEFT,
	FTIPS_PLACEMENT_RIGHT,
	FTIPS_PLACEMENT_AUTO_UPDOWN,
	FTIPS_PLACEMENT_AUTO_LEFTRIGHT
} ftips_placement_t;

typedef enum
{
	FTIPS_JUSTIFICATION_CENTER,
	FTIPS_JUSTIFICATION_LEFT_UP,
	FTIPS_JUSTIFICATION_RIGHT_DOWN
} ftips_position_t;

typedef struct
{
	int colorset;
	Pixel fg;
	Pixel bg;
	Pixel border_pixel;
	int border_width;
	FlocaleFont *Ffont;
	ftips_placement_t placement;
	ftips_position_t justification;
	unsigned int placement_offset; /* pixel */
	unsigned int justification_offset; /* pixel */
	unsigned long delay; /* ms */
	unsigned long mapped_delay; /* ms */
} ftips_config;

/* ---------------------------- exported variables (globals) --------------- */

/* ---------------------------- interface functions ------------------------ */

Bool FTipsInit(Display *dpy);

ftips_config *FTipsNewConfig(void);

void FTipsOn(
	Display *dpy, Window win_f, ftips_config *fc, void *id, char *str,
	int x, int y, int w, int h);

void FTipsCancel(Display *dpy);

unsigned long FTipsCheck(Display *dpy);

Bool FTipsExpose(Display *dpy, XEvent *ev);

Bool FTipsHandleEvents(Display *dpy, XEvent *ev);

void FTipsUpdateLabel(Display *dpy, char *str);

void FTipsColorsetChanged(Display *dpy, int cs);

#endif