File: label.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 (25 lines) | stat: -rw-r--r-- 356 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
25
#ifndef __label
#define __label

#include <string>
#include "widget.h"

class label : public widget {

  std::string text;

  public:

    label (const std::string& txt = "");

    void set_text (const std::string& txt);
    const std::string& get_text () const { return text; }

    void draw ();
    int handle_input ();
    void update ();


};

#endif