OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Horizontal indicator. More...
#include <owl/splitter.h>
Public Member Functions | |
THSplitterIndicator (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. | |
TSplitter * | GetSplitter () |
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 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. | |
Additional Inherited Members | |
Protected Attributes inherited from owl::TSplitterIndicator | |
TSplitter * | Splitter |
bool | Showing |
uint | DistMoved |
uint | Cushion |
Horizontal indicator.
Definition at line 201 of file splitter.h.
|
inline |
Definition at line 365 of file splitter.h.
|
virtual |
Implements owl::TSplitterIndicator.
Definition at line 870 of file panespli.cpp.
References owl::TSplitter::GetScreenRect(), and owl::TSplitterIndicator::Splitter.
Implements owl::TSplitterIndicator.
Definition at line 842 of file panespli.cpp.
Implements owl::TSplitterIndicator.
Definition at line 783 of file panespli.cpp.
Implements owl::TSplitterIndicator.
Definition at line 853 of file panespli.cpp.
Implements owl::TSplitterIndicator.
Definition at line 797 of file panespli.cpp.
References owl::TSplitterIndicator::Cushion, owl::TSplitterIndicator::DistMoved, owl::TSplitter::GetMoveArea(), owl::TSplitter::GetScreenRect(), and owl::TSplitterIndicator::Splitter.