Subversion Repositories DIN Is Noise

Rev

Rev 2097 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1528 jag 1
/*
2
* plus_button.h
2302 jag 3
* DIN Is Noise is copyright (c) 2006-2025 Jagannathan Sampath
1713 jag 4
* DIN Is Noise is released under GNU Public License 2.0
1528 jag 5
* For more information, please visit https://dinisnoise.org/
6
*/
7
 
8
#ifndef __plus_button
9
#define __plus_button
10
 
11
#include "button.h"
12
 
13
struct plus_button : button {
14
  int size;
15
  plus_button (int sz = 12) {
16
    set_size (sz);
17
  }
18
  void set_size (int sz) {
19
    size = sz;
20
    set_extents (posx, posy, posx + size, posy + size);
21
  }
22
  void update () {
23
    set_size (size);
24
  }
25
  void draw ();
26
};
27
 
28
#endif
29
 
30
 
31