[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

Drawers

inherits from Viewable

Object <- Viewable <- Drawers



Operations

Get list of all operations

AboutToHide
AboutToShow
ApplyText
CalcBoundsBox
CanAcceptCoupon
ConstrainToolTarget
DisplayStoredViewables
Draw
GetCurrentList
InstallInto
MakeActive
MakeValid
NumberOfDrawers
SetTextStyle
SetToDefault
StoreDisplayedViewables
SwitchBankAndDrawer
TextStyle
Touch
Validate


Attributes

Get list of all attributes

ActiveDrawer
Index
UseScaledText


Fields

Field Type
Viewable: superview: Viewable
relativeOrigin: Dot
contentSize: Dot
viewFlags: Flags
labelStyle: TextStyle
color: Unsigned
altColor: Unsigned
shadow: Shadow
sound: Playable
Drawers: textStyle: TextStyle
activeDrawer: Unsigned
knobImage: Image
bodyImage: BorderImage
drawerImage: BorderImage
openDrawerImage: BorderImage
hasSpecialDrawer: Boolean
contentList: ObjectList
nameList: ObjectList
highlightIndex: Unsigned
currentBank: Unsigned
drawerHeight: Micron
hMargin: Micron
topMargin: Micron
bottomMargin: Micron
openOffset: Dot


Instance template

instance Drawers tag;
 relativeOrigin: <0.0,0.0>;
    contentSize: <0.0,0.0>;
      viewFlags: 0x00000000;
     labelStyle: nilObject;
          color: 0;
       altColor: 0;
         shadow: nilObject;
          sound: nilObject;
      textStyle: nilObject;
   activeDrawer: 0;
      knobImage: nilObject;
      bodyImage: nilObject;
    drawerImage: nilObject;
openDrawerImage: nilObject;
hasSpecialDrawer: false;
    contentList: nilObject;
       nameList: nilObject;
 highlightIndex: 0;
    currentBank: 0;
   drawerHeight: <0.0>;
        hMargin: <0.0>;
      topMargin: <0.0>;
   bottomMargin: <0.0>;
     openOffset: <0.0,0.0>;
end instance;

Class definition

Define Class Drawers;
    inherits from Viewable;

    field textStyle:        TextStyle;
    field activeDrawer:     Unsigned, getter;
    field knobImage:        Image;
    field bodyImage:        BorderImage;
    field drawerImage:      BorderImage;
    field openDrawerImage:  BorderImage;
    field hasSpecialDrawer: Boolean;        
        // last drawer is scene specific
    field contentList:      ObjectList;
    field nameList:         ObjectList;
    field highlightIndex:   Unsigned;
    field currentBank:      Unsigned;
    field drawerHeight:     Micron;
    field hMargin:          Micron;
    field topMargin:        Micron;
    field bottomMargin:     Micron;
    field openOffset:       Dot;

    attribute ActiveDrawer: Unsigned, safe, common;
    attribute Index: Unsigned, safe;
    operation SetToDefault(), safe, common;

    operation SwitchBankAndDrawer(newBankNumber: Unsigned; newDrawerNumber: Unsigned; saveCurrent: Boolean);
    operation DisplayStoredViewables();
    operation StoreDisplayedViewables();

    overrides InstallInto;      

    overrides AboutToHide, AboutToShow;
    overrides CalcBoundsBox, Draw, Touch;

    overrides CanAcceptCoupon;
    overrides ConstrainToolTarget;
    overrides ApplyText;

    overrides TextStyle, SetTextStyle;
    overrides MakeValid, MakeActive;
#ifdef SCALED_SCREEN
    overrides UseScaledText;
#endif

#ifdef VALIDATE
    overrides Validate;
#endif

    operation GetCurrentList(): Object, intrinsic;
    operation NumberOfDrawers(): Unsigned, intrinsic;
    
end class;