62f54bb7ad
Win32/Linux version is from texturev. OSX uses native dialog instead of zenity. win32 has a fix to support win32 target: OPENFILENAMEA customData is uintptr_t instead of uint64_t.
31 lines
588 B
C++
31 lines
588 B
C++
/*
|
|
* Copyright 2010-2019 Branimir Karadzic. All rights reserved.
|
|
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
|
|
*/
|
|
|
|
#ifndef DIALOG_H_HEADER_GUARD
|
|
#define DIALOG_H_HEADER_GUARD
|
|
|
|
namespace bx { class FilePath; class StringView; }
|
|
|
|
struct FileSelectionDialogType
|
|
{
|
|
enum Enum
|
|
{
|
|
Open,
|
|
Save,
|
|
|
|
Count
|
|
};
|
|
};
|
|
|
|
bool openFileSelectionDialog(
|
|
bx::FilePath& _inOutFilePath
|
|
, FileSelectionDialogType::Enum _type
|
|
, const bx::StringView& _title
|
|
, const bx::StringView& _filter = "All Files | *"
|
|
);
|
|
|
|
|
|
#endif // DIALOG_H_HEADER_GUARD
|