A numeric keypad KeyboardPlugin.
More...
#include <Keyboard.h>
|
void | build (std::shared_ptr< Keyboard > keyboard, Size keySize, int fontSize, const std::string &fontName) override |
| Build the keyboard from the KeyboardSpec and apply any special layout rules. More...
|
|
virtual void | build (shared_ptr< Keyboard > keyboard, Size keySize, int fontSize, const std::string &fontName)=0 |
|
|
static constexpr size_t | Rows = 5 |
|
static constexpr size_t | KeysPerRow = 3 |
|
static const KeyboardSpec< Rows, KeysPerRow, 1 > | NumberData |
| The main number pad KeyboardSpec. More...
|
|
static constexpr size_t | SideCols = 1 |
|
static constexpr size_t | SideKeysPerCol = 5 |
|
static const KeyboardSpec< SideCols, SideKeysPerCol, 1 > | SideNumberData |
| The side key data. More...
|
|
A numeric keypad KeyboardPlugin.
◆ build()
void rose::NumberPad::build |
( |
std::shared_ptr< Keyboard > |
keyboard, |
|
|
Size |
keySize, |
|
|
int |
fontSize, |
|
|
const std::string & |
fontName |
|
) |
| |
|
override |
Build the keyboard from the KeyboardSpec and apply any special layout rules.
- Parameters
-
keyboard | The Keyboard Widget to build the keyboard in. |
charSlot | The slot to receive key press signals on. |
◆ NumberData
constexpr KeyboardSpec< NumberPad::Rows, NumberPad::KeysPerRow, 1 > rose::NumberPad::NumberData |
|
staticprotected |
Initial value:= {
KeySpecRow<NumberPad::KeysPerRow, 1>{
makeKeySpec<1>(","),
makeKeySpec<1>("/"),
makeKeySpec<1>("*"),
},
KeySpecRow<NumberPad::KeysPerRow, 1>{
makeKeySpec<1>("7"),
makeKeySpec<1>("8"),
makeKeySpec<1>("9"),
},
KeySpecRow<NumberPad::KeysPerRow, 1>{
makeKeySpec<1>("4"),
makeKeySpec<1>("5"),
makeKeySpec<1>("6"),
},
KeySpecRow<NumberPad::KeysPerRow, 1>{
makeKeySpec<1>("1"),
makeKeySpec<1>("2"),
makeKeySpec<1>("3"),
},
KeySpecRow<NumberPad::KeysPerRow, 1>{
makeKeySpec<1>("0"),
makeKeySpec<1>("."),
makeKeySpec<1>(0),
},
}
The main number pad KeyboardSpec.
◆ SideNumberData
constexpr KeyboardSpec< NumberPad::SideCols, NumberPad::SideKeysPerCol, 1 > rose::NumberPad::SideNumberData |
|
staticprotected |
Initial value:= {
KeySpecRow<NumberPad::SideKeysPerCol, 1>{
makeKeySpec<1>("-"),
makeKeySpec<1>("+"),
makeKeySpec<1>("\b"),
makeKeySpec<1>("\r"),
makeKeySpec<1>(0)
}
}
The side key data.
The documentation for this class was generated from the following files: