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