dialog.h 603 B

123456789101112131415161718192021222324252627282930313233
  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. ///
  18. bool openFileSelectionDialog(
  19. bx::FilePath& _inOutFilePath
  20. , FileSelectionDialogType::Enum _type
  21. , const bx::StringView& _title
  22. , const bx::StringView& _filter = "All Files | *"
  23. );
  24. ///
  25. void openUrl(const bx::StringView& _url);
  26. #endif // DIALOG_H_HEADER_GUARD