00001 #ifndef TRACKSCROLL_H 00002 #define TRACKSCROLL_H 00003 00004 00005 #include "guicast.h" 00006 #include "mwindow.inc" 00007 #include "mwindowgui.inc" 00008 00009 class TrackScroll : public BC_ScrollBar 00010 { 00011 public: 00012 TrackScroll(MWindow *mwindow, MWindowGUI *gui, int x, int y, int h); 00013 ~TrackScroll(); 00014 00015 int create_objects(int top, int bottom); 00016 int resize_event(); 00017 int flip_vertical(int top, int bottom); 00018 int update(); // reflect new track view 00019 long get_distance(); 00020 int handle_event(); 00021 00022 MWindowGUI *gui; 00023 MWindow *mwindow; 00024 long old_position; 00025 }; 00026 00027 #endif
1.5.5