Add cairo interface.
This commit is contained in:
parent
a03eb9599f
commit
9bcc0ae88e
63 changed files with 1247 additions and 450 deletions
29
src/windows/ui_interfaces/x11/XcbScreen.cpp
Normal file
29
src/windows/ui_interfaces/x11/XcbScreen.cpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
#include "XcbScreen.h"
|
||||
|
||||
#include <xcb/xcb.h>
|
||||
|
||||
XcbScreen::XcbScreen(xcb_screen_t* screen)
|
||||
: mNativeScreen(screen)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
std::unique_ptr<XcbScreen> XcbScreen::Create(xcb_screen_t* screen)
|
||||
{
|
||||
return std::make_unique<XcbScreen>(screen);
|
||||
}
|
||||
|
||||
xcb_screen_t* XcbScreen::GetNativeScreen() const
|
||||
{
|
||||
return mNativeScreen;
|
||||
}
|
||||
|
||||
void XcbScreen::SetGraphicsContext(unsigned gc)
|
||||
{
|
||||
mGraphicsContext = gc;
|
||||
}
|
||||
|
||||
unsigned XcbScreen::GetGraphicsContext() const
|
||||
{
|
||||
return mGraphicsContext;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue