aboutsummaryrefslogtreecommitdiff
path: root/vendor/rlImGui-main/examples/asset_browser/asset_browser.h
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2024-09-09 15:20:36 -0500
committerNic Gaffney <gaffney_nic@protonmail.com>2024-09-09 15:20:36 -0500
commit9aa0015747962429c9f42bc8d75b2447116747a7 (patch)
treed8d579cb671b4f2f0d2c3f2e389a5f6043fb4031 /vendor/rlImGui-main/examples/asset_browser/asset_browser.h
parentca3fd842c3edd17a922b041e05471875adc64c44 (diff)
downloadparticle-sim-9aa0015747962429c9f42bc8d75b2447116747a7.tar.gz
Changed rlimgui to be a git submodule
Diffstat (limited to 'vendor/rlImGui-main/examples/asset_browser/asset_browser.h')
-rw-r--r--vendor/rlImGui-main/examples/asset_browser/asset_browser.h95
1 files changed, 0 insertions, 95 deletions
diff --git a/vendor/rlImGui-main/examples/asset_browser/asset_browser.h b/vendor/rlImGui-main/examples/asset_browser/asset_browser.h
deleted file mode 100644
index 206e699..0000000
--- a/vendor/rlImGui-main/examples/asset_browser/asset_browser.h
+++ /dev/null
@@ -1,95 +0,0 @@
-/*******************************************************************************************
-*
-* raylib-extras [ImGui] example - asset browser
-*
-* This is a more complex ImGui Integration
-* It shows how to build windows on top of 2d and 3d views using a render texture
-*
-* Copyright (c) 2024 Jeffery Myers
-*
-********************************************************************************************/
-
-#pragma once
-
-#include "item_view.h"
-#include "raylib.h"
-
-#include <string>
-#include <vector>
-#include <list>
-
-class AssetBrowserPanel
-{
-public:
- AssetBrowserPanel();
-
- void Show();
-
-private:
- std::string AssetRoot;
-
- class AssetItemInfo : public ViewableItem
- {
- protected:
- bool File = false;
-
- public:
- AssetItemInfo(bool file) : File(file) {}
- bool IsFile() const { return File; }
- };
-
- class FileInfo : public AssetItemInfo
- {
- public:
- FileInfo() : AssetItemInfo(true) {}
-
- std::string FullPath;
- };
-
- class FolderInfo : public AssetItemInfo
- {
- public:
- FolderInfo() : AssetItemInfo(false) {}
-
- std::string FullPath;
- FolderInfo* Parent = nullptr;
- std::list<FolderInfo> Children;
-
- bool ForceOpenNextFrame = false;
-
- void PopulateChildren();
- };
-
- FolderInfo FolderRoot;
-
- class AssetContainer : public ViewableItemContainer
- {
- public:
- ViewableItem* Reset() override;
- size_t Count() override;
- ViewableItem* Next() override;
-
- FolderInfo* Folder = nullptr;
- std::vector<FileInfo> Files;
-
- std::vector<FileInfo>::iterator FileItr;
- std::list<FolderInfo>::iterator FolderItr;
- };
-
- AssetContainer CurrentFolderContents;
-
- ListItemView ListView;
-
- ItemView* CurrentView = nullptr;
-
- void RebuildFolderTree();
-
- void SetCurrentFolder(FolderInfo* folder);
-
- bool ShowFolderTreeNode(FolderInfo& folder);
- void ShowFolderTree();
- void ShowFilePane();
- void ShowHeader();
-
- const char* GetFileIcon(const char* filename);
-}; \ No newline at end of file