This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofSystemUtils.cpp File Reference
#include "ofSystemUtils.h"
#include "ofFileUtils.h"
#include "ofLog.h"
#include "ofUtils.h"
#include "ofConstants.h"
#include <condition_variable>
#include <mutex>
Functions | |
void | ofSystemAlertDialog (std::string errorMessage) |
show an error message in an alert dialog box | |
ofFileDialogResult | ofSystemLoadDialog (std::string windowTitle, bool bFolderSelection, std::string defaultPath) |
show a file load dialog box | |
ofFileDialogResult | ofSystemSaveDialog (std::string defaultName, std::string messageName) |
show a file save dialog box | |
std::string | ofSystemTextBoxDialog (std::string question, std::string text) |
show a text entry dialog box | |
Function Documentation
◆ ofSystemAlertDialog()
void ofSystemAlertDialog | ( | std::string | errorMessage | ) |
show an error message in an alert dialog box
◆ ofSystemLoadDialog()
ofFileDialogResult ofSystemLoadDialog | ( | std::string | windowTitle = "" , |
bool | bFolderSelection = false , |
||
std::string | defaultPath = "" |
||
) |
show a file load dialog box
- Parameters
-
windowTitle optional window title string, ie. "Load background image" bFolderSelection set to true to allow folder selection defaultPath optional default directory path to start the dialog in, ie. ofFilePath::getUserHomeDir()
- Returns
- dialog result with selection (if any)
◆ ofSystemSaveDialog()
ofFileDialogResult ofSystemSaveDialog | ( | std::string | defaultName, |
std::string | messageName | ||
) |
show a file save dialog box
- Parameters
-
defaultName suggested filename to start dialog, ie "screenshot.png" messageName descriptive text for the save action, ie. "Saving screenshot as"
- Returns
- dialog result with selection (if any)
◆ ofSystemTextBoxDialog()
std::string ofSystemTextBoxDialog | ( | std::string | question, |
std::string | text = "" |
||
) |
show a text entry dialog box
- Parameters
-
question descriptive text for the text entry, ie. "What's your favorite color?" text optional default text entry string, ie. "blue"