fltk.helpview

FLTK Help View Widget

This module provides a simple HTML viewer widget:

  • HelpView: Displays basic HTML content

    Authors

    Dejan Lekić

    License

    BSD-3-Clause
class HelpView

Types 1

Simple HTML viewer widget.

HelpView displays basic HTML content including text formatting, images, and links. It's useful for displaying help text, about dialogs, or simple formatted content.

Supported HTML features:

  • Basic text formatting (bold, italic, underline)
  • Headings (h1-h6)
  • Paragraphs and line breaks
  • Lists (ordered and unordered)
  • Images
  • Links
  • Tables (basic)

Example:

auto help = new HelpView(10, 10, 400, 300);
help.value = "<html><body><h1>Help</h1><p>Welcome!</p></body></html>";

Fields
HelpViewPtr _helpViewHandle
Methods
HelpViewPtr helpViewHandle() @safe nothrow @nogcReturns the underlying help view handle.
string value() constGets the HTML content.
void value(string html)Sets the HTML content.
bool load(string filename)Loads HTML from a file.
int textSize() constGets the text size.
void textSize(int size)Sets the text size.
uint textColor() constGets the text color.
void textColor(uint color)Sets the text color.
Constructors
this(int x, int y, int width, int height, string label = null)Creates a new help view widget.
Destructors