A window where a file can be selected.
More...
#include <FileSelector.hpp>
A window where a file can be selected.
◆ FileSelector()
| FileSelector::FileSelector |
( |
| ) |
|
◆ AddExtensions()
| void FileSelector::AddExtensions |
( |
const std::string & |
extension | ) |
|
Add extension to select files of.
- Parameters
-
| extension | An extension of which files to show. |
◆ IsVisible()
| bool FileSelector::IsVisible |
( |
| ) |
const |
Get whether the window is visible.
- Returns
- Whether the window is visible.
◆ SetExtensions()
| void GUI::FileSelector::SetExtensions |
( |
const std::vector< std::string > & |
extensions | ) |
|
Set extensions to select files of.
- Parameters
-
| extensions | Extensions of which files to show. |
◆ SetFileSelectedCallback()
| void FileSelector::SetFileSelectedCallback |
( |
const std::function< void(const std::string &)> & |
callback | ) |
|
Set function to call when a file has been selected.
- Parameters
-
| callback | Function to call. |
◆ SetInitialPath()
| void GUI::FileSelector::SetInitialPath |
( |
const char * |
path | ) |
|
Set the initial path.
- Parameters
-
◆ SetVisible()
| void FileSelector::SetVisible |
( |
bool |
visible | ) |
|
Set whether the window should be visible.
- Parameters
-
| visible | Whether the window should be visible. |
◆ Show()
| void FileSelector::Show |
( |
| ) |
|
The documentation for this class was generated from the following files: