Back to index

texmacs  1.0.7.15
scroll_event.hpp
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : scroll_event.hpp
00004 * DESCRIPTION: Events 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 #ifndef SCROLL_EVENT_H
00013 #define SCROLL_EVENT_H
00014 #include "Widkit/event.hpp"
00015 #include "Widkit/Event/event_codes.hpp"
00016 
00017 /******************************************************************************
00018 * The scroll event
00019 ******************************************************************************/
00020 
00021 struct scroll_event_rep: public event_rep {
00022   string which; SI& c1; SI& c2; SI& c3;
00023   scroll_event_rep (string which, SI& c1, SI& c2, SI& c3);
00024   operator tree ();
00025 };
00026 EVENT(scroll_event);
00027 
00028 /******************************************************************************
00029 * Other events for internal use
00030 ******************************************************************************/
00031 
00032 event get_width (SI& w);
00033 event get_height (SI& h);
00034 event set_hor_bar (wk_widget bar);
00035 event set_ver_bar (wk_widget bar);
00036 event emit_bar_set_extents (SI min, SI max);
00037 event emit_bar_scroll_to (SI pos);
00038 event emit_scroll (SI& c1, SI& c2, SI& c3);
00039 event emit_hor_scroll (SI& c1, SI& c2, SI& c3);
00040 event emit_ver_scroll (SI& c1, SI& c2, SI& c3);
00041 
00042 #endif // defined SCROLL_EVENT_H