Changeset 659 for abuse/trunk/src/imlib/jwindow.h
- Timestamp:
- May 15, 2011, 6:22:25 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/imlib/jwindow.h
r655 r659 61 61 friend class InputManager; 62 62 63 protected:64 Jwindow *owner;65 66 63 public : 67 64 ifield(); 68 int x, y;65 virtual ~ifield(); 69 66 70 int id;71 ifield *next;72 67 virtual void set_owner(Jwindow *owner); 73 virtual void move(int newx, int newy) { x = newx; y = newy; }68 virtual void Move(vec2i pos) { m_pos = pos; } 74 69 virtual void area(int &x1, int &y1, int &x2, int &y2) = 0; 75 70 virtual void draw_first(image *screen) = 0; … … 81 76 virtual ifield *find(int search_id) { if (id==search_id) return this; else return NULL; } 82 77 virtual ifield *unlink(int id) { (void)id; return NULL; } 83 virtual ~ifield(); 84 } ; 78 79 vec2i m_pos; 80 int id; 81 ifield *next; 82 83 protected: 84 Jwindow *owner; 85 }; 85 86 86 87 class Jwindow … … 90 91 public: 91 92 Jwindow *next; 92 int x, y,l, h, backg;93 int l, h, backg; 93 94 InputManager *inm; 94 95 void *local_info; // pointer to info block for local system (may support windows) 95 96 96 97 Jwindow(char const *name = NULL); 97 Jwindow( int X, int Y, int L, int H, ifield *f, char const *name = NULL);98 Jwindow(vec2i pos, int L, int H, ifield *f, char const *name = NULL); 98 99 ~Jwindow(); 99 100 … … 122 123 static int bottom_border(); 123 124 125 vec2i m_pos; 124 126 image *m_surf; 125 127
Note: See TracChangeset
for help on using the changeset viewer.