Blob Blame Raw
#ifndef LAYOUT_DEFS_H
#define LAYOUT_DEFS_H


#include "app.h"


#define S 10       // spacing

#define W  50       // width
#define W2 70       // more width
#define W3 80       // more
#define W4 (W2+W+S) // and more
#define W5 (12*W+11*S-4*W2-4*S) // space bar width

#define H  40      // height
#define H2 (H*2+S) // double height

#define N  (-S-1)  // place key next to previos key

#define FW (12*W+2*W2+13*S) // full width


#ifdef NOBORDER
  #define HH 20 // header height
  #define HEADER(fw) \
    { S, S, fw-S-HH, HH, 0, 0, "::: coolkbd :::", "", KF_MOVE }, \
    { N, 0, HH, 0, 0, 0, "[X]", "", KF_CLOSE },
  #define FOOTER(fw) \
    { S, N, fw, HH, 0, 0, "::: resize handle :::", "", KF_SIZE },
  #define Y (HH+2*S)
#else
  #define Y S
  #define HEADER(fw)
  #define FOOTER(fw)
#endif


#define Y2 (Y+H+S)     // row 2
#define Y3 (Y+2*(H+S)) // row 3
#define Y4 (Y+3*(H+S)) // row 4
#define Y5 (Y+4*(H+S)) // row 5
#define Y6 (Y+5*(H+S)) // row 6

    
    
#endif