Haiku Message

Haiku provides a simple popup message system to notify the user of a problem.

if(IO::IsMouseJustPressed(HAIKU_MOUSE_BUTTON_2))
    Message::Note("Here's a popup window !");
  • Result on X11 platform

../_images/popup_linux.png
  • Result on Windows platform

../_images/popup_windows.png
  • Result on Apple platform

../_images/popup_macos.png

Message API Description

namespace Message

Functions

void Warning(const char *format, ...)

Displays a Warning popup message.

void Error(const char *format, ...)

Displays an Error popup message. Leaves the application.

bool Popup(const char *format, ...)

Displays a simple Yes/No popup message.

void Note(const char *format, ...)

Displays a simple popup message.