Skip to main content

IRenderable

Description

The IRenderable interface aims to provide a unifyed function Render() which must be implemented by inhertors.

The idea of this function is that should be in such a way that it is idempotent.

Examples

Simple UI Example
// somewhere inside a valid layout
SpacerComponent spacer = UI.Spacer(new HorizontalSpacerBehaviour());

// later on, re-trrigger the spacer expansion when something has changed
// forcing it to re-expand or contract
spacer.Render();

References

This interface is implemented by: SpacerComponent, AbstractViewComponent.

Implementation