mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 06:06:00 -06:00
31 lines
623 B
C++
31 lines
623 B
C++
#ifndef _main_hpp_
|
|
#define _main_hpp_
|
|
|
|
#include <CtrlLib/CtrlLib.h>
|
|
#define LAYOUTFILE <uppCanvas/uppCanvas.lay>
|
|
#include <CtrlCore/lay.h>
|
|
|
|
#include <uppCanvas/Canvas.hpp>
|
|
|
|
struct App : public WithMainWinLayout<TopWindow> {
|
|
typedef App CLASSNAME;
|
|
Canvas canvas;
|
|
Button BtnClose;
|
|
Button BtnClearSheet;
|
|
Button BtnBGColor;
|
|
|
|
ColorPopUp colorPopUp;
|
|
|
|
App();
|
|
//UserEvents
|
|
void BtnClearSheetClick();
|
|
void BtnCloseClick();
|
|
void BtnBGColorClick();
|
|
|
|
void OnColorSelect();
|
|
//Callbacks for the canvas
|
|
void OnCanvasPaint(Draw& w);
|
|
void OnCanvasMouseLeft(Point p, dword keyflags);
|
|
};
|
|
|
|
#endif
|