#include <customgui_htmlviewer.h>

HTML viewer custom GUI (CUSTOMGUI_HTMLVIEWER). Can view both local and internet HTML files using the http protocol.
Static Public Member Functions | |
| static String | FilenameToURL (const Filename &f, Int32 *encoding) |
Private Member Functions | |
| HtmlViewerCustomGui () | |
| ~HtmlViewerCustomGui () | |
Additional Inherited Members | |
Static Public Attributes inherited from BaseCustomGui< 200000114 > | |
| static constexpr Int32 | VALUE |
|
private |
|
private |
| void ExecuteJavaScript | ( | const maxon::String & | script | ) |
Executes JavaScript code in the HTML viewer context.
| [in] | script | The JavaScript code to execute. |
| void PostWebMessage | ( | const maxon::String & | message | ) |
Posts a web message to the HTML viewer's JavaScript context.
| [in] | message | The message to send to JavaScript. |
| void SetWebMessageCallback | ( | HtmlViewerCustomGuiWebMessageCallback * | callback, |
| const maxon::String & | urlPartial, | ||
| void * | user_data | ||
| ) |
Sets a callback for web messages sent from the HTML viewer's JavaScript context.
| [in] | callback | The callback function to handle web messages. |
| [in] | urlPartial | A partial URL to filter which messages trigger the callback. |
| [in] | user_data | User data pointer passed to the callback. |
| void SetUrl | ( | const maxon::String & | url, |
| Int32 | encoding | ||
| ) |
Sets the HTML viewer URL.
| [in] | url | The new URL. |
| [in] | encoding | The URL encoding: URL_ENCODING |
| void SetText | ( | const maxon::String & | url | ) |
Sets the HTML viewer text.
| [in] | url | The new text. |
| void DoAction | ( | Int32 | action | ) |
Do an action in the HTML viewer.
| [in] | action | The action: WEBPAGE |
| void SetURLCallback | ( | HtmlViewerCustomGuiURLCallback * | callback, |
| void * | user_data | ||
| ) |
Registers the URL callback.
| [in] | callback | The callback, or nullptr to disable it. |
| [in] | user_data | The user data. The caller owns the pointed data. |
| String GetTextArea | ( | const maxon::String & | id | ) |
Deprecated. Always return an empty string.
Converts a filename into an URL string.
| [in] | f | The filename. |
| [out] | encoding | Assigned the URL encoding: URL_ENCODING |
| void SetResourceRequestInterceptCallback | ( | HtmlViewerCustomGuiResourceRequestInterceptCallback * | callback, |
| void * | user_data | ||
| ) |
Registers the resource request interception callback.
| [in] | callback | The callback, or nullptr to disable it. |
| [in] | user_data | The user data. The caller owns the pointed data. |