Alexandre Bury
25726140d8
Add colors and styles to printer
2015-05-21 23:29:49 -07:00
Alexandre Bury
9b998b0dd4
Add missing documentation.
2015-05-20 11:11:55 -07:00
Alexandre Bury
7cfdd8e9fe
Add doc to print_box
2015-05-20 10:36:35 -07:00
Alexandre Bury
919e60d4ce
Add lines and boxes to printer.
...
Dialog now draws its box.
2015-05-20 10:31:38 -07:00
Alexandre Bury
7d301e1980
Add documentation
2015-05-19 17:31:52 -07:00
Alexandre Bury
ecd3c96d20
Unify wrap_impl macros
...
Use a different pattern rather than different macro
2015-05-19 16:53:50 -07:00
Alexandre Bury
191c2899ea
Add non-boxed wrap_impl! macro
...
Although maybe sized_view should rather use a box internally.
2015-05-19 16:40:32 -07:00
Alexandre Bury
c8136c67e0
Add focus system
...
May need to add a direction to take_focus
2015-05-19 15:54:11 -07:00
Alexandre Bury
ca5c485847
Fix Button on_key_event
...
KEY_ENTER is actually almost never called. The return key sends the
ascii code for '\n' instead.
2015-05-19 10:58:42 -07:00
Alexandre Bury
04121414e1
Add proper draw and layout to Dialog
2015-05-18 19:41:35 -07:00
Alexandre Bury
68819c89bf
Fixed variable case warnings
2015-05-18 15:31:55 -07:00
Alexandre Bury
493ed1322c
Fix stack_view when screen is smaller than content
2015-05-18 12:24:08 -07:00
Alexandre Bury
1fcca9b3a9
Rename module vec2 -> vec
...
Margins may be moved to vec::Vec4 some day
2015-05-18 11:51:30 -07:00
Alexandre Bury
0302e74063
Fix text view size with multiline content
2015-05-18 11:18:04 -07:00
Alexandre Bury
74f0fee9b6
Add Dialog skeleton
2015-05-16 14:02:15 -07:00
Alexandre Bury
a8c8855831
Moved example to separate directory
...
And add it to Cargo.toml
2015-05-16 13:09:38 -07:00
Alexandre Bury
e17ca97136
Add ViewPath and Cursive::find
...
Callbacks now include a path to the triggering view.
The Cursive root can find the View corresponding to a ViewPath.
In the future, ViewPaths may be returned when creating the layout.
2015-05-15 17:56:38 -07:00
Alexandre Bury
6cd2a28966
StackView now centers its children
2015-05-15 16:06:48 -07:00
Alexandre Bury
90ea4af1ea
Implement TextView::draw
2015-05-15 15:00:20 -07:00
Alexandre Bury
6fad4aa36a
More documentation
2015-05-15 12:16:58 -07:00
Alexandre Bury
e5c623bb07
Add printer abstraction on ncurses::WINDOW
...
Also rename Size -> Vec2
2015-05-15 12:03:19 -07:00
Alexandre Bury
4ebb422611
Hide the cursor
2015-05-14 18:41:13 -07:00
Alexandre Bury
ec7b76c564
Add screens to Cursive
2015-05-14 18:38:58 -07:00
Alexandre Bury
506c41c0f8
Fix some warnings
2015-05-14 17:48:24 -07:00
Alexandre Bury
a387bf5f06
Add stack, box and text views
...
Also add some documentation
2015-05-14 17:41:17 -07:00
Alexandre Bury
13c4e86779
First commit
2015-05-09 12:18:31 -07:00