3#include "../Core/AssetItem.h"
4#include "../Core/AssetManager.h"
7#include "../Utils/IconRenderer.h"
8#include "../DragDrop/AssetDragDrop.h"
50 void Draw(
const ImVec2 &windowSize);
109 std::string m_currentPath;
111 float m_iconSize = 64.0f;
112 std::string m_searchFilter;
115 std::vector<AssetItem> m_currentItems;
116 bool m_needsRefresh =
true;
119 void RenderToolbar(
float windowWidth);
120 void RenderAssetGrid();
121 void RenderAssetList();
122 void RenderAssetDetails();
123 void RenderAssetItem(
const AssetItem &item,
bool isGrid =
true);
126 void NavigateToDirectory(
const std::string &path);
127 void OnDirectoryDoubleClick(
const std::string &path);
130 ImVec2 CalculateGridItemSize()
const;
131 float CalculateColumnsForGrid(
float availableWidth)
const;
132 bool PassesSearchFilter(
const AssetItem &item)
const;
133 void HandleItemSelection(
const AssetItem &item);
134 void HandleItemDoubleClick(
const AssetItem &item);
Navigation bar component for asset browser.
A panel component responsible for managing and displaying asset resources.
Core asset browser component for displaying and managing assets.
Definition AssetBrowser.h:30
void RefreshCurrentDirectory()
Refresh the current directory contents.
Definition AssetBrowser.cpp:105
void SetCurrentPath(const std::string &path)
Set the current directory path.
Definition AssetBrowser.cpp:86
void Draw(const ImVec2 &windowSize)
Draw the asset browser interface.
Definition AssetBrowser.cpp:22
void SetIconSize(float size)
Set the icon size.
Definition AssetBrowser.cpp:95
const std::string & GetCurrentPath() const
Get the current directory path.
Definition AssetBrowser.h:62
void SetViewMode(AssetViewMode mode)
Set the view mode.
Definition AssetBrowser.h:66
float GetIconSize() const
Get the current icon size.
Definition AssetBrowser.h:84
void SetSearchFilter(const std::string &filter)
Set the search filter.
Definition AssetBrowser.cpp:100
const std::string & GetSearchFilter() const
Get the current search filter.
Definition AssetBrowser.h:96
AssetViewMode GetViewMode() const
Get the current view mode.
Definition AssetBrowser.h:72
Manages drag and drop operations for assets.
Definition AssetDragDrop.h:36
Handles asset data management, file operations, and state.
Definition AssetManager.h:20
Renders visual icons using Dear ImGui drawing primitives.
Definition IconRenderer.h:19
Provides breadcrumb navigation and path controls for asset browser.
Definition NavigationBar.h:21
AssetViewMode
Different ways to display assets in the browser.
Definition AssetItem.h:19
Definition AssetsPanel.cpp:7
Represents a single asset item in the file browser.
Definition AssetItem.h:30