package tsdl

  1. Overview
  2. Docs

Module Sdl.Message_boxSource

Message box Buttons

Sourcetype button_flags
Sourceval button_no_default : button_flags
Sourceval button_returnkey_default : button_flags
Sourceval button_escapekey_default : button_flags
Sourcetype button_data = {
  1. button_flags : button_flags;
  2. button_id : int;
  3. button_text : string;
}

Message box flags

Sourcetype flags
Sourceval error : flags
Sourceval warning : flags
Sourceval information : flags

Message box color scheme

Sourcetype color = int * int * int

r, g, b from 0 to 255

Sourcetype color_scheme = {
  1. color_background : color;
  2. color_text : color;
  3. color_button_border : color;
  4. color_button_background : color;
  5. color_button_selected : color;
}

Message box data

Sourcetype data = {
  1. flags : flags;
  2. window : window option;
  3. title : string;
  4. message : string;
  5. buttons : button_data list;
  6. color_scheme : color_scheme option;
}