*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
/*
** draw_inquiry.c - state inquiry routines for drawable veneer.
*/
#ifdef SERVER_DGA
#endif /* SERVER_DGA */
#include "dga_incls.h"
Display *
{
case DGA_DRAW_WINDOW:
case DGA_DRAW_PIXMAP:
}
}
{
case DGA_DRAW_WINDOW:
case DGA_DRAW_PIXMAP:
}
}
int
{
case DGA_DRAW_WINDOW:
? (DGA_DRAW_OVERLAY)
: (DGA_DRAW_WINDOW));
case DGA_DRAW_PIXMAP:
return (DGA_DRAW_PIXMAP);
}
}
char *
{
case DGA_DRAW_WINDOW:
case DGA_DRAW_PIXMAP:
}
}
int
{
case DGA_DRAW_WINDOW:
case DGA_DRAW_PIXMAP:
}
}
int
{
case DGA_DRAW_WINDOW:
case DGA_DRAW_PIXMAP:
}
}
void
{
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
break;
}
#ifdef MT
#endif
}
void *
{
void *rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
break;
}
#ifdef MT
#endif
return (rval);
}
int
{
int rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
break;
}
#ifdef MT
#endif
return (rval);
}
void *
{
void *rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
break;
}
#ifdef MT
#endif
return (rval);
}
int
{
int rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
break;
}
#ifdef MT
#endif
return (rval);
}
void
void *client_data)
{
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
break;
}
#ifdef MT
#endif
}
void
void **client_data)
{
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
break;
}
#ifdef MT
#endif
}
int
{
int rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
break;
}
#ifdef MT
#endif
return (rval);
}
void *
{
void *rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
break;
}
#ifdef MT
#endif
return (rval);
}
int
{
int rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
break;
}
#ifdef MT
#endif
return (rval);
}
int
{
int rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
break;
}
#ifdef MT
#endif
return (rval);
}
int
{
int rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
break;
}
#ifdef MT
#endif
return (rval);
}
void
{
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
break;
}
#ifdef MT
#endif
}
int
{
int rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* always unobscured */
break;
}
#ifdef MT
#endif
return (rval);
}
int
{
int rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
break;
}
#ifdef MT
#endif
return (rval);
}
short *
{
short *rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
break;
}
#ifdef MT
#endif
return (rval);
}
int
{
int rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* always a single rect */
rval = 1;
break;
}
#ifdef MT
#endif
return (rval);
}
int
{
int rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* never obscured */
rval = 0;
break;
}
#ifdef MT
#endif
return (rval);
}
/* CONSOLIDATION PRIVATE */
{
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* always 0 */
rval = 0;
break;
}
#ifdef MT
#endif
return (rval);
}
void
void *client_data)
{
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* pixmaps never have cursors */
break;
}
#ifdef MT
#endif
}
int
{
int rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* not applicable to pixmaps */
rval = 0;
break;
}
#ifdef MT
#endif
return (rval);
}
int
{
int rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* not applicable to pixmaps */
rval = 0;
break;
}
#ifdef MT
#endif
return (rval);
}
int
{
int rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* not applicable to pixmaps -- force a query for active */
rval = 1;
break;
}
#ifdef MT
#endif
return (rval);
}
int
{
int rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* not applicable to pixmaps -- never active */
rval = 0;
break;
}
#ifdef MT
#endif
return (rval);
}
int
{
int rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* not applicable to pixmaps -- consider never cached */
rval = 0;
break;
}
#ifdef MT
#endif
return (rval);
}
void *
{
void *rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* not applicable to pixmaps -- doesn't have devinfo */
break;
}
#ifdef MT
#endif
return (rval);
}
/* This routine is for compatibility only. In the old interface both
* the "p" and the "non-p" version were in but the "p" version was the
* one that was documented. */
void *
{
return(dga_draw_rtndevinfop (dgadraw));
}
void
char **name)
{
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* not applicable to pixmaps -- no dev type and name */
break;
}
#ifdef MT
#endif
}
void
{
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* not applicable to pixmaps -- no dimensions */
*width = 0;
*height = 0;
*linebytes = 0;
break;
}
#ifdef MT
#endif
}
int
{
int rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* not applicable to pixmaps */
rval = 0;
break;
}
#ifdef MT
#endif
return (rval);
}
void *
{
void *rval;
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* not applicable to pixmaps -- doesn't have retained pixels */
break;
}
#ifdef MT
#endif
return (rval);
}
{
#ifdef MT
#endif
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* not applicable to pixmaps -- doesn't have retained pixels */
break;
}
#ifdef MT
#endif
return (rval);
}
/* Note: the following routines are consolidation private. They are not
a part of the public interface. */
int
{
case DGA_DRAW_WINDOW:
case DGA_DRAW_PIXMAP:
/* pixmaps never are multibuffered */
return (0);
}
}
void
void *client_data)
{
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* pixmaps never are multibuffered */
break;
}
}
void
void **client_data)
{
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* pixmaps never are multibuffered */
break;
}
}
int
{
case DGA_DRAW_WINDOW:
case DGA_DRAW_PIXMAP:
return (DGA_MBACCESS_NONE);
}
}
int
{
case DGA_DRAW_WINDOW:
case DGA_DRAW_PIXMAP:
/* can't tell for pixmaps - be conservative */
return (0);
}
}
void
void *client_data)
{
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* pixmaps never are multibuffered */
break;
}
}
void
void **client_data)
{
case DGA_DRAW_WINDOW:
break;
case DGA_DRAW_PIXMAP:
/* pixmaps never are multibuffered */
break;
}
}
int
{
case DGA_DRAW_WINDOW:
case DGA_DRAW_PIXMAP:
/* Pixmaps never have an ovlstate */
return (0);
}
}
int
{
case DGA_DRAW_WINDOW:
case DGA_DRAW_PIXMAP:
/* Pixmaps never have an ovlstate */
return (DGA_OVLSTATE_CONFLICT);
}
}
void
void *client_data)
{
case DGA_DRAW_WINDOW:
case DGA_DRAW_PIXMAP:
/* Pixmaps never have an ovlstate */
break;
}
}
void
void **client_data)
{
case DGA_DRAW_WINDOW:
case DGA_DRAW_PIXMAP:
/* Pixmaps never have an ovlstate */
break;
}
}