|
|
d3e9d7 |
#ifndef LAYOUT_DEFS_H
|
|
|
d3e9d7 |
#define LAYOUT_DEFS_H
|
|
|
d3e9d7 |
|
|
|
d3e9d7 |
|
|
|
d3e9d7 |
#include "app.h"
|
|
|
d3e9d7 |
|
|
|
d3e9d7 |
|
|
|
4b2399 |
#define X0 1 // left top corner
|
|
|
4b2399 |
#define Y0 1
|
|
|
db2d04 |
|
|
|
db2d04 |
#define S 0 // spacing
|
|
|
4b2399 |
#define S2 5
|
|
|
d3e9d7 |
|
|
|
d3e9d7 |
#define W 50 // width
|
|
|
4b2399 |
#define W2 50 // more width
|
|
|
d3e9d7 |
#define W3 80 // more
|
|
|
d3e9d7 |
#define W4 (W2+W+S) // and more
|
|
|
37122c |
#define W5 (12*W+11*S-7*W2-7*S) // space bar width
|
|
|
d3e9d7 |
|
|
|
d3e9d7 |
#define H 40 // height
|
|
|
d3e9d7 |
#define H2 (H*2+S) // double height
|
|
|
d3e9d7 |
|
|
|
d3e9d7 |
#define N (-S-1) // place key next to previos key
|
|
|
8864eb |
#define N2 (-S2-1)
|
|
|
d3e9d7 |
|
|
|
1d2586 |
#define FW (12*W+11*S) // full width
|
|
|
d3e9d7 |
|
|
|
d3e9d7 |
|
|
|
0da9df |
#if defined(NOBORDER) && !defined(NOTITLE)
|
|
|
8864eb |
#define HH 30 // header height
|
|
|
569832 |
#define HEADER(fw) \
|
|
|
db2d04 |
{ X0, Y0, fw-S-HH, HH, 0, 0, "::: coolkbd :::", "", KF_MOVE }, \
|
|
|
d3e9d7 |
{ N, 0, HH, 0, 0, 0, "[X]", "", KF_CLOSE },
|
|
|
4b2399 |
#ifdef LOCK_SIZE
|
|
|
4b2399 |
#define FOOTER(fw)
|
|
|
4b2399 |
#else
|
|
|
4b2399 |
#define FOOTER(fw) \
|
|
|
4b2399 |
{ X0, N2, fw, HH, 0, 0, "::: resize handle :::", "", KF_SIZE },
|
|
|
4b2399 |
#endif
|
|
|
db2d04 |
#define Y1 (Y0+HH+S2)
|
|
|
0da9df |
#elif defined(NOBORDER) && defined(NOTITLE)
|
|
|
0da9df |
#define HEADER(fw)
|
|
|
0da9df |
#ifdef LOCK_SIZE
|
|
|
0da9df |
#define FOOTER(fw)
|
|
|
0da9df |
#else
|
|
|
0da9df |
#define FOOTER(fw) \
|
|
|
0da9df |
{ X0, N2, fw, 0, 0, 0, "::: resize handle :::", "", KF_SIZE },
|
|
|
0da9df |
#endif
|
|
|
0da9df |
#define Y1 Y0
|
|
|
7aad5f |
#elif defined(TOP_RESIZE) && !defined(LOCK_SIZE)
|
|
|
7aad5f |
#define HH 30 // header height
|
|
|
7aad5f |
#define HEADER(fw) \
|
|
|
7aad5f |
{ X0, Y0, fw, HH, 0, 0, "::: resize handle :::", "", KF_SIZE },
|
|
|
7aad5f |
#define FOOTER(fw)
|
|
|
7aad5f |
#define Y1 (Y0+HH+S2)
|
|
|
d3e9d7 |
#else
|
|
|
db2d04 |
#define Y1 Y0
|
|
|
569832 |
#define HEADER(fw)
|
|
|
569832 |
#define FOOTER(fw)
|
|
|
d3e9d7 |
#endif
|
|
|
d3e9d7 |
|
|
|
db2d04 |
#define Y2 (Y1+H+S) // row 2
|
|
|
db2d04 |
#define Y3 (Y1+2*(H+S)) // row 3
|
|
|
db2d04 |
#define Y4 (Y1+3*(H+S)) // row 4
|
|
|
db2d04 |
#define Y5 (Y1+4*(H+S)) // row 5
|
|
|
db2d04 |
#define Y6 (Y1+5*(H+S)) // row 6
|
|
|
d3e9d7 |
|
|
|
4b2399 |
|
|
|
d3e9d7 |
#endif
|