00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef SGE_X11_XF86_RESOLUTION_HPP_INCLUDED
00022 #define SGE_X11_XF86_RESOLUTION_HPP_INCLUDED
00023
00024 #include <X11/Xlib.h>
00025 #include <X11/extensions/xf86vmode.h>
00026 #include "display.hpp"
00027 #include "../export.hpp"
00028 #include "../shared_ptr.hpp"
00029
00030 namespace sge
00031 {
00032 namespace x11
00033 {
00034
00035 class xf86_resolution : boost::noncopyable {
00036 public:
00037 SGE_SYMBOL xf86_resolution(
00038 x11::display_ptr,
00039 int screen,
00040 XF86VidModeModeInfo const &new_mode,
00041 XF86VidModeModeInfo const &old_mode);
00042 SGE_SYMBOL ~xf86_resolution();
00043 private:
00044 x11::display_ptr const dsp;
00045 int const screen;
00046 XF86VidModeModeInfo const &old_mode;
00047 };
00048
00049 typedef shared_ptr<xf86_resolution> xf86_resolution_ptr;
00050
00051 }
00052 }
00053
00054 #endif