UI_Lib  a1366e08a59cc549a65fa26081e6409aa12f26d5
This is a user interface library for graphical LCDs. It offers many different controls and indicators that can be nested depending on the element types.
Loading...
Searching...
No Matches
ContainerGrid.h File Reference

Containing a class for a container that is showing all items at a time in a fixed grid layout. More...

#include "Container.h"

Go to the source code of this file.

Classes

struct  GridItemConfig
 Struct used to store the column, row and alignment of a item inside the grid. More...
 
class  ContainerGrid
 Class for a container that is showing all items at a time in a fixed grid layout. More...
 

Macros

#define DEFAULT_MAX_CONTAINERGRID_ROWS   10
 Default maximum number of rows, each container grid can hold.
 
#define DEFAULT_MAX_CONTAINERGRID_COLUMNS   10
 Default maximum number of columns, each container grid can hold.
 

Typedefs

typedef enum GridCellAlignment GridCellAlignment_t
 Available alignment in cell.
 

Enumerations

enum  GridCellAlignment {
  GRID_CELL_ALIGNMENT_TOP_LEFT , GRID_CELL_ALIGNMENT_LEFT , GRID_CELL_ALIGNMENT_BOTTOM_LEFT , GRID_CELL_ALIGNMENT_TOP ,
  GRID_CELL_ALIGNMENT_MIDDLE , GRID_CELL_ALIGNMENT_BOTTOM , GRID_CELL_ALIGNMENT_TOP_RIGHT , GRID_CELL_ALIGNMENT_RIGHT ,
  GRID_CELL_ALIGNMENT_BOTTOM_RIGHT
}
 Available alignment in cell. More...
 

Detailed Description

Containing a class for a container that is showing all items at a time in a fixed grid layout.

Therefore the location of the added items is changed.

Macro Definition Documentation

◆ DEFAULT_MAX_CONTAINERGRID_COLUMNS

#define DEFAULT_MAX_CONTAINERGRID_COLUMNS   10

Default maximum number of columns, each container grid can hold.

Lower this value if you don't need that much items to save memory.

◆ DEFAULT_MAX_CONTAINERGRID_ROWS

#define DEFAULT_MAX_CONTAINERGRID_ROWS   10

Default maximum number of rows, each container grid can hold.

Lower this value if you don't need that much items to save memory.

Enumeration Type Documentation

◆ GridCellAlignment

Available alignment in cell.

Enumerator
GRID_CELL_ALIGNMENT_TOP_LEFT 

Alignment top left.

GRID_CELL_ALIGNMENT_LEFT 

Alignment left.

GRID_CELL_ALIGNMENT_BOTTOM_LEFT 

Alignment bottom left.

GRID_CELL_ALIGNMENT_TOP 

Alignment top.

GRID_CELL_ALIGNMENT_MIDDLE 

Alignment middle.

GRID_CELL_ALIGNMENT_BOTTOM 

Alignment bottom.

GRID_CELL_ALIGNMENT_TOP_RIGHT 

Alignment top right.

GRID_CELL_ALIGNMENT_RIGHT 

Alignment right.

GRID_CELL_ALIGNMENT_BOTTOM_RIGHT 

Alignment bottom right.