void Tooltip::switchToActiveState(void) { positionSelf(); show(); d_active = true; d_elapsed = 0; WindowEventArgs args(this); onTooltipActive(args); }
void Tooltip::switchToFadeInState(void) { positionSelf(); d_state = FadeIn; d_elapsed = 0; show(); // fire event. Not really active at the moment, but this is the "right" time // for this event (just prior to anything getting displayed). WindowEventArgs args(this); onTooltipActive(args); }