Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-10-06 18:22:32 +0000
committerStijn Buys <ingar@osirion.org>2008-10-06 18:22:32 +0000
commita14d80f83aebe75241bf63b4f3ffca3a5d952577 (patch)
treefea36faedd17a0aa620f6d7e781a352327d6065d /src/ui/button.h
parent343b0b4298e2d084d5544d3d40a8b7dcb586ce8e (diff)
libui updates, support menu .ini files
Diffstat (limited to 'src/ui/button.h')
-rw-r--r--src/ui/button.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ui/button.h b/src/ui/button.h
index eac5f1d..a9fee13 100644
--- a/src/ui/button.h
+++ b/src/ui/button.h
@@ -14,9 +14,17 @@ namespace ui {
class Button : public Label {
public:
- Button (Widget *parent, char const *text=0, char const *command=0);
+ Button (Widget *parent, const char *text=0, const char *command=0);
~Button();
+ void set_command(std::string const &command);
+ void set_command(const char *command);
+
+ inline std::string const & command() const { return button_command; }
+
+ /// print button description
+ virtual void print(size_t indent);
+
protected:
virtual void draw();