diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-12-12 10:08:08 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-12-12 10:08:08 +0100 |
| commit | f38d1cf42490a1719a96528143e863b3a4b9f999 (patch) | |
| tree | b75c7081226b65912b85de7c6f51ed5ec57f1113 /documentation/src/basics.dox | |
| parent | 5ef962781fb04f63c6e327ce395d81457838cd61 (diff) | |
Documentation: fix outdated statements of quantities being expressed in pixels
Diffstat (limited to 'documentation/src/basics.dox')
| -rw-r--r-- | documentation/src/basics.dox | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/documentation/src/basics.dox b/documentation/src/basics.dox index 418533ec8..e875108ab 100644 --- a/documentation/src/basics.dox +++ b/documentation/src/basics.dox @@ -95,14 +95,17 @@ Fl_Widget(x, y, width, height, label) The \p x and \p y parameters determine where the widget or window is placed on the screen. In FLTK the top left corner of the window or screen is the origin -(i.e. <tt>x = 0, y = 0</tt>) -and the units are in pixels. +(i.e. <tt>x = 0, y = 0</tt>). The \p width and \p height parameters determine -the size of the widget or window in pixels. The maximum widget +the size of the widget or window. The maximum widget size is typically governed by the underlying window system or hardware. +\ref drawing_DrawingUnit describes the unit FLTK employs for +<tt>x, y, width</tt>, and \c height, and more generally, for +all graphical quantities. + \p label is a pointer to a character string to label the widget with or \p NULL. If not specified the label defaults to \p NULL. The label string must be in static @@ -170,7 +173,7 @@ The \p labelfont() method sets the typeface and style that is used for the label, which for this example we are using \p FL_BOLD and \p FL_ITALIC. -The \p labelsize() method sets the height of the font in pixels. +The \p labelsize() method sets the height of the font in FLTK units. The \p labeltype() method sets the type of label. FLTK supports normal, embossed, |
