class HyperlinkWidget
Defined in:
The C4Widgets.h
HyperlinkWidget
class represents an interface widget that displays a hyperlink.
Definition
class HyperlinkWidget final : public TextButtonWidget
Constructor
HyperlinkWidget(const Vector2D& size, const char *text = nullptr, const char *font = nullptr,
float em = kDefaultFontSize, const char *hyperlink = nullptr);
Parameters
size |
The size of the text widget, in pixels. |
text |
The text string that is displayed. |
font |
The name of the font in which the text is displayed. |
em |
The em size of the font, in pixels. |
hyperlink |
A string containing the hyperlink address. |
Description
The HyperlinkWidget
widget displays a text button with a hyperlink. Clicking on the button opens the default web browser installed on the user's computer and navigates to the address stored in the widget.
Base Classes
TextButtonWidget |
The HyperlinkWidget class is a special type of text button widget.
|
Wiki Articles