9#if !defined(OWL_SPLITTER_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
50 void SetPercent(
float p);
52 TRect GetScreenRect();
67 TShouldDelete::DefDelete);
113 void AdjForResize(
const TSize&
sz);
115 void AdjSplitterWidth(
int w);
137 void AdjForResize(
const TSize&
sz);
139 void AdjSplitterWidth(
int w);
193 TRect CalcAreaOfSplitterMove();
211 TRect CalcAreaOfSplitterMove();
225 void Flush(
bool del);
246 void DrawIndicators();
247 void ClearIndicators();
TDC is the root class for GDI DC wrappers.
Represents a horizontal splitter.
TSplitDirection SplitDirection()
THSplitterIndicator(TSplitter *splitter, const TRect &rect, uint cushion=0)
When specifying the layout metrics for a window, four layout constraints are needed.
Derived from TWindow, TLayoutWindow provides functionality for defining the layout metrics for a wind...
TPaneSplitter is a class that acts as a container for child windows (called panes) and splitters (pan...
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
The tagSIZE struct is defined as.
Abstract base class for TVSplitter and THSplitter.
virtual TRect GetRect()=0
int operator==(const TSplitter &splitter) const
TRect GetScreenRect()
Similar to above except rect is in screen coordinates.
virtual TSplitDirection SplitDirection()=0
virtual void AdjForResize(const TSize &sz)=0
virtual TSplitterIndicator * CreateSplitterIndicator()=0
TRect GetMoveArea()
Return the area the splitter can move in (bounding rectangle).
virtual void AdjSplitterWidth(int w)=0
virtual void Move(int dist)=0
virtual TWindow * Pane1()=0
virtual TLayoutMetrics Setup(TWindow *targetPane, TWindow *newPane, float percent)=0
virtual TWindow * Pane2()=0
virtual void Split(TWindow *targetPane, TWindow *newPane, TSplitDirection sd, float percent)=0
Indicates to the user where the splitter will be moved to when dragging completes.
TSplitter * GetSplitter()
Return splitter from which this indicator was created.
virtual bool CouldContain(const TPoint &point)=0
void Clear()
Clear indicator from screen.
virtual TRect CalcAreaOfSplitterMove()=0
void SetCushion(const uint cushion)
Set cushion.
TSplitterIndicator(TSplitter *splitter, const TRect &rect, uint cushion=0)
virtual void ConnectToRect(const TRect &rect)=0
virtual int CalcDistMoved(const TPoint &start, const TPoint &cur)=0
virtual void Move(int dist)=0
virtual ~TSplitterIndicator()
bool operator==(const TSplitterIndicator &si) const
uint NSplitterIndicators()
Handles the moving of the indicators.
Represents a vertical splitter.
TSplitDirection SplitDirection()
TVSplitterIndicator(TSplitter *splitter, const TRect &rect, uint cushion=0)
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
TRect GetWindowRect() const
Gets the screen coordinates of the window's rectangle.
void MapWindowPoints(HWND hWndTo, TPoint *pts, int count) const
Maps a set of points in one window to a relative set of points in another window.
#define DECLARE_RESPONSE_TABLE(cls)
Definition of classes TLayoutMetrics & TLayoutWindow.
Object Windows Library (OWLNext Core)
UINT TMsgId
Message ID type.
TSplitDirection
Enumeration describing whether to split a window in the X or Y plane.
@ psNone
Unspecified split.
@ psHorizontal
Horizontal split.
@ psVertical
Vertical split.
TSplitterIndicatorList::Iterator TSplitterIndicatorListIterator
Definition of container classes used and made available by OWL.