use of com.spinyowl.legui.system.event.SystemWindowSizeEvent in project legui by SpinyOwl.
the class WindowSizeEventHandler method pushEvent.
private void pushEvent(Component component, SystemWindowSizeEvent event, Context context, Frame frame) {
if (!component.isVisible() || !component.isEnabled()) {
return;
}
EventProcessorProvider.getInstance().pushEvent(new WindowSizeEvent(component, context, frame, event.width, event.height));
List<Component> childComponents = component.getChildComponents();
for (Component child : childComponents) {
pushEvent(child, event, context, frame);
}
}
Aggregations