ultimatepp/uppsrc/CtrlCore/GtkAfter.h
cxl 8bbf538b8f CtrlCore: gtk3 warnings in GtkWnd removed
git-svn-id: svn://ultimatepp.org/upp/trunk@13892 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-01-15 18:44:23 +00:00

31 lines
724 B
C++

class ViewDraw : public SystemDraw {
#if GTK_CHECK_VERSION(3, 10, 0)
GdkDrawingContext *ctx;
#endif
public:
ViewDraw(Ctrl *ctrl);
~ViewDraw();
};
void DrawDragRect(Ctrl& q, const DrawDragRectInfo& f);
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::AppExit__(); \
return UPP::GetExitCode(); \
} \
\
void GuiMainFn_()