wxMahjong/GamePanel.h

33 lines
552 B
C++

#ifndef GRAPHICS_H
#define GRAPHICS_H
#include "wxw.h"
#include <wx/stopwatch.h>
#include "Drawer.h"
#include "Controller.h"
class GamePanel : public wxPanel {
public:
GamePanel(wxFrame* parent);
void Start(const wxString& path, bool solveable);
void undo();
void reshuffle(bool solveable);
private:
Drawer drawer;
Controller controller;
void OnPaint(wxPaintEvent& _);
void OnTimer(wxTimerEvent& _);
void OnClick(wxMouseEvent& _);
wxStatusBar* sb = nullptr;
wxTimer* timer = nullptr;
};
#endif