WPILibC++
2019.2.1-23-g997d4fd
|
The types of layouts bundled with Shuffleboard. More...
#include <BuiltInLayouts.h>
Static Public Attributes | |
static const LayoutType | kList |
Groups components in a vertical list. More... | |
static const LayoutType | kGrid |
Groups components in an n x m grid. More... | |
The types of layouts bundled with Shuffleboard.
ShuffleboardLayout myList = Shuffleboard::GetTab("My Tab").GetLayout(BuiltinLayouts::kList, "My List");
|
static |
Groups components in an n x m grid.
Grid layouts default to 3x3.
Custom properties:
Name | Type | Default Value | Notes |
---|---|---|---|
Number of columns | Number | 3 | Must be in the range [1,15] |
Number of rows | Number | 3 | Must be in the range [1,15] |
Label position | String | "BOTTOM" | The position of component labels inside the grid. One of ["TOP", "LEFT", "BOTTOM", "RIGHT", "HIDDEN"
|
|
static |
Groups components in a vertical list.
New widgets added to the layout will be placed at the bottom of the list.
Custom properties:
Name | Type | Default Value | Notes |
---|---|---|---|
Label position | String | "BOTTOM" | The position of component labels inside the grid. One of ["TOP", "LEFT", "BOTTOM", "RIGHT", "HIDDEN"
|