ITextPlacement
ITextPlacement - Member Functions and Data by Group
Constructors & Destructor
Use these constructors and destructor to create an object of class ITextPlacement.
- ~ITextPlacement
public:
~ITextPlacement()
- Destroys the ITextPlacement object.
- Supported Platforms
| Windows |
OS/2 |
AIX |
| Yes |
Yes |
Yes |
- ITextPlacement
Overload 1
public:
ITextPlacement(const ITextPlacement& source)
- Supported Platforms
| Windows |
OS/2 |
AIX |
| Yes |
Yes |
Yes |
Overload 2
public:
ITextPlacement( const ITextIterator& pos,
ITextPlacement::ECharPlacement placement )
- Supported Platforms
| Windows |
OS/2 |
AIX |
| Yes |
Yes |
Yes |
Overload 3
public:
ITextPlacement(const ITextIterator& pos)
- Default placement is AFTER_OFFSET.
- Supported Platforms
| Windows |
OS/2 |
AIX |
| Yes |
Yes |
Yes |
Assignment Operator
Use this operator to assign the given ITextPlacement object to this, the current, one.
- operator =
public:
ITextPlacement& operator =(const ITextPlacement& source)
- Assignment operator.
- Supported Platforms
| Windows |
OS/2 |
AIX |
| Yes |
Yes |
Yes |
Compares Two ITextPlacement Objects
Use these operators to test two ITextPlacement objects to determine if their contents are the same or different, or to test
them for eqaulity or greater than or less than positions.
- operator !=
public:
bool operator !=(const ITextPlacement& other) const
- Returns !(*this == other)
- Supported Platforms
| Windows |
OS/2 |
AIX |
| Yes |
Yes |
Yes |
- operator <
public:
bool operator <(const ITextPlacement& other) const
- Returns true if fPos < other.fPos or if they're equal but fPlacement is BEFORE_OFFSET and other.fPlacement is AFTER_OFFSET
- Supported Platforms
| Windows |
OS/2 |
AIX |
| Yes |
Yes |
Yes |
- operator <=
public:
bool operator <=(const ITextPlacement& other) const
- Returns (*this < other || *this == other)
- Supported Platforms
| Windows |
OS/2 |
AIX |
| Yes |
Yes |
Yes |
- operator ==
public:
bool operator ==(const ITextPlacement& other) const
- Returns true if both fPos and fPlacement are the same
- Supported Platforms
| Windows |
OS/2 |
AIX |
| Yes |
Yes |
Yes |
- operator >
public:
bool operator >(const ITextPlacement& other) const
- Returns true if fPos > other.fPos or if they're equal but fPlacement is AFTER_OFFSET and other.fPlacement is BEFORE_OFFSET
- Supported Platforms
| Windows |
OS/2 |
AIX |
| Yes |
Yes |
Yes |
- operator >=
public:
bool operator >=(const ITextPlacement& other) const
- Returns (*this > other || *this == other)
- Supported Platforms
| Windows |
OS/2 |
AIX |
| Yes |
Yes |
Yes |
Modifying the Text Placement
Use these operators to increment or decrement the text placement.
- operator ++
Overload 1
- If fPlacement is BEFORE_OFFSET, flips it to AFTER_OFFSET; otherwise, increments fPos and sets fPlacement to BEFORE_OFFSET.
public:
ITextPlacement& operator ++()
- Supported Platforms
| Windows |
OS/2 |
AIX |
| Yes |
Yes |
Yes |
Overload 2
- If fPlacement is BEFORE_OFFSET, flips it to AFTER_OFFSET; otherwise, increments fPos and sets fPlacement to BEFORE_OFFSET.
public:
ITextPlacement& operator ++(int)
- Supported Platforms
| Windows |
OS/2 |
AIX |
| Yes |
Yes |
Yes |
- operator --
Overload 1
- If fPlacement is AFTER_OFFSET, flips it to BEFORE_OFFSET; otherwise, decrements fPos and sets fPlacement to AFTER_OFFSET.
public:
ITextPlacement& operator --()
- Supported Platforms
| Windows |
OS/2 |
AIX |
| Yes |
Yes |
Yes |
Overload 2
- If fPlacement is AFTER_OFFSET, flips it to BEFORE_OFFSET; otherwise, decrements fPos and sets fPlacement to AFTER_OFFSET.
public:
ITextPlacement& operator --(int)
- Supported Platforms
| Windows |
OS/2 |
AIX |
| Yes |
Yes |
Yes |
Miscellaneous Members
- fPlacement
public:
ECharPlacement fPlacement
- A constant that refers to the character placement.
- Supported Platforms
| Windows |
OS/2 |
AIX |
| Yes |
Yes |
Yes |
- fPos
public:
ITextIterator fPos
- A constant that refers to the text iterator.
- Supported Platforms
| Windows |
OS/2 |
AIX |
| Yes |
Yes |
Yes |
- ECharPlacement
enum ECharPlacement { BEFORE_OFFSET,
AFTER_OFFSET }
- Specifies positioning bias:
- BEFORE_OFFSET - Insertion point is drawn after the character that precedes the
character at fPos.
- AFTER_OFFSET - Insertion point is drawn before the character at fPos.
- Supported Platforms
| Windows |
OS/2 |
AIX |
| Yes |
Yes |
Yes |
ITextPlacement - Inherited Member Functions and Data
Inherited Public Functions
Inherited Public Data
Inherited Protected Functions
Inherited Protected Data