diff options
Diffstat (limited to 'libkms++/plane.h')
-rw-r--r-- | libkms++/plane.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libkms++/plane.h b/libkms++/plane.h new file mode 100644 index 0000000..890a28f --- /dev/null +++ b/libkms++/plane.h @@ -0,0 +1,32 @@ +#pragma once + +#include "drmobject.h" + +namespace kms +{ + +enum class PlaneType +{ + Overlay = 0, + Primary = 1, + Cursor = 2, +}; + +struct PlanePriv; + +class Plane : public DrmObject +{ +public: + Plane(Card& card, uint32_t id); + ~Plane(); + + void print_short() const; + + bool supports_crtc(Crtc* crtc) const; + + PlaneType plane_type() const; + +private: + PlanePriv* m_priv; +}; +} |