kritzikratzi / ofxNative

Native windows/mac/linux functions for openFrameworks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ofxNative

Native functions for openFrameworks

Overview

✓  = Implemented
※  = Uses a workaround, because it doesn't exist in that form for this operating system
✗  = Missing (implementation empty... calling it won't hurt, but does nothing)
Method Description Windows OSX Linux
showFile(string path) Reveals a file in explorer/finder
openFile(string path) Opens a file with the default application
openUrl(string path) Opens a url with the default browser
setMinimumWindowSize(GLFWWindow & window, int w, int h) Sets the minimum size of a window
setWindowAlwaysOnTop(GLFWWindow & window, bool onTop) Toggles "float on top" for a window
setWindowRepresentedFilename(GLFWWindow & window, string title, string filename) Shows title and/or filename
maximizeWindow(GLFWWindow & window) Maximizes the window
setThreadName(const string & name) Sets the name of the current thread. Note:Renaming other threads would be possible in Windows, but not in OSX
canShowConsole() Checks if there is a attached system console that can be shown/hidden
getConsoleVisible() Returns true if the console is visible
setConsoleVisible(bool show) Shows/Hides the windows system console. This requires the linker flag subsystem:console
getSystemDataFolder() Returns a location in a global folder (Application-Support on OSX, %APPDATA% on windows), ~/.local/share on linux
getSystemDocumentsFolder() Returns the location of the user's documents folder untested missing
getTempFolder() Path to a system wide temp folder untested untested
systemLoadDialog(std::string windowTitle, bool bFolderSelection, std::string defaultPath, std::vector<std::string> extensions) Shows the system "load file" system popup

Contributing

When adding methods/implementations make sure to update this documentation as well.

License

MIT License

About

Native windows/mac/linux functions for openFrameworks

License:MIT License


Languages

Language:C++ 70.2%Language:Objective-C++ 29.8%