Subversion Repositories DIN Is Noise

Rev

Rev 2175 | Blame | Compare with Previous | Last modification | View Log | RSS feed

/*
* ui.h
* DIN Is Noise is copyright (c) 2006-2025 Jagannathan Sampath
* For more information, please visit http://dinisnoise.org/
*/



#ifndef __UI
#define __UI

#include <string>

struct ui { // or screen
  std::string name;
  int ed; // editor?
  int inst; // instrument?
  int prev_mousex, prev_mousey; // in device space

  static ui* over;

  virtual void enter ();
  virtual void leave ();
  virtual int handle_input() {return 1;}
  virtual void calc_win_mouse () {}
  virtual void draw() {}
  virtual void drawerlay () { if (over) over->draw (); }
  virtual void bg () {}
  virtual int esc () {return 0;}
  ui () { prev_mousex = prev_mousey = -1; ed = 0; inst = 0;}
  virtual ~ui () {}

};
#endif