psl1ght
A free SDK for Sony's PS3 console
Loading...
Searching...
No Matches
msg.h File Reference
#include <ppu-types.h>

Go to the source code of this file.

Macros

#define MSG_PROGRESSBAR_INDEX0   0
 
#define MSG_PROGRESSBAR_INDEX1   1
 

Typedefs

typedef void(* msgDialogCallback) (msgButton button, void *usrData)
 

Enumerations

enum  msgType {
  MSG_DIALOG_ERROR = 0 , MSG_DIALOG_NORMAL = 1 , MSG_DIALOG_MUTE_ON = 2 , MSG_DIALOG_BKG_INVISIBLE = 4 ,
  MSG_DIALOG_BTN_TYPE_YESNO = 16 , MSG_DIALOG_BTN_TYPE_OK = 32 , MSG_DIALOG_DISABLE_CANCEL_ON = 128 , MSG_DIALOG_DEFAULT_CURSOR_NO = 256 ,
  MSG_DIALOG_SINGLE_PROGRESSBAR = 4096 , MSG_DIALOG_DOUBLE_PROGRESSBAR = 8192
}
 
enum  msgButton {
  MSG_DIALOG_BTN_NONE = -1 , MSG_DIALOG_BTN_INVALID , MSG_DIALOG_BTN_OK , MSG_DIALOG_BTN_YES = 1 ,
  MSG_DIALOG_BTN_NO , MSG_DIALOG_BTN_ESCAPE
}
 

Functions

s32 msgDialogAbort ()
 
s32 msgDialogClose (f32 waitMs)
 
s32 msgDialogOpen (msgType type, const char *msg, msgDialogCallback cb, void *usrData, void *unused)
 
s32 msgDialogOpen2 (msgType type, const char *msg, msgDialogCallback cb, void *usrData, void *unused)
 
s32 msgDialogOpenErrorCode (u32 errorCode, msgDialogCallback cb, void *usrData, void *unused)
 
s32 msgDialogProgressBarSetMsg (u32 index, const char *msg)
 
s32 msgDialogProgressBarReset (u32 index)
 
s32 msgDialogProgressBarInc (u32 index, u32 percent)
 

Macro Definition Documentation

◆ MSG_PROGRESSBAR_INDEX0

#define MSG_PROGRESSBAR_INDEX0   0

Definition at line 6 of file msg.h.

◆ MSG_PROGRESSBAR_INDEX1

#define MSG_PROGRESSBAR_INDEX1   1

Definition at line 7 of file msg.h.

Typedef Documentation

◆ msgDialogCallback

typedef void(* msgDialogCallback) (msgButton button, void *usrData)

Definition at line 38 of file msg.h.

Enumeration Type Documentation

◆ msgButton

enum msgButton
Enumerator
MSG_DIALOG_BTN_NONE 
MSG_DIALOG_BTN_INVALID 
MSG_DIALOG_BTN_OK 
MSG_DIALOG_BTN_YES 
MSG_DIALOG_BTN_NO 
MSG_DIALOG_BTN_ESCAPE 

Definition at line 28 of file msg.h.

◆ msgType

enum msgType
Enumerator
MSG_DIALOG_ERROR 
MSG_DIALOG_NORMAL 
MSG_DIALOG_MUTE_ON 
MSG_DIALOG_BKG_INVISIBLE 
MSG_DIALOG_BTN_TYPE_YESNO 
MSG_DIALOG_BTN_TYPE_OK 
MSG_DIALOG_DISABLE_CANCEL_ON 
MSG_DIALOG_DEFAULT_CURSOR_NO 
MSG_DIALOG_SINGLE_PROGRESSBAR 
MSG_DIALOG_DOUBLE_PROGRESSBAR 

Definition at line 13 of file msg.h.

Function Documentation

◆ msgDialogAbort()

s32 msgDialogAbort ( )

◆ msgDialogClose()

s32 msgDialogClose ( f32  waitMs)

◆ msgDialogOpen()

s32 msgDialogOpen ( msgType  type,
const char *  msg,
msgDialogCallback  cb,
void *  usrData,
void *  unused 
)

◆ msgDialogOpen2()

s32 msgDialogOpen2 ( msgType  type,
const char *  msg,
msgDialogCallback  cb,
void *  usrData,
void *  unused 
)

◆ msgDialogOpenErrorCode()

s32 msgDialogOpenErrorCode ( u32  errorCode,
msgDialogCallback  cb,
void *  usrData,
void *  unused 
)

◆ msgDialogProgressBarInc()

s32 msgDialogProgressBarInc ( u32  index,
u32  percent 
)

◆ msgDialogProgressBarReset()

s32 msgDialogProgressBarReset ( u32  index)

◆ msgDialogProgressBarSetMsg()

s32 msgDialogProgressBarSetMsg ( u32  index,
const char *  msg 
)