/usr/include/crystalspace-2.0/ivaria/xwindow.h is in libcrystalspace-dev 2.0+dfsg-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | /*
Copyright (C) 1998 by Jorrit Tyberghein
Copyright (C) 2001 by Samuel Humphreys
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __CS_IVIDEO_XWINDOW_H__
#define __CS_IVIDEO_XWINDOW_H__
/**\file
*/
#ifndef XK_MISCELLANY
#define XK_MISCELLANY 1
#endif
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/Xutil.h>
#include "ivideo/cursor.h"
#include "csgfx/rgbpixel.h"
#include "csplugincommon/canvas/graph2d.h" // for csGraphics2D::HWMouseMode
struct iGraphics2D;
struct iImage;
/// Document me! @@@
struct iXWindow : public virtual iBase
{
SCF_INTERFACE (iXWindow, 2, 0, 4);
// These should be inherited from csNativeWindow
virtual bool Open () = 0;
virtual void Close () = 0;
virtual void AllowResize (bool iAllow) = 0;
virtual bool GetFullScreen () = 0;
virtual void SetFullScreen (bool yesno) = 0;
virtual void SetTitle (const char* title) = 0;
/** Sets the icon of this window with the provided one.
*
* @param image the iImage to set as the icon of this window.
*/
virtual void SetIcon (iImage *image) = 0;
virtual void SetCanvas (iGraphics2D *canvas) = 0;
// These are X specific
virtual Display *GetDisplay () = 0;
virtual int GetScreen () = 0;
virtual Window GetWindow () = 0;
virtual GC GetGC () = 0;
virtual XEvent GetStoredEvent() = 0;
virtual void SetVisualInfo (XVisualInfo *xvis) = 0;
virtual void SetColormap (Colormap cmap) = 0;
// Should be in the window manager...
virtual bool SetMousePosition (int x, int y) = 0;
virtual bool SetMouseCursor (csMouseCursorID iShape) = 0;
virtual bool SetMouseCursor (iImage *image, const csRGBcolor* keycolor,
int hotspot_x, int hotspot_y,
csRGBcolor fg, csRGBcolor bg) = 0;
/**
* Show a message box.
* \return Whether the message was actually shown. If 'false', the
* caller should display the message in an alternate way.
*/
virtual bool AlertV (int type, const char* title, const char* okMsg,
const char* msg, va_list arg) CS_GNUC_PRINTF (5, 0) = 0;
virtual void SetHWMouseMode (csGraphics2D::HWMouseMode hwMouse) = 0;
virtual bool SetWindowDecoration (iNativeWindow::WindowDecoration decoration, bool flag) = 0;
virtual bool GetWindowDecoration (iNativeWindow::WindowDecoration decoration, bool& result) = 0;
virtual void Resize (int w, int h) = 0;
virtual bool GetWorkspaceDimensions (int& width, int& height) = 0;
virtual bool AddWindowFrameDimensions (int& width, int& height) = 0;
};
#endif // __CS_IVIDEO_XWINDOW_H__
|