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.
Public Member Functions | |
---|---|
TGulAlignment() | |
TGulAlignment(TGulAlignmentValue) | |
TGulAlignment(CGraphicsContext::TTextAlign, TGulVAlignment) | |
TGulHAlignment | HAlignment() |
IMPORT_C TGulHAlignment | HAlignment(TBidiText::TDirectionality) |
IMPORT_C TBool | HasAbsoluteHAlignment() |
IMPORT_C TRect | InnerRect(const TRect &, const TSize &) |
IMPORT_C TRect | InnerRect(const TRect &, const TSize &, TBidiText::TDirectionality) |
IMPORT_C TPoint | InnerTopLeft(const TRect &, const TSize &) |
IMPORT_C TPoint | InnerTopLeft(const TRect &, const TSize &, TBidiText::TDirectionality) |
IMPORT_C CParaFormat::TAlignment | ParaAlign() |
IMPORT_C void | SetAbsoluteHAlignment(TBool) |
IMPORT_C void | SetHAlignment(TGulHAlignment) |
IMPORT_C void | SetHAlignment(CGraphicsContext::TTextAlign) |
IMPORT_C void | SetHAlignment(CParaFormat::TAlignment) |
IMPORT_C void | SetVAlignment(TGulVAlignment) |
CGraphicsContext::TTextAlign | TextAlign() |
IMPORT_C CGraphicsContext::TTextAlign | TextAlign(TBidiText::TDirectionality) |
TGulVAlignment | VAlignment() |
IMPORT_C | operator TGulAlignmentValue() |
Private Attributes | |
---|---|
TInt | iValue |
TGulAlignment | ( | TGulAlignmentValue | aValue | ) | [inline] |
Constructor initialising the object with an alignment value.
TGulAlignmentValue aValue | The alignment value. |
TGulAlignment | ( | CGraphicsContext::TTextAlign | aHAlign, |
TGulVAlignment | aVAlign = EVTop | ||
) | [inline] |
Constructor initialising the object with an alignment value.
CGraphicsContext::TTextAlign aHAlign | The horizontal alignment value. |
TGulVAlignment aVAlign = EVTop | The vertical alignment value. |
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.
IMPORT_C TGulHAlignment | HAlignment | ( | TBidiText::TDirectionality | aLanguageDirectionality | ) | const |
TBidiText::TDirectionality aLanguageDirectionality |
IMPORT_C TRect | InnerRect | ( | const TRect & | aOuter, |
const TSize & | aInnerSize | |||
) | const |
IMPORT_C TRect | InnerRect | ( | const TRect & | aOuter, |
const TSize & | aInnerSize, | |||
TBidiText::TDirectionality | aLanguageDirectionality | |||
) | const |
const TRect & aOuter | |
const TSize & aInnerSize | |
TBidiText::TDirectionality aLanguageDirectionality |
IMPORT_C TPoint | InnerTopLeft | ( | const TRect & | aOuter, |
const TSize & | aInnerSize | |||
) | const |
IMPORT_C TPoint | InnerTopLeft | ( | const TRect & | aOuter, |
const TSize & | aInnerSize, | |||
TBidiText::TDirectionality | aLanguageDirectionality | |||
) | const |
const TRect & aOuter | |
const TSize & aInnerSize | |
TBidiText::TDirectionality aLanguageDirectionality |
IMPORT_C void | SetAbsoluteHAlignment | ( | TBool | aAbsoluteHAlignment | ) |
TBool aAbsoluteHAlignment |
IMPORT_C void | SetHAlignment | ( | TGulHAlignment | aHAlign | ) |
TGulHAlignment aHAlign |
IMPORT_C void | SetHAlignment | ( | CGraphicsContext::TTextAlign | aHAlign | ) |
CGraphicsContext::TTextAlign aHAlign |
IMPORT_C void | SetHAlignment | ( | CParaFormat::TAlignment | aHAlign | ) |
CParaFormat::TAlignment aHAlign |
IMPORT_C void | SetVAlignment | ( | TGulVAlignment | aVAlign | ) |
TGulVAlignment aVAlign |
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.
IMPORT_C CGraphicsContext::TTextAlign | TextAlign | ( | TBidiText::TDirectionality | aLanguageDirectionality | ) | const |
TBidiText::TDirectionality aLanguageDirectionality |
TGulVAlignment | VAlignment | ( | ) | const [inline] |
Gets the vertical alignment. Vertical alignment.