Commit Graph

734 Commits

Author SHA1 Message Date
ArthurSonzogni
25476f757b
Fix bug with "flex" element not settings their box. 2024-12-26 12:27:02 +01:00
ArthurSonzogni
a3cc6df32b
Fix tests. 2024-12-26 12:27:02 +01:00
ArthurSonzogni
fe7d67ac6a
Fix + support for indpendant styles. 2024-12-26 12:27:02 +01:00
ArthurSonzogni
9f9effa683
Add recursive selection style. 2024-12-26 12:27:02 +01:00
Clement Roblot
d755ab31f1
More forgiving selection options 2024-12-26 12:27:02 +01:00
Clement Roblot
f21cfd45b7
Added more tests 2024-12-26 12:27:01 +01:00
Clement Roblot
f345209d82
VBox testing 2024-12-26 12:27:01 +01:00
Clement Roblot
b4717f9fa4
Added more tests 2024-12-26 12:27:01 +01:00
Clement Roblot
f454810dae
Added a basic test 2024-12-26 12:27:01 +01:00
Clement Roblot
cbd28403af
Added a option to set the style of the selection 2024-12-26 12:27:01 +01:00
Clement Roblot
d62dc6e305
Added a decorator to prevent selectability 2024-12-26 12:27:01 +01:00
Clement Roblot
307d8b51bf
We can retrieve the content of the selection 2024-12-26 12:27:01 +01:00
Clement Roblot
dc70091203
Added a callback on selection change 2024-12-26 12:27:01 +01:00
ArthurSonzogni
70a6a04e80
Fix build issues. 2024-12-26 12:27:01 +01:00
ArthurSonzogni
07202b7757
Cleanup 2024-12-26 12:27:00 +01:00
ArthurSonzogni
c1c4caf24f
Support for inverted selections. 2024-12-26 12:27:00 +01:00
Clement Roblot
fa742c7a34
More robust saturation mechanism 2024-12-26 12:27:00 +01:00
Clement Roblot
b4c498dcff
Correct the title highlighting of hbox grabing to top border 2024-12-26 12:27:00 +01:00
Clement Roblot
5c4a5b86bc
We can reverse select 2024-12-26 12:27:00 +01:00
Clement Roblot
6c7a92cffa
Corrected typo 2024-12-26 12:27:00 +01:00
Clement Roblot
3d670e210d
Easier to read HandleSelection 2024-12-26 12:27:00 +01:00
ArthurSonzogni
5ecac2e8d6
Start the tree-aware selection. 2024-12-26 12:27:00 +01:00
Clement Roblot
3e9bab424e
Select only if the selection starts in my text widget 2024-12-26 12:27:00 +01:00
Clement Roblot
437439c945
Reverse selection are now possible 2024-12-26 12:26:59 +01:00
Clement Roblot
92586f76bc
More intuitive selection of text 2024-12-26 12:26:59 +01:00
Clement Roblot
c9fbd8de9d
Wrap around both directions 2024-12-26 12:26:59 +01:00
Clement Roblot
195871e62b
Dirty wrap around implementation 2024-12-26 12:26:59 +01:00
Clement Roblot
23a8c94bef
Implementation of the selection in the text node 2024-12-26 12:26:59 +01:00
Clement Roblot
011b9a1426
Make use of Box instead of my custom Region struct 2024-12-26 12:26:59 +01:00
ArthurSonzogni
b352e13253
Reformat + fix pending selection. 2024-12-26 12:26:59 +01:00
Clement Roblot
eef0c3d677
More cleanup 2024-12-26 12:26:59 +01:00
Clement Roblot
7af4446de8
Cleanup 2024-12-26 12:26:58 +01:00
Clement Roblot
2339ead35c
It somewhat works 2024-12-26 12:26:58 +01:00
Clement Roblot
cb2436f13f
We can act on the screen 2024-12-26 12:26:58 +01:00
Clement Roblot
1325256aa9
We can catch mouse events 2024-12-26 12:26:58 +01:00
Clement Roblot
75abd75b67
We have a basic decorator 2024-12-26 12:26:57 +01:00
Arthur Sonzogni
751c8fab26
Force reload in examples. (#974)
After installing the service worker to use the COOP/COEP header, ensure
the document is reloaded.

Bug:https://github.com/ArthurSonzogni/FTXUI/issues/973
Fixed:https://github.com/ArthurSonzogni/FTXUI/issues/973
2024-12-25 13:32:35 +01:00
Sumit Patel
daa421fa6a
add tuisic example project (#967) 2024-12-15 18:58:08 +01:00
Yongqi Zhu
e213cfda37
add Lazylist example project (#964) 2024-12-06 15:20:17 +01:00
Vemy
58ff448e76
Fix: Properly changing window title text color #940 (#961) 2024-12-01 09:38:09 +01:00
Dmitry Nefedov
dfa461b46b
Clear terminal output of interactive screen on resize if alternate screen not in use (#952) 2024-11-27 21:52:20 +01:00
Dmitry Atamanov
0683285f01
Remove non-existent Just-Fast from README.md (#957) 2024-11-27 21:47:09 +01:00
glebundiy
7f74917887
Add yafth as an example project using FTXUI (#958) 2024-11-27 21:44:32 +01:00
Brian
ad0392ec39
Fixed typo on border (#956)
Fixed minor issue in function name
2024-11-20 22:37:02 +01:00
Boris Jaulmes
70bc44d28b
Allow a Dimension::Fit to extend beyond the terminal maximum height (#950)
For long tables (and other DOM elements), one may want the screen to render on dimensions higher than the terminal.  
Hence, this PR proposes a way to do so, with an optional parameter in the `Dimension::Fit` util function.

Discussions / Issues :  
- https://github.com/ArthurSonzogni/FTXUI/issues/572
- https://github.com/ArthurSonzogni/FTXUI/discussions/949

Bug:https://github.com/ArthurSonzogni/FTXUI/issues/572
Fixed:Bug:https://github.com/ArthurSonzogni/FTXUI/issues/572
Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
2024-11-07 21:07:09 +01:00
Petr Vyazovik
55af678fb9
Added pciex as an example project using FTXUI (#948) 2024-11-02 12:08:43 +01:00
Mikołaj Lubiak
edaa7a24e7
Add memory game and terminal animation to project list (#946) 2024-10-31 21:09:42 +01:00
Vemy
8922e6d55e
Add 2048-cpp to projects using FTXUI (#944) 2024-10-29 09:15:07 +01:00
Mikołaj Lubiak
99df1ac8ba
Add SliderWithCallback component (#938)
Add SliderOption::on_change.

Useful to observe a change to the value.

Signed-off-by: Mikołaj Lubiak <lubiak@proton.me>
Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
2024-10-29 08:03:59 +01:00
Herring
1d40687a40
Add index to EntryState (#933)
Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
2024-09-30 23:18:59 +02:00