6#ifndef EGT_DETAIL_SCREEN_X11SCREEN_H
7#define EGT_DETAIL_SCREEN_X11SCREEN_H
14#include <egt/asio.hpp>
15#include <egt/detail/meta.h>
17#include <egt/screen.h>
46 const std::string& name = {},
bool borderless =
false);
66 void handle_read(const asio::error_code& error);
68 void copy_to_buffer(ScreenBuffer& buffer) override;
74 std::unique_ptr<detail::X11Data> m_priv;
77 asio::posix::stream_descriptor m_input;
86 struct X11Input : public
Input
Application definition.
Definition app.h:49
Manages one of more buffers that make up a Screen.
Definition screen.h:34
std::vector< Rect > DamageArray
Type used for damage arrays.
Definition screen.h:40
Screen in an X11 window.
Definition x11screen.h:35
void disable_window_decorations()
Disable window decorations.
X11Input m_in
Custom input for dispatching events.
Definition x11screen.h:93
void flip(const DamageArray &damage) override
Perform a flip of the buffers.
X11Screen & operator=(const X11Screen &)=delete
X11Screen(Application &app, const Size &size=Size(800, 480), const std::string &name={}, bool borderless=false)
void schedule_flip() override
Schedule a flip to occur later.
Definition x11screen.h:53
X11Screen & operator=(X11Screen &&)=delete
X11Screen(const X11Screen &)=delete
~X11Screen() noexcept override
X11Screen(X11Screen &&)=delete
EGT framework namespace.
Definition animation.h:24