/*
    NXCachedImageRep - wrapped for cashing images

    Copyright (c) 1994, 1995,  Adam Fedor.

    Implementation of display specific methods for X-Windows
*/

#include "NXCachedImageRep.h"
#include "Window.h"
#include "dpsclient/dpsclient.h"
#include "dpsclient/wraps.h"

const char *NXCachedImageRepInstanceName(void)
{
    return "NXCachedImageRep";
}

@implementation NXCachedImageRep(ToolKit)

/* Copy the contents of our window to the lock-focused window */
- (BOOL)_displayDraw
{
    PScomposite(NX_X(&_rect), NX_Y(&_rect), NX_WIDTH(&_rect), 
		NX_HEIGHT(&_rect), [_window gState], 0, 0, NX_SOVER);
    return YES;
}

@end
