class TCharFormatMask |
Masks the character format attributes which are involved when setting and sensing character formatting.
Used in conjunction with an object of class TCharFormat .
When setting formatting, only the attributes which are set in the mask should participate in the relevant function. When sensing formatting, on return, the mask indicates which attributes were sensed from the format layer, and were not taken from the default values.
Public Member Functions | |
---|---|
TCharFormatMask () | |
TBool | AttribIsSet ( TTextFormatAttribute ) |
IMPORT_C void | ClearAll () |
void | ClearAttrib ( TTextFormatAttribute ) |
TBool | IsNull () |
IMPORT_C void | SetAll () |
void | SetAttrib ( TTextFormatAttribute ) |
TBool | operator!= (const TCharFormatMask &) |
IMPORT_C TBool | operator== (const TCharFormatMask &) |
Private Attributes | |
---|---|
TUint32 | iGuard |
TCharFormatMask | ( | ) | [inline] |
The default C++ constructor constructs a character format mask, initialising all bits to zero.
TBool | AttribIsSet | ( | TTextFormatAttribute | aAttribute | ) | const [inline] |
Tests whether an attribute flag is set.
TTextFormatAttribute aAttribute | The character format attribute to test for. |
void | ClearAttrib | ( | TTextFormatAttribute | aAttribute | ) | [inline] |
Clears a single attribute flag in the character format mask.
TTextFormatAttribute aAttribute | The attribute flag to clear. |
TBool | IsNull | ( | ) | const [inline] |
Tests whether the mask is NULL, indicating that no flags have been set.
void | SetAttrib | ( | TTextFormatAttribute | aAttribute | ) | [inline] |
Sets a single attribute flag in the character format mask.
TTextFormatAttribute aAttribute | The attribute flag to set. |
TBool | operator!= | ( | const TCharFormatMask & | aMask | ) | const [inline] |
Compares two paragraph format masks for inequality.
const TCharFormatMask & aMask | The mask to compare. |
IMPORT_C TBool | operator== | ( | const TCharFormatMask & | aMask | ) | const |
const TCharFormatMask & aMask |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.