Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

void SkPaint::setTextAlign ( Align  align  ) 

Set the paint's text alignment.

Parameters:
align set the paint's Align value for drawing text.

Definition at line 260 of file SkPaint.cpp.

{
    if ((unsigned)align < kAlignCount)
        fTextAlign = SkToU8(align);
#ifdef SK_DEBUG
    else
        SkDebugf("SkPaint::setTextAlign(%d) out of range\n", align);
#endif
}


Generated by  Doxygen 1.6.0   Back to index