|
◆ EZAlign
Le type énuméré EZAlign contient un ensemble de constantes permettant d'exprimer la façon ton un texte doit être aligné lors de son écriture dans une fenêtre par rapport au point de référence.
Les constantes sont formées par la juxtaposition des initiales des mots anglais servant à indiquer :
- la position verticale (haut, milieu, bas) ;
- la position horizontale (cadré à gauche, centré, cadré à droite) ;
- éventuellement, si un rectangle blanc doit être tracé sous l'emplacement du texte pour garantir sa lisibilité. Pour utiliser une de ces valeurs, il faut préciser le nom de l'énumération qui la contient. Ainsi, pour indiquer un placement en haut, à gauche et sur fond rempli en blanc par exemple, il faut utiliser la constante « EZAlign::TLF ».
- Voir également
- void EZWindow::drawText(EZAlign align,int x,int y,const char* str) const
Valeurs énumérées |
---|
TL | Top Left.
|
TC | Top Center.
|
TR | Top Right.
|
ML | Middle Left.
|
MC | Middle Center.
|
MR | Middle Right.
|
BL | Bottom Left.
|
BC | Bottom Center.
|
BR | Bottom Right.
|
TLF | Top Left with background filled.
|
TCF | Top Center with background filled.
|
TRF | Top Right with background filled.
|
MLF | Middle Left with background filled.
|
MCF | Middle Center with background filled.
|
MRF | Middle Right with background filled.
|
BLF | Bottom Left with background filled.
|
BCF | Bottom Center with background filled.
|
BRF | Bottom Right with background filled.
|
|