Example #1
0
 public bool IsIn(TPoint pos)
 {
     if ( pos.IsIn( new Rect(AbsolutePosition, m_anchor.Bmp.Width, m_anchor.Bmp.Height) ) )
     {
         return true;
     }
     return false;
 }
Example #2
0
 public override ControlBase GetControlByPoint(TPoint position)
 {
     if (position.IsIn(Rect))
     {
         foreach (ControlBase child in m_layeredCollection)
         {
             ControlBase controlUnderPos = child.GetControlByPoint(position);
             if (controlUnderPos != null) return controlUnderPos;
         }
         return this;
     }
     return null;
 }
Example #3
0
 public virtual ControlBase GetControlByPoint(TPoint position)
 {
     if (position.IsIn(Rect)) return this;
     return null;
 }