diff options
author | Benji Dial <benji6283@gmail.com> | 2021-03-07 12:16:12 -0500 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2021-03-07 12:16:12 -0500 |
commit | 348e1876d25320e6480f2795c9388b2bc080c743 (patch) | |
tree | 29fef9fa2a85ecd9565ea4a3cf78dba15c960750 /src/user/rhello | |
parent | 76e39eac8cee2175ec62a191f7c91ca53857e80c (diff) | |
download | portland-os-348e1876d25320e6480f2795c9388b2bc080c743.tar.gz |
text entry, with cursor, but no keyboard
Diffstat (limited to 'src/user/rhello')
-rw-r--r-- | src/user/rhello/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/user/rhello/main.cpp b/src/user/rhello/main.cpp index c92b430..f179317 100644 --- a/src/user/rhello/main.cpp +++ b/src/user/rhello/main.cpp @@ -1,6 +1,7 @@ #include <raleigh/w/padding.h> #include <raleigh/w/button.h> #include <raleigh/w/label.h> +#include <raleigh/w/entry.h> #include <raleigh/w/vbox.h> #include <raleigh/runtime.h> @@ -26,7 +27,11 @@ void main() { button b(pbl, &onclick); padding pb(b, 2); + entry e(6, 20, "I'm a text entry!\nEventually you will be able to edit me."); + padding pe(e, 2); + dllist<widget &> wl; + wl.add_front(pe); wl.add_front(pb); wl.add_front(pl); vbox vb(wl); |