#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;
}
