Skip to main content

Keyboard Class

Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI

Virtual on-screen keyboard. Attach to a UI.TextBox via Keyboard.SetTarget so taps on keys type into it. Positions itself at the bottom half of the display by default; override via inherited X / Y / Width / Height.

class Keyboard : public Widget {};

Constructors​

Keyboard(Widget parent)​

Keyboard(const Widget& parent);

Create a virtual keyboard inside parent.

ParameterTypeDescription
parentWidgetContaining widget.

Methods​

ClearTarget()​

void ClearTarget();

Detach any current target so key presses go nowhere.

SetTarget(TextBox textbox)​

void SetTarget(const TextBox& textbox);

Route key presses into textbox.

ParameterTypeDescription
textboxTextBoxTarget text box; its text updates on each key.