summaryrefslogtreecommitdiff
path: root/libkms++/framebuffer.h
blob: 33349d87072dbc6b447450af6c5ed70470cbcd49 (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
#pragma once

#include "drmobject.h"

namespace kms
{
class Framebuffer : public DrmObject
{
public:
	Framebuffer(Card& card, uint32_t id);
	virtual ~Framebuffer() { }

	uint32_t width() const { return m_width; }
	uint32_t height() const { return m_height; }

	virtual void print_short() const;
protected:
	Framebuffer(Card& card, int width, int height);

private:
	uint32_t m_width;
	uint32_t m_height;
};
}