kodi
|
Class to encapsulate grid operations. More...
#include <ControllerGrid.h>
Public Member Functions | |
CControllerGrid (const CControllerGrid &other)=default | |
void | SetControllerTree (const CControllerTree &controllerTree) |
Create a grid from a controller tree. | |
unsigned int | GetWidth () const |
Get the width of the controller grid. | |
unsigned int | GetHeight () const |
Get the height (deepest controller) of the controller grid. More... | |
const ControllerGrid & | GetGrid () const |
Access the controller grid. | |
ControllerVector | GetControllers (unsigned int playerIndex) const |
Get the controllers in use by the specified player. More... | |
Class to encapsulate grid operations.
ControllerVector CControllerGrid::GetControllers | ( | unsigned int | playerIndex | ) | const |
Get the controllers in use by the specified player.
playerIndex | The column in the grid to get controllers from |
|
inline |
Get the height (deepest controller) of the controller grid.
The height is cached when the controller grid is created to avoid iterating the grid