Ignore:
Timestamp:
Mar 15, 2008, 12:55:44 AM (11 years ago)
Author:
Sam Hocevar
Message:
  • Rename the "eh" variable to "wm" because it's a window manager, not an event handler.
  • No longer pass the window manager to functions, there's only one.

Inspired by Win32 Abuse changelog for January 28, 2001:

  • Starting work on singleton code; will get rid of all

references to an arbitrary window_manager* because
there's only going to be one, and it's not ever
going to change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/tools.hpp

    r57 r106  
    3131  tool_picker(int X, int Y, int ID,
    3232              int show_h, visual_object **Icons, int *Ids, int total_ic,
    33               palette *icon_palette, palette *pal, window_manager *wm, ifield *Next);
     33              palette *icon_palette, palette *pal, ifield *Next);
    3434
    35   virtual void draw_item(window_manager *wm, image *screen, int x, int y, int num, int active);
     35  virtual void draw_item(image *screen, int x, int y, int num, int active);
    3636  virtual int total() { return total_icons; }
    37   virtual int item_width(window_manager *wm) { return iw; }
    38   virtual int item_height(window_manager *wm) { return ih; }
    39   virtual void note_new_current(window_manager *wm, image *screen, input_manager *inm, int x)
     37  virtual int item_width() { return iw; }
     38  virtual int item_height() { return ih; }
     39  virtual void note_new_current(image *screen, input_manager *inm, int x)
    4040  { wm->push_event(new event(ids[x],NULL)); }
    4141
    42   void remap(palette *pal, window_manager *wm, image *screen);
     42  void remap(palette *pal, image *screen);
    4343  ~tool_picker();
    4444} ;
Note: See TracChangeset for help on using the changeset viewer.