Renders visual icons using Dear ImGui drawing primitives.
More...
#include <IconRenderer.h>
|
| static void | RenderFileIcon (ImDrawList *drawList, ImVec2 center, float size, const std::string &extension, bool isDirectory, bool isParentDir, bool isSelected=false) |
| | Render a file icon at the specified position.
|
| |
| static void | RenderSmallIcon (ImDrawList *drawList, ImVec2 center, const std::string &extension, bool isDirectory) |
| | Render a small icon for list view.
|
| |
| static ImU32 | GetFileTypeColor (const std::string &extension, bool isDirectory) |
| | Get the color scheme for a file type.
|
| |
Renders visual icons using Dear ImGui drawing primitives.
◆ GetFileTypeColor()
| ImU32 Editor::Assets::IconRenderer::GetFileTypeColor |
( |
const std::string & |
extension, |
|
|
bool |
isDirectory |
|
) |
| |
|
static |
Get the color scheme for a file type.
- Parameters
-
| extension | File extension |
| isDirectory | Whether it's a directory |
- Returns
- Primary color for the file type
◆ RenderFileIcon()
| void Editor::Assets::IconRenderer::RenderFileIcon |
( |
ImDrawList * |
drawList, |
|
|
ImVec2 |
center, |
|
|
float |
size, |
|
|
const std::string & |
extension, |
|
|
bool |
isDirectory, |
|
|
bool |
isParentDir, |
|
|
bool |
isSelected = false |
|
) |
| |
|
static |
Render a file icon at the specified position.
- Parameters
-
| drawList | ImGui draw list to render to |
| center | Center position for the icon |
| size | Size of the icon |
| extension | File extension |
| isDirectory | Whether it's a directory |
| isParentDir | Whether it's a parent directory entry |
| isSelected | Whether the item is selected |
◆ RenderSmallIcon()
| void Editor::Assets::IconRenderer::RenderSmallIcon |
( |
ImDrawList * |
drawList, |
|
|
ImVec2 |
center, |
|
|
const std::string & |
extension, |
|
|
bool |
isDirectory |
|
) |
| |
|
static |
Render a small icon for list view.
- Parameters
-
| drawList | ImGui draw list |
| center | Center position |
| extension | File extension |
| isDirectory | Whether it's a directory |
The documentation for this class was generated from the following files: