Subversion Repositories DIN Is Noise

Rev

Rev 1535 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

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


#ifndef __curve_picker
#define __curve_picker

#include "label.h"
#include "options_list.h"

struct curve_picker_t : widget, click_listener, option_listener {

  label l_title;
  button b_pick, b_cancel;

  options_list ol_components;
  int id;
  int n, n_1;

  void setup ();
  void update ();

  int handle_input ();

  void show ();
  void hide ();

  box<int> bg;
  void calc_bg ();
  void draw ();

  void clicked (button& b);
  void picked (label& l, int dir);

  ~curve_picker_t ();

};

extern curve_picker_t curve_picker;

#endif