Blame app.h

452870
#ifndef APP_H
452870
#define APP_H
452870
452870
452870
#include "common.h"
452870
#include "graph.h"
452870
#include "input.h"
452870
#include "keyboard.h"
452870
452870
452870
struct App {
452870
  // keep these filds at the begining for easyest static initialization
452870
  Keyboard keyboard;
452870
  Input input;
452870
  Graph graph;
452870
  
452870
  // these fields will be set while initialization
452870
  xcb_connection_t *xcb;
452870
  xcb_screen_t *screen;
452870
  xcb_window_t win;
452870
452870
  // dynamic fields
452870
  int irx, iry, irw, irh;
843e7a
  int x, y, w, h;
843e7a
  int run;
452870
};
452870
452870
452870
int appInit(App *app);
452870
void appDeinit(App *app);
452870
int appRun(App *app);
843e7a
void appStop(App *app, int err);
843e7a
void appMove(App *app, int x, int y, int w, int h);
452870
void appInvalidateRect(App *app, int x, int y, int w, int h);
452870
452870
452870
#endif