This is MyView.rtf in view mode; [Download] [Up]
paperh18648 margl-907 margr0 margt0 margb0fi0 ri0 ql sb0 f1 fs24 Version 1.1 Copyright f3 'e3f1 1995 by My Company, Inc., All Rights Reserved. pard s0 li2116 fi0 ri1007 ql tx2494 tx2872 tx3250 f1 fs28 fs16 fs28 fs16 fs28 pard s5 li2116 fi0 ri1007 ql f0 b fs56 MyView fs16 fs56 pard s17 li4888 fi-2771 ri1007 ql tx4888 f1 b0 fs28 fs16 fs28 f0 b fs28 Inherits From: b0 fs28 f1 View : Responder : Object fs16 s10 fs16 fs28 f0 b fs28 Declared In: b0 fs28 f1 MyView.h fs16 fs28 pard s13 li1360 fi0 ri1007 ql f0 b fs36 fs16 fs36 Class Description fs16 pard s0 li2116 fi0 ri1007 ql tx2494 tx2872 tx3250 f1 b0 fs28 fs16 fs28 MyView is a subclass of View which provides the methods b setBackgroundColor:b0 and b colorb0 to set and query the background color for the view. fs16 fs28 fs16 fs28 Note that this is a i really uselessi0 example class! fs16 fs28 fs16 fs28 The .001% of the time you wish to show the % and # characters, (or even as b bold %b0 and i italics #i0 !) fs28s13 li1360 fi0 ri1007 ql f0 b fs36 fs16 fs36 Defined Types fs16 SYNOPSIS MYFavoriteColorsb0 typedef enum { FCRed = NX_COLORRED, FCBlue = NX_COLORCYAN } b MYFavoriteColorsb0; pard fs16 li2116 fi-389 tx2116 fc0 cf0 f0 b fs20 DESCRIPTIONb0 fs28 A handy typedef for color information pardtx2116tx6148tx6794tx7440tx8086tx9378fs20li6148fi-4421fc0cf0 SYNOPSIS UglyColorFuncb0 typedef NXColor (*b UglyColorFuncb0)(NXColor *); pard fs16 li2116 fi-389 tx2116 fc0 cf0 f0 b fs20 DESCRIPTIONb0 fs28 Yecchy function typedef construct s13 li1360 fi0 ri1007 ql f0 b fs36 fs16 fs36 Symbolic Constants fs16 SYNOPSIS MY_DEFAULTCOLORb0 NX_COLORGREEN MY_OTHERGOODCOLORb0 NX_COLORBLUE pard fs16 li2116 fi-389 tx2116 fc0 cf0 f0 b fs20 DESCRIPTIONb0 fs28 Constants that define useful colors. s13 li1360 fi0 ri1007 ql f0 b fs36 fs16 fs36 Macro Definitions fs16 SYNOPSIS MY_IS_ONE(b0xb )b0 MY_IS_TWO(b0xb )b0 pard fs16 li2116 fi-389 tx2116 fc0 cf0 f0 b fs20 DESCRIPTIONb0 fs28 Macros that i reallyi0 help me calculate things. s13 li1360 fi0 ri1007 ql f0 b fs36 fs16 fs36 Functions fs16 SYNOPSIS b MYColorIsValid(b0int yearb )b0 pard fs16 li2116 fi-389 tx2116 fc0 cf0 f0 b fs20 DESCRIPTIONb0 fs28 Color testing functions s13 li1360 fi0 ri1007 ql f0 b fs36 fs16 fs36 Global Variables fs16 SYNOPSIS b MYCurrentGlobalColorb0; pard s13 li1360 fi0 ri1007 ql f0 b fs36 fs16 fs36 Instance Variables fs16 pard s18 li2116 fi0 ri1007 ql tx2872 f1 b0 fs28 NXColor b backgroundColorb0 ; pard s11 li6148 fi-4031 ri1007 ql tx6148 tx9676 tx10180 fs16 fs28 backgroundColor The color used to display the background of my view. pard s13 li1360 fi0 ri1007 ql f0 b fs36 fs16 fs36 Method Types fs16 f1 b0 fs28 s35 li6148 fi-4031 ri1007 ql tx6148 tx9676 tx10180 fs16 fs28 Determining the color {f3 -} setBackgroundColor: pard s34 li6652 fi-503 ri1007 ql tx9676 tx10180 {f3 -} backgroundColor pard s35 li6148 fi-4031 ri1007 ql tx6148 tx9676 tx10180 fs16 fs28 Displaying {f3 -} drawSelf:: pard s13 li1360 fi0 ri1007 ql f0 b fs36 fs16 fs36 Instance Methods fs16 fs36 s21 li2493 fi-1132 fi-376 fs28 fs16 fs29 b backgroundColor s20 li3249 fi-1132 fi-756 f1 b0 fs28 {f3 -} (NXColor)b backgroundColorb0 pard s0 li2116 fi0 ri1007 ql tx2494 tx2872 tx3250 fs16 fs28 Returns the color which is displayed as a background to this view. fs16 fs28 pard s19 li2493 fi-376 ri1007 ql f0 fs28 fs16 fs29 b drawSelf:: s20 li3249 fi-1132 fi-756 f1 b0 fs28 {f3 -} b drawSelf:b0 (const NXRect *)i rectsi0 b :b0 (int)i rectCounti0 b b0 pard s0 li2116 fi0 ri1007 ql tx2494 tx2872 tx3250 fs16 fs28 Fills the rectangles specified by i rectsi0 and i rectCounti0 with the background color specified with b setBackgroundColor:b0 and then returns b selfb0 . fs16 fs28 pard s19 li2493 fi-376 ri1007 ql f0 fs28 fs16 fs29 b setBackgroundColor: s20 li3249 fi-1132 fi-756 f1 b0 fs28 {f3 -} b setBackgroundColor:b0 (NXColor)i aColori0 b b0 pard s0 li2116 fi0 ri1007 ql tx2494 tx2872 tx3250 fs16 fs28 Sets the background color of the view to i aColori0 , and returns b selfb0 . }
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.