Base class for Component::Positioners that are based upon relative coordinates. More...
Inherits Component::Positioner, ComponentListener, and MarkerList::Listener.
Classes | |
| class | ComponentScope |
| Used for resolving a RelativeCoordinate expression in the context of a component. More... | |
Public Member Functions | |
| RelativeCoordinatePositionerBase (Component &component_) | |
| ~RelativeCoordinatePositionerBase () | |
| void | componentMovedOrResized (Component &, bool, bool) |
| Called when the component's position or size changes. | |
| void | componentParentHierarchyChanged (Component &) |
| Called to indicate that the component's parents have changed. | |
| void | componentChildrenChanged (Component &component) |
| Called when the component has children added or removed. | |
| void | componentBeingDeleted (Component &component) |
| Called when the component is in the process of being deleted. | |
| void | markersChanged (MarkerList *) |
| Called when something in the given marker list changes. | |
| void | markerListBeingDeleted (MarkerList *markerList) |
| Called when the given marker list is being deleted. | |
| void | apply () |
| bool | addCoordinate (const RelativeCoordinate &coord) |
| bool | addPoint (const RelativePoint &point) |
Protected Member Functions | |
| virtual bool | registerCoordinates ()=0 |
| virtual void | applyToComponentBounds ()=0 |
Base class for Component::Positioners that are based upon relative coordinates.
| void RelativeCoordinatePositionerBase::componentMovedOrResized | ( | Component & | component, |
| bool | wasMoved, | ||
| bool | wasResized | ||
| ) | [virtual] |
Called when the component's position or size changes.
| component | the component that was moved or resized |
| wasMoved | true if the component's top-left corner has just moved |
| wasResized | true if the component's width or height has just changed |
Reimplemented from ComponentListener.
| void RelativeCoordinatePositionerBase::componentParentHierarchyChanged | ( | Component & | component | ) | [virtual] |
Called to indicate that the component's parents have changed.
When a component is added or removed from its parent, all of its children will produce this notification (recursively - so all children of its children will also be called as well).
| component | the component that this listener is registered with |
Reimplemented from ComponentListener.
| void RelativeCoordinatePositionerBase::componentChildrenChanged | ( | Component & | component | ) | [virtual] |
Called when the component has children added or removed.
| component | the component whose children were changed |
Reimplemented from ComponentListener.
| void RelativeCoordinatePositionerBase::componentBeingDeleted | ( | Component & | component | ) | [virtual] |
Called when the component is in the process of being deleted.
This callback is made from inside the destructor, so be very, very cautious about what you do in here.
In particular, bear in mind that it's the Component base class's destructor that calls this - so if the object that's being deleted is a subclass of Component, then the subclass layers of the object will already have been destructed when it gets to this point!
Reimplemented from ComponentListener.
| void RelativeCoordinatePositionerBase::markersChanged | ( | MarkerList * | markerList | ) | [virtual] |
Called when something in the given marker list changes.
Implements MarkerList::Listener.
| void RelativeCoordinatePositionerBase::markerListBeingDeleted | ( | MarkerList * | markerList | ) | [virtual] |
Called when the given marker list is being deleted.
Reimplemented from MarkerList::Listener.
| bool RelativeCoordinatePositionerBase::addCoordinate | ( | const RelativeCoordinate & | coord | ) |
| bool RelativeCoordinatePositionerBase::addPoint | ( | const RelativePoint & | point | ) |
| virtual bool RelativeCoordinatePositionerBase::registerCoordinates | ( | ) | [protected, pure virtual] |
| virtual void RelativeCoordinatePositionerBase::applyToComponentBounds | ( | ) | [protected, pure virtual] |