Example #1
0
 /// <summary>
 /// Called when child control gets resized.
 /// </summary>
 /// <param name="control">The resized control.</param>
 public virtual void OnChildResized(Control control)
 {
 }
Example #2
0
 /// <summary>
 /// Checks if given point in thi container control space intersects with the child control content.
 /// Also calculates result location in child control space which can be used to feed control with event at that point.
 /// </summary>
 /// <param name="child">The child control to check.</param>
 /// <param name="location">The location in this container control space.</param>
 /// <param name="childSpaceLocation">The output location in child control space.</param>
 /// <returns>True if point is over the control content, otherwise false.</returns>
 public virtual bool IntersectsChildContent(Control child, Vector2 location, out Vector2 childSpaceLocation)
 {
     return(child.IntersectsContent(ref location, out childSpaceLocation));
 }
Example #3
0
 /// <summary>
 /// Gets zero-based index in the list of control children.
 /// </summary>
 /// <param name="child">The child control.</param>
 /// <returns>The zero-based index in the list of control children.</returns>
 public int GetChildIndex(Control child)
 {
     return(_children.IndexOf(child));
 }