diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-03-20 11:09:58 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-03-20 11:09:58 +0100 |
| commit | 8178d95eb6fe5e1065f2baa221fac68acc2b9f20 (patch) | |
| tree | 65885f67c30ba0ee19fd216324ae8c1ffcd665e1 | |
| parent | 41c94c4d87f47afcf4b772f8c428a7b092eb34b8 (diff) | |
Add documentation of 0S-specific fl_mac_gc()
| -rw-r--r-- | documentation/src/osissues.dox | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/documentation/src/osissues.dox b/documentation/src/osissues.dox index cc5875f96..cc2b4f195 100644 --- a/documentation/src/osissues.dox +++ b/documentation/src/osissues.dox @@ -853,9 +853,11 @@ All code inside Fl_Widget::draw() is expected to call Quartz drawing functions. The Quartz coordinate system is flipped to match FLTK's coordinate system. The origin for all drawing is in the top -left corner of the enclosing Fl_Window. The global variable -\c fl_gc (of type \c CGContextRef) is the appropriate Quartz 2D drawing environment. -Include FL/platform.H to declare the \c fl_gc variable. +left corner of the enclosing Fl_Window. The function \c fl_mac_gc() returns the appropriate +Quartz 2D drawing environment (of type \c CGContextRef). For compatibility with previous FLTK +versions, deprecated global variable \c fl_gc gives the same value. + +Include FL/platform.H to declare the \c fl_mac_gc() function (or the \c fl_gc variable). \subsection osissues_localize Internationalization All FLTK programs contain an application menu with, e.g., the About xxx, Hide xxx, and Quit xxx items. |
