include/swkey.h File Reference
#include <swobject.h>
#include <defs.h>
#include <sysdata.h>
#include <utilstr.h>
Go to the source code of this file.
Define Documentation
| #define KEYERR_OUTOFBOUNDS 1 |
| #define POS_BOTTOM ((char)2) |
| #define POS_TOP ((char)1) |
Value:SWKey &operator =(const char *ikey) { setText(ikey); return *this; } \
SWKey &operator =(const SWKey &ikey) { positionFrom(ikey); return *this; } \
SWKey &operator =(SW_POSITION pos) { setPosition(pos); return *this; } \
operator const char *() const { return getText(); } \
bool operator ==(const SWKey &ikey) { return equals(ikey); } \
bool operator !=(const SWKey &ikey) { return !equals(ikey); } \
virtual bool operator >(const SWKey &ikey) { return (compare(ikey) > 0); } \
virtual bool operator <(const SWKey &ikey) { return (compare(ikey) < 0); } \
virtual bool operator >=(const SWKey &ikey) { return (compare(ikey) > -1); } \
virtual bool operator <=(const SWKey &ikey) { return (compare(ikey) < 1); } \
SWKey &operator -=(int steps) { decrement(steps); return *this; } \
SWKey &operator +=(int steps) { increment(steps); return *this; } \
SWKey &operator ++() { increment(1); return *this; } \
SWKey operator ++(int) { SWKey temp = *this; increment(1); return temp; } \
SWKey &operator --() { decrement(1); return *this; } \
SWKey operator --(int) { SWKey temp = *this; decrement(1); return temp; }
Definition at line 37 of file swkey.h.