#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.
Public Types | |
enum | HTMLCursor { HTMLCursor_Default, HTMLCursor_Link, HTMLCursor_Text } |
Type of mouse cursor. More... | |
Public Member Functions | |
wxHtmlWindowInterface () | |
Ctor. More... | |
virtual | ~wxHtmlWindowInterface () |
virtual void | SetHTMLWindowTitle (const wxString &title)=0 |
Called by the parser to set window's title to given text. More... | |
virtual void | OnHTMLLinkClicked (const wxHtmlLinkInfo &link)=0 |
Called when a link is clicked. More... | |
virtual wxHtmlOpeningStatus | OnHTMLOpeningURL (wxHtmlURLType type, const wxString &url, wxString *redirect) const =0 |
Called when the parser needs to open another URL (e.g. More... | |
virtual wxPoint | HTMLCoordsToWindow (wxHtmlCell *cell, const wxPoint &pos) const =0 |
Converts coordinates pos relative to given cell to physical coordinates in the window. More... | |
virtual wxWindow * | GetHTMLWindow ()=0 |
Returns the window used for rendering (may be NULL). More... | |
virtual wxColour | GetHTMLBackgroundColour () const =0 |
Returns background colour to use by default. More... | |
virtual void | SetHTMLBackgroundColour (const wxColour &clr)=0 |
Sets window's background to colour clr. More... | |
virtual void | SetHTMLBackgroundImage (const wxBitmap &bmpBg)=0 |
Sets window's background to given bitmap. More... | |
virtual void | SetHTMLStatusText (const wxString &text)=0 |
Sets status bar text. More... | |
virtual wxCursor | GetHTMLCursor (wxHtmlWindowInterface::HTMLCursor type) const =0 |
Returns mouse cursor of given type. More... | |
wxHtmlWindowInterface::wxHtmlWindowInterface | ( | ) |
Ctor.
|
virtual |
|
pure virtual |
Returns background colour to use by default.
|
pure virtual |
Returns mouse cursor of given type.
|
pure virtual |
Returns the window used for rendering (may be NULL).
|
pure virtual |
Converts coordinates pos relative to given cell to physical coordinates in the window.
|
pure virtual |
Called when a link is clicked.
link | information about the clicked link |
|
pure virtual |
Called when the parser needs to open another URL (e.g.
an image).
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) |
|
pure virtual |
Sets window's background to colour clr.
|
pure virtual |
Sets window's background to given bitmap.
|
pure virtual |
Sets status bar text.
|
pure virtual |
Called by the parser to set window's title to given text.