← Back

ofxNative

github.com/kritzikratzi/ofxNative · @kritzikratzi
OF 0.12 GUI Utilities

Native windows/mac/linux functions for openFrameworks

28 2 Last commit 2y ago Created 9y ago

Forks

Forks pushed to more recently than kritzikratzi/ofxNative itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.

sebleedelisle/ofxNative by @sebleedelisle · ★ 0 · pushed 1y ago

Branches ahead of master

These branches have commits not yet on master — could be unmerged fixes or work in progress worth a look.

of12_test 4 commits ahead · last commit 2y ago

README

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)

MethodDescriptionWindowsOSXLinux
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 folderuntested✓missing
getTempFolder()Path to a system wide temp folderuntested✓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

Get this addon

HTTPS
SSH