FLTK logo

[master] 3a8daf7 - Document fl_close_display()

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 3a8daf7 - Document fl_close_display() "ManoloFLTK" 01:02 Mar 19  
 
commit 3a8daf70c05692d73ded3a64d004a685c5ea2df6
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Tue Mar 19 08:52:49 2024 +0100
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Tue Mar 19 08:52:49 2024 +0100

    Document fl_close_display()

 src/Fl.cxx | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git src/Fl.cxx src/Fl.cxx
index 0501483..16672cf 100644
--- src/Fl.cxx
+++ src/Fl.cxx
@@ -2198,12 +2198,19 @@ void Fl::disable_im()
  Opens the display.
  Automatically called by the library when the first window is show()'n.
  Does nothing if the display is already open.
+ \note Requires ##include <FL/platform.H>
  */
 void fl_open_display()
 {
   Fl::screen_driver()->open_display();
 }
 
+/** Closes the connection to the windowing system when that's possible.
+You do \e not need to call this to exit, and in fact it is faster to not do so. It may be
+useful to call this if you want your program to continue without
+a GUI. You cannot open the display again, and cannot call any FLTK functions.
+ \note Requires ##include <FL/platform.H>
+*/
 void fl_close_display()
 {
   Fl::screen_driver()->close_display();
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.