Blame layout.defs.h

d3e9d7
#ifndef LAYOUT_DEFS_H
d3e9d7
#define LAYOUT_DEFS_H
d3e9d7
d3e9d7
d3e9d7
#include "app.h"
d3e9d7
d3e9d7
db2d04
#define X0 5        // left top corner
db2d04
#define Y0 5
db2d04
db2d04
#define S  0        // spacing
db2d04
#define S2 10
d3e9d7
d3e9d7
#define W  50       // width
d3e9d7
#define W2 70       // more width
d3e9d7
#define W3 80       // more
d3e9d7
#define W4 (W2+W+S) // and more
d3e9d7
#define W5 (12*W+11*S-4*W2-4*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
d3e9d7
#define FW (12*W+2*W2+13*S) // full width
d3e9d7
d3e9d7
d3e9d7
#ifdef NOBORDER
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 },
569832
  #define FOOTER(fw) \
db2d04
    { X0, N2, fw, HH, 0, 0, "::: resize handle :::", "", KF_SIZE },
db2d04
  #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
d3e9d7
    
d3e9d7
    
d3e9d7
#endif