summaryrefslogtreecommitdiff
path: root/libkms++/plane.h
blob: 890a28fdfc9b77c127d84c434f81742c8300791d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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;
};
}