mirror of
https://github.com/0ldsk00l/nestopia.git
synced 2025-04-02 10:31:51 -04:00
47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
#pragma once
|
|
|
|
constexpr Fl_Color NstGreen = 0x255f6500;
|
|
constexpr Fl_Color NstPurple = 0x5f578700;
|
|
constexpr Fl_Color NstRed = 0xb51e2c00;
|
|
constexpr Fl_Color NstWhite = 0xffffff00;
|
|
constexpr Fl_Color NstBlueGrey = 0x383c4a00;
|
|
constexpr Fl_Color NstLightGrey = 0xd3dae300;
|
|
constexpr int UI_MBARHEIGHT = 24;
|
|
constexpr int UI_SPACING = 24;
|
|
constexpr int UI_ELEMHEIGHT = 25;
|
|
constexpr int UI_ELEMWIDTH = 160;
|
|
constexpr int UI_DIAL_LG = 100;
|
|
constexpr int UI_DIAL_SM = 40;
|
|
|
|
class NstWindow : public Fl_Double_Window {
|
|
private:
|
|
int handle(int e);
|
|
|
|
public:
|
|
NstWindow(int w, int h, const char* t = 0) : Fl_Double_Window(w, h, t) { }
|
|
|
|
void resize(int x, int y, int w, int h);
|
|
};
|
|
|
|
class NstGlArea : public Fl_Gl_Window {
|
|
private:
|
|
void draw();
|
|
int handle(int e);
|
|
|
|
public:
|
|
NstGlArea(int x, int y, int w, int h, const char *l = 0) : Fl_Gl_Window(x, y, w, h, l) {
|
|
box(FL_DOWN_FRAME);
|
|
}
|
|
|
|
void resize(int x, int y, int w, int h);
|
|
};
|
|
|
|
class FltkUi {
|
|
public:
|
|
static void enable_menu();
|
|
static void rehash();
|
|
static void set_ffspeed(bool on);
|
|
static void show_msgbox(bool show);
|
|
static void fullscreen(Fl_Widget *w = nullptr, void *data = nullptr);
|
|
static void quit(Fl_Widget *w = nullptr, void *data = nullptr);
|
|
};
|