Core asset browser component for displaying and managing assets.
More...
#include <AssetBrowser.h>
Core asset browser component for displaying and managing assets.
This component handles the main file browser functionality including:
- Different view modes (Grid, List, Details)
- Asset item rendering with visual icons
- Search and filtering capabilities
- Directory navigation
- Integration with context menus and drag-drop
◆ AssetBrowser()
Construct a new Asset Browser.
- Parameters
-
assetManager | Reference to the asset manager |
iconRenderer | Reference to the icon renderer |
contextMenu | Reference to the context menu system |
navigationBar | Reference to the navigation bar |
dragDrop | Reference to the drag and drop system |
◆ Draw()
void Editor::Assets::AssetBrowser::Draw |
( |
const ImVec2 & |
windowSize | ) |
|
Draw the asset browser interface.
- Parameters
-
windowSize | Size of the containing window |
◆ GetCurrentPath()
const std::string & Editor::Assets::AssetBrowser::GetCurrentPath |
( |
| ) |
const |
|
inline |
Get the current directory path.
- Returns
- Current directory path
◆ GetIconSize()
float Editor::Assets::AssetBrowser::GetIconSize |
( |
| ) |
const |
|
inline |
Get the current icon size.
- Returns
- Current icon size
◆ GetSearchFilter()
const std::string & Editor::Assets::AssetBrowser::GetSearchFilter |
( |
| ) |
const |
|
inline |
Get the current search filter.
- Returns
- Current search filter
◆ GetViewMode()
AssetViewMode Editor::Assets::AssetBrowser::GetViewMode |
( |
| ) |
const |
|
inline |
Get the current view mode.
- Returns
- Current view mode
◆ RefreshCurrentDirectory()
void Editor::Assets::AssetBrowser::RefreshCurrentDirectory |
( |
| ) |
|
Refresh the current directory contents.
◆ SetCurrentPath()
void Editor::Assets::AssetBrowser::SetCurrentPath |
( |
const std::string & |
path | ) |
|
Set the current directory path.
- Parameters
-
◆ SetIconSize()
void Editor::Assets::AssetBrowser::SetIconSize |
( |
float |
size | ) |
|
Set the icon size.
- Parameters
-
size | New icon size (32-128 pixels) |
◆ SetSearchFilter()
void Editor::Assets::AssetBrowser::SetSearchFilter |
( |
const std::string & |
filter | ) |
|
Set the search filter.
- Parameters
-
◆ SetViewMode()
void Editor::Assets::AssetBrowser::SetViewMode |
( |
AssetViewMode |
mode | ) |
|
|
inline |
Set the view mode.
- Parameters
-
The documentation for this class was generated from the following files: