src/main/java/com/spinyowl/legui/system/handler/SehUtil.java
private static Component recursiveTargetComponentSearch(Vector2f vector, Component component,
      Component target) {
    Component newtarget = target;
    if (component.isVisible() && component.intersects(vector)) {
      if (component.isFocusable()) {
        newtarget = component;
      }
      List<Component> childComponents = component.getChildComponents();
      for (Component child : childComponents) {
        newtarget = recursiveTargetComponentSearch(vector, child, newtarget);
      }
    }
    return newtarget;
  }
/**
   * Used to search target component (under point) in component. Target means top component which
   * intersected by provided point(vector).
   *
   * @param vector    vector to point.
   * @param component source component to search target.
   * @param target    current target.
   * @return the top visible component under point.
   */
Used to search target component (under point) in component. Target means top component which
intersected by provided point(vector).

@param vector    vector to point.
@param component source component to search target.
@param target    current target.
@return the top visible component under point.
Used to search target component ( under point ) in component . Target means top component which intersected by provided point ( vector ) . @param vector vector to point . @param component source component to search target . @param target current target . @return the top visible component under point .
private static Component recursiveTargetComponentSearch(Vector2f vector, Component component,
      Component target) {
    Component newtarget = target;
    if (component.isVisible() && component.intersects(vector)) {
      if (component.isFocusable()) {
        newtarget = component;
      }
      List<Component> childComponents = component.getChildComponents();
      for (Component child : childComponents) {
        newtarget = recursiveTargetComponentSearch(vector, child, newtarget);
      }
    }
    return newtarget;
  }
private static Component recursiveTargetComponentSearch ( Vector2f vector , Component component , Component target ) { Component newtarget = target ; if ( component . isVisible ( ) && component . intersects ( vector ) ) { if ( component . isFocusable ( ) ) { newtarget = component ; } List < Component > childComponents = component . getChildComponents ( ) ; for ( Component child : childComponents ) { newtarget = recursiveTargetComponentSearch ( vector , child , newtarget ) ; } } return newtarget ; }
Used to search target component (under point) in component.
Used to search target component ( under point ) in component .