Object <- Viewable <- Box <- CategoryBox |
|
|
CanAccept CanAcceptCoupon ConstrainToolTarget DefaultReceiverForSelf Swallow Tap Touch |
|
AuthoringModeOnly CategoryContents UseScaledText |
| Field | Type | |
|---|---|---|
| Viewable: | superview: | Viewable |
| relativeOrigin: | Dot | |
| contentSize: | Dot | |
| viewFlags: | Flags | |
| labelStyle: | TextStyle | |
| color: | Unsigned | |
| altColor: | Unsigned | |
| shadow: | Shadow | |
| sound: | Playable | |
| HasBorder: | border: | Border |
| InfoTopic: | info: | Object |
| CategoryBox: | categoryContents: | ObjectList |
| categoryType: | ClassNumber | |
| authoringModeOnly: | Boolean |
instance CategoryBox tag; relativeOrigin: <0.0,0.0>; contentSize: <0.0,0.0>; viewFlags: 0x00000000; labelStyle: nilObject; color: 0; altColor: 0; shadow: nilObject; sound: nilObject; border: nilObject; info: nilObject; categoryContents: nilObject; categoryType: nilClass; authoringModeOnly: false; end instance;
Define Class CategoryBox; inherits from Box, InfoTopic, CanInstallSelf; field categoryContents: ObjectList; field categoryType: ClassNumber; // specifies the type of thing that the category box contains field authoringModeOnly: Boolean, getter; attribute CategoryContents: ObjectList; // list of viewables to display when this category box is tapped attribute AuthoringModeOnly: Boolean, readOnly; // Specifies whether the category box is to be installed // only in authoring mode. overrides CanAccept, CanAcceptCoupon, Swallow; overrides ConstrainToolTarget; overrides DefaultReceiverForSelf; overrides Touch, Tap; #ifdef SCALED_SCREEN overrides UseScaledText; #endif end class;