| 12345678910111213141516171819202122232425262728293031323334353637 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsPrerequisites.h"
- #include "BsModule.h"
- namespace BansheeEngine
- {
- /** @addtogroup GUI-Internal
- * @{
- */
- /** Manages displaying tooltips over GUI elements. */
- class BS_EXPORT GUITooltipManager : public Module<GUITooltipManager>
- {
- public:
- ~GUITooltipManager();
- /**
- * Shows a tooltip at the specified location. This will replace any previously shown tooltip.
- *
- * @param[in] widget GUI widget over which to display the tooltip.
- * @param[in] position Position of the tooltip, relative to the parent GUI widget.
- * @param[in] text Text to display on the tooltip.
- */
- void show(const GUIWidget& widget, const Vector2I& position, const WString& text);
- /** Hides the currently shown tooltip. */
- void hide();
- private:
- HSceneObject mTooltipSO;
- };
- /** @} */
- }
|