blob: 183933377ad1aac491cf639ae587d69342a1cefb (
plain) (
blame)
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
|
#ifndef RALEIGH_WIDGET_H
#define RALEIGH_WIDGET_H
namespace raleigh {
class widget;
}
#include <raleigh/window.h>
#include <pland/syscall.h>
#include <raleigh/util.h>
namespace raleigh {
class widget {
public:
coord size;
//set by window class (or parent widget)
window *w;
coord window_offset;
//called by window class (or parent widget)
virtual void notify_window_change() = 0;
virtual void paint(_pixel_t *pixbuf, uint32_t pitch) = 0;
};
}
#endif
|