Annotation of Examples/AppKit/SortingInAction/SortView.h, revision 1.1

1.1     ! root        1: #import <appkit/View.h>
        !             2: 
        !             3: #define VIEW_HEIGHT 110.0      // default height of a SortView
        !             4: #define VIEW_WIDTH 510.0       // default width of a SortView
        !             5: 
        !             6: @interface SortView:View
        !             7: 
        !             8: {
        !             9:     id sort;                   /* the Sort object for this SortView */
        !            10:     id titleFont,numberFont;   /* fonts used to display in the SortView */
        !            11:     int numRows, numPixelsInRow;/* various integers which describe */
        !            12:     int barWidth, elementWidth;        /* the shape and size of the elements */
        !            13:     int rowHeight;
        !            14:     NXRect drawRect;           /* rectangle for drawing the sort elements */
        !            15:     char *tickString,*moveString,/* strings obtained from the NXStringTable */
        !            16:      *compString,* fcallString;        /* to label different statistics */
        !            17:      
        !            18: }
        !            19: 
        !            20: - initSort:aSort;
        !            21: 
        !            22: - setUpForSize:(int)numElements;
        !            23: 
        !            24: - compare:(int)element1 value:(int)value1 with:(int)element2 value:(int)value2;
        !            25: - swap:(int)element1 value:(int)value1 with:(int)element2 value:(int)value2;
        !            26: - moveValue:(int)new to:(int)position oldValue:(int)old;
        !            27: 
        !            28: - drawSelf:(const NXRect*)rects :(int)rectCount;
        !            29: - drawStatistics;
        !            30: - displayFinished;
        !            31: 
        !            32: @end

unix.superglobalmegacorp.com

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