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/visobj.hpp

    r57 r106  
    1717{
    1818  public :
    19   virtual void draw(image *screen, int x, int y, window_manager *wm, filter *f) = 0;
    20   virtual int width(window_manager *wm) = 0;
    21   virtual int height(window_manager *wm) = 0;
     19  virtual void draw(image *screen, int x, int y, filter *f) = 0;
     20  virtual int width() = 0;
     21  virtual int height() = 0;
    2222  virtual ~visual_object() {}
    2323} ;
     
    3131
    3232  image_visual(image *img) { im=img; }
    33   virtual void draw(image *screen, int x, int y,
    34                     window_manager *wm, filter *f);
    35   virtual int width(window_manager *wm) { return im->width(); }
    36   virtual int height(window_manager *wm) { return im->height(); }
     33  virtual void draw(image *screen, int x, int y, filter *f);
     34  virtual int width() { return im->width(); }
     35  virtual int height() { return im->height(); }
    3736} ;
    3837
     
    4544  public :
    4645  string_visual(char *string, int Color);
    47   virtual void draw(image *screen, int x, int y,
    48                     window_manager *wm, filter *f);
    49   virtual int width(window_manager *wm);
    50   virtual int height(window_manager *wm);
     46  virtual void draw(image *screen, int x, int y, filter *f);
     47  virtual int width();
     48  virtual int height();
    5149} ;
    5250
Note: See TracChangeset for help on using the changeset viewer.