// ///////////////////////////////////////////////////////////////////////////////// /// <summary> /// Base method draws each of the controls, and the tooltip if applicable. /// </summary> protected internal override void OnDraw() { base.OnDraw(); // propagate Draw message to all children foreach (Control c in ControlList) { c.OnDraw(); } if (CurrentTooltip != null) { CurrentTooltip.DrawToScreen(); } }
/// <summary> /// Base method propagates messages to children controls and managers. Override to /// add custom handling. /// </summary> protected internal override void OnMouseHoverEnd(MouseData mouseData) { if (CurrentTooltip != null) { CurrentTooltip.Dispose(); CurrentTooltip = null; } base.OnMouseHoverEnd(mouseData); foreach (Manager m in managerList) { m.OnMouseHoverEnd(mouseData); } if (CurrentUnderMouse != null && CurrentUnderMouse.IsActive) { CurrentUnderMouse.OnMouseHoverEnd(mouseData); } }
/// <summary> /// Base method draws each of the controls, and the tooltip if applicable. /// </summary> protected internal override void OnDraw() { if (WindowState == WindowState.Hidden || WindowState == WindowState.Quitting) { return; } base.OnDraw(); // propagate Draw message to all children foreach (Control c in ControlList) { c.OnDraw(); } if (CurrentTooltip != null) { CurrentTooltip.DrawToScreen(); } }