Commit Graph

22 Commits

Author SHA1 Message Date
EdJoPaTo
c8c5a37b28 feat: add TreeItem::children()
returns all the current children
2022-09-01 16:29:56 +02:00
EdJoPaTo
d090aa5659 refactor: split imports better 2022-08-31 18:40:39 +02:00
EdJoPaTo
b01956741b feat: implement TreeState select first/last 2022-08-31 18:28:11 +02:00
EdJoPaTo
c0e4967b88 feat: implement TreeState arrow key methods 2022-08-31 14:49:32 +02:00
EdJoPaTo
63a5fa06f9 feat: toggle with identifier
BREAKING CHANGE: toggle now requires identifier
2022-08-31 14:21:53 +02:00
EdJoPaTo
0a631330e3 refactor: reorder members 2022-08-31 14:04:17 +02:00
EdJoPaTo
d228f439f1 refactor(lint): specify must_use more often 2022-02-26 13:57:22 +01:00
Nicholas Roller
7ff37c6227 feat: Adding toggle (#8)
* feat: Adding toggle

* Update src/lib.rs

Return unneded

Co-authored-by: EdJoPaTo <github@edjopato.de>

Co-authored-by: EdJoPaTo <github@edjopato.de>
2022-02-06 21:13:29 +01:00
EdJoPaTo
1722aa02b7 fix(lint): prevent linter hint 2022-01-19 13:48:14 +01:00
EdJoPaTo
f0bbd09603 refactor: export as flat hierarchy
BREAKING CHANGE: no more exported modules.
Everything is on the main export now.
2021-10-24 03:38:00 +02:00
EdJoPaTo
0659a5ae6f refactor(lint): adapt to future lints 2021-10-24 03:21:43 +02:00
EdJoPaTo
de79f19b82 refactor: simpify string repeat 2021-06-13 09:29:23 +02:00
EdJoPaTo
15fbc26617 refactor(clippy): adapt to new lints 2021-05-13 09:24:54 +02:00
EdJoPaTo
45083fc332 refactor: prefer turbofish 2021-05-13 09:18:42 +02:00
Joey Ezechiëls
8c43147be8 Improve API (#3)
* Introduce TreeItem::{child, child_mut}() accessors
* Add docstrings for TreeState::{open, close}()
2021-05-01 14:18:37 +02:00
EdJoPaTo
cf31797e86 refactor: impl method returns Self 2021-04-01 09:05:05 +02:00
EdJoPaTo
075eb052a3 feat: add TreeState get_offset() 2021-02-13 09:49:35 +01:00
EdJoPaTo
e3ac2554c3 refactor: let rust elide lifetimes 2020-12-31 17:55:44 +01:00
EdJoPaTo
5265bf1d1e fix: use getter for all_opened
dont allow access to struct field
2020-10-31 21:31:54 +01:00
EdJoPaTo
b585b9dde9 style: remove some superfluous comments 2020-10-31 21:17:13 +01:00
EdJoPaTo
db61972cec fix: reduce indentation 2020-10-31 20:30:24 +01:00
EdJoPaTo
b539806734 Initial commit 2020-10-30 16:30:07 +01:00