2
0

dialog.h 588 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright 2010-2019 Branimir Karadzic. All rights reserved.
  3. * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
  4. */
  5. #ifndef DIALOG_H_HEADER_GUARD
  6. #define DIALOG_H_HEADER_GUARD
  7. namespace bx { class FilePath; class StringView; }
  8. struct FileSelectionDialogType
  9. {
  10. enum Enum
  11. {
  12. Open,
  13. Save,
  14. Count
  15. };
  16. };
  17. bool openFileSelectionDialog(
  18. bx::FilePath& _inOutFilePath
  19. , FileSelectionDialogType::Enum _type
  20. , const bx::StringView& _title
  21. , const bx::StringView& _filter = "All Files | *"
  22. );
  23. #endif // DIALOG_H_HEADER_GUARD