/*-
 * Copyright (c) 1999,2000 Qube Software, Ltd.
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are
 * met:
 * 
 * 1. Redistributions of the source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 
 * 2. Any redistribution solely in binary form must conspicuously
 *    reproduce the following disclaimer in documentation provided with the
 *    binary redistribution.
 * 
 * THIS SOFTWARE IS PROVIDED ``AS IS'', WITHOUT ANY WARRANTIES, EXPRESS
 * OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  LICENSOR SHALL
 * NOT BE LIABLE FOR ANY LOSS OR DAMAGES RESULTING FROM THE USE OF THIS
 * SOFTWARE, EITHER ALONE OR IN COMBINATION WITH ANY OTHER SOFTWARE.
 * 
 * 	$Id: draw_os.h,v 1.7 2000/06/18 18:30:31 n_hibma Exp $
 */

/**
 * OS specific definitions.
 */

DRAW_BEGIN

#ifdef GUI_Win32
struct WindowInfo {
    struct {
	HWND		window;		// window containing rendered graphics
    } child;
    struct {
	HWND		window;		// window handle of parent (may be null)
    } parent;
};
#else
#ifdef GUI_X11
struct WindowInfo {
    struct {
	Display*	display;	// Information on parent window
	int		screenno;
	Window		window;

	XVisualInfo*	visinfo;
    } child;
    struct {
	Display*	display;	// Information on parent window
	int		screenno;
	Window		window;
    } parent;
};
#else
#ifdef GUI_AA
struct WindowInfo {
    struct {
    	aa_context*	context;
    } child;
    // No parent context, we are always the root (I think)
};
#else
struct WindowInfo {
};
#endif
#endif
#endif


DRAW_END
