summaryrefslogtreecommitdiff
path: root/src/user/include/cxx/raleigh/d/saving_window.h
blob: 84b6f6964820c9de6d0bd1e235f34803c0f0c6e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef RALEIGH_D_SAVING_WINDOW_H
#define RALEIGH_D_SAVING_WINDOW_H

#include <raleigh/w/vbox.h>
#include <raleigh/window.h>

namespace raleigh {
  typedef void *save_tag_t;
  class saving_window : public window {
  public:
    //save_func returns true if saving was successful
    saving_window(bool (*save_func)(save_tag_t), save_tag_t save_tag, widget &root, _pixel_t bg_color=RGB(bf, bf, bf));
    bool is_saved;

    bool (*save_func)(save_tag_t);
    save_tag_t save_tag;
  };
};

#endif