Index

Package: Native_Dialogs

Description

package Allegro.Native_Dialogs is
Allegro 5.0.9 - Native dialogs addon

Types

Allegro_Filechooser

type Allegro_Filechooser is limited private;

A_Allegro_Filechooser

type A_Allegro_Filechooser is access all Allegro_Filechooser;

Filechooser_Flags

type Filechooser_Flags is new Unsigned_32;

Messagebox_Flags

type Messagebox_Flags is new Unsigned_32;

Allegro_Textlog

type Allegro_Textlog is limited private;

A_Allegro_Textlog

type A_Allegro_Textlog is access all Allegro_Textlog;

Textlog_Flags

type Textlog_Flags is new Unsigned_32;

Constants & Global variables

ALLEGRO_FILECHOOSER_NONE (Filechooser_Flags)

ALLEGRO_FILECHOOSER_NONE            : constant Filechooser_Flags := 0;

ALLEGRO_FILECHOOSER_FILE_MUST_EXIST (Filechooser_Flags)

ALLEGRO_FILECHOOSER_FILE_MUST_EXIST : constant Filechooser_Flags := 1;

ALLEGRO_FILECHOOSER_SAVE (Filechooser_Flags)

ALLEGRO_FILECHOOSER_SAVE            : constant Filechooser_Flags := 2;

ALLEGRO_FILECHOOSER_FOLDER (Filechooser_Flags)

ALLEGRO_FILECHOOSER_FOLDER          : constant Filechooser_Flags := 4;

ALLEGRO_FILECHOOSER_PICTURES (Filechooser_Flags)

ALLEGRO_FILECHOOSER_PICTURES        : constant Filechooser_Flags := 8;

ALLEGRO_FILECHOOSER_SHOW_HIDDEN (Filechooser_Flags)

ALLEGRO_FILECHOOSER_SHOW_HIDDEN     : constant Filechooser_Flags := 16;

ALLEGRO_FILECHOOSER_MULTIPLE (Filechooser_Flags)

ALLEGRO_FILECHOOSER_MULTIPLE        : constant Filechooser_Flags := 32;

ALLEGRO_MESSAGEBOX_WARN (Messagebox_Flags)

ALLEGRO_MESSAGEBOX_WARN      : constant Messagebox_Flags := 1;

ALLEGRO_MESSAGEBOX_ERROR (Messagebox_Flags)

ALLEGRO_MESSAGEBOX_ERROR     : constant Messagebox_Flags := 2;

ALLEGRO_MESSAGEBOX_OK_CANCEL (Messagebox_Flags)

ALLEGRO_MESSAGEBOX_OK_CANCEL : constant Messagebox_Flags := 4;

ALLEGRO_MESSAGEBOX_YES_NO (Messagebox_Flags)

ALLEGRO_MESSAGEBOX_YES_NO    : constant Messagebox_Flags := 8;

ALLEGRO_MESSAGEBOX_QUESTION (Messagebox_Flags)

ALLEGRO_MESSAGEBOX_QUESTION  : constant Messagebox_Flags := 16;

ALLEGRO_TEXTLOG_NO_CLOSE (Textlog_Flags)

ALLEGRO_TEXTLOG_NO_CLOSE  : constant Textlog_Flags := 1;

ALLEGRO_TEXTLOG_MONOSPACE (Textlog_Flags)

ALLEGRO_TEXTLOG_MONOSPACE : constant Textlog_Flags := 2;

ALLEGRO_EVENT_NATIVE_DIALOG_CLOSE (Allegro.Events.Allegro_Event_Type)

ALLEGRO_EVENT_NATIVE_DIALOG_CLOSE : constant Allegro_Event_Type := 600;

Subprograms & Entries

Al_Init_Native_Dialog_Addon

function Al_Init_Native_Dialog_Addon return Boolean;

Al_Shutdown_Native_Dialog_Addon

procedure Al_Shutdown_Native_Dialog_Addon;

Al_Get_Allegro_Native_Dialog_Version

function Al_Get_Allegro_Native_Dialog_Version return Unsigned_32;

Al_Create_Native_File_Dialog

function Al_Create_Native_File_Dialog
( initial_path: String;
title: String;
patterns: String;
mode: Filechooser_Flags ) return A_Allegro_Filechooser;

Al_Show_Native_File_Dialog

function Al_Show_Native_File_Dialog
( display: A_Allegro_Display;
dialog: A_Allegro_Filechooser ) return Boolean;

Al_Get_Native_File_Dialog_Count

function Al_Get_Native_File_Dialog_Count
( dialog: A_Allegro_Filechooser ) return Integer;

Al_Get_Native_File_Dialog_Path

function Al_Get_Native_File_Dialog_Path
( dialog: A_Allegro_Filechooser;
index: Natural ) return String;

Al_Destroy_Native_File_Dialog

procedure Al_Destroy_Native_File_Dialog
( dialog: in out A_Allegro_Filechooser );

Al_Show_Native_Message_Box

function Al_Show_Native_Message_Box
( display: A_Allegro_Display;
title: String;
heading: String;
text: String;
buttons: String;
flags: Messagebox_Flags ) return Integer;

Al_Open_Native_Text_Log

function Al_Open_Native_Text_Log
( title: String;
flags: Textlog_Flags ) return A_Allegro_Textlog;

Al_Close_Native_Text_Log

procedure Al_Close_Native_Text_Log
( textlog: in out A_Allegro_Textlog );

Al_Append_Native_Text_Log

procedure Al_Append_Native_Text_Log
( textlog: A_Allegro_Textlog;
str: String );

Al_Get_Native_Text_Log_Event_Source

function Al_Get_Native_Text_Log_Event_Source
( textlog: A_Allegro_Textlog ) return A_Allegro_Event_Source;