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

Manages all UI panels in the editor. More...

#include <UI.h>

Public Member Functions

void AddPanel (std::unique_ptr< Panel > panel)
 Adds a new panel to the UI.
 
void Draw ()
 Renders all panels.
 

Detailed Description

Manages all UI panels in the editor.

The UI class handles the collection and rendering of all editor panels. It maintains ownership of panels through unique pointers and provides methods to add new panels and draw all panels to the screen.

Member Function Documentation

◆ AddPanel()

void Editor::UI::AddPanel ( std::unique_ptr< Panel panel)

Adds a new panel to the UI.

Parameters
panelUnique pointer to a Panel object to be added

Takes ownership of the provided panel and adds it to the collection of panels managed by this UI instance.

◆ Draw()

void Editor::UI::Draw ( )

Renders all panels.

Iterates through all panels and calls their respective draw methods to render them to the screen.


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