diff options
author | Claudius Holeksa <mail@keldu.de> | 2023-05-22 00:37:33 +0200 |
---|---|---|
committer | Claudius Holeksa <mail@keldu.de> | 2023-05-22 00:37:33 +0200 |
commit | 7f0440cc25fc3ebc711df9fb708a5bffe53bf784 (patch) | |
tree | 8de4c18388b258f7af3b268b534723da48ce1616 /src/window/device.h | |
parent | a93b825968d6da81200bbda00ece1371f0f7945e (diff) |
c++: Initial setup for regular window creation
Diffstat (limited to 'src/window/device.h')
-rw-r--r-- | src/window/device.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/window/device.h b/src/window/device.h new file mode 100644 index 0000000..70a388e --- /dev/null +++ b/src/window/device.h @@ -0,0 +1,23 @@ +#pragma once + +#include <forstio/async/async.h> +#include <forstio/core/common.h> + +#include <string_view> +#include <variant> + +#include "window.h" + +namespace saw { +class device { +public: + virtual ~device() = default; + + virtual own<window> create_window(const video_mode &mode, + std::string_view title_view) = 0; + virtual void flush() = 0; +}; + +class io_provider; +own<device> create_device(io_provider &provider); +} // namespace saw |