Add cairo interface.
This commit is contained in:
parent
a03eb9599f
commit
9bcc0ae88e
63 changed files with 1247 additions and 450 deletions
30
src/windows/ui_interfaces/x11/XcbWindowInterface.h
Normal file
30
src/windows/ui_interfaces/x11/XcbWindowInterface.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace mt
|
||||
{
|
||||
class Window;
|
||||
class Screen;
|
||||
}
|
||||
struct xcb_connection_t;
|
||||
struct xcb_screen_t;
|
||||
|
||||
class XcbWindowInterface
|
||||
{
|
||||
public:
|
||||
|
||||
static std::unique_ptr<XcbWindowInterface> Create();
|
||||
|
||||
void Add(mt::Window* window, xcb_connection_t* connection, mt::Screen* screen, uint32_t eventMask) const;
|
||||
|
||||
void Show(mt::Window* window, xcb_connection_t* connection) const;
|
||||
|
||||
void Paint(mt::Window* window, xcb_connection_t* connection, xcb_screen_t* screen, unsigned gc) const;
|
||||
|
||||
void Clear(mt::Window* window, xcb_connection_t* connection) const;
|
||||
|
||||
void Map(mt::Window* window, xcb_connection_t* connection) const;
|
||||
};
|
||||
|
||||
using XcbWindowInterfacePtr = std::unique_ptr<XcbWindowInterface>;
|
Loading…
Add table
Add a link
Reference in a new issue