#include <wx/html/htmlwin.h>
Abstract interface to a HTML rendering window (such as wxHtmlWindow or wxHtmlListBox) that is passed to wxHtmlWinParser.
It encapsulates all communication from the parser to the window.
◆ HTMLCursor
Type of mouse cursor.
Enumerator |
---|
HTMLCursor_Default | Standard mouse cursor (typically an arrow)
|
HTMLCursor_Link | Cursor shown over links.
|
HTMLCursor_Text | Cursor shown over selectable text.
|
◆ wxHtmlWindowInterface()
wxHtmlWindowInterface::wxHtmlWindowInterface |
( |
| ) |
|
◆ ~wxHtmlWindowInterface()
virtual wxHtmlWindowInterface::~wxHtmlWindowInterface |
( |
| ) |
|
|
virtual |
◆ GetHTMLBackgroundColour()
virtual wxColour wxHtmlWindowInterface::GetHTMLBackgroundColour |
( |
| ) |
const |
|
pure virtual |
Returns background colour to use by default.
◆ GetHTMLCursor()
Returns mouse cursor of given type.
◆ GetHTMLWindow()
virtual wxWindow* wxHtmlWindowInterface::GetHTMLWindow |
( |
| ) |
|
|
pure virtual |
Returns the window used for rendering (may be NULL).
◆ HTMLCoordsToWindow()
Converts coordinates pos relative to given cell to physical coordinates in the window.
◆ OnHTMLLinkClicked()
virtual void wxHtmlWindowInterface::OnHTMLLinkClicked |
( |
const wxHtmlLinkInfo & |
link | ) |
|
|
pure virtual |
Called when a link is clicked.
- Parameters
-
link | information about the clicked link |
◆ OnHTMLOpeningURL()
Called when the parser needs to open another URL (e.g.
an image).
- Parameters
-
type | Type of the URL request (e.g. image) |
url | URL the parser wants to open |
redirect | If the return value is wxHTML_REDIRECT, then the URL to redirect to will be stored in this variable (the pointer must never be NULL) |
- Returns
- indicator of how to treat the request
◆ SetHTMLBackgroundColour()
virtual void wxHtmlWindowInterface::SetHTMLBackgroundColour |
( |
const wxColour & |
clr | ) |
|
|
pure virtual |
Sets window's background to colour clr.
◆ SetHTMLBackgroundImage()
virtual void wxHtmlWindowInterface::SetHTMLBackgroundImage |
( |
const wxBitmapBundle & |
bmpBg | ) |
|
|
pure virtual |
Sets window's background to given bitmap.
◆ SetHTMLStatusText()
virtual void wxHtmlWindowInterface::SetHTMLStatusText |
( |
const wxString & |
text | ) |
|
|
pure virtual |
◆ SetHTMLWindowTitle()
virtual void wxHtmlWindowInterface::SetHTMLWindowTitle |
( |
const wxString & |
title | ) |
|
|
pure virtual |
Called by the parser to set window's title to given text.