Annotation of Examples/AppKit/Backspace/BackWindow.m, revision 1.1.1.1

1.1       root        1: //  BackWindow.m
                      2: //
                      3: //  You may freely copy, distribute, and reuse the code in this example.
                      4: //  NeXT disclaims any warranty of any kind, expressed or  implied, as to its
                      5: //  fitness for any particular use.
                      6: 
                      7: #import "BackWindow.h"
                      8: #import "SpaceView.h"
                      9: 
                     10: #import <appkit/appkit.h>
                     11: 
                     12: // This class supplies a borderless window as big as the screen.  It
                     13: // makes an assumption that all screens are the same size as the main
                     14: // screen, which I don't like, so we'll just have to see if it still
                     15: // works if and when we get a bunch of screens of different sizes.
                     16: // (minor Yuck) -sam
                     17: 
                     18: @implementation BackWindow
                     19: 
                     20: + getFrameRect:(NXRect *)fRect forContentRect:(const NXRect *)cRect
                     21:         style:(int)aStyle
                     22: {
                     23:   fRect->origin.x=fRect->origin.y=0;
                     24:   [NXApp getScreenSize:&(fRect->size)];
                     25:   return self;
                     26: }
                     27: 
                     28: + getContentRect:(NXRect *)cRect forFrameRect:(const NXRect *)fRect
                     29:           style:(int)aStyle
                     30: {
                     31:   cRect->origin.x=cRect->origin.y=0;
                     32:   [NXApp getScreenSize:&(cRect->size)];
                     33:   return self;
                     34: }
                     35: 
                     36: + (NXCoord)minFrameWidth:(const char *)aTitle forStyle:(int)aStyle
                     37:              buttonMask:(int)aMask;
                     38: {
                     39:   NXSize s;
                     40:   [NXApp getScreenSize:&s];
                     41:   return s.width;
                     42: }
                     43: 
                     44: 
                     45: @end

unix.superglobalmegacorp.com

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