bgfx/examples/common/entry/dialog.h

34 lines
602 B
C
Raw Permalink Normal View History

/*
2024-01-14 12:56:36 +03:00
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
2022-01-15 22:59:06 +03:00
* License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
*/
#ifndef DIALOG_H_HEADER_GUARD
#define DIALOG_H_HEADER_GUARD
namespace bx { class FilePath; class StringView; }
struct FileSelectionDialogType
{
enum Enum
{
Open,
Save,
2019-08-15 07:19:03 +03:00
Count
};
};
2019-08-15 07:19:03 +03:00
///
bool openFileSelectionDialog(
2019-08-15 07:19:03 +03:00
bx::FilePath& _inOutFilePath
, FileSelectionDialogType::Enum _type
, const bx::StringView& _title
, const bx::StringView& _filter = "All Files | *"
);
2019-08-15 07:19:03 +03:00
///
void openUrl(const bx::StringView& _url);
#endif // DIALOG_H_HEADER_GUARD