AUI Framework
master
Cross-platform module-based framework for developing C++20 desktop applications
|
Desktop-specific functions. More...
Desktop-specific functions.
These functions are intended to work only on desktop platforms; on mobile platforms functions filled with stubs.
Classes | |
struct | FileExtension |
Enumerations | |
enum class | SystemSound { QUESTION , ASTERISK } |
Functions | |
API_AUI_VIEWS glm::ivec2 | getMousePosition () |
API_AUI_VIEWS void | setMousePos (const glm::ivec2 &pos) |
API_AUI_VIEWS void | playSystemSound (ADesktop::SystemSound s) |
Play system sound asynchronously. | |
API_AUI_VIEWS AFuture< APath > | browseForDir (AWindowBase *parent, const APath &startingLocation={}) |
Opens native browse for directory dialog. More... | |
API_AUI_VIEWS AFuture< APath > | browseForFile (AWindowBase *parent, const APath &startingLocation={}, const AVector< FileExtension > &extensions={ {"All", "*"} }) |
Opens native browse for file dialog. More... | |
API_AUI_VIEWS _< IDrawable > | iconOfFile (const APath &file) |
AFuture< APath > ADesktop::browseForDir | ( | AWindowBase * | parent, |
const APath & | startingLocation = {} |
||
) |
Opens native browse for directory dialog.
parent | parent window which is put in the AWindowBase::blockUserInput state while the dialog is active. Can be nullptr. |
startingLocation | path where the file browser dialog opened initially. Can be empty. |
AFuture< APath > ADesktop::browseForFile | ( | AWindowBase * | parent, |
const APath & | startingLocation = {} , |
||
const AVector< FileExtension > & | extensions = { {"All", "*"} } |
||
) |
Opens native browse for file dialog.
parent | parent window which is put in the AWindowBase::blockUserInput state while the dialog is active. Can be nullptr. |
startingLocation | path where the file browser dialog opened initially. Can be empty. |
extensions | extensions. |