VSTGUI
4.10
Graphical User Interface Framework not only for VST plugins
|
Generic Tooltip Support class. More...
Public Member Functions | |
CTooltipSupport (CFrame *frame, uint32_t delay=1000) | |
void | onMouseEntered (CView *view) |
void | onMouseExited (CView *view) |
void | onMouseMoved (const CPoint &where) |
void | onMouseDown (const CPoint &where) |
void | hideTooltip () |
CBaseObject * | newCopy () const override |
![]() | |
CBaseObject ()=default | |
~CBaseObject () noexcept override=default | |
CBaseObject (const CBaseObject &o) | |
CBaseObject & | operator= (const CBaseObject &obj) |
![]() | |
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... | |
virtual void | beforeDelete () |
Protected Types | |
enum | { kHidden, kVisible, kHiding, kShowing, kForceVisible } |
Protected Member Functions | |
~CTooltipSupport () noexcept override | |
bool | showTooltip () |
CMessageResult | notify (CBaseObject *sender, IdStringPtr msg) override |
Protected Attributes | |
SharedPointer< CVSTGUITimer > | timer |
CFrame * | frame |
SharedPointer< CView > | currentView |
uint32_t | delay |
int32_t | state |
CPoint | lastMouseMove |
Generic Tooltip Support class.
A generic way to add tooltip support to VSTGUI.
Adding a tooltip to a view
Adding CTooltipSupport is done via VSTGUI::CFrame::enableTooltips (true)
CTooltipSupport | ( | CFrame * | frame, |
uint32_t | delay = 1000 |
||
) |
frame | CFrame object |
delay | tooltip delay time in milliseconds |
|
overrideprotectednoexcept |
void hideTooltip | ( | ) |
|
inlineoverride |
|
overrideprotectedvirtual |
Reimplemented from CBaseObject.
void onMouseDown | ( | const CPoint & | where | ) |
void onMouseEntered | ( | CView * | view | ) |
void onMouseExited | ( | CView * | view | ) |
void onMouseMoved | ( | const CPoint & | where | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |