nn::swkbd::State: Name and add states (#133)

* nn::swkbd::State: Rename Unknown0 to Hidden

Signed-off-by: Thomas Rohloff <v10lator@myway.de>

* nn::swkbd::State: Add more states

Signed-off-by: Thomas Rohloff <v10lator@myway.de>
This commit is contained in:
V10lator 2020-05-12 01:17:16 +02:00 committed by GitHub
parent 157651309d
commit 0dbc7850cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,14 @@ enum class RegionType
enum class State
{
Unknown0 = 0,
//! The input form / keyboard is completely hidden.
Hidden = 0,
//! The input form / keyboard is drawing the fade in animation.
FadeIn = 1,
//! The input form / keyboard is done drawing the fade in animation and completely visible.
Visible = 2,
//! The input form / keyboard is drawing the fade out animation.
FadeOut = 3,
};
//! Configuration options for the virtual keyboard.
@ -381,6 +388,12 @@ GetInputFormString();
void
GetKeyboardCondition(KeyboardCondition *keyboardCondition);
/**
* Get the current state of the input form.
*
* \returns
* The current \link nn::swkbd::State State \endlink of the input form.
*/
State
GetStateInputForm();