OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Indicates to the user where the splitter will be moved to when dragging completes. More...
#include <owl/splitter.h>
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 |
TSplitter * | GetSplitter () |
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 TPoint & | TopLeft () const |
Returns the upperleft point. | |
TPoint & | TopLeft () |
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 TPoint & | BottomRight () const |
Returns the TPoint object representing the bottom right corner of this rectangle. | |
TPoint & | BottomRight () |
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. | |
TRect & | Normalize () |
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. | |
TRect & | Offset (int dx, int dy) |
Changes this rectangle so its corners are offset by the given delta values. | |
TRect & | operator+= (const TSize &delta) |
Changes this rectangle so its corners are offset by the given delta values, delta.x and delta.y. | |
TRect & | operator-= (const TSize &delta) |
Changes this rectangle so its corners are offset negatively by the given delta values, delta.x and delta.y. | |
TRect & | MoveTo (int x, int y) |
Moves the upper left corner of the rectangle to a new location and maintains the current dimension. | |
TRect & | Inflate (int dx, int dy) |
Inflates a rectangle inflated by the given delta arguments. | |
TRect & | DeflateRect (int dx, int dy) |
TRect & | Inflate (const TSize &delta) |
Inflates a rectangle inflated by the given delta arguments. | |
TRect & | DeflateRect (const TSize &delta) |
DLN MFC look-alike. | |
TRect & | operator&= (const TRect &other) |
Changes this rectangle to its intersection with the other rectangle. | |
TRect & | operator|= (const TRect &other) |
Changes this rectangle to its union with the other rectangle. | |
Protected Attributes | |
TSplitter * | Splitter |
bool | Showing |
uint | DistMoved |
uint | Cushion |
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.
|
inline |
Definition at line 307 of file splitter.h.
|
inlinevirtual |
Definition at line 152 of file splitter.h.
Implemented in owl::TVSplitterIndicator, and owl::THSplitterIndicator.
|
pure virtual |
Implemented in owl::TVSplitterIndicator, and owl::THSplitterIndicator.
|
inline |
Clear indicator from screen.
Definition at line 330 of file splitter.h.
Implemented in owl::TVSplitterIndicator, and owl::THSplitterIndicator.
Implemented in owl::TVSplitterIndicator, and owl::THSplitterIndicator.
void owl::TSplitterIndicator::Draw | ( | ) |
Definition at line 646 of file panespli.cpp.
References owl::TWindow::GetHandle(), owl::TWindow::MapScreenToClient(), Showing, and Splitter.
|
inline |
Definition at line 321 of file splitter.h.
References DistMoved.
|
inline |
Return splitter from which this indicator was created.
Definition at line 343 of file splitter.h.
References Splitter.
Implemented in owl::TVSplitterIndicator, and owl::THSplitterIndicator.
bool owl::TSplitterIndicator::operator< | ( | const TSplitterIndicator & | si | ) | const |
|
inline |
Definition at line 314 of file splitter.h.
|
protected |
Definition at line 175 of file splitter.h.
|
protected |
Definition at line 171 of file splitter.h.
|
protected |
Definition at line 170 of file splitter.h.
|
protected |
Definition at line 169 of file splitter.h.