summaryrefslogtreecommitdiff
path: root/src/user/include/cxx/raleigh/window.h
blob: 7e45e22e300c0219cd7f15ac5b5111246efbcea0 (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_WINDOW_H
#define RALEIGH_WINDOW_H

namespace raleigh {
  class window;
}

#include <raleigh/widget.h>
#include <pland/syscall.h>
#include <raleigh/util.h>

namespace raleigh {
  class window {
  public:
    window(widget &root);
    void notify_needs_paint(widget &from);
    enum try_actions_return_t {NONE, GOOD, DELETE};
    try_actions_return_t try_actions();
  private:
    _window_handle_t handle;
    _pixel_t *pixbuf;
    coord size;
    widget &root;
  };
}

#endif