Action String | Function Description |
TabGroupFwd() | |
TabGroupBwd() | |
TraverseFwd() | |
TraverseBwd() | |
TraverseHome() | |
If the string matches any of the above actions return true,otherwise call Interactor::Interpret(action)and return the result. For more information, see Interpret()in Interactor(3X). void Lower(Interactor*)Requests to have an interactor’s canvas put below all others in the scene, potentially obscuring it. Users call Lower() and subclasses implement DoLower(). void Move(Interactor*, IntCoord x, IntCoord y, Alignment = BottomLeft)Requests that an interactor be moved to the given coordinates using the given alignment. Users call Move() and subclasses implement DoMove() to redefine the current functionality. void Propagate(boolean)Sets the propagation flag to the given value. Propagation refers to how parents are notified when Change() is called on a scene. If set to true, the parent is notified of a scene’s change by actually calling Change() on the parent. If set to false, the scene’s parent will not be notified and the scene’s Resize() operation will be called instead. void Raise(Interactor*)Requests to have an interactor’s canvas put above all others in the scene, making it fully visible. Users call Raise() and subclasses implement DoRaise(). void Remove(Interactor*)Removes an interactor from a scene. Users call Remove() and subclasses implement DoRemove(). virtual void TabGroupDefault(int n)Makes the nth traversable interactor (using insertion order, starting with 1) the tab group default. This interactor will receive the keyboard focus whenever this tab group is traversed. If not specified, the first interactor in the tab group is the default. virtual int TabGroupDefault()Returns the index of the default item within the tab group associated with this scene. The index is the nth traversable interactor in the scene. Protected Operationsvirtual void DoChange(Interactor*)Not implemented in the Scene class. Must be implemented in classes derived from Scene to handle changing the given interactor’s shape. virtual void DoEnable(boolean)Used to enable or disable all components in a scene. DoEnable(true) calls each component’s Enable() operation. DoEnable(false) calls each component’s Disable() operation. virtual void DoInsert(Interactor*, boolean, IntCoord& x, IntCoord& y)Not implemented in the Scene class. Must be implemented in classes derived from Scene to handle inserting interactors at <IntCoord& x, IntCoord& y>, with a given shape. virtual void DoLower(Interactor*)Not implemented in the Scene class. Must be implemented in classes derived from Scene to handle putting the canvas of the given interactor below all other interactors in the scene. virtual void DoMove(Interactor*, IntCoord& x, IntCoord& y)Not implemented in the Scene class. Must be implemented in classes derived from Scene to handle moving the given interactor to the new <x, y> coordinates. virtual void DoRaise(Interactor*)Not implemented in the Scene class. Must be implemented in classes derived from Scene to handle putting the canvas of the given interactor above all other interactors in the scene, thus making it fully visible. virtual void DoRemove(Interactor*)Not implemented in the Scene class. Must be implemented in classes derived from Scene to handle removing the given interactor. virtual Interactor* Wrap(Interactor*)By default, Wrap() simply returns the passed interactor. It is provided so that when deriving from Scene, a user may optionally wrap some interactor around the passed interactor. For example, Wrap() could insert the passed interactor in a frame and return the frame. void Map(Interactor* i, boolean raised = true)Maps the given interactor i in the window. If raised is true, the interactor is raised to the front. The interactor’s canvas status is set to mapped. void Place(Interactor*, IntCoord, IntCoord, IntCoord, IntCoord, boolean map = true)Places the given interactor at the given coordinates and sets map to true to raise the interactor’s canvas above all other interactors. This function checks for a valid window in which to place the interactor. If there is none, then a new window is created, the interactor is placed and raised. void PrepareToInsert(Interactor)Checks to see that the interactor has a valid canvas and that the canvas is mapped. It then calls Interactor::Config() on the scene. void UnMap(Interactor* i)Unmaps the given interactor. The interactor is unmapped in the window and the canvas status of the interactor is set to unmapped. X ResourcesNone. Default Keyboard Translations Default Keyboard TranslationsKey BindingAction String Shift<Key>Tab<Key>BackTab<Key>Tab<Key>osfRight<Key>osfDown<Key>osfLeft<Key>osfUp<Key>osfBeginLine These translations are only set on top level scenes. See the Interpret()operation for a description of the action strings. ExamplesNo example for this abstract base class. See MonoScene(3X) and HBox(3X) for examples. Files scene.h