OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TSplitterIndicator Class Referenceabstract

Indicates to the user where the splitter will be moved to when dragging completes. More...

#include <owl/splitter.h>

Inheritance diagram for owl::TSplitterIndicator:
owl::TRect owl::THSplitterIndicator owl::TVSplitterIndicator

Public Member Functions

 TSplitterIndicator (TSplitter *splitter, const TRect &rect, uint cushion=0)
 
virtual ~TSplitterIndicator ()
 
bool operator== (const TSplitterIndicator &si) const
 
bool operator< (const TSplitterIndicator &si) const
 
virtual void ConnectToRect (const TRect &rect)=0
 
virtual void Move (int dist)=0
 
uint GetDistMoved ()
 
void Draw ()
 
void Clear ()
 Clear indicator from screen.
 
virtual int CalcDistMoved (const TPoint &start, const TPoint &cur)=0
 
virtual bool CouldContain (const TPoint &point)=0
 
TSplitterGetSplitter ()
 Return splitter from which this indicator was created.
 
virtual TRect CalcAreaOfSplitterMove ()=0
 
void SetCushion (const uint cushion)
 Set cushion.
 
- Public Member Functions inherited from owl::TRect
 TRect ()
 Default constructor that does nothing.
 
 TRect (const tagRECT &rect)
 Copy from an existing rectangle.
 
 TRect (const TRect &rect)
 Copy from an existing rectangle.
 
 TRect (int _left, int _top, int _right, int _bottom)
 Constructor that sets all the values explicitly.
 
 TRect (const TPoint &upLeft, const TPoint &loRight)
 Creates a rectangle with the given top left and bottom right points.
 
 TRect (const TPoint &origin, const TSize &extent)
 Creates a rectangle with its origin (top left) at origin, width at extent.cx, height at extent.cy.
 
void SetNull ()
 Sets the left, top, right, and bottom of the rectangle to 0.
 
void SetEmpty ()
 Empties this rectangle by setting left, top, right, and bottom to 0.
 
void Set (int _left, int _top, int _right, int _bottom)
 Repositions and resizes this rectangle to the given values.
 
void SetWH (int _left, int _top, int w, int h)
 Determines the rectangle, given its upperleft point, width, and height.
 
 operator const TPoint * () const
 Type conversion operators converting the pointer to this rectangle to type pointer to TPoint.
 
 operator TPoint * ()
 Type conversion operators converting the pointer to this rectangle to type pointer to TPoint.
 
bool IsEmpty () const
 Returns true if left >= right or top >= bottom; otherwise, returns false.
 
bool IsNull () const
 Returns true if left, right, top, and bottom are all 0; otherwise, returns false.
 
bool operator== (const TRect &other) const
 Returns true if this rectangle has identical corner coordinates to the other rectangle; otherwise, returns false.
 
bool operator!= (const TRect &other) const
 Returns false if this rectangle has identical corner coordinates to the other rectangle; otherwise, returns true.
 
int Left () const
 Returns the left value.
 
int X () const
 Returns the left value.
 
int Top () const
 Returns the top value.
 
int Y () const
 Returns the top value.
 
int Right () const
 Returns the right value.
 
int Bottom () const
 Returns the bottom value.
 
const TPointTopLeft () const
 Returns the upperleft point.
 
TPointTopLeft ()
 Returns the upperleft point.
 
TPoint TopRight () const
 Returns the upperright point.
 
TPoint BottomLeft () const
 Returns the TPoint object representing the bottom left corner of this rectangle.
 
const TPointBottomRight () const
 Returns the TPoint object representing the bottom right corner of this rectangle.
 
TPointBottomRight ()
 Returns the TPoint object representing the bottom right corner of this rectangle.
 
int Width () const
 Returns the width of this rectangle (right - left).
 
int Height () const
 Returns the height of this rectangle (bottom - top).
 
TSize Size () const
 Returns the size of rectangle.
 
long Area () const
 Returns the area of this rectangle.
 
bool Contains (const TPoint &point) const
 Returns true if the given point lies within this rectangle; otherwise, it returns false.
 
bool Contains (const TRect &other) const
 Returns true if the other rectangle lies on or within this rectangle; otherwise, it returns false.
 
bool Touches (const TRect &other) const
 Returns true if the other rectangle shares any interior points with this rectangle; otherwise, returns false.
 
TRect OffsetBy (int dx, int dy) const
 Returns a rectangle with the corners offset by the given delta values.
 
TRect operator+ (const TSize &size) const
 Returns a rectangle offset positively by the delta values' given sizes.
 
TRect operator- (const TSize &size) const
 Returns a rectangle offset negatively by the delta values' given sizes.
 
TRect MovedTo (int x, int y)
 Moves the upper left point of the rectangle while maintaining the current dimension.
 
TRect InflatedBy (int dx, int dy) const
 Returns a rectangle inflated by the given delta arguments.
 
TRect InflatedBy (const TSize &size) const
 Returns a rectangle inflated by the given delta arguments.
 
TRect Normalized () const
 Returns a normalized rectangle with the top left corner at (Min(left, right), Min(top, bottom)) and the bottom right corner at (Max(left, right), Max(top, bottom)).
 
TRect operator& (const TRect &other) const
 Returns the intersection of this rectangle and the other rectangle.
 
TRect operator| (const TRect &other) const
 Returns the union of this rectangle and the other rectangle.
 
int Subtract (const TRect &other, TRect result[]) const
 Determines the parts of this rect that do not lie within "other" region.
 
TRectNormalize ()
 Normalizes this rectangle by switching the left and right data member values if left > right, and switching the top and bottom data member values if top > bottom.
 
TRectOffset (int dx, int dy)
 Changes this rectangle so its corners are offset by the given delta values.
 
TRectoperator+= (const TSize &delta)
 Changes this rectangle so its corners are offset by the given delta values, delta.x and delta.y.
 
TRectoperator-= (const TSize &delta)
 Changes this rectangle so its corners are offset negatively by the given delta values, delta.x and delta.y.
 
TRectMoveTo (int x, int y)
 Moves the upper left corner of the rectangle to a new location and maintains the current dimension.
 
TRectInflate (int dx, int dy)
 Inflates a rectangle inflated by the given delta arguments.
 
TRectDeflateRect (int dx, int dy)
 
TRectInflate (const TSize &delta)
 Inflates a rectangle inflated by the given delta arguments.
 
TRectDeflateRect (const TSize &delta)
 DLN MFC look-alike.
 
TRectoperator&= (const TRect &other)
 Changes this rectangle to its intersection with the other rectangle.
 
TRectoperator|= (const TRect &other)
 Changes this rectangle to its union with the other rectangle.
 

Protected Attributes

TSplitterSplitter
 
bool Showing
 
uint DistMoved
 
uint Cushion
 

Detailed Description

Indicates to the user where the splitter will be moved to when dragging completes.

Abstract base class for TVSplitterIndicator and THSplitterIndicator.

Definition at line 149 of file splitter.h.

Constructor & Destructor Documentation

◆ TSplitterIndicator()

owl::TSplitterIndicator::TSplitterIndicator ( TSplitter * splitter,
const TRect & rect,
uint cushion = 0 )
inline

Definition at line 307 of file splitter.h.

◆ ~TSplitterIndicator()

virtual owl::TSplitterIndicator::~TSplitterIndicator ( )
inlinevirtual

Definition at line 152 of file splitter.h.

Member Function Documentation

◆ CalcAreaOfSplitterMove()

virtual TRect owl::TSplitterIndicator::CalcAreaOfSplitterMove ( )
pure virtual

◆ CalcDistMoved()

virtual int owl::TSplitterIndicator::CalcDistMoved ( const TPoint & start,
const TPoint & cur )
pure virtual

◆ Clear()

void owl::TSplitterIndicator::Clear ( )
inline

Clear indicator from screen.

Definition at line 330 of file splitter.h.

References Draw(), and Showing.

◆ ConnectToRect()

virtual void owl::TSplitterIndicator::ConnectToRect ( const TRect & rect)
pure virtual

◆ CouldContain()

virtual bool owl::TSplitterIndicator::CouldContain ( const TPoint & point)
pure virtual

◆ Draw()

void owl::TSplitterIndicator::Draw ( )

◆ GetDistMoved()

uint owl::TSplitterIndicator::GetDistMoved ( )
inline

Definition at line 321 of file splitter.h.

References DistMoved.

◆ GetSplitter()

TSplitter * owl::TSplitterIndicator::GetSplitter ( )
inline

Return splitter from which this indicator was created.

Definition at line 343 of file splitter.h.

References Splitter.

◆ Move()

virtual void owl::TSplitterIndicator::Move ( int dist)
pure virtual

◆ operator<()

bool owl::TSplitterIndicator::operator< ( const TSplitterIndicator & si) const

◆ operator==()

bool owl::TSplitterIndicator::operator== ( const TSplitterIndicator & si) const
inline

Definition at line 314 of file splitter.h.

◆ SetCushion()

void owl::TSplitterIndicator::SetCushion ( const uint cushion)
inline

Set cushion.

Definition at line 352 of file splitter.h.

References Cushion.

Member Data Documentation

◆ Cushion

uint owl::TSplitterIndicator::Cushion
protected

Definition at line 175 of file splitter.h.

◆ DistMoved

uint owl::TSplitterIndicator::DistMoved
protected

Definition at line 171 of file splitter.h.

◆ Showing

bool owl::TSplitterIndicator::Showing
protected

Definition at line 170 of file splitter.h.

◆ Splitter

TSplitter* owl::TSplitterIndicator::Splitter
protected

Definition at line 169 of file splitter.h.


The documentation for this class was generated from the following files: