OWLNext 7.0
Borland's Object Windows Library for the modern age
|
TDockable is an abstract base class for fixed or floating docking windows that want to be dockable into docking slips. More...
#include <owl/docking.h>
Public Member Functions | |
virtual TSize | ComputeSize (TAbsLocation loc, TSize *dim)=0 |
Returns the rectangle of the dockable window in the given location. | |
virtual void | GetRect (TRect &rect)=0 |
Return the rectangle of the dockable window in the given location. | |
virtual void | Layout (TAbsLocation loc, TSize *dim=0)=0 |
Changes the window to be equal to the size returned from ComputeNNNNN. | |
virtual bool | ShouldBeginDrag (TPoint &pt)=0 |
This is overriden for any window that wants to be docked. | |
virtual TWindow * | GetWindow ()=0 |
Gets dockable's window and hides it, in case we have to toss it around a bit. | |
virtual THarbor * | GetHarbor ()=0 |
Returns the harbor containing the dockable object. | |
TDockable is an abstract base class for fixed or floating docking windows that want to be dockable into docking slips.
|
pure virtual |
Returns the rectangle of the dockable window in the given location.
The dockable chooses its layout (horizontal, vertical or rectangle) in that position.
Implemented in owl::TDockableGadgetWindow, and owl::TFloatingSlip.
Returns the harbor containing the dockable object.
Implemented in owl::TDockableGadgetWindow, and owl::TFloatingSlip.
Return the rectangle of the dockable window in the given location.
The dockable chooses its layout (horizontal, vertical or rectangle) in that position.
Implemented in owl::TDockableGadgetWindow, and owl::TFloatingSlip.
Gets dockable's window and hides it, in case we have to toss it around a bit.
Implemented in owl::TDockableGadgetWindow, and owl::TFloatingSlip.
|
pure virtual |
Changes the window to be equal to the size returned from ComputeNNNNN.
Implemented in owl::TDockableGadgetWindow, and owl::TFloatingSlip.
This is overriden for any window that wants to be docked.
This routine is called from an LButtonDown to determine if the mouse down should move the window or perform an action within the docked window. For example, if a gadget window is docked, this routine would decide if the mousedown is on an enabled gadget; if so, the control is not to be moved. Instead, the action of the gadget being depressed is performed. Otherwise, the gadget window is moved within the docking window.
Implemented in owl::TDockableGadgetWindow, and owl::TFloatingSlip.