Object <- Viewable <- Stamp <- AddressLabelStamp |
|
|
ComposeNameFromAddressInfo DragAsGhost DroppedFromWindow |
|
AddressLabel UseScaledText |
| Field | Type | |
|---|---|---|
| Viewable: | superview: | Viewable |
| relativeOrigin: | Dot | |
| contentSize: | Dot | |
| viewFlags: | Flags | |
| labelStyle: | TextStyle | |
| color: | Unsigned | |
| altColor: | Unsigned | |
| shadow: | Shadow | |
| sound: | Playable | |
| Stamp: | image: | Image |
| AddressLabelStamp: | addressLabel: | AddressInfo |
instance AddressLabelStamp tag; relativeOrigin: <0.0,0.0>; contentSize: <0.0,0.0>; viewFlags: 0x00000000; labelStyle: nilObject; color: 0; altColor: 0; shadow: nilObject; sound: nilObject; image: nilObject; addressLabel: nilObject; end instance;
Define Class AddressLabelStamp; inherits from Stamp; field addressLabel: AddressInfo, getter, setter; attribute AddressLabel: AddressInfo; // the address label this stamp represents; // override rarely operation ComposeNameFromAddressInfo(); // call to create a user-visible name from the information in the addressLabel field // uses iAddressLabelStampNameTemplate // override occasionally to phrase the name differently for a subclass overrides DragAsGhost; // returns 0 to disable ghosting when over a name card overrides DroppedFromWindow; // if enclosing card is a name card, lets the name card form // swallow self so stamp is routed to address panel #ifdef SCALED_SCREEN overrides UseScaledText; #endif end class;