Commit Graph

723 Commits

Author SHA1 Message Date
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
ljrrjl
dfb9558eaf
add ftxui-image-view (#924) 2024-08-27 14:35:15 +02:00
ArthurSonzogni
c5357acbaa
Add scrollbar example. 2024-08-18 10:46:41 +02:00
ArthurSonzogni
fbd56cdf43
Fix CQ failures. 2024-08-17 12:01:43 +02:00
ArthurSonzogni
66d1c1f61f
Quickfix 2024-08-16 11:47:01 +02:00
Arthur Sonzogni
f5d8c7deb5
Apply Clang-tidy (#918) 2024-08-16 11:19:51 +02:00
Sergey Latu
535290bb3b
My project added to readme (#916) 2024-08-15 16:08:32 +02:00
Arthur Sonzogni
fcd050c017
Table: support initializer list constructor. (#915)
To avoid burdening the user with explicit type construction when using
the library, we can use a constructor that accepts an initializer list
(std::initializer_list). This allows users to pass initializer lists
directly without having to wrap them in
std::vector<std::vector<std::string>>. This resolves the ambiguous case
when the inner list contains only two elements.

Bug:https://github.com/ArthurSonzogni/FTXUI/issues/912
2024-08-13 15:55:09 +02:00
Paolo Bosetti
d7de24cd9e
Added -fPIC compile option (#913)
Added -fPIC compile option.
2024-08-11 19:17:57 +02:00
Charney Kaye
547d9278d8
Add XJ music to FTXUI example projects (#909)
We use FTXUI as the frontend for the example C++ application for our adaptive music runtime engine.

https://github.com/xjmusic/xjmusic/tree/main/engine/example
2024-08-04 11:05:59 +02:00
Brian
5a9ef876a1
Update README.md (#905)
added step writer
2024-07-25 11:07:38 +02:00
LiAuTraver
307e4eb4b3
add missing include guard for screen/pixel.hpp (#890) 2024-06-27 13:07:10 +02:00