From 51ff20b053fc430d22697ac70a2b9eae8e530d9b Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 23 Dec 2010 16:11:29 +0000 Subject: Added doc of fl_open_display() and fl_gc under OS X. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8114 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/src/osissues.dox | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'documentation/src') diff --git a/documentation/src/osissues.dox b/documentation/src/osissues.dox index ed87a1163..df2b98454 100644 --- a/documentation/src/osissues.dox +++ b/documentation/src/osissues.dox @@ -673,6 +673,13 @@ Whenever the user drops a file onto an application icon, OS X generates an Apple Event of the type "Open". You can have FLTK notify you of an Open event by setting the \c fl_open_callback +void fl_open_display() + +\par +Opens the display. Does nothing if it is already open. You should call +this if you wish to do Quartz calls and there is a chance that your +code will be called before the first \c show() of a window. + Window fl_xid(const Fl_Window *) \par @@ -713,7 +720,9 @@ 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. +left corner of the enclosing Fl_Window. The global variable +\c fl_gc is the appropriate Quartz 2D drawing environment. +Include FL/x.H to declare the \c fl_gc variable. Fl_Double_Window -- cgit v1.2.3