summaryrefslogtreecommitdiff
path: root/otk/display.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-16 21:11:39 +0000
committerDana Jansens <danakj@orodu.net>2003-03-16 21:11:39 +0000
commitf8a47de5ec444c452093371e3db16857eb39a490 (patch)
tree31db2567842d98232775f9980f7a8d2586c0ac71 /otk/display.hh
parent8ba0586bcbdc7fe9648f1063812126d71a041670 (diff)
merge the C branch into HEAD
Diffstat (limited to 'otk/display.hh')
-rw-r--r--otk/display.hh35
1 files changed, 10 insertions, 25 deletions
diff --git a/otk/display.hh b/otk/display.hh
index 81dd27c5..25c1b45a 100644
--- a/otk/display.hh
+++ b/otk/display.hh
@@ -8,7 +8,6 @@ extern "C" {
namespace otk {
-class ScreenInfo;
class RenderControl;
class Display;
@@ -56,38 +55,24 @@ private:
//! When true, X errors will be ignored. Use with care.
bool _ignore_errors;
- //! A list of information for all screens on the display
- ScreenInfo** _screeninfo_list;
+ //! The optimal visual for the display
+ Visual *_visual;
- //! A list of RenderControl objects, which are used for all graphics on a
- //! screen
- RenderControl** _rendercontrol_list;
+ //! Our colormap built for the optimal visual
+ Colormap _colormap;
+ //! The depth of our optimal visual
+ int _depth;
+
public:
- //! Initializes the class, opens the X display
+ //! Wraps an open Display connection
/*!
- The DISPLAY environment variable is used to choose the display.
- @see Display::display
+ @param d An open Display connection.
*/
- Display();
+ Display(::Display *d);
//! Destroys the class, closes the X display
~Display();
- //! Gets information on a specific screen
- /*!
- Returns a ScreenInfo class, which contains information for a screen on the
- display.
- @param snum The screen number of the screen to retrieve info on
- @return Info on the requested screen, in a ScreenInfo class
- */
- const ScreenInfo* screenInfo(int snum) const;
-
- //! Find a ScreenInfo based on a root window
- const ScreenInfo* findScreen(Window root) const;
-
- //! Gets the RenderControl for a screen
- const RenderControl *renderControl(int snum) const;
-
//! Returns if the display has the xkb extension available
inline bool xkb() const { return _xkb; }
//! Returns the xkb extension's event base