diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-07-05 16:03:14 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-07-05 16:03:14 +0200 |
| commit | 3b32463dc9d351180b68a4d82008a1b2b7d3a719 (patch) | |
| tree | 8d9579ced8a7a5481195815b5fb35d761fcd0454 /src | |
| parent | b28afecb468e1f8f879cce538f701533ec8b87a9 (diff) | |
Fl_Help_View: Improve comment
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Help_View.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx index 8bd3a8aa6..74c4ad527 100644 --- a/src/Fl_Help_View.cxx +++ b/src/Fl_Help_View.cxx @@ -606,7 +606,15 @@ int Fl_Help_View::do_align( /** - \brief Formats the help text. + \brief Formats the help text and lays out the HTML content for display. + + This function parses the HTML-like text buffer, breaks it into blocks and lines, + computes positions and sizes for each text and image element, manages links and targets, + and sets up the scrolling and rendering parameters for the widget. + + The main algorithm consists of an outer loop that may repeat if the computed content + exceeds the available width (to adjust hsize_), and an inner loop that parses the text, + handles tags, manages formatting state, and builds the layout structures. */ void Fl_Help_View::format() { int i; // Looping var @@ -3584,7 +3592,8 @@ void Fl_Help_View::select_all() { clear_selection(); if (!value_) return; - selection_drag_last_ = selection_last_ = (int) strlen(value_); + selection_first_ = 0; + selection_last_ = (int) strlen(value_); selected_ = true; } |
