File: Button.h

package info (click to toggle)
sear 0.5.0-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,408 kB
  • ctags: 2,580
  • sloc: cpp: 14,902; sh: 10,890; makefile: 172
file content (31 lines) | stat: -rw-r--r-- 777 bytes parent folder | download
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
26
27
28
29
30
31
// This file may be redistributed and modified only under the terms of
// the GNU General Public License (See COPYING for details).
// Copyright (C) 2004 Alistair Riddoch

#ifndef SEAR_GUI_BUTTON_H
#define SEAR_GUI_BUTTON_H

#include "gui/Container.h"

namespace Sear {

class Graphic;

/// Higher level class defining any part in the gui.
/// They key difference is that some widgets may not have a visible component.
class Button : public Container {
private:
  // Private and unimplemented to prevent slicing
  Button(const Button &);
  const Button & operator=(const Button &);
public:
  explicit Button(const std::string & text);
  explicit Button(const Graphic & graphic);
  virtual ~Button();

  virtual void show();
};

} // namespace Sear

#endif // SEAR_GUI_WIDGET_H