module v_osdialog
A cross platform wrapper for OS dialogs like file save, open, message boxes, inputs, color picking, etc. for
V
Currently tested MacOS, Windows.
license
Original ะก-osdialog is released into the public domain
(CC0)
V
Contents
file
fn file(action Actions, path string, filename string, filters string) string
message
fn message(level Levels, buttons Buttons, message string) bool
prompt
fn prompt(level Levels, message string, text string) string
Actions
enum Actions {
open_file = C.OSDIALOG_OPEN
open_dir = C.OSDIALOG_OPEN_DIR
save = C.OSDIALOG_SAVE
}
Buttons
enum Buttons {
ok = C.OSDIALOG_OK
ok_cancel = C.OSDIALOG_OK_CANCEL
yes_no = C.OSDIALOG_YES_NO
}
Levels
enum Levels {
info = C.OSDIALOG_INFO
warning = C.OSDIALOG_WARNING
error = C.OSDIALOG_ERROR
}