Back to index

texmacs  1.0.7.15
composite_widget.hpp
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : composite_widget.hpp
00004 * DESCRIPTION: composite widgets
00005 * COPYRIGHT  : (C) 1999  Joris van der Hoeven
00006 *******************************************************************************
00007 * This software falls under the GNU general public license version 3 or later.
00008 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
00009 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
00010 ******************************************************************************/
00011 
00012 #ifndef COMPOSITE_WIDGET_H
00013 #define COMPOSITE_WIDGET_H
00014 #include "Widkit/basic_widget.hpp"
00015 #include "Widkit/Event/composite_event.hpp"
00016 
00017 /******************************************************************************
00018 * Abstract composite widgets
00019 ******************************************************************************/
00020 
00021 class composite_widget_rep: public basic_widget_rep {
00022 public:
00023   composite_widget_rep (gravity grav= north_west);
00024   composite_widget_rep (array<wk_widget> a, gravity grav= north_west);
00025   composite_widget_rep (array<wk_widget> a,
00026                      array<string> name, gravity grav= north_west);
00027 
00028   virtual void handle_clean  (clean_event ev);
00029   virtual void handle_insert (insert_event ev);
00030   virtual void handle_remove (remove_event ev);
00031   virtual bool handle        (event ev);
00032 };
00033 
00034 #endif // defined COMPOSITE_WIDGET_H