Message boxes


Data Structures

struct  UL_MSGBOX_BUTTON

Functions

int ulMessageBoxEx (const char *text, const char *title, int nbButtons, UL_MSGBOX_BUTTON *buttons, void(*fnRender)(), u32 reserved)

Detailed Description

Basic message box support for µLibrary.

Function Documentation

int ulMessageBoxEx ( const char *  text,
const char *  title,
int  nbButtons,
UL_MSGBOX_BUTTON buttons,
void(*)()  fnRender,
u32  reserved 
)

Displays a message box (extended version).

Parameters:
text Main text to be displayed. This can be a big string with line endings (\n).
title Title, displayed on top of the window.
nbButtons Number of buttons in the buttons pointer.
buttons Table of buttons. The number of buttons available in this table must be given by the nbButton parameter.
fnRender Pointer to an own render function. Needed to draw your own background because on the DS the display contents can't be kept from a frame to another, it must be entirely erased once per frame. Make sure your function will not draw an important number of polygons, else it will leave no room for the message box (1 quad per character, 1 tri for each line, etc.).
reserved Set to 0.
This function displays a message box centered on the screen. Dimensions are guessed automatically depending on the title and number of buttons. The aspect of those windows may change in the future, as well as how the text is displayed in it.


Generated on Sat Jul 14 23:39:33 2007 by  doxygen 1.5.2