Changeset 124 for abuse/trunk/src/imlib/input.hpp
- Timestamp:
- Mar 18, 2008, 9:36:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/imlib/input.hpp
r120 r124 21 21 image *visual,*pressed,*act_pict; 22 22 int act_id; 23 public : 23 public : 24 24 button(int X, int Y, int ID, char const *Text, ifield *Next); 25 25 button(int X, int Y, int ID, image *vis, ifield *Next); … … 28 28 virtual void area(int &x1, int &y1, int &x2, int &y2); 29 29 virtual void draw_first(image *screen); 30 virtual void draw(int active, image *screen); 30 virtual void draw(int active, image *screen); 31 31 virtual void handle_event(event &ev, image *screen, InputManager *im); 32 32 void change_visual(image *new_visual); … … 51 51 virtual void area(int &x1, int &y1, int &x2, int &y2); 52 52 virtual void draw_first(image *screen); 53 virtual void draw(int active, image *screen); 54 virtual void handle_event(event &ev, image *screen, InputManager *im); 53 virtual void draw(int active, image *screen); 54 virtual void handle_event(event &ev, image *screen, InputManager *im); 55 55 virtual ~button_box(); 56 56 virtual char *read(); // return pointer to first button which is depressed … … 74 74 wm->font()->put_string(screen,xstart()+1,y+3,data); 75 75 } 76 public : 77 text_field(int X, int Y, int ID, char const *Prompt, char const *Format, 76 public : 77 text_field(int X, int Y, int ID, char const *Prompt, char const *Format, 78 78 char const *Data, ifield *Next); 79 text_field(int X, int Y, int ID, char const *Prompt, char const *Format, 79 text_field(int X, int Y, int ID, char const *Prompt, char const *Format, 80 80 double Data, ifield *Next); 81 81 82 82 virtual void area(int &x1, int &y1, int &x2, int &y2); 83 83 virtual void draw_first(image *screen); 84 virtual void draw(int active, image *screen); 84 virtual void draw(int active, image *screen); 85 85 virtual void handle_event(event &ev, image *screen, InputManager *im); 86 86 87 87 virtual ~text_field() { jfree(prompt); jfree(format); jfree(data); } 88 88 virtual char *read(); 89 89 void change_data(char const *new_data, int new_cursor, // cursor==-1, does not change it. 90 90 int active, image *screen); 91 91 } ; 92 92 … … 96 96 char *text; 97 97 int w,h; 98 void put_para(image *screen, char const *st, int dx, int dy, int xspace, 99 100 public : 98 void put_para(image *screen, char const *st, int dx, int dy, int xspace, 99 int yspace, JCFont *font, int color); 100 public : 101 101 info_field(int X, int Y, int ID, char const *info, ifield *Next); 102 102 virtual void area(int &x1, int &y1, int &x2, int &y2); … … 105 105 virtual void handle_event(event &ev, image *screen, InputManager *im) { ; } 106 106 virtual char *read() { return text; } 107 virtual int selectable() { return 0; } 107 virtual int selectable() { return 0; } 108 108 virtual ~info_field() { jfree(text); } 109 109 } ;
Note: See TracChangeset
for help on using the changeset viewer.