You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.4KB

  1. /* Copyleft (C) 2000 David Griffiths <dave@pawfal.org>
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation; either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program; if not, write to the Free Software
  15. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  16. */
  17. #ifndef GUI_TYPE_H
  18. #define GUI_TYPE_H
  19. #include <FL/Fl_Group.H>
  20. class Fl_DeviceGUI;
  21. typedef void (SpiralGUISizeCB)(Fl_DeviceGUI *o);
  22. class SpiralGUIType : public Fl_Group {
  23. public:
  24. SpiralGUIType (int x, int y, int w, int h, const char *label = 0);
  25. ~SpiralGUIType ();
  26. void SetResizeCallback (SpiralGUISizeCB *c, Fl_DeviceGUI *d) { m_ResizeSpiralGUI = c; m_DeviceGUI = d; }
  27. protected:
  28. void DoResizeCallback (void) { if (m_ResizeSpiralGUI) m_ResizeSpiralGUI(m_DeviceGUI); }
  29. private:
  30. SpiralGUISizeCB *m_ResizeSpiralGUI;
  31. Fl_DeviceGUI *m_DeviceGUI;
  32. };
  33. #endif