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

#import "drawundo.h"

@interface FillGraphicsChange(PrivateMethods)

- (BOOL)subsumeIdenticalChange:change;

@end

@implementation FillGraphicsChange

- initGraphicView:aGraphicView
{
    return [self initGraphicView:aGraphicView fill:-1];
}

- initGraphicView:aGraphicView fill:(int)fillValue
{
    [super initGraphicView:aGraphicView];
    fill = fillValue;
    return self;
}

- (const char *)changeName
{
    return NXLocalStringFromTable("Operations", "Fill", NULL, "The operation of filling a graphical entity's interior with a gray or color.");
}

- changeDetailClass
{
    return [FillChangeDetail class];
}

- (BOOL)subsumeIdenticalChange:change
{
    return YES;
}

- (int)fill
{
    return fill;
}

@end

unix.superglobalmegacorp.com

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