wxMahjong/Controller.h

27 lines
384 B
C++

#ifndef CONTROLLER_H
#define CONTROLLER_H
#include "wxw.h"
#include "Drawer.h"
class Controller {
public:
Controller(Drawer& drawer);
int stopwatch = 0;
void resize(const wxSize& tableSize);
wxPoint toGrid(const wxPoint& point);
private:
Drawer& drawer;
wxSize tileSize;
wxSize resolution;
wxSize gridSize;
wxRect pixelTableRect;
};
#endif