TGulAlignment Class Reference

class TGulAlignment

Provides a convenient way to describe horizontal and vertical layouts of rectangular objects and to enquire how they occupy an area given their alignment.

Constructor & Destructor Documentation

TGulAlignment()

TGulAlignment()[inline]

Default constructor.

TGulAlignment(TGulAlignmentValue)

TGulAlignment(TGulAlignmentValueaValue)[inline]

Constructor initialising the object with an alignment value.

Parameters

TGulAlignmentValue aValueThe alignment value.

TGulAlignment(CGraphicsContext::TTextAlign, TGulVAlignment)

TGulAlignment(CGraphicsContext::TTextAlignaHAlign,
TGulVAlignmentaVAlign = EVTop
)[inline]

Constructor initialising the object with an alignment value.

Parameters

CGraphicsContext::TTextAlign aHAlignThe horizontal alignment value.
TGulVAlignment aVAlign = EVTopThe vertical alignment value.

Member Functions Documentation

HAlignment()

TGulHAlignment HAlignment()const [inline]

Gets the absolute horizontal alignment.

Note that this is the alignment in absolute terms. I.e. left and right alignment will not be swapped depending on language directionality. Horizontal alignment.

HAlignment(TBidiText::TDirectionality)

IMPORT_C TGulHAlignmentHAlignment(TBidiText::TDirectionalityaLanguageDirectionality)const

Parameters

TBidiText::TDirectionality aLanguageDirectionality

HasAbsoluteHAlignment()

IMPORT_C TBoolHasAbsoluteHAlignment()const

InnerRect(const TRect &, const TSize &)

IMPORT_C TRectInnerRect(const TRect &aOuter,
const TSize &aInnerSize
)const

Parameters

const TRect & aOuter
const TSize & aInnerSize

InnerRect(const TRect &, const TSize &, TBidiText::TDirectionality)

IMPORT_C TRectInnerRect(const TRect &aOuter,
const TSize &aInnerSize,
TBidiText::TDirectionalityaLanguageDirectionality
)const

Parameters

const TRect & aOuter
const TSize & aInnerSize
TBidiText::TDirectionality aLanguageDirectionality

InnerTopLeft(const TRect &, const TSize &)

IMPORT_C TPointInnerTopLeft(const TRect &aOuter,
const TSize &aInnerSize
)const

Parameters

const TRect & aOuter
const TSize & aInnerSize

InnerTopLeft(const TRect &, const TSize &, TBidiText::TDirectionality)

IMPORT_C TPointInnerTopLeft(const TRect &aOuter,
const TSize &aInnerSize,
TBidiText::TDirectionalityaLanguageDirectionality
)const

Parameters

const TRect & aOuter
const TSize & aInnerSize
TBidiText::TDirectionality aLanguageDirectionality

ParaAlign()

IMPORT_C CParaFormat::TAlignmentParaAlign()const

SetAbsoluteHAlignment(TBool)

IMPORT_C voidSetAbsoluteHAlignment(TBoolaAbsoluteHAlignment)

Parameters

TBool aAbsoluteHAlignment

SetHAlignment(TGulHAlignment)

IMPORT_C voidSetHAlignment(TGulHAlignmentaHAlign)

Parameters

TGulHAlignment aHAlign

SetHAlignment(CGraphicsContext::TTextAlign)

IMPORT_C voidSetHAlignment(CGraphicsContext::TTextAlignaHAlign)

Parameters

CGraphicsContext::TTextAlign aHAlign

SetHAlignment(CParaFormat::TAlignment)

IMPORT_C voidSetHAlignment(CParaFormat::TAlignmentaHAlign)

Parameters

CParaFormat::TAlignment aHAlign

SetVAlignment(TGulVAlignment)

IMPORT_C voidSetVAlignment(TGulVAlignmentaVAlign)

Parameters

TGulVAlignment aVAlign

TextAlign()

CGraphicsContext::TTextAlign TextAlign()const [inline]

Gets the absolute horizontal text alignment.

Note that this is the alignment in absolute terms. I.e. left and right alignment will not be swapped depending on language directionality. The horizontal text alignment.

TextAlign(TBidiText::TDirectionality)

IMPORT_C CGraphicsContext::TTextAlignTextAlign(TBidiText::TDirectionalityaLanguageDirectionality)const

Parameters

TBidiText::TDirectionality aLanguageDirectionality

VAlignment()

TGulVAlignment VAlignment()const [inline]

Gets the vertical alignment. Vertical alignment.

operator TGulAlignmentValue()

IMPORT_Coperator TGulAlignmentValue()const

Member Data Documentation

TInt iValue

TInt iValue[private]