TCharFormatMask Class Reference

#include <txtfrmat.h>

Link against: etext.lib

class TCharFormatMask

Detailed Description

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.

Constructor & Destructor Documentation

TCharFormatMask ( )

TCharFormatMask()[inline]

The default C++ constructor constructs a character format mask, initialising all bits to zero.

Member Function Documentation

AttribIsSet ( TTextFormatAttribute )

TBool AttribIsSet(TTextFormatAttributeaAttribute)const [inline]

Tests whether an attribute flag is set.

ParameterDescription
aAttributeThe character format attribute to test for.

Returns: ETrue if the flag is set, EFalse if not.

ClearAll ( )

IMPORT_C voidClearAll()

Clears all attribute flags in the character format mask.

ClearAttrib ( TTextFormatAttribute )

voidClearAttrib(TTextFormatAttributeaAttribute)[inline]

Clears a single attribute flag in the character format mask.

ParameterDescription
aAttributeThe attribute flag to clear.

IsNull ( )

TBool IsNull()const [inline]

Tests whether the mask is NULL, indicating that no flags have been set.

Returns: ETrue if mask is NULL, EFalse if not NULL.

SetAll ( )

IMPORT_C voidSetAll()

Sets all attribute flags in the character format mask.

SetAttrib ( TTextFormatAttribute )

voidSetAttrib(TTextFormatAttributeaAttribute)[inline]

Sets a single attribute flag in the character format mask.

ParameterDescription
aAttributeThe attribute flag to set.

operator!= ( const TCharFormatMask & )

TBool operator!=(const TCharFormatMask &aMask)const [inline]

Compares two paragraph format masks for inequality.

ParameterDescription
aMaskThe mask to compare.

Returns: ETrue if any flags are different. EFalse if all flags are the same.

operator== ( const TCharFormatMask & )

IMPORT_C TBooloperator==(const TCharFormatMask &aMask)const

Compares two character format masks for equality.

ParameterDescription
aMaskThe mask to compare.

Returns: ETrue if all flags are the same in both masks. EFalse if any differ.