vitasdk
Documentation of the vitasdk
ime_dialog.h
Go to the documentation of this file.
1
7#ifndef _PSP2_COMMON_DIALOG_IME_DIALOG_H
8#define _PSP2_COMMON_DIALOG_IME_DIALOG_H
9
10#include <vitasdk/build_utils.h>
11#include <psp2/common_dialog.h>
12#include <psp2/types.h>
13#include <psp2/libime.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19#define SCE_IME_DIALOG_MAX_TITLE_LENGTH (128)
20#define SCE_IME_DIALOG_MAX_TEXT_LENGTH (2048)
21
29
34
40
46
70
77
78static inline
79void sceImeDialogParamInit( SceImeDialogParam *param )
80{
81 sceClibMemset( param, 0x0, sizeof(SceImeDialogParam) );
82 _sceCommonDialogSetMagicNumber(&param->commonParam);
84}
85
91
92#ifdef __cplusplus
93}
94#endif
95
96#endif
#define VITASDK_BUILD_ASSERT_EQ(__size__, __name__)
Definition build_utils.h:13
void * sceClibMemset(void *dst, int ch, SceSize len)
SceCommonDialogStatus
Definition common_dialog.h:56
Definition common_dialog.h:106
#define PSP2_SDK_VERSION
Definition defs.h:11
SceInt32 sceImeDialogAbort(void)
SceBool languagesForced
Definition ime_dialog.h:52
SceInt32 sceImeDialogTerm(void)
SceUInt32 textBoxMode
Textbox mode (One of SceImeDialogTextboxMode)
Definition ime_dialog.h:58
SceImeDialogButton
Definition ime_dialog.h:41
SceUInt32 sdkVersion
Definition ime_dialog.h:48
SceImeDialogDialogMode
Definition ime_dialog.h:30
SceImeTextFilter filter
Definition ime_dialog.h:55
SceInt32 result
Definition ime_dialog.h:72
SceInt32 button
Definition ime_dialog.h:73
SceImeDialogError
Definition ime_dialog.h:22
SceUInt32 dialogMode
Dialog mode (One of SceImeDialogDialogMode)
Definition ime_dialog.h:57
SceUChar8 enterLabel
Definition ime_dialog.h:66
SceWChar16 * initialText
Definition ime_dialog.h:61
SceInt32 sceImeDialogGetResult(SceImeDialogResult *result)
SceUInt32 option
Dialog options (One or more SceImeOption)
Definition ime_dialog.h:54
SceImeDialogTextboxMode
Definition ime_dialog.h:35
SceUInt32 maxTextLength
Definition ime_dialog.h:60
SceInt32 sceImeDialogInit(const SceImeDialogParam *param)
SceUInt64 supportedLanguages
Dialog languages (One or more SceImeLanguage)
Definition ime_dialog.h:51
const SceWChar16 * title
Definition ime_dialog.h:59
SceCommonDialogParam commonParam
Definition ime_dialog.h:64
SceUInt32 inputMethod
Definition ime_dialog.h:50
SceChar8 reserved[35]
Definition ime_dialog.h:67
SceInt32(* SceImeTextFilter)(SceWChar16 *outText, SceUInt32 *outTextLength, const SceWChar16 *srcText, SceUInt32 srcTextLength)
Definition libime.h:148
SceCommonDialogStatus sceImeDialogGetStatus(void)
SceUInt32 type
Dialog type (One of SceImeType)
Definition ime_dialog.h:53
SceWChar16 * inputTextBuffer
Definition ime_dialog.h:62
SceChar8 reserved[28]
Definition ime_dialog.h:74
@ SCE_IME_DIALOG_BUTTON_ENTER
Definition ime_dialog.h:44
@ SCE_IME_DIALOG_BUTTON_CLOSE
Definition ime_dialog.h:43
@ SCE_IME_DIALOG_BUTTON_NONE
Definition ime_dialog.h:42
@ SCE_IME_DIALOG_DIALOG_MODE_WITH_CANCEL
Definition ime_dialog.h:32
@ SCE_IME_DIALOG_DIALOG_MODE_DEFAULT
Definition ime_dialog.h:31
@ SCE_IME_DIALOG_ERROR_INVALID_TEXT_BOX_MODE
Definition ime_dialog.h:26
@ SCE_IME_DIALOG_ERROR_INVALID_TITLE
Definition ime_dialog.h:27
@ SCE_IME_DIALOG_ERROR_INTERNAL
Definition ime_dialog.h:24
@ SCE_IME_DIALOG_ERROR_INVALID_DIALOG_MODE
Definition ime_dialog.h:25
@ SCE_IME_DIALOG_ERROR_PARAM
Definition ime_dialog.h:23
@ SCE_IME_DIALOG_TEXTBOX_MODE_WITH_CLEAR
Definition ime_dialog.h:38
@ SCE_IME_DIALOG_TEXTBOX_MODE_PASSWORD
Definition ime_dialog.h:37
@ SCE_IME_DIALOG_TEXTBOX_MODE_DEFAULT
Definition ime_dialog.h:36
Definition ime_dialog.h:47
Definition ime_dialog.h:71
int8_t SceChar8
Definition types.h:32
int SceBool
Definition types.h:59
int32_t SceInt32
Definition types.h:44
uint64_t SceUInt64
Definition types.h:51
uint32_t SceUInt32
Definition types.h:45
uint16_t SceWChar16
Definition types.h:77
uint8_t SceUChar8
Definition types.h:33