Voltray Engine Docs
Loading...
Searching...
No Matches
Editor::Assets::NavigationBar Class Reference

Provides breadcrumb navigation and path controls for asset browser. More...

#include <NavigationBar.h>

Static Public Member Functions

static std::filesystem::path Render (const std::filesystem::path &currentPath, const std::filesystem::path &rootPath, bool isGlobal)
 Render the navigation bar.
 
static std::filesystem::path RenderBreadcrumbs (const std::filesystem::path &currentPath, const std::filesystem::path &rootPath)
 Render just the breadcrumb path.
 
static std::filesystem::path RenderNavigationButtons (const std::filesystem::path &currentPath, const std::filesystem::path &rootPath)
 Render navigation buttons (home, back, forward)
 
static std::string GetRelativePath (const std::filesystem::path &fullPath, const std::filesystem::path &rootPath)
 Get relative path from root as string.
 

Detailed Description

Provides breadcrumb navigation and path controls for asset browser.

Member Function Documentation

◆ GetRelativePath()

std::string Editor::Assets::NavigationBar::GetRelativePath ( const std::filesystem::path &  fullPath,
const std::filesystem::path &  rootPath 
)
static

Get relative path from root as string.

Parameters
fullPathFull path
rootPathRoot path
Returns
Relative path string

◆ Render()

std::filesystem::path Editor::Assets::NavigationBar::Render ( const std::filesystem::path &  currentPath,
const std::filesystem::path &  rootPath,
bool  isGlobal 
)
static

Render the navigation bar.

Parameters
currentPathCurrent directory path
rootPathRoot directory path
isGlobalWhether this is global assets view
Returns
New path if navigation occurred, empty if no change

◆ RenderBreadcrumbs()

std::filesystem::path Editor::Assets::NavigationBar::RenderBreadcrumbs ( const std::filesystem::path &  currentPath,
const std::filesystem::path &  rootPath 
)
static

Render just the breadcrumb path.

Parameters
currentPathCurrent directory path
rootPathRoot directory path
Returns
New path if navigation occurred, empty if no change

◆ RenderNavigationButtons()

std::filesystem::path Editor::Assets::NavigationBar::RenderNavigationButtons ( const std::filesystem::path &  currentPath,
const std::filesystem::path &  rootPath 
)
static

Render navigation buttons (home, back, forward)

Parameters
currentPathCurrent directory path
rootPathRoot directory path
Returns
New path if navigation occurred, empty if no change

The documentation for this class was generated from the following files: