Package 

Class LinearLayout

  • All Implemented Interfaces:
    kotlin.collections.Iterable

    
    public class LinearLayout<T extends GameComponentView>
    extends GameComponentContainer<T>
                        

    A LinearLayout may be used to visualize a zone containing GameComponentViews.

    GameComponentViews inside the container get placed according to the specified Orientation and Alignment. A spacing between components may be specified which may also be negative e.g. components like playing cards should overlap.

    Visualization:

    The Visual is used to visualize a background.

    If all components are still within bounds with the user defined spacing, the user defined spacing gets used to space the components. Otherwise, the biggest possible spacing is used so that all components are still withing bounds of the LinearLayout.