#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 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. |