AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
APlatform Namespace Reference

Functions#

API_AUI_VIEWS AString getFontPath (const AString &font)
 
API_AUI_VIEWS void openUrl (const AUrl &url)
 Opens a URL using the system's default application.
 
API_AUI_VIEWS float getDpiRatio ()
 

Function Documentation#

◆ openUrl()#

API_AUI_VIEWS void APlatform::openUrl ( const AUrl & url)
Parameters
urlThe URL to be opened, represented by an AUrl object.

Attempts to open the specified URL in the user's default web browser or appropriate application based on the URL schema. If opening the URL fails, an error message is logged with details about the failure.

Examples
examples/ui/views/src/ExampleWindow.cpp.