wut  v1.7.0
Wii U Toolchain
Typedefs | Enumerations | Functions
procui.h File Reference
#include <wut.h>
#include <coreinit/time.h>
Include dependency graph for procui.h:

Go to the source code of this file.

Typedefs

typedef void(* ProcUISaveCallback) (void)
 Called when the application needs to save. More...
 
typedef uint32_t(* ProcUISaveCallbackEx) (void *)
 Called when the application needs to save. More...
 
typedef uint32_t(* ProcUICallback) (void *)
 Generic ProcUI callback. More...
 
typedef enum ProcUICallbackType ProcUICallbackType
 
typedef enum ProcUIStatus ProcUIStatus
 

Enumerations

enum  ProcUICallbackType {
  PROCUI_CALLBACK_ACQUIRE ,
  PROCUI_CALLBACK_RELEASE ,
  PROCUI_CALLBACK_EXIT ,
  PROCUI_CALLBACK_NET_IO_START ,
  PROCUI_CALLBACK_NET_IO_STOP ,
  PROCUI_CALLBACK_HOME_BUTTON_DENIED
}
 
enum  ProcUIStatus {
  PROCUI_STATUS_IN_FOREGROUND ,
  PROCUI_STATUS_IN_BACKGROUND ,
  PROCUI_STATUS_RELEASE_FOREGROUND ,
  PROCUI_STATUS_EXITING
}
 

Functions

void ProcUIClearCallbacks ()
 Unregister all ProcUI callbacks. More...
 
void ProcUIDrawDoneRelease ()
 Signifies to ProcUI that the current application has released all foreground resources, drawn its last frame, and is ready to be moved into the background. More...
 
BOOL ProcUIInForeground ()
 Determines whether the application is in the foreground. More...
 
BOOL ProcUIInShutdown ()
 Determines whether the application is in shutdown and should quit. More...
 
void ProcUIInit (ProcUISaveCallback saveCallback)
 Initialises the ProcUI library for use. More...
 
void ProcUIInitEx (ProcUISaveCallbackEx saveCallback, void *arg)
 Initialises the ProcUI library for use; using a save callback that takes arguments. More...
 
BOOL ProcUIIsRunning ()
 Determines whether the ProcUI library is running/initialised. More...
 
ProcUIStatus ProcUIProcessMessages (BOOL block)
 Main runloop for ProcUI. More...
 
void ProcUIRegisterCallback (ProcUICallbackType type, ProcUICallback callback, void *param, uint32_t priority)
 Register a callback for certain ProcUI events. More...
 
void ProcUIRegisterCallbackCore (ProcUICallbackType type, ProcUICallback callback, void *param, uint32_t priority, uint32_t core)
 Register a callback for certain ProcUI events, executed on the given core. More...
 
void ProcUIRegisterBackgroundCallback (ProcUICallback callback, void *param, OSTime interval)
 Register a callback which will be called periodically while in background. More...
 
void ProcUISetSaveCallback (ProcUISaveCallbackEx saveCallback, void *arg)
 Sets the save callback. More...
 
void ProcUIShutdown ()
 Shut down the ProcUI library for the current application. More...
 
ProcUIStatus ProcUISubProcessMessages (BOOL block)
 ProcUIProcessMessages(), but for secondary cores. More...