]> git.cworth.org Git - apitrace/blob - gui/apisurface.h
Use skiplist-based FastCallSet within trace::CallSet
[apitrace] / gui / apisurface.h
1 #ifndef APISURFACE_H
2 #define APISURFACE_H
3
4 #include <QImage>
5 #include <QSize>
6 #include <QString>
7
8 class ApiSurface
9 {
10 public:
11     ApiSurface();
12
13     QSize size() const;
14     void setSize(const QSize &size);
15
16     int depth() const;
17     void setDepth(int depth);
18
19     QString formatName() const;
20     void setFormatName(const QString &str);
21
22     void contentsFromBase64(const QByteArray &base64);
23
24     QImage image() const;
25     QImage thumb() const;
26
27 private:
28     QSize  m_size;
29     int m_numChannels;
30     QImage m_image;
31     QImage m_thumb;
32     int m_depth;
33     QString m_formatName;
34 };
35
36
37 class ApiTexture : public ApiSurface
38 {
39 public:
40     ApiTexture();
41
42     QString label() const;
43     void setLabel(const QString &str);
44
45 private:
46     QString m_label;
47 };
48
49 class ApiFramebuffer : public ApiSurface
50 {
51 public:
52     ApiFramebuffer();
53
54     QString type() const;
55     void setType(const QString &str);
56
57 private:
58     QString m_type;
59
60 };
61
62 #endif