Interface ComponentRenderListener
- All Superinterfaces:
ComponentRenderedListener,EventListener
This listener interface is used for receiving events during a component's rendering process.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanRender(GuiComponent component) This method gets called before anGuiComponentis about to be rendered.default voidrendering(ComponentRenderEvent event) 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
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
This method gets called before anGuiComponentis 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.
-