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

Modal dialog for workspace selection and creation. More...

#include <WorkspaceDialog.h>

Public Types

using WorkspaceCallback = std::function< void(const Workspace *)>
 Callback function type for workspace selection.
 

Static Public Member Functions

static void Show (WorkspaceCallback callback)
 Show the workspace selection dialog.
 
static bool Render ()
 Render the dialog (call this in your main render loop)
 
static bool IsOpen ()
 Check if the dialog is currently open.
 
static void Close ()
 Force close the dialog.
 

Detailed Description

Modal dialog for workspace selection and creation.

This dialog appears on application startup and allows users to:

  • Select from existing workspaces
  • Create new workspaces
  • Browse for workspace directories
  • Remove invalid workspaces from the list

Member Typedef Documentation

◆ WorkspaceCallback

using Editor::UI::WorkspaceDialog::WorkspaceCallback = std::function<void(const Workspace *)>

Callback function type for workspace selection.

Parameters
workspacePointer to selected workspace, nullptr if cancelled

Member Function Documentation

◆ Close()

void Editor::UI::WorkspaceDialog::Close ( )
static

Force close the dialog.

◆ IsOpen()

bool Editor::UI::WorkspaceDialog::IsOpen ( )
static

Check if the dialog is currently open.

Returns
true if dialog is open

◆ Render()

bool Editor::UI::WorkspaceDialog::Render ( )
static

Render the dialog (call this in your main render loop)

Returns
true if dialog is still open, false if closed

◆ Show()

void Editor::UI::WorkspaceDialog::Show ( WorkspaceCallback  callback)
static

Show the workspace selection dialog.

Parameters
callbackFunction to call when workspace is selected or dialog is cancelled

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