1 /* 2 NSCachedImageRep.h 3 4 Cached image representation. 5 6 Copyright (C) 1996 Free Software Foundation, Inc. 7 8 Written by: Adam Fedor <fedor@colorado.edu> 9 Date: Feb 1996 10 11 This file is part of the GNUstep GUI Library. 12 13 This library is free software; you can redistribute it and/or 14 modify it under the terms of the GNU Lesser General Public 15 License as published by the Free Software Foundation; either 16 version 2 of the License, or (at your option) any later version. 17 18 This library is distributed in the hope that it will be useful, 19 but WITHOUT ANY WARRANTY; without even the implied warranty of 20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 Lesser General Public License for more details. 22 23 You should have received a copy of the GNU Lesser General Public 24 License along with this library; see the file COPYING.LIB. 25 If not, see <http://www.gnu.org/licenses/> or write to the 26 Free Software Foundation, 51 Franklin Street, Fifth Floor, 27 Boston, MA 02110-1301, USA. 28 */ 29 30 #ifndef _GNUstep_H_NSCachedImageRep 31 #define _GNUstep_H_NSCachedImageRep 32 #import <GNUstepBase/GSVersionMacros.h> 33 34 #import <AppKit/NSImageRep.h> 35 #import <AppKit/NSGraphics.h> 36 37 @class NSWindow; 38 39 @interface NSCachedImageRep : NSImageRep 40 { 41 // Attributes 42 NSRect _rect; 43 NSWindow* _window; 44 } 45 46 // 47 // Initializing an NSCachedImageRep 48 // 49 50 /** 51 * GNUstep extension 52 */ 53 - (id) initWithSize: (NSSize)aSize 54 pixelsWide: (NSInteger)pixelsWide 55 pixelsHigh: (NSInteger)pixelsHigh 56 depth: (NSWindowDepth)aDepth 57 separate: (BOOL)separate 58 alpha: (BOOL)alpha; 59 60 - (id)initWithSize:(NSSize)aSize 61 depth:(NSWindowDepth)aDepth 62 separate:(BOOL)separate 63 alpha:(BOOL)alpha; 64 - (id)initWithWindow:(NSWindow *)aWindow 65 rect:(NSRect)aRect; 66 67 // 68 // Getting the Representation 69 // 70 - (NSRect)rect; 71 - (NSWindow *)window; 72 73 @end 74 75 #endif // _GNUstep_H_NSCachedImageRep 76