In this page, we will detail the cross-platform open
module provided by our own UntitledOpen library.
Runtime checking can be done using the open
member of the ModuleSettings
struct. More info can be found here.
Enabling in the build system
To enable it, simply change the source code of the CMakeLists.txt
file to this:
option(ENABLE_UOPEN "Enables the UntitledOpen library, that opens URLs and files with a default application" ON)
Otherwise, simply add the following argument through the cmake
CLI: -DENABLE_UOPEN=ON
and don't forget to also enable the OS module!
Finally, update your uvproj.yaml
so that the open
key under enabled-modules
is set to true like this:
name: "MyProject"
version: "1.0.0.0"
engine-version: "1.0.0.0"
enabled-modules:
os: true
open: true
Event safety
The entire module is flagged as event safe at Any time
.
Using the library
The library has already been documented on its own GitHub repo's wiki.
Checking for the module
To check for the module at compile time, use the UIMGUI_OPEN_SUBMODULE_ENABLED
macro.
Runtime checking can be done using the open
member of the ModuleSettings
struct. More info can be found here.
- Home
- Beginner content
- Install guide
- Creating and using the UI components
- The Instance
- The Init Info struct
- Additional features
- Custom type definitions
- C API development
- Config files and Folders
- Interfaces
- Internal Event safety
- Modules system
- I18N
- Plotting
- Knobs
- Spinners
- Toggles
- Text Utils
- Undo/Redo
- CLI Parser
- Theming
- OS
- Opening URLs and using file pickers
- Exec integration
- Fonts
- Unix
- DBus utilities
- XDG integration
- Collaborating with others
- Advanced content
- Loading dynamic libraries at runtime
- Understanding the library layout
- Compilation mode modifiers
- Adding plugin support to your application
- Production export and deployment
- Developer and contributor resources
- Misc