]> git.decadent.org.uk Git - videolink.git/blob - framebuffer.hpp
daf76596325c731dadb141c361ded43d8ce2e83d
[videolink.git] / framebuffer.hpp
1 // Copyright 2005 Ben Hutchings <ben@decadentplace.org.uk>.
2 // See the file "COPYING" for licence details.
3
4 #ifndef INC_FRAMEBUFFER_HPP
5 #define INC_FRAMEBUFFER_HPP
6
7 #include <string>
8
9 #include "auto_proc.hpp"
10 #include "auto_temp_file.hpp"
11
12 // Run Xvfb with a frame buffer of the given dimensions.
13 class FrameBuffer
14 {
15 public:
16     FrameBuffer(int width, int height, int depth);
17     std::string get_x_authority() const;
18     std::string get_x_display() const;
19
20 private:
21     int display_num_;
22     auto_temp_file auth_file_;
23     auto_kill_proc server_proc_;
24 };
25
26 #endif // !INC_FRAMEBUFFER_HPP