summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/common/entry/dialog.h
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/examples/common/entry/dialog.h')
-rw-r--r--3rdparty/bgfx/examples/common/entry/dialog.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/3rdparty/bgfx/examples/common/entry/dialog.h b/3rdparty/bgfx/examples/common/entry/dialog.h
new file mode 100644
index 00000000000..4a75951ac45
--- /dev/null
+++ b/3rdparty/bgfx/examples/common/entry/dialog.h
@@ -0,0 +1,33 @@
+/*
+ * 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 | *"
+ );
+
+///
+void openUrl(const bx::StringView& _url);
+
+#endif // DIALOG_H_HEADER_GUARD