|
VSTGUI
4.3
Graphical User Interface Framework not only for VST plugins
|
Enumerations | |
| enum | IconPosition { kIconLeft, kIconCenterAbove, kIconCenterBelow, kIconRight } |
| enum | TextTruncateMode { kTextTruncateNone, kTextTruncateHead, kTextTruncateTail } |
| enum | CreateTextTruncateFlags { kReturnEmptyIfTruncationIsPlaceholderOnly = 1 << 0 } |
Functions | |
| UTF8String | createTruncatedText (TextTruncateMode mode, const UTF8String &text, CFontRef font, CCoord maxWidth, const CPoint &textInset, uint32_t flags) |
| void | drawIconAndText (CDrawContext *context, CBitmap *iconToDraw, IconPosition iconPosition, CHoriTxtAlign textAlignment, CCoord textIconMargin, CRect drawRect, const UTF8String &title, CFontRef font, CColor textColor, TextTruncateMode textTruncateMode) |
| enum IconPosition |
| enum TextTruncateMode |
| UTF8String createTruncatedText | ( | TextTruncateMode | mode, |
| const UTF8String & | text, | ||
| CFontRef | font, | ||
| CCoord | maxWidth, | ||
| const CPoint & | textInset = CPoint(0, 0), |
||
| uint32_t | flags = 0 |
||
| ) |
create a truncated string
| mode | truncation mode |
| text | text string |
| font | font |
| maxWidth | maximum width |
| textInset | text inset |
| flags | flags see CreateTextTruncateFlags |
Here is the call graph for this function:
Here is the caller graph for this function:| void drawIconAndText | ( | CDrawContext * | context, |
| CBitmap * | iconToDraw, | ||
| IconPosition | iconPosition, | ||
| CHoriTxtAlign | textAlignment, | ||
| CCoord | textIconMargin, | ||
| CRect | drawRect, | ||
| const UTF8String & | title, | ||
| CFontRef | font, | ||
| CColor | textColor, | ||
| TextTruncateMode | truncateMode = kTextTruncateNone |
||
| ) |
draws an icon and a string into a rectangle
| context | draw context |
| iconToDraw | icon to draw |
| iconPosition | position of the icon |
| textAlignment | alignment of the string |
| textIconMargin | margin of the string |
| drawRect | draw rectangle |
| title | string |
| font | font |
| textColor | font color |
Here is the call graph for this function:
Here is the caller graph for this function: