File:  [NeXTSTEP 3.3 examples] / Examples / AppKit / ScrollDoodScroll / StubView.m
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:48:40 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3

// StubView.m
// By Jayson Adams, NeXT Developer Support Team
// You may freely copy, distribute and reuse the code in this example.
// NeXT disclaims any warranty of any kind, expressed or implied, as to its
// fitness for any particular use.

#import <dpsclient/psops.h>
#import <appkit/graphics.h>

#import "StubView.h"

@implementation StubView

- drawSelf:(const NXRect *)rects :(int)count
{
    NXRect	lineRect;
    
    PSsetgray(NX_WHITE);
    NXRectFill(&bounds);
    PSsetgray(NX_BLACK);
    
    NXSetRect(&lineRect, 0.0, 0.0, NX_WIDTH(&bounds), 1.0);
    NXFrameRect(&lineRect);
    
    return self;
}

@end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.