Last change
on this file since 608 was
49,
checked in by Sam Hocevar, 15 years ago
|
- Imported original public domain release, for future reference.
|
File size:
733 bytes
|
Line | |
---|
1 | #ifndef __DEVSCROLL_HPP_ |
---|
2 | #define __DEVSCROLL_HPP_ |
---|
3 | #include "scroller.hpp" |
---|
4 | |
---|
5 | class tile_picker : public scroller |
---|
6 | { |
---|
7 | int th,last_sel,type,scale,wid,rev; |
---|
8 | public : |
---|
9 | tile_picker(int X, int Y, int ID, int spec_type, window_manager *wm, |
---|
10 | int scale, int scroll_h, int Wid, ifield *Next); |
---|
11 | virtual void handle_inside_event(event &ev, image *screen, window_manager *wm, input_manager *inm); |
---|
12 | virtual void scroll_event(int newx, image *screen, window_manager *wm); |
---|
13 | virtual char *read() { return (char *)this; } |
---|
14 | int picw(); |
---|
15 | int pich(); |
---|
16 | int total(); |
---|
17 | int get_current(); |
---|
18 | void set_current(int x); |
---|
19 | void recenter(image *screen, window_manager *wm); |
---|
20 | void reverse() { rev=!rev; } |
---|
21 | } ; |
---|
22 | |
---|
23 | extern int cur_bg,cur_fg,cur_char; |
---|
24 | |
---|
25 | #endif |
---|
26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.