Hymn to Beauty
C++ 3D Engine
GUI::FolderNameWindow Class Reference

A window that asks the user for the name of the folder to create. More...

#include <FolderNameWindow.hpp>

Public Member Functions

 FolderNameWindow ()=default
 Default constructor. More...
 
void Show ()
 Show the window and let the user enter a name. More...
 
bool IsVisible () const
 Get whether the window is visible. More...
 
void SetVisible (bool visible)
 Set whether the window should be visible. More...
 
void SetClosedCallback (const std::function< void(const std::string &)> &callback)
 Set function to call when closed. More...
 

Detailed Description

A window that asks the user for the name of the folder to create.

Constructor & Destructor Documentation

◆ FolderNameWindow()

GUI::FolderNameWindow::FolderNameWindow ( )
default

Default constructor.

Member Function Documentation

◆ IsVisible()

bool FolderNameWindow::IsVisible ( ) const

Get whether the window is visible.

Returns
Whether the window is visible.

◆ SetClosedCallback()

void FolderNameWindow::SetClosedCallback ( const std::function< void(const std::string &)> &  callback)

Set function to call when closed.

Parameters
callbackFunction to call when window is closed.

◆ SetVisible()

void FolderNameWindow::SetVisible ( bool  visible)

Set whether the window should be visible.

Parameters
visibleWhether the window should be visible.

◆ Show()

void FolderNameWindow::Show ( )

Show the window and let the user enter a name.


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