2using System.Collections.Generic;
4using System.Reflection;
7using Microsoft.Xna.Framework;
8using Microsoft.Xna.Framework.Input;
9using Microsoft.Xna.Framework.Graphics;
13 public class CUIFocusHandle : ICUIVitalizable
15 public void SetHost(CUIComponent host) => Host = host;
16 public CUIComponent Host;
17 public bool Focusable;
18 public CUIMouseEvent Trigger = CUIMouseEvent.Down;
20 public bool ShouldStart(CUIInput input)
23 (Trigger == CUIMouseEvent.Down && input.MouseDown) ||
24 (Trigger == CUIMouseEvent.DClick && input.DoubleClick)
28 public CUIFocusHandle() { }
29 public CUIFocusHandle(CUIComponent host) => Host = host;