Blame layout.defs.h

d3e9d7
#ifndef LAYOUT_DEFS_H
d3e9d7
#define LAYOUT_DEFS_H
d3e9d7
d3e9d7
d3e9d7
#include "app.h"
d3e9d7
d3e9d7
d3e9d7
#define S 10       // spacing
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
d3e9d7
d3e9d7
#define FW (12*W+2*W2+13*S) // full width
d3e9d7
d3e9d7
d3e9d7
#ifdef NOBORDER
d3e9d7
  #define HH 20 // header height
d3e9d7
  #define HEADER \
d3e9d7
    { S, S, FW-S-HH, HH, 0, 0, "::: coolkbd :::", "", KF_MOVE }, \
d3e9d7
    { N, 0, HH, 0, 0, 0, "[X]", "", KF_CLOSE },
d3e9d7
  #define FOOTER \
d3e9d7
    { S, N, FW, HH, 0, 0, "::: resize handle :::", "", KF_SIZE },
d3e9d7
  #define Y (HH+2*S)
d3e9d7
#else
d3e9d7
  #define Y S
d3e9d7
  #define HEADER
d3e9d7
  #define FOOTER
d3e9d7
#endif
d3e9d7
d3e9d7
d3e9d7
#define Y2 (Y+H+S)     // row 2
d3e9d7
#define Y3 (Y+2*(H+S)) // row 3
d3e9d7
#define Y4 (Y+3*(H+S)) // row 4
d3e9d7
#define Y5 (Y+4*(H+S)) // row 5
d3e9d7
#define Y6 (Y+5*(H+S)) // row 6
d3e9d7
d3e9d7
    
d3e9d7
    
d3e9d7
#endif