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

Vertical indicator. More...

#include <owl/splitter.h>

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

Public Member Functions

 TVSplitterIndicator (TSplitter *splitter, const TRect &rect, uint cushion=0)
 
void ConnectToRect (const TRect &rect)
 
void Move (int dist)
 
int CalcDistMoved (const TPoint &start, const TPoint &cur)
 
bool CouldContain (const TPoint &point)
 
TRect CalcAreaOfSplitterMove ()
 
- Public Member Functions inherited from owl::TSplitterIndicator
 TSplitterIndicator (TSplitter *splitter, const TRect &rect, uint cushion=0)
 
virtual ~TSplitterIndicator ()
 
bool operator== (const TSplitterIndicator &si) const
 
bool operator< (const TSplitterIndicator &si) const
 
uint GetDistMoved ()
 
void Draw ()
 
void Clear ()
 Clear indicator from screen.
 
TSplitterGetSplitter ()
 Return splitter from which this indicator was created.
 
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.
 

Additional Inherited Members

- Protected Attributes inherited from owl::TSplitterIndicator
TSplitterSplitter
 
bool Showing
 
uint DistMoved
 
uint Cushion
 

Detailed Description

Vertical indicator.

Definition at line 183 of file splitter.h.

Constructor & Destructor Documentation

◆ TVSplitterIndicator()

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

Definition at line 358 of file splitter.h.

Member Function Documentation

◆ CalcAreaOfSplitterMove()

TRect owl::TVSplitterIndicator::CalcAreaOfSplitterMove ( )
virtual

◆ CalcDistMoved()

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

Implements owl::TSplitterIndicator.

Definition at line 727 of file panespli.cpp.

◆ ConnectToRect()

void owl::TVSplitterIndicator::ConnectToRect ( const TRect & rect)
virtual

Implements owl::TSplitterIndicator.

Definition at line 667 of file panespli.cpp.

◆ CouldContain()

bool owl::TVSplitterIndicator::CouldContain ( const TPoint & point)
virtual

Implements owl::TSplitterIndicator.

Definition at line 738 of file panespli.cpp.

◆ Move()


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