mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
30 lines
727 B
C++
30 lines
727 B
C++
class TopFrameDraw : public SystemDraw {
|
|
#if GTK_CHECK_VERSION(3, 22, 0)
|
|
GdkDrawingContext *ctx;
|
|
#endif
|
|
public:
|
|
TopFrameDraw(Ctrl *ctrl, const Rect& r);
|
|
~TopFrameDraw();
|
|
};
|
|
|
|
class DHCtrl : Ctrl {};
|
|
|
|
void InitGtkApp(int argc, char **argv, const char **envptr);
|
|
void ExitGtkApp();
|
|
|
|
#define GUI_APP_MAIN \
|
|
void GuiMainFn_(); \
|
|
\
|
|
int main(int argc, char **argv, const char **envptr) { \
|
|
UPP::AppInit__(argc, (const char **)argv, envptr); \
|
|
GUI_APP_MAIN_HOOK \
|
|
UPP::InitGtkApp(argc, argv, envptr); \
|
|
UPP::AppExecute__(GuiMainFn_); \
|
|
UPP::Ctrl::CloseTopCtrls(); \
|
|
UPP::ExitGtkApp(); \
|
|
UPP::Ctrl::ShutdownThreads(); \
|
|
UPP::AppExit__(); \
|
|
return UPP::GetExitCode(); \
|
|
} \
|
|
\
|
|
void GuiMainFn_()
|