Function in ldk_os.h

ldk_os_dialog_color_picker_show

Open the native color selection dialog.

LDK_API bool ldk_os_dialog_color_picker_show(
 LDKWindow owner,
 rgba32 *color
);

Parameters

LDKWindow owner
Parent window for the dialog.
rgba32 *color
Color value used by the operation.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_os.h

ldk_os_dialog_show_error

Show an error message dialog.

LDK_API bool ldk_os_dialog_show_error(
 LDKWindow owner,
 const char *title,
 const char *message
);

Parameters

LDKWindow owner
Parent window for the dialog.
const char *title
Title shown by the window or dialog.
const char *message
Message displayed to the user.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_os.h

ldk_os_dialog_show_ok

Show an OK message dialog.

LDK_API bool ldk_os_dialog_show_ok(
 LDKWindow owner,
 const char *title,
 const char *message
);

Parameters

LDKWindow owner
Parent window for the dialog.
const char *title
Title shown by the window or dialog.
const char *message
Message displayed to the user.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_os.h

ldk_os_dialog_show_ok_cancel

Show an OK/Cancel message dialog.

LDK_API bool ldk_os_dialog_show_ok_cancel(
 LDKWindow owner,
 const char *title,
 const char *message
);

Parameters

LDKWindow owner
Parent window for the dialog.
const char *title
Title shown by the window or dialog.
const char *message
Message displayed to the user.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_os.h

ldk_os_dialog_show_open_file

Open a native file selection dialog.

LDK_API bool ldk_os_dialog_show_open_file(
 LDKWindow owner,
 const char *title,
 const char *filter,
 XFSPath *out_path
);

Parameters

LDKWindow owner
Parent window for the dialog.
const char *title
Title shown by the window or dialog.
const char *filter
File type filter passed to the native dialog.
XFSPath *out_path
Receives the resulting path.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_os.h

ldk_os_dialog_show_open_folder

Open a native folder selection dialog.

LDK_API bool ldk_os_dialog_show_open_folder(
 LDKWindow owner,
 const char *title,
 const char *filter,
 char *out_path,
 size_t out_path_size
);

Parameters

LDKWindow owner
Parent window for the dialog.
const char *title
Title shown by the window or dialog.
const char *filter
File type filter passed to the native dialog.
char *out_path
Receives the resulting path.
size_t out_path_size
Receives the resulting path size.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_os.h

ldk_os_dialog_show_save_file

Open a native save-file dialog.

LDK_API bool ldk_os_dialog_show_save_file(
 LDKWindow owner,
 const char *title,
 const char *filter,
 XFSPath *out_path
);

Parameters

LDKWindow owner
Parent window for the dialog.
const char *title
Title shown by the window or dialog.
const char *filter
File type filter passed to the native dialog.
XFSPath *out_path
Receives the resulting path.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_os.h

ldk_os_dialog_show_yes_no

Show a Yes/No message dialog.

LDK_API bool ldk_os_dialog_show_yes_no(
 LDKWindow owner,
 const char *title,
 const char *message
);

Parameters

LDKWindow owner
Parent window for the dialog.
const char *title
Title shown by the window or dialog.
const char *message
Message displayed to the user.

Returns

True if the operation succeeds; false otherwise.