Add FileDialog data pipeline

This commit is contained in:
scawful
2023-08-02 07:15:05 -04:00
parent 09d76f5f5d
commit 1d0419583d
5 changed files with 92 additions and 38 deletions

27
src/app/core/pipeline.h Normal file
View File

@@ -0,0 +1,27 @@
#ifndef YAZE_APP_CORE_PIPELINE_H
#define YAZE_APP_CORE_PIPELINE_H
#include <ImGuiFileDialog/ImGuiFileDialog.h>
#include <imgui/imgui.h>
#include <imgui/misc/cpp/imgui_stdlib.h>
#include <imgui_memory_editor.h>
#include <functional>
#include <optional>
#include "absl/strings/string_view.h"
namespace yaze {
namespace app {
namespace core {
void FileDialogPipeline(absl::string_view display_key,
absl::string_view file_extensions,
std::optional<absl::string_view> button_text,
std::function<void()> callback);
} // namespace core
} // namespace app
} // namespace yaze
#endif