File: filled_button.h

package info (click to toggle)
din 5.2.1-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,180 kB
  • ctags: 2,511
  • sloc: cpp: 9,369; sh: 6,563; ansic: 2,977; tcl: 1,770; makefile: 283
file content (24 lines) | stat: -rw-r--r-- 387 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __filled_button
#define __filled_button

#include "button.h"

class filled_button : public button {

  int size;

  public:

    filled_button (int sz = 8, float r = 1, float g = 1, float b = 1) {
      set_color (r, g, b);
      size = sz;
      set_extents (0, 0, size, size);
    }

    void set_label (const std::string& label) {} // dont need

    void draw ();

};

#endif