+enum wxX11FullScreenMethod
+{
+ wxX11_FS_AUTODETECT = 0,
+ wxX11_FS_WMSPEC,
+ wxX11_FS_KDE,
+ wxX11_FS_GENERIC
+};
+
+wxX11FullScreenMethod wxGetFullScreenMethodX11(WXDisplay* display,
+ WXWindow rootWindow);
+
+void wxSetFullScreenStateX11(WXDisplay* display, WXWindow rootWindow,
+ WXWindow window, bool show, wxRect *origSize,
+ wxX11FullScreenMethod method);
+
+
+// Class wrapping X11 Display: it opens it in ctor and closes it in dtor.
+class wxX11Display
+{
+public:
+ wxX11Display() { m_dpy = XOpenDisplay(NULL); }
+ ~wxX11Display() { if ( m_dpy ) XCloseDisplay(m_dpy); }
+
+ operator Display *() const { return m_dpy; }
+
+ // Using DefaultRootWindow() with an object of wxX11Display class doesn't
+ // compile because it is a macro which tries to cast wxX11Display so
+ // provide a convenient helper.
+ Window DefaultRoot() const { return DefaultRootWindow(m_dpy); }
+
+private:
+ Display *m_dpy;
+
+ wxDECLARE_NO_COPY_CLASS(wxX11Display);
+};
+
+#endif // __WXMOTIF__, __WXGTK__, __WXX11__
+
+#endif // _WX_UNIX_UTILSX11_H_