#include <tooltips.hpp>
Public Member Functions | |
manager () | |
~manager () | |
virtual void | layout () override |
Finalize the size and position of the drawable and its children, and invalidate any regions requiring redraw. More... | |
virtual bool | expose (const rect ®ion) override |
Draw the portion of the drawable intersecting region to the screen. More... | |
virtual rect | screen_location () override |
The location of the TLD on the screen, in drawing coordinates. More... | |
Public Member Functions inherited from gui2::top_level_drawable | |
virtual void | update () |
Update state and any parameters that may effect layout, or any of the later stages. More... | |
virtual void | render () |
Perform any internal rendering necessary to prepare the drawable. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from gui2::top_level_drawable | |
top_level_drawable () | |
virtual | ~top_level_drawable () |
top_level_drawable (const top_level_drawable &) | |
top_level_drawable & | operator= (const top_level_drawable &) |
top_level_drawable (top_level_drawable &&) | |
top_level_drawable & | operator= (top_level_drawable &&) |
Definition at line 25 of file tooltips.hpp.
tooltips::manager::manager | ( | ) |
Definition at line 193 of file tooltips.cpp.
References tooltips::clear_tooltips().
tooltips::manager::~manager | ( | ) |
Definition at line 199 of file tooltips.cpp.
References tooltips::clear_tooltips().
|
overridevirtual |
Draw the portion of the drawable intersecting region
to the screen.
TLDs must not invalidate regions during expose. Only drawing must occur, with no modification of layout.
Implementation of this interface is mandatory.
region | The region to expose, in absolute draw-space coordinates. |
Implements gui2::top_level_drawable.
Definition at line 217 of file tooltips.cpp.
References gui2::dialogs::tip::tip, gui2::settings::tips, and tooltip.
|
overridevirtual |
Finalize the size and position of the drawable and its children, and invalidate any regions requiring redraw.
Visibly changed screen locations should be invalidated using draw_manager::invalidate_region(), both in the previous location and in the new location if different.
TLDs must not perform any actual drawing during layout.
This interface is optional.
Reimplemented from gui2::top_level_drawable.
Definition at line 207 of file tooltips.cpp.
References gui2::settings::tips.
|
overridevirtual |
The location of the TLD on the screen, in drawing coordinates.
This will be used to determine the region (if any) to expose.
Implementation of this interface is mandatory.
Implements gui2::top_level_drawable.
Definition at line 231 of file tooltips.cpp.
References gui2::settings::tips.