PixelLightAPI
.
|
Modifier that blends a widget in and out according to the mouse cursor. More...
#include <ModBlend.h>
Protected Member Functions | |
virtual void | OnAttach (Widget &cWidget) override |
Called when the modifier is attached to a widget. | |
virtual void | OnDetach (Widget &cWidget) override |
Called when the modifier is detached from a widget. | |
virtual void | OnMouseOver (bool bMouseOver) override |
Called when the mouse-over state of the widget has changed. | |
void | OnTimer () |
Called when the timer has fired. | |
Protected Attributes | |
PLCore::uint64 | m_nTimeout |
float | m_fTrans |
float | m_fTransDest |
Timer * | m_pTimer |
Modifier that blends a widget in and out according to the mouse cursor.
virtual void PLGui::ModBlend::OnAttach | ( | Widget & | cWidget | ) | [override, protected, virtual] |
Called when the modifier is attached to a widget.
[in] | cWidget | Widget to which the modifier is attached |
Reimplemented from PLGui::Modifier.
virtual void PLGui::ModBlend::OnDetach | ( | Widget & | cWidget | ) | [override, protected, virtual] |
Called when the modifier is detached from a widget.
[in] | cWidget | Widget from which the modifier is detached |
Reimplemented from PLGui::Modifier.
virtual void PLGui::ModBlend::OnMouseOver | ( | bool | bMouseOver | ) | [override, protected, virtual] |
Called when the mouse-over state of the widget has changed.
[in] | bMouseOver | 'true' if the mouse is over the widget or a child widget, else 'false' |
Reimplemented from PLGui::WidgetFunctions.
void PLGui::ModBlend::OnTimer | ( | ) | [protected] |
Called when the timer has fired.
PLCore::uint64 PLGui::ModBlend::m_nTimeout [protected] |
Timeout for blend animation (in milliseconds)
float PLGui::ModBlend::m_fTrans [protected] |
Current transparency (0.0f - 1.0f)
float PLGui::ModBlend::m_fTransDest [protected] |
Destination transparency (0.0f - 1.0f)
Timer* PLGui::ModBlend::m_pTimer [protected] |
Timer used for fading
|