summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-07-10 09:18:26 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-07-10 09:18:26 +0200
commitc47cbf4402113cf09aeb57b4446983a4ec1a7928 (patch)
tree6bcd216ab9c8c8d533218b8a065031731eda9381
parent4d2d3cf76d630cffbf2dc674308692a9c0b6e6cf (diff)
More detailed documentation of Fl::screen_xywh()
-rw-r--r--FL/Fl_Printer.H2
-rw-r--r--src/screen_xywh.cxx4
2 files changed, 5 insertions, 1 deletions
diff --git a/FL/Fl_Printer.H b/FL/Fl_Printer.H
index cfbab43c8..4a3f9177b 100644
--- a/FL/Fl_Printer.H
+++ b/FL/Fl_Printer.H
@@ -57,7 +57,7 @@
}
delete printer;
\endcode
- <p>Recommend method to refresh GUI while printing :
+ <p>Recommended method to refresh GUI while printing :
\code
printer->begin_job(0);
……
diff --git a/src/screen_xywh.cxx b/src/screen_xywh.cxx
index 87fa2d6ae..0634a686e 100644
--- a/src/screen_xywh.cxx
+++ b/src/screen_xywh.cxx
@@ -94,6 +94,8 @@ void Fl::screen_work_area(int &X, int &Y, int &W, int &H, int mx, int my)
\param[out] X,Y,W,H the work area bounding box
\param[in] n the screen number (0 to Fl::screen_count() - 1)
\see void screen_xywh(int &x, int &y, int &w, int &h, int mx, int my)
+ \note Like all quantities accessible via public APIs of FLTK, values of \p X,Y,W,H
+ are given in FLTK units, that is, in drawing units divided by the scaling factor of screen \p n.
*/
void Fl::screen_work_area(int &X, int &Y, int &W, int &H, int n)
{
@@ -106,6 +108,8 @@ void Fl::screen_work_area(int &X, int &Y, int &W, int &H, int n)
Under Windows, Mac OS X, and the Gnome desktop, screen #0 contains the menubar/taskbar
\param[out] X,Y,W,H the corresponding screen bounding box
\param[in] n the screen number (0 to Fl::screen_count() - 1)
+ \note Like all quantities accessible via public APIs of FLTK, values of \p X,Y,W,H
+ are given in FLTK units, that is, in drawing units divided by the scaling factor of screen \p n.
\see void screen_xywh(int &x, int &y, int &w, int &h, int mx, int my)
*/
void Fl::screen_xywh(int &X, int &Y, int &W, int &H, int n)