mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
added 'tooltip-delay' property
This commit is contained in:
parent
4400efae33
commit
e3989cb178
7 changed files with 28 additions and 3 deletions
|
|
@ -111,6 +111,8 @@ namespace gui {
|
|||
ActionsSet doubleClickCallbacks;
|
||||
/// @brief element tooltip text
|
||||
std::wstring tooltip;
|
||||
/// @brief element tooltip delay
|
||||
float tooltipDelay = 0.5f;
|
||||
|
||||
UINode(glm::vec2 size);
|
||||
public:
|
||||
|
|
@ -202,6 +204,9 @@ namespace gui {
|
|||
virtual void setTooltip(const std::wstring& text);
|
||||
virtual const std::wstring getTooltip() const;
|
||||
|
||||
virtual void setTooltipDelay(float delay);
|
||||
virtual float getTooltipDelay() const;
|
||||
|
||||
virtual glm::vec4 calcColor() const;
|
||||
|
||||
/// @brief Get inner content offset. Used for scroll
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue