ComponentGroup

A ComponentGroup is just a way of grouping a bunch of related components into one singular group From there, a ComponentGroup functions exactly as any other normal component would Unexpected behaviour may stem if the components in the component group aren't all of the same Display

Constructors

this
this(Display container, Component[] subComponents)

Creates a ComponentGroup given the component-required Display as well as what sub components are in the group Unexpected behaviour may stem if the components in the component group aren't all of the same Display

Members

Functions

draw
void draw()

The group handles drawing by just drawing all of the sub components Components are drawn in the order they are in the group; later components go on top of earlier components

handleEvent
void handleEvent(SDL_Event event)

The group handles events by sending events to the sub components Components recieve events in the same order they are in the group

Properties

location
iRectangle location [@property getter]

Gets the location of this group as the smallest rectangle that contains all components

Variables

subComponents
Component[] subComponents;

The components that are in this ComponentGroup

Meta