A KeyboardPlugin for a QWERTY keyboard.
More...
#include <Keyboard.h>
|
void | build (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...
|
|
|
enum | KeyboardMode : size_t { LowerCase,
UpperCase,
Numeric,
Symbols
} |
| Set the state of the keyboard.
|
|
enum | SymbolState : size_t { None,
Symbols1,
Symbols2
} |
| The state of symbol selection.
|
|
using | KeySpecType = KeySpec< Depth > |
|
|
static constexpr size_t | Rows = 4 |
|
static constexpr size_t | KeysPerRow = 11 |
|
static constexpr size_t | Depth = 4 |
|
static const KeyboardSpec< Rows, KeysPerRow, Depth > | QWERTYData |
| The KeyboardSpec.
|
|
A KeyboardPlugin for a QWERTY keyboard.
◆ build()
void rose::QUERTY::build |
( |
shared_ptr< Keyboard > |
keyboard, |
|
|
Size |
keySize, |
|
|
int |
fontSize, |
|
|
const std::string & |
fontName |
|
) |
| |
|
overridevirtual |
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. |
Implements rose::KeyboardPlugin.
◆ controlKeyData()
auto rose::QUERTY::controlKeyData |
( |
const KeySpec< Depth > & |
keyData | ) |
|
|
protected |
Decode a KeySpec and Key index into key Button construction information.
- Parameters
-
keyData | The KeySpec. |
keyIdx | The index into the key. |
- Returns
- A std::tuple with the construction information.
◆ setKeyboardMode()
void rose::QUERTY::setKeyboardMode |
( |
| ) |
|
|
protected |
Encode data gathered from user interaction into a current KeyboardMode.
If the KeyboardMode changes changeKeyboardFace() is called.
The documentation for this class was generated from the following files: