*
* 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.
*/
/*
** mbsmemb_inquiry.c - state inquiry routines for mbufset members.
*/
#ifdef SERVER_DGA
#endif /* SERVER_DGA */
#include "dga_incls.h"
#include "pix_grab.h"
#include "mbufsetstr.h"
Display *
{
}
char *
{
return (NULL);
}
int
{
}
int
{
return (NULL);
else
return (0);
}
void
{
}
void *
{
}
void *
{
return (NULL);
}
}
}
int
{
return (1);
} else {
return (0);
}
}
int
{
return (1);
} else {
return (0);
}
}
void
void *client_data)
{
}
void
void **client_data)
{
}
int
{
return (DGA_SITE_NULL);
}
/* viewable drawables always are in device site */
return (DGA_SITE_DEVICE);
}
/* the site of a nonviewable multibuffer depends on whether or not
it is cached */
}
void *
{
return (NULL);
}
/* the return value is only valid for nonviewable multibuffers that
are not cached */
}
int
{
return (0);
}
/* the return value is only valid for nonviewable multibuffers that
are not cached */
}
int
{
return (0);
}
/* the return value is only valid for nonviewable multibuffers that
are not cached */
}
int
{
/* always force a clip change on a zombie to get the client
to notice */
return (1);
}
return (1);
} else {
return (0);
}
} else {
/* nonviewable */
return (1);
} else {
return (0);
}
}
}
void
{
*xp = 0;
*yp = 0;
*widthp = 0;
*heightp = 0;
return;
}
} else {
/* nonviewable */
*xp = 0;
*yp = 0;
}
}
int
{
return (DGA_VIS_FULLY_OBSCURED);
}
} else {
/* Non viewable mbufs are always unobscured */
return (DGA_VIS_UNOBSCURED);
}
}
int
{
return (1);
}
} else {
/* nonviewable */
}
}
static short nonviewableShape[] = {
0, /* ymin */
0, /* ymax: fill in based on height */
0, /* xmin */
0, /* xmax: fill in based on width */
};
short *
{
return (NULL);
}
} else {
/* nonviewable */
/* build a dummy shape describing the rectangle */
return (NULL);
} else {
return (nonviewableShape);
}
}
}
int
{
/* consider a zombie to be a "single rectangle" of 0 width and height */
return (1);
}
} else {
/* nonviewable is always a single rectangle */
return (1);
}
}
int
{
/* consider a zombie to be always fully obscured */
return (1);
}
} else {
/* nonviewable can never be obscured */
return (0);
}
}
{
/* zombies don't have borders */
return (0);
}
} else {
/* multibuffers don't have borders */
return (0);
}
}
typedef void (*DgaCursTakeDownFuncOld)();
void
void *client_data)
{
/* Nonviewable drawables never have a cursor */
return;
}
/* viewable multibuffers share the cursor of the main window */
if (dga_win_curschg(dgaw)) {
if (dga_win_cursactive(dgaw)) {
}
}
}
int
{
/* rtngrab is not something that must be called from inside a lock
* and therefore the eLockSubj is meaningless. Just do a
* dga_rtn_grab() on the window. */
}
int
{
}
int
{
} else {
/* rtn is not applicable to multibuffers -- always force an activity check */
return (1);
}
}
int
{
} else {
/* rtn is not applicable to multibuffers -- never active */
return (0);
}
}
int
{
} else {
/* rtn is not applicable to multibuffers -- never cached */
return (0);
}
}
void *
{
} else {
/* rtn is not applicable to multibuffers -- no devinfo */
return (NULL);
}
}
void
{
} else {
/* rtn is not applicable to multibuffers -- values of return args are arbitrary */
}
}
void
{
} else {
/* rtn is not applicable to multibuffers -- values of return args are arbitrary */
*width = 0;
*height = 0;
*linebytes = 0;
}
}
int
{
} else {
/* rtn is not applicable to multibuffers -- values of return args are arbitrary */
return (0);
}
}
void *
{
} else {
/* rtn is not applicable to multibuffers -- return NULL */
return (NULL);
}
}
int
{
return (1);
} else {
return (0);
}
}
void
void *client_data)
{
}
void
void **client_data)
{
}
int
{
return (DGA_MBACCESS_NONE);
} else {
}
}
int
{
return (1);
} else {
}
}
void
void *client_data)
{
}
void
void **client_data)
{
}
int
{
return (1);
} else {
return (0);
}
}
int
{
/* REMIND: Do we need to check this stuff? */
return (DGA_OVLSTATE_CONFLICT);
}
/* Don't let clients do "overlay" rendering to regular windows! */
return DGA_OVLSTATE_CONFLICT;
else
return dgawin->c_ovlstate;
}
void
void *client_data)
{
}
void
void **client_data)
{
}