This interface expose APIs to change graphics settings of a drawable class. More...
Public Member Functions | |
void | SetBrushColor (COLORREF brushColor) |
void | SetFont (LString fontFamily, int fontHeight, COLORREF fontColor, BOOL bold, BOOL italic, BOOL underline, BOOL strikeOut) |
void | SetFontColor (COLORREF fontColor) |
void | SetFontFamily (LString fontFamily) |
void | SetFontHeight (int fontHeight) |
void | SetPen (LPVPenStyle penStyle, int penWidth, COLORREF penColor) |
void | SetPenColor (COLORREF penColor) |
void | SetPenStyle (LPVPenStyle penStyle) |
void | SetPenWidth (int penWidth) |
This interface expose APIs to change graphics settings of a drawable class.
All other LPV classes that provides draw functionalities implements this interface. You may cast a drawable LPV object into ILDrawable interface, and then change its pen, brush or font properties.
The following lists all the drawable LPV classes:
Note: This interface is currently not available on Linux / MacOS platform.
void SetBrushColor | ( | COLORREF | brushColor | ) |
Set the brush color used for fill an object path.
[in] | brushColor | color of the brush, see also ILSystem::GetColorRef |
void SetFont | ( | LString | fontFamily, |
int | fontHeight, | ||
COLORREF | fontColor, | ||
BOOL | bold, | ||
BOOL | italic, | ||
BOOL | underline, | ||
BOOL | strikeOut | ||
) |
Set font for drawing text. If not defined, we use the default system proportional font, MS Sans Serif is typically used.
[in] | fontFamily | The typeface name of the font, say, "Arial", "Tahoma", "Sans-Serif", etc. |
[in] | fontHeight | The height, in logical units, of the font's character cell or character. |
[in] | fontColor | color of the text, see also ILSystem::GetColorRef |
[in] | bold | Bold text |
[in] | italic | Italic text |
[in] | underline | Under-line text |
[in] | strikeOut | Strike-through text |
void SetFontColor | ( | COLORREF | fontColor | ) |
Set the text color, other properties of the font is not changed.
void SetFontFamily | ( | LString | fontFamily | ) |
Set the font family, other properties of the font is not changed.
void SetFontHeight | ( | int | fontHeight | ) |
Set the font height, other properties of the font is not changed.
void SetPen | ( | LPVPenStyle | penStyle, |
int | penWidth, | ||
COLORREF | penColor | ||
) |
Set the pen used for drawing an object path. If not defined, we use a green solid pen of 1 pixel width.
[in] | penStyle | Style of the pen |
[in] | penWidth | width of the pen, it should be at least 1 pixel width. The max supported width is 31. |
[in] | penColor | color of the pen, see also ILSystem::GetColorRef |
void SetPenColor | ( | COLORREF | penColor | ) |
Set the pen color used for drawing an object path, other properties of the pen is not changed.
void SetPenStyle | ( | LPVPenStyle | penStyle | ) |
Set the pen style used for drawing an object path, other properties of the pen is not changed.
void SetPenWidth | ( | int | penWidth | ) |
Set the pen width used for drawing an object path, other properties of the pen is not changed.