This is MiscRectList.h in view mode; [Download] [Up]
#ifndef __MiscRectList_h #define __MiscRectList_h #ifdef __GNUC__ #pragma interface #endif //============================================================================= // // Copyright (C) 1995,1996 by Paul S. McCarthy and Eric Sunshine. // Written by Paul S. McCarthy and Eric Sunshine. // All Rights Reserved. // // This notice may not be removed from this source code. // // This object is included in the MiscKit by permission from the authors // and its use is governed by the MiscKit license, found in the file // "License.rtf" in the MiscKit distribution. Please refer to that file // for a list of all applicable permissions and restrictions. // //============================================================================= //----------------------------------------------------------------------------- // MiscRectList.h // // An extensible array of rectangles for rendering a whole list // of rectangles with a single trip to the display server. // //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- // $Id: MiscRectList.h,v 1.1 96/08/30 14:57:29 sunshine Exp $ // $Log: MiscRectList.h,v $ // Revision 1.1 96/08/30 14:57:29 sunshine // An extensible array of rectangles for rendering a whole list // of rectangles with a single trip to the display server // //----------------------------------------------------------------------------- extern "Objective-C" { #import <appkit/graphics.h> // NXRect } struct MiscRectList { private: int num_rects; int max_rects; NXRect* rects; MiscRectList(MiscRectList const&) {} // No copy constructor. void operator = (MiscRectList const&) {} // No assign operator. public: MiscRectList(); ~MiscRectList(); int count() const { return num_rects; } void empty() { num_rects = 0; } void append( NXRect r ); void draw( NXColor c ); }; #endif // __MiscRectList_h
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.