fltk.helpdialog

Types 1

HelpDialog provides a dialog window for displaying HTML help content.

It supports basic HTML tags and can load content from strings or files.

Example:

auto help = new HelpDialog();
help.value = "<html><body><h1>Help</h1><p>Welcome to the help system.</p></body></html>";
help.show();

Fields
Methods
HelpDialogPtr handle() @safe nothrow @nogcReturns the underlying help dialog handle.
bool isValid() const @safe nothrow @nogcChecks if the dialog handle is valid.
void show()Shows the help dialog.
void hide()Hides the help dialog.
bool visible() const nothrow @nogcReturns whether the dialog is currently visible.
void load(string filename)Loads an HTML file into the help dialog.
string value() constGets the current HTML content.
void value(string content)Sets the HTML content directly.
int textsize() const nothrow @nogcGets the text size.
void textsize(int size)Sets the text size.
void topline(string name)Scrolls to a named target (anchor) in the document.
void topline(int line)Scrolls to a specific line number.
void position(int x, int y)Sets the position of the dialog window.
void resize(int x, int y, int w, int h)Resizes the dialog window.
int width() const nothrow @nogcGets the dialog width.
int height() const nothrow @nogcGets the dialog height.
int x() const nothrow @nogcGets the dialog X position.
int y() const nothrow @nogcGets the dialog Y position.
Constructors
this()Creates a new help dialog.
Destructors
~thisDestroys the help dialog and releases resources.