1 | // LAF OS Library |
---|---|
2 | // Copyright (C) 2021-2022 Igara Studio S.A. |
3 | // Copyright (C) 2016-2018 David Capello |
4 | // |
5 | // This file is released under the terms of the MIT license. |
6 | // Read LICENSE.txt for more information. |
7 | |
8 | #ifndef OS_SKIA_SKIA_WINDOW_X11_INCLUDED |
9 | #define OS_SKIA_SKIA_WINDOW_X11_INCLUDED |
10 | #pragma once |
11 | |
12 | #include "base/disable_copying.h" |
13 | #include "gfx/size.h" |
14 | #include "os/gl/gl_context_glx.h" |
15 | #include "os/native_cursor.h" |
16 | #include "os/skia/skia_window_base.h" |
17 | #include "os/x11/window.h" |
18 | |
19 | #include <string> |
20 | #include <vector> |
21 | |
22 | namespace os { |
23 | |
24 | class SkiaWindowX11 : public SkiaWindowBase<WindowX11> { |
25 | public: |
26 | SkiaWindowX11(const WindowSpec& spec); |
27 | |
28 | std::string getLayout() override { return ""; } |
29 | void setLayout(const std::string& layout) override { } |
30 | |
31 | private: |
32 | void onPaint(const gfx::Rect& rc) override; |
33 | |
34 | std::vector<uint8_t> m_buffer; |
35 | |
36 | DISABLE_COPYING(SkiaWindowX11); |
37 | }; |
38 | |
39 | } // namespace os |
40 | |
41 | #endif |
42 |