diff options
| author | crupest <crupest@outlook.com> | 2019-12-13 01:02:47 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2019-12-13 01:02:47 +0800 |
| commit | 9110574bb51e9e2959842a7641f598d34c3cd847 (patch) | |
| tree | 96ee1f5b3c40095e4e923fc763de0663ee6a01aa /include/cru/platform | |
| parent | f2aa96fba0b72eeeadf5160ea5df2c8143ec8aa0 (diff) | |
| download | cru-9110574bb51e9e2959842a7641f598d34c3cd847.tar.gz cru-9110574bb51e9e2959842a7641f598d34c3cd847.tar.bz2 cru-9110574bb51e9e2959842a7641f598d34c3cd847.zip | |
...
Diffstat (limited to 'include/cru/platform')
| -rw-r--r-- | include/cru/platform/graph/geometry.hpp | 2 | ||||
| -rw-r--r-- | include/cru/platform/native/ui_application.hpp | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/cru/platform/graph/geometry.hpp b/include/cru/platform/graph/geometry.hpp index 689b2ab9..a49453dd 100644 --- a/include/cru/platform/graph/geometry.hpp +++ b/include/cru/platform/graph/geometry.hpp @@ -10,7 +10,7 @@ struct IGeometry : virtual IGraphResource { // After called Build, calling every method will throw a -class IGeometryBuilder : virtual IGraphResource { +struct IGeometryBuilder : virtual IGraphResource { virtual void BeginFigure(const Point& point) = 0; virtual void LineTo(const Point& point) = 0; virtual void QuadraticBezierTo(const Point& control_point, diff --git a/include/cru/platform/native/ui_application.hpp b/include/cru/platform/native/ui_application.hpp index c1f10d15..b69b1f52 100644 --- a/include/cru/platform/native/ui_application.hpp +++ b/include/cru/platform/native/ui_application.hpp @@ -16,6 +16,12 @@ struct ICursorManager; // The entry point of a ui application. struct IUiApplication : public virtual INativeResource { public: + static IUiApplication* GetInstance() { return instance; } + + protected: + static IUiApplication* instance; + + public: // Block current thread and run the message loop. Return the exit code when // message loop gets a quit message (possibly posted by method RequestQuit). virtual int Run() = 0; |
