Provides breadcrumb navigation and path controls for asset browser.
More...
#include <NavigationBar.h>
|
static std::filesystem::path | Render (const std::filesystem::path ¤tPath, const std::filesystem::path &rootPath, bool isGlobal) |
| Render the navigation bar.
|
|
static std::filesystem::path | RenderBreadcrumbs (const std::filesystem::path ¤tPath, const std::filesystem::path &rootPath) |
| Render just the breadcrumb path.
|
|
static std::filesystem::path | RenderNavigationButtons (const std::filesystem::path ¤tPath, 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.
|
|
Provides breadcrumb navigation and path controls for asset browser.
◆ 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
-
fullPath | Full path |
rootPath | Root 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
-
currentPath | Current directory path |
rootPath | Root directory path |
isGlobal | Whether 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
-
currentPath | Current directory path |
rootPath | Root 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
-
currentPath | Current directory path |
rootPath | Root directory path |
- Returns
- New path if navigation occurred, empty if no change
The documentation for this class was generated from the following files: