ultimatepp/uppsrc/CtrlCore/GtkAfter.h

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_()