diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-11-21 12:36:36 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-11-21 12:36:36 +0000 |
| commit | 5eb823abb8ba91dbab098d7195094d0f76e4f332 (patch) | |
| tree | 0c5b7b7e21fcf46e5c6d6b63db1de23483296537 /rotord/src/nodes_drawing.h | |
| parent | b46286b8262cd5a4b96ac318a6d85d3db39e09e5 (diff) | |
UI text node outline
Diffstat (limited to 'rotord/src/nodes_drawing.h')
| -rw-r--r-- | rotord/src/nodes_drawing.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/rotord/src/nodes_drawing.h b/rotord/src/nodes_drawing.h index 77a74cb..288514c 100644 --- a/rotord/src/nodes_drawing.h +++ b/rotord/src/nodes_drawing.h @@ -111,6 +111,25 @@ namespace Rotor { } private: }; + class UI_text: public Text_base { + public: + UI_text(){ + title="UI_text"; + description="Draws text entered by the user"; + create_attribute("text","Text to draw","Text","hello, world!"); + NODEID="22b47bea-52a9-11e3-b2b3-74d02b29f6a6"; + UItype="text"; + }; + UI_text(map<string,string> &settings):UI_text() { + base_settings(settings); + }; + ~UI_text(){}; + UI_text* clone(map<string,string> &_settings) { return new UI_text(_settings);}; + string select_text(const Frame_spec &frame){ + return attributes["text"]->value; + } + private: + }; class Lyrics: public Text_base { public: Lyrics(){ |
