Fl_Single_Window.H 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // "$Id: Fl_Single_Window.H 11359 2016-03-13 22:16:37Z matt $"
  3. //
  4. // Single-buffered window header file for the Fast Light Tool Kit (FLTK).
  5. //
  6. // Copyright 1998-2015 by Bill Spitzak and others.
  7. //
  8. // This library is free software. Distribution and use rights are outlined in
  9. // the file "COPYING" which should have been included with this file. If this
  10. // file is missing or damaged, see the license at:
  11. //
  12. // http://www.fltk.org/COPYING.php
  13. //
  14. // Please report all bugs and problems on the following page:
  15. //
  16. // http://www.fltk.org/str.php
  17. //
  18. /* \file
  19. Fl_Single_Window class . */
  20. #ifndef Fl_Single_Window_H
  21. #define Fl_Single_Window_H
  22. #include "Fl_Window.H"
  23. /**
  24. This is the same as Fl_Window. However, it is possible that
  25. some implementations will provide double-buffered windows by default.
  26. This subclass can be used to force single-buffering. This may be
  27. useful for modifying existing programs that use incremental update, or
  28. for some types of image data, such as a movie flipbook.
  29. */
  30. class FL_EXPORT Fl_Single_Window : public Fl_Window {
  31. public:
  32. void show();
  33. void show(int a, char **b) {Fl_Window::show(a,b);}
  34. /**
  35. Creates a new Fl_Single_Window widget using the given
  36. size, and label (title) string.
  37. */
  38. Fl_Single_Window(int W, int H, const char *l=0);
  39. /**
  40. Creates a new Fl_Single_Window widget using the given
  41. position, size, and label (title) string.
  42. */
  43. Fl_Single_Window(int X, int Y, int W, int H, const char *l=0);
  44. int make_current();
  45. DECLARE_CLASS_CHEAP_RTTI_2(Fl_Single_Window, Fl_Window)
  46. };
  47. #endif
  48. //
  49. // End of "$Id: Fl_Single_Window.H 11359 2016-03-13 22:16:37Z matt $".
  50. //