Beispiel #1
0
        public override Drawable Propagate(UiEvent e)
        {
            var focus = PropagateChildren(e);

            if (focus != null)
            {
                return(focus);
            }

            var touchEvent = e as TouchEvent;

            if (touchEvent == null || cachedScreenAabb.Contains(touchEvent.pos))
            {
                if (e.Trigger(this))
                {
                    return(this);
                }
            }

            return(null);
        }
Beispiel #2
0
 public virtual Drawable Propagate(UiEvent e)
 {
     return(e.Trigger(this) ? this : null);
 }