src/main/java/com/spinyowl/legui/system/handler/WindowPosEventHandler.java
private void pushEvent(Component component, SystemWindowPosEvent event, Context context,
      Frame frame) {
    if (!(component.isVisible())) {
      return;
    }
    EventProcessorProvider.getInstance()
        .pushEvent(new WindowPosEvent(component, context, frame, event.xpos, event.ypos));
    List<Component> childComponents = component.getChildComponents();
    for (Component child : childComponents) {
      pushEvent(child, event, context, frame);
    }
  }
/**
   * Used to push {@link WindowPosEvent} instance of {@link com.spinyowl.legui.event.Event} to
   * {@link com.spinyowl.legui.listener.processor.EventProcessor}.
   *
   * @param component component for which should be created {@link WindowPosEvent}
   * @param event     event to push.
   * @param context   context.
   */


@param component component for which should be created  WindowPosEvent
@param event     event to push.
@param context   context.
@param component component for which should be created WindowPosEvent @param event event to push . @param context context .
private void pushEvent(Component component, SystemWindowPosEvent event, Context context,
      Frame frame) {
    if (!(component.isVisible())) {
      return;
    }
    EventProcessorProvider.getInstance()
        .pushEvent(new WindowPosEvent(component, context, frame, event.xpos, event.ypos));
    List<Component> childComponents = component.getChildComponents();
    for (Component child : childComponents) {
      pushEvent(child, event, context, frame);
    }
  }
private void pushEvent ( Component component , SystemWindowPosEvent event , Context context , Frame frame ) { if ( ! ( component . isVisible ( ) ) ) { return ; } EventProcessorProvider . getInstance ( ) . pushEvent ( new WindowPosEvent ( component , context , frame , event . xpos , event . ypos ) ) ; List < Component > childComponents = component . getChildComponents ( ) ; for ( Component child : childComponents ) { pushEvent ( child , event , context , frame ) ; } }
Used to push {@link WindowPosEvent} instance of {@link com.spinyowl.legui.event.Event} to
 {@link com.spinyowl.legui.listener.processor.EventProcessor}.
Used to push { @link WindowPosEvent } instance of { @link com . spinyowl . legui . event . Event } to { @link com . spinyowl . legui . listener . processor . EventProcessor } .