mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
Added comments for SwkbdTextDrawType_DownloadCode/unk_x3e0.
This commit is contained in:
parent
584b856299
commit
e03c23e126
@ -37,7 +37,7 @@ enum {
|
|||||||
typedef enum {
|
typedef enum {
|
||||||
SwkbdTextDrawType_Line = 0, ///< The text will be displayed on a line. Also enables displaying the Header and Sub text.
|
SwkbdTextDrawType_Line = 0, ///< The text will be displayed on a line. Also enables displaying the Header and Sub text.
|
||||||
SwkbdTextDrawType_Box = 1, ///< The text will be displayed in a box.
|
SwkbdTextDrawType_Box = 1, ///< The text will be displayed in a box.
|
||||||
SwkbdTextDrawType_DownloadCode = 2, ///< Used by \ref swkbdConfigMakePresetDownloadCode on 5.0.0+.
|
SwkbdTextDrawType_DownloadCode = 2, ///< Used by \ref swkbdConfigMakePresetDownloadCode on 5.0.0+. Enables using \ref SwkbdArgV7 unk_x3e0.
|
||||||
} SwkbdTextDrawType;
|
} SwkbdTextDrawType;
|
||||||
|
|
||||||
typedef SwkbdTextCheckResult (*SwkbdTextCheckCb)(char* tmp_string, size_t tmp_string_size); /// TextCheck callback set by \ref swkbdConfigSetTextCheckCallback, for validating the input string when the swkbd ok-button is pressed. This buffer contains an UTF-8 string. This callback should validate the input string, then return a \ref SwkbdTextCheckResult indicating success/failure. On failure, this function must write an error message to the tmp_string buffer, which will then be displayed by swkbd.
|
typedef SwkbdTextCheckResult (*SwkbdTextCheckCb)(char* tmp_string, size_t tmp_string_size); /// TextCheck callback set by \ref swkbdConfigSetTextCheckCallback, for validating the input string when the swkbd ok-button is pressed. This buffer contains an UTF-8 string. This callback should validate the input string, then return a \ref SwkbdTextCheckResult indicating success/failure. On failure, this function must write an error message to the tmp_string buffer, which will then be displayed by swkbd.
|
||||||
@ -75,7 +75,7 @@ typedef struct {
|
|||||||
/// Arg struct for version 0x30007+.
|
/// Arg struct for version 0x30007+.
|
||||||
typedef struct {
|
typedef struct {
|
||||||
SwkbdArgV0 arg;
|
SwkbdArgV0 arg;
|
||||||
u32 unk_x3e0[8];
|
u32 unk_x3e0[8]; ///< When set and enabled via \ref SwkbdTextDrawType, controls displayed text grouping (inserts spaces, without affecting output string).
|
||||||
} SwkbdArgV7;
|
} SwkbdArgV7;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user