PSPSDK 2024-10-31
Loading...
Searching...
No Matches
psputility_msgdialog.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * psputility_msdialog.h - Definitions and Functions for Dialogs
7 * section of the pspUtility library
8 *
9 * Copyright (c) 2005 Marcus Comstedt <marcus@mc.pp.se>
10 * (c) 2008 InsertWittyName <tias_dp@hotmail.com>
11 *
12 */
13#ifndef __PSPUTILITY_DIALOGS_H__
14#define __PSPUTILITY_DIALOGS_H__
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20typedef enum
21{
22 PSP_UTILITY_MSGDIALOG_MODE_ERROR = 0, /* Error message */
23 PSP_UTILITY_MSGDIALOG_MODE_TEXT /* String message */
24
26
27typedef enum
28{
29 PSP_UTILITY_MSGDIALOG_OPTION_ERROR = 0, /* Error message (why two flags?) */
30 PSP_UTILITY_MSGDIALOG_OPTION_TEXT = 0x00000001, /* Text message (why two flags?) */
31 PSP_UTILITY_MSGDIALOG_OPTION_YESNO_BUTTONS = 0x00000010, /* Yes/No buttons instead of 'Cancel' */
32 PSP_UTILITY_MSGDIALOG_OPTION_DEFAULT_NO = 0x00000100 /* Default position 'No', if not set will default to 'Yes' */
33
35
44
49{
53 unsigned int errorValue;
55 char message[512];
56 int options; /* OR ::pspUtilityMsgDialogOption together for multiple options */
58
60
68
75
84
91
96
97#ifdef __cplusplus
98}
99#endif
100
101#endif
float x
Definition psptypes.h:0
pspUtilityMsgDialogOption
Definition psputility_msgdialog.h:28
@ PSP_UTILITY_MSGDIALOG_OPTION_TEXT
Definition psputility_msgdialog.h:30
@ PSP_UTILITY_MSGDIALOG_OPTION_DEFAULT_NO
Definition psputility_msgdialog.h:32
@ PSP_UTILITY_MSGDIALOG_OPTION_ERROR
Definition psputility_msgdialog.h:29
@ PSP_UTILITY_MSGDIALOG_OPTION_YESNO_BUTTONS
Definition psputility_msgdialog.h:31
int sceUtilityMsgDialogInitStart(pspUtilityMsgDialogParams *params)
Create a message dialog.
int sceUtilityMsgDialogAbort(void)
Abort a message dialog currently active.
int sceUtilityMsgDialogGetStatus(void)
Get the current status of a message dialog currently active.
void sceUtilityMsgDialogShutdownStart(void)
Remove a message dialog currently active.
void sceUtilityMsgDialogUpdate(int n)
Refresh the GUI for a message dialog currently active.
pspUtilityMsgDialogMode
Definition psputility_msgdialog.h:21
@ PSP_UTILITY_MSGDIALOG_MODE_TEXT
Definition psputility_msgdialog.h:23
@ PSP_UTILITY_MSGDIALOG_MODE_ERROR
Definition psputility_msgdialog.h:22
pspUtilityMsgDialogPressed
Definition psputility_msgdialog.h:37
@ PSP_UTILITY_MSGDIALOG_RESULT_BACK
Definition psputility_msgdialog.h:41
@ PSP_UTILITY_MSGDIALOG_RESULT_UNKNOWN1
Definition psputility_msgdialog.h:38
@ PSP_UTILITY_MSGDIALOG_RESULT_NO
Definition psputility_msgdialog.h:40
@ PSP_UTILITY_MSGDIALOG_RESULT_YES
Definition psputility_msgdialog.h:39
struct _pspUtilityMsgDialogParams pspUtilityMsgDialogParams
Structure to hold the parameters for a message dialog.
Structure to hold the parameters for a message dialog.
Definition psputility_msgdialog.h:49
int unknown
Definition psputility_msgdialog.h:51
pspUtilityMsgDialogMode mode
Definition psputility_msgdialog.h:52
int options
Definition psputility_msgdialog.h:56
char message[512]
The message to display (may contain embedded linefeeds)
Definition psputility_msgdialog.h:55
pspUtilityDialogCommon base
Definition psputility_msgdialog.h:50
pspUtilityMsgDialogPressed buttonPressed
Definition psputility_msgdialog.h:57
unsigned int errorValue
Definition psputility_msgdialog.h:53
Definition psputility.h:15