示例#1
0
        public Drawable PropagateChildren(UiEvent e)
        {
            for (int i = children.Count - 1; i >= 0; i--)
            {
                var child = children[i];
//				Console.Log("propagate children", GetType(), child.GetType(), child.handleInput);
                if (child.handleInput)
                {
                    var focus = child.Propagate(e);
                    if (focus != null)
                    {
                        return(focus);
                    }
                }
            }
            return(null);
        }
示例#2
0
        public override Drawable Propagate(UiEvent e)
        {
            // reverse propagation
//			Console.Log(GetType(), e.GetType());
            return(PropagateChildren(e) ?? base.Propagate(e));
        }