| VSTGUI 4.10
    Graphical User Interface Framework not only for VST plugins | 
A specialized list control drawer to draw strings. More...
#include <cstringlist.h>
 Inheritance diagram for StringListControlDrawer:
 Inheritance diagram for StringListControlDrawer:| Classes | |
| struct | Impl | 
| Public Types | |
| using | Func = std::function< PlatformStringPtr(int32_t row)> | 
| Public Member Functions | |
| StringListControlDrawer () | |
| ~StringListControlDrawer () noexcept override | |
| void | setStringProvider (Func &&getStringFunc) | 
| void | setStringProvider (const Func &getStringFunc) | 
| void | setFont (CFontRef f) | 
| void | setFontColor (CColor color) | 
| void | setSelectedFontColor (CColor color) | 
| void | setBackColor (CColor color) | 
| void | setSelectedBackColor (CColor color) | 
| void | setHoverColor (CColor color) | 
| void | setLineColor (CColor color) | 
| void | setLineWidth (CCoord width) | 
| void | setTextInset (CCoord inset) | 
| void | setTextAlign (CHoriTxtAlign align) | 
| CFontRef | getFont () const | 
| CColor | getFontColor () const | 
| CColor | getSelectedFontColor () const | 
| CColor | getBackColor () const | 
| CColor | getSelectedBackColor () const | 
| CColor | getHoverColor () const | 
| CColor | getLineColor () const | 
| CCoord | getLineWidth () const | 
| CCoord | getTextInset () const | 
| CHoriTxtAlign | getTextAlign () const | 
| void | drawBackground (CDrawContext *context, CRect size) override | 
| void | drawRow (CDrawContext *context, CRect size, Row row) override | 
|  Public Member Functions inherited from IListControlDrawer | |
| virtual | ~IListControlDrawer () noexcept | 
| virtual void | drawBackground (CDrawContext *context, CRect size)=0 | 
| virtual void | drawRow (CDrawContext *context, CRect size, Row row)=0 | 
| virtual void | forget ()=0 | 
| decrease refcount and delete object if refcount == 0  More... | |
| virtual void | remember ()=0 | 
| increase refcount  More... | |
|  Public Member Functions inherited from ReferenceCounted< T > | |
| ReferenceCounted ()=default | |
| virtual | ~ReferenceCounted () noexcept=default | 
| ReferenceCounted (const ReferenceCounted &) | |
| ReferenceCounted & | operator= (const ReferenceCounted &) | 
| void | forget () override | 
| decrease refcount and delete object if refcount == 0  More... | |
| void | remember () override | 
| increase refcount  More... | |
| virtual int32_t | getNbReference () const | 
| get refcount  More... | |
A specialized list control drawer to draw strings.
You set an instance of this class as the drawer in a CListControl instance and it draws the strings you setup via the provider function.
| using Func = std::function<PlatformStringPtr (int32_t row)> | 
| 
 | overridedefaultnoexcept | 
| 
 | overridevirtual | 
Implements IListControlDrawer.
| 
 | overridevirtual | 
Implements IListControlDrawer.
| CColor getBackColor | ( | ) | const | 
| CFontRef getFont | ( | ) | const | 
| CColor getFontColor | ( | ) | const | 
| CColor getHoverColor | ( | ) | const | 
| CColor getLineColor | ( | ) | const | 
| CCoord getLineWidth | ( | ) | const | 
| CColor getSelectedBackColor | ( | ) | const | 
| CColor getSelectedFontColor | ( | ) | const | 
| CHoriTxtAlign getTextAlign | ( | ) | const | 
| CCoord getTextInset | ( | ) | const | 
| void setBackColor | ( | CColor | color | ) | 
| void setFont | ( | CFontRef | f | ) | 
| void setFontColor | ( | CColor | color | ) | 
| void setHoverColor | ( | CColor | color | ) | 
| void setLineColor | ( | CColor | color | ) | 
| void setLineWidth | ( | CCoord | width | ) | 
| void setSelectedBackColor | ( | CColor | color | ) | 
| void setSelectedFontColor | ( | CColor | color | ) | 
| void setStringProvider | ( | const Func & | getStringFunc | ) | 
| void setStringProvider | ( | Func && | getStringFunc | ) | 
| void setTextAlign | ( | CHoriTxtAlign | align | ) | 
| void setTextInset | ( | CCoord | inset | ) |