1 |
/*--------------------------------*-C-*---------------------------------* |
2 |
* File: rxvtgrx.h |
3 |
* |
4 |
* Stuff for text alignment for rxvt special graphics mode |
5 |
* |
6 |
* alignment |
7 |
* Top: |
8 |
* text is placed so that the specified point is at the top of the |
9 |
* capital letters |
10 |
* Center: |
11 |
* text is placed so that the specified point is equidistant from the |
12 |
* bottom of descenders and the top of the capital letters |
13 |
* Bottom: |
14 |
* text is placed so that the bottom of descenders is on the specified |
15 |
* point |
16 |
* Base: |
17 |
* text is placed so that the bottom of the characters with no descenders |
18 |
* is on the specified point |
19 |
* Caps_Center: |
20 |
* text is placed so that the specified point is equidistant from the |
21 |
* bottom and tops of capital letters |
22 |
*----------------------------------------------------------------------*/ |
23 |
#ifndef RXVTGRX_H_ |
24 |
#define RXVTGRX_H_ |
25 |
|
26 |
#define GRX_SCALE 10000 |
27 |
|
28 |
#define RIGHT_TEXT 0x10 |
29 |
#define HCENTER_TEXT 0x20 |
30 |
#define LEFT_TEXT 0x30 |
31 |
#define HORIZONTAL_ALIGNMENT 0x70 |
32 |
|
33 |
#define TOP_TEXT 0x01 |
34 |
#define VCENTER_TEXT 0x02 |
35 |
#define BOTTOM_TEXT 0x03 |
36 |
#define BASE_TEXT 0x04 |
37 |
#define VCAPS_CENTER_TEXT 0x05 |
38 |
#define VERTICAL_ALIGNMENT 0x0F |
39 |
|
40 |
#if 0 /* this would be nicer */ |
41 |
# define TXT_RIGHT 'r' |
42 |
# define TXT_CENTER 'c' |
43 |
# define TXT_LEFT 'l' |
44 |
|
45 |
# define TXT_TOP 't' |
46 |
# define TXT_VCENTER 'v' |
47 |
# define TXT_BOTTOM 'b' |
48 |
# define TXT_BASE '_' |
49 |
# define TXT_VCAPS_CENTER 'C' |
50 |
#endif |
51 |
|
52 |
#endif /* _RXVTGRX_H_ */ |
53 |
/*----------------------- end-of-file (C header) -----------------------*/ |