summaryrefslogtreecommitdiff
path: root/src/user/rhello/main.cpp
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-03-07 12:16:12 -0500
committerBenji Dial <benji6283@gmail.com>2021-03-07 12:16:12 -0500
commit348e1876d25320e6480f2795c9388b2bc080c743 (patch)
tree29fef9fa2a85ecd9565ea4a3cf78dba15c960750 /src/user/rhello/main.cpp
parent76e39eac8cee2175ec62a191f7c91ca53857e80c (diff)
downloadportland-os-348e1876d25320e6480f2795c9388b2bc080c743.tar.gz
text entry, with cursor, but no keyboard
Diffstat (limited to 'src/user/rhello/main.cpp')
-rw-r--r--src/user/rhello/main.cpp5
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);