C4 Engine Terathon Software C4 Engine API Documentation

• Interface Manager

API Links
Developer Links

class HyperlinkWidget

Defined in:  C4Widgets.h
The HyperlinkWidget class represents an interface widget that displays a hyperlink.
Definition

class HyperlinkWidget : public TextButtonWidget

Constructor

HyperlinkWidget(const Vector2D& size, const char *text = nullptrconst char *font = nullptrconst 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.
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.