1 /* 2 * plus_button.h 3 * DIN Is Noise is copyright (c) 2006-2021 Jagannathan Sampath 4 * DIN Is Noise is released under GNU Public License 2.0 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 } set_sizeplus_button18 void set_size (int sz) { 19 size = sz; 20 set_extents (posx, posy, posx + size, posy + size); 21 } updateplus_button22 void update () { 23 set_size (size); 24 } 25 void draw (); 26 }; 27 28 #endif 29 30 31 32