Interface ComponentRenderListener

All Superinterfaces:
ComponentRenderedListener, EventListener

public interface ComponentRenderListener extends ComponentRenderedListener
This listener interface is used for receiving events during a component's rendering process.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    This method gets called before an GuiComponent is about to be rendered.
    default void
    This method gets called after all rendering checks have successfully passed and right before the component is about to be rendered.

    Methods inherited from interface de.gurkenlabs.litiengine.gui.ComponentRenderedListener

    rendered
  • Method Details

    • rendering

      default void rendering(ComponentRenderEvent event)
      This method gets called after all rendering checks have successfully passed and right before the component is about to be rendered.
      Parameters:
      event - The event that contains the render data.
    • canRender

      default boolean canRender(GuiComponent component)
      This method gets called before an GuiComponent is about to be rendered. Returning false prevents the rendering of the specified component.
      Parameters:
      component - The component to be rendered.
      Returns:
      True if the component should be rendered; otherwise false.