Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: txtfrmat.h
Link against: etext.lib

Class TBullet

TBullet

Support

Supported from 5.0

Description

A bullet point is a paragraph format attribute, stored as the iBullet member of class CParaFormat. Bullet points have a typeface, height, colour and a character code (defines the symbol displayed). Single level bullets only are supported. Bullets may also have a hanging indent. If set, this means that the rest of the paragraph following the line containing the bullet point is indented. The data members of this class are public.

Defined in TBullet:
TBullet(), iCharacterCode, iColor, iHangingIndent, iHeightInTwips, iTypeface, operator!=(), operator==()


Construction


TBullet()

TBullet();

Description

The default C++ constructor constructs a TBullet, initializing the character code to 0x2022, the height to zero, the colour to the system's default foreground colour and the hanging indent to ETrue. The typeface is not initialised.

[Top]


Comparison operators


operator==()

TBool operator==(const TBullet& aBullet)const;

Description

Compares two bullet points for equality. For two bullet points to be equal, all data members must be equal.

Parameters

const TBullet& aBullet

The bullet point to compare.

Return value

TBool

ETrue if the two bullet points are equal, EFalse if not.


operator!=()

TBool operator!=(const TBullet& aBullet)const;

Description

Compares two bullet points for inequality. Two bullet points are unequal if any of their data members are different.

Parameters

const TBullet& aBullet

The bullet point to compare.

Return value

TBool

ETrue if the two bullet points are different, EFalse if not.

[Top]


Data members


iCharacterCode

TChar iCharacterCode

Description

The Unicode character used to represent the bullet point. By default 0x2022.


iHeightInTwips

TUint32 iHeightInTwips

Description

The height in twips of the font used for the bullet point character. By default, zero.


iTypeface

TTypeface iTypeface

Description

The typeface used for the bullet point character.


iHangingIndent

TBool iHangingIndent

Description

ETrue to indent the rest of the paragraph from the bullet point. EFalse to align the bullet point character with the rest of the paragraph.


iColor

TRgb iColor

Support

Withdrawn in 6.0

Description

The colour of the bullet point character. By default, black.


iColor

TLogicalRgb iColor

Support

Supported from 6.0

Description

The colour of the bullet point character. By default, the system's default foreground colour.