ArthurSonzogni
ce252ff92e
Add missing includes for gcc
...
Bug:https://github.com/ArthurSonzogni/FTXUI/issues/695
2023-07-25 23:55:41 +02:00
Stefan Ravn van Overeem
de6749fed7
Improve unicode codepoint Bisearch performance ( #691 )
...
Improve the performance of the functions for searching for codepoints
in a table by passing the table array in as a reference instead of copying
it.
Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
2023-07-25 23:54:45 +02:00
Arthur Sonzogni
46042ce74a
Feature: hyperlink
support. ( #665 )
...
See the [OSC 8 page](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda ).
FTXUI support proposed by @aaleino in [#662 ](https://github.com/ArthurSonzogni/FTXUI/issues/662 ).
API:
```cpp
auto link = text("Click here") | hyperlink("https://github.com/FTXUI ")
```
Fixed:https://github.com/ArthurSonzogni/FTXUI/issues/662
2023-07-25 23:35:55 +02:00
ArthurSonzogni
1e86587b68
Revert "Feature resizable spilt with custom separator ( #583 )"
...
This reverts commit eb313e0f2d
.
2023-05-25 19:47:33 +02:00
Robin Lindén
2fb0b77f02
Fix MSVC possible loss of data warning ( #645 )
2023-05-25 19:37:58 +02:00
Henner Zeller
ac10603fdb
Fix types used in Hash() function used in tests. ( #640 )
...
Using `auto` seems to create a different output on different platforms.
Notably it was observed that aarch64 compiles return a different
value.
Fix the type of the characters iterated through the string.
Fixes #639
Signed-off-by: Henner Zeller <h.zeller@acm.org>
2023-05-18 11:23:22 +02:00
Arthur Sonzogni
debcbc668c
Check graph area is positive. ( #625 )
...
Bug:https://github.com/ArthurSonzogni/FTXUI/issues/624
2023-05-18 11:23:22 +02:00
Vinicius Moura Longaray
0903ad1608
Feature: LinearGradient
color decorator. ( #592 )
...
Based on the existing color decorators, create new ones to apply a gradient effect on the DOM.
Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
2023-05-18 11:23:22 +02:00
Arthur Sonzogni
399549d180
Add colored border. ( #595 )
...
This resolves:
https://github.com/ArthurSonzogni/FTXUI/issues/564
2023-05-18 11:23:21 +02:00
Arthur Sonzogni
7bdca3ee68
Feature: Add the dashed style. ( #594 )
2023-05-18 11:23:21 +02:00
Arthur Sonzogni
eb313e0f2d
Feature resizable spilt with custom separator ( #583 )
...
* Feature: ResizableSplit with custom separator
This resolves:
https://github.com/ArthurSonzogni/FTXUI/issues/580
Co-authored-by: Pin Loon Lee <pinloon_0428@hotmail.com>
2023-05-18 11:23:21 +02:00
Evgeny Gorodetskiy
d3ee655a90
Fix Apple Clang 14 build errors (issue #588 ) ( #589 )
2023-05-18 11:23:21 +02:00
Arthur Sonzogni
3e35f45830
Execute clang-tidy and IWYU. ( #576 )
2023-02-12 14:07:28 +01:00
Arthur Sonzogni
a4e70dfb93
Fix vscroll hidding the last character. ( #575 )
...
This resolve:
https://github.com/ArthurSonzogni/FTXUI/issues/574
2023-02-12 13:51:51 +01:00
Arthur Sonzogni
6fe8310321
Feature: strikethrough
and underlinedDouble
decorator. ( #561 )
...
This resolves:
https://github.com/ArthurSonzogni/FTXUI/issues/560
2023-01-22 11:02:27 +01:00
Arthur Sonzogni
5410329ac6
Adding heartbeat to spinner ( #548 )
...
Co-authored-by: cyrus <cyruswang2017@gmail.com>
2023-01-06 11:05:56 +01:00
Arthur Sonzogni
0542227ba7
Execute clang tidy and IWYU ( #528 )
2022-12-19 19:44:43 +01:00
Arthur Sonzogni (slow/sick)
05f29ff3b3
Remove codecvt dependency. ( #516 )
...
This resolves:
https://github.com/ArthurSonzogni/FTXUI/issues/514
2022-11-26 20:43:09 +01:00
Fredrik Hallenberg
55b9706cfd
Fix automerge at border ( #515 )
2022-11-25 00:39:17 +01:00
Arthur Sonzogni (slow/sick)
1689802349
Support multiple kind of cursor shapes. ( #505 )
...
https://github.com/ArthurSonzogni/FTXUI/issues/424
2022-11-11 14:09:53 +01:00
Arthur Sonzogni
c61fadd8ec
Update to unicode 13 standard. ( #484 )
...
It contains additional full width character and combining characters.
This resolves:
https://github.com/ArthurSonzogni/FTXUI/issues/483
2022-09-29 10:50:27 +02:00
Lobanova Valeriia
b3aad183da
FIX: minor mistake ( #482 )
2022-09-25 22:00:12 +02:00
Arthur Sonzogni
8226c5aea7
Fix clang-tidy. ( #469 )
2022-08-28 21:30:01 +02:00
Ian J
251306a4bb
Fixed divide by zero segault ( #461 )
...
Check if inner_size is less than 1 to prevent divide by 0 segfault.
Co-authored-by: Arthur Sonzogni <sonzogniarthur@gmail.com>
2022-08-19 19:43:55 +02:00
Arthur Sonzogni
f461050759
Run IWYU ( #450 )
2022-08-07 14:44:33 +02:00
badlydrawnrod
d5044bdaaf
Fix #441 Canvas::DrawText() ( #442 )
...
Fix for Canvas::DrawText() draws nothing if the start coordinate is out
of bounds.
2022-07-10 22:14:32 +02:00
AMS21
094d8d9d0a
Fix border charset array being to large ( #421 )
...
This for some reason caused the clang compiler to crash, while also
being incorrect as the tables are actually only 5x6.
See the LLVM issue here:
https://github.com/llvm/llvm-project/issues/56016
2022-06-14 21:03:03 +02:00
Arthur Sonzogni
925a7578d4
Feature: the Modal
component. ( #418 )
2022-06-12 17:08:22 +02:00
Jhon Adams
b63aa9e375
Swap incorrect width/height mapping ( #409 )
...
width and height were being set using the incorrect axes resulting in incorrect canvas dimensions
Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
2022-06-01 21:13:39 +02:00
Arthur Sonzogni
ed5b4cec49
Fix: Forward gridbox
selected box. ( #408 )
...
This was discovered in:
https://github.com/ArthurSonzogni/FTXUI/issues/407
2022-05-28 22:35:52 +02:00
Arthur Sonzogni
11519ef1c6
Fix focus vs flexbox interaction. ( #405 )
...
- Fix focus in flexbox. This required resetting the focus state at the
beginning of the ComputeRequirement(), because it can now run several
times.
This resolves:https://github.com/ArthurSonzogni/FTXUI/issues/399
- Add Box::Union.
- Add a preliminary implementation of forwarding selected_box from
within the flexbox.
2022-05-22 21:41:29 +02:00
Arthur Sonzogni
c033ca61ae
Remove NXXM. Execute IWYU. ( #397 )
2022-05-08 08:44:38 +02:00
Arthur Sonzogni
a6e04b4346
Table: reset dimensions. ( #396 )
...
The table is not meant to be used to render more than once. Reset the
dimensions so that, even if it is used wrongly, this is not memory
unsafe.
This was raised by:
https://github.com/ArthurSonzogni/FTXUI/issues/381
2022-05-08 08:34:51 +02:00
ArthurSonzogni
c2e1920449
Execute IWYU.
2022-04-28 10:43:31 +02:00
ArthurSonzogni
d0890f94d1
execute IWYU and add some coverage tests.
2022-04-27 18:57:48 +02:00
ArthurSonzogni
84d6e6b3dd
Add additional coverage tests.
2022-04-27 14:00:46 +02:00
ArthurSonzogni
5ba301d316
Add coverage for terminal_input_parser.
2022-04-27 11:11:32 +02:00
Arthur Sonzogni
06ed8567b8
Add coverage for colors (extended) ( #385 )
2022-04-27 09:28:48 +02:00
Arthur Sonzogni
04b36df567
Coverage decorator ( #384 )
...
Add code coverage for colors and decorators.
2022-04-26 17:04:34 +02:00
Arthur Sonzogni
764c24ef40
Add code coverage support. ( #378 )
2022-04-17 15:47:20 +02:00
Arthur Sonzogni
aebde94352
Add clang-tidy. ( #368 )
2022-03-31 02:17:43 +02:00
Arthur Sonzogni
c76612a3c8
Fix error with invalid float in the gauge component. ( #356 )
2022-03-13 22:30:05 +01:00
Arthur Sonzogni
4da63b9260
Animation ( #355 )
2022-03-13 18:51:46 +01:00
Kefu Chai
95c766e9e4
Component decorators ( #354 )
...
Add decorator variants for decorator components
Add the "pipe" operator for components, similar to what was done for Elements.
We are able to put something like:
```
Button(...) | Maybe(&show_button)
```
Add decorators for:
- `Maybe`
- `CatchEvent`
- `Renderer`
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
2022-03-12 15:18:36 +01:00
Arthur Sonzogni
9b83205b3e
Fix vscroll-indicator size and offset. ( #334 )
2022-02-14 02:44:57 +01:00
Arthur Sonzogni
5da7b8a59a
Fix automerge in tables. ( #333 )
2022-02-13 11:41:31 +01:00
Arthur Sonzogni
8ba3698437
Gauge direction ( #326 )
...
Add `gauge` with all the different directions.
Co-authored-by: Aleksandar Brakmic <13668697+brakmic-aleksandar@users.noreply.github.com>
2022-02-06 19:17:21 +01:00
Nikola Dućak
689d5dd299
Replace std::clamp with util::clamp and reformat the code ( #321 )
...
* Replace std::clamp with util::clamp
* Apply clang-format
* Execute ./tools/iwyu.sh
Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
2022-02-05 15:03:45 +01:00
Arthur Sonzogni
6039474a26
Automerge feature. ( #313 )
...
Add the `automerge` attribute to the Pixel bit field. It controls
whether two pixels must be automerged. Defining this allows two
mergeable characters not to be merged.
This was requested by:
https://github.com/ArthurSonzogni/FTXUI/issues/285
2022-01-22 15:38:01 +01:00
Arthur Sonzogni
3829734fa9
Fix table separator ( #311 )
2022-01-21 23:02:29 +01:00