ITextPlacement


ITextPlacement - Member Functions and Data by Group

Constructors & Destructor

Use these constructors and destructor to create an object of class ITextPlacement.


[view class]
~ITextPlacement
public:
~ITextPlacement()
Destroys the ITextPlacement object.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
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.


[view class]
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.


[view class]
operator !=
public:
bool operator !=(const ITextPlacement& other) const
Returns !(*this == other)

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
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


[view class]
operator <=
public:
bool operator <=(const ITextPlacement& other) const
Returns (*this < other || *this == other)

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
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


[view class]
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


[view class]
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.


[view class]
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


[view class]
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


[view class]
fPlacement
public:
ECharPlacement fPlacement
A constant that refers to the character placement.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
fPos
public:
ITextIterator fPos
A constant that refers to the text iterator.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


ITextPlacement - Enumerations


[view class]
ECharPlacement
enum ECharPlacement { BEFORE_OFFSET, 
                      AFTER_OFFSET }
Specifies positioning bias:

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