ultimatepp/uppsrc/CtrlCore/GtkAfter.h
cxl 821d2a6e68 CtrlCore: X11 and GTK MT fixes (#429)
git-svn-id: svn://ultimatepp.org/upp/trunk@5735 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-01-26 19:23:41 +00:00

27 lines
613 B
C++

class ViewDraw : public SystemDraw {
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); \
UPP::InitGtkApp(argc, argv, envptr); \
GuiMainFn_(); \
UPP::Ctrl::CloseTopCtrls(); \
ExitGtkApp(); \
UPP::AppExit__(); \
return UPP::GetExitCode(); \
} \
\
void GuiMainFn_()