diff options
| author | Greg Ercolano <erco@seriss.com> | 2024-01-10 09:10:07 -0800 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2024-01-10 09:10:07 -0800 |
| commit | 08e64283aacf0c26453c1be956bf15569b6d3585 (patch) | |
| tree | 1e3a228e07965bda81296c3e9e8d3d12ba0895d4 /src | |
| parent | 2db1929985f430d3be1f87222aa85599bb2b8222 (diff) | |
Add textattrib() get method+docs
Requested by Jonathan Griffitts during rust bindings.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Terminal.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Fl_Terminal.cxx b/src/Fl_Terminal.cxx index 2b53c4a77..b4266b8fb 100644 --- a/src/Fl_Terminal.cxx +++ b/src/Fl_Terminal.cxx @@ -1634,6 +1634,16 @@ void Fl_Terminal::textattrib(uchar val) { } /** + Get text attribute bits (underline, inverse, etc). + This is the default attribute used for all newly printed text. + + \see textattrib(uchar), Fl_Terminal::Attrib +*/ +uchar Fl_Terminal::textattrib() const { + return current_style_->attrib(); +} + +/** Convert fltk window X coord to column 'gcol' on specified global 'grow' \returns - 1 if 'gcol' was found |
