Back to index

texmacs  1.0.7.15
scroll_widget.cpp
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : scroll_widget.cpp
00004 * DESCRIPTION: Common base for scrollbars and scrollable 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 #include "Widkit/attribute_widget.hpp"
00013 #include "Widkit/scroll_widget.hpp"
00014 #include "Widkit/Event/scroll_event.hpp"
00015 
00016 /******************************************************************************
00017 * Scroll widgets
00018 ******************************************************************************/
00019 
00020 scroll_widget_rep::scroll_widget_rep (array<wk_widget> a2,
00021   gravity grav2):
00022   attribute_widget_rep (a2, grav2) {}
00023 
00024 bool
00025 scroll_widget_rep::handle (event ev) {
00026   if (ev->type != SCROLL_EVENT) return attribute_widget_rep::handle (ev);
00027   scroll_event e (ev);
00028   handle_scroll (e);
00029   return true;
00030 }