Olivier Goffart
9571889861
esp-idf: assert that malloc succeeds when allocating line buffer
...
This allocates quite a lot of memory and is likely to fail.
Make it easier to debug
2025-02-28 07:59:22 +01:00
Simon Hausmann
e1a6cbf8b4
Add links to the slint-build crate
2025-02-26 16:46:36 +01:00
autofix-ci[bot]
eae4f21e24
[autofix.ci] apply automated fixes
2025-02-26 14:39:51 +01:00
Simon Hausmann
28da9bd996
C++: Clean up boolean accessible property getters
...
Share the code to convert the string to a boolean.
2025-02-26 14:39:51 +01:00
Olivier Goffart
da9fbebf18
esp-idf line by line renderer: use two line buffer
...
esp_lcd_panel_draw_bitmap is async so we should render in a different
buffer.
2025-02-25 21:37:36 +01:00
Simon Hausmann
beebffe829
C++ cleanup: Move the experimental render() overloads after the stable functions
2025-02-25 17:23:11 +01:00
Simon Hausmann
4d8f99e35d
c++: Mark experimental target pixel buffer as experimental in the docs
2025-02-25 17:23:11 +01:00
dependabot[bot]
3486a19a4b
build(deps-dev): bump typedoc from 0.27.7 to 0.27.8 ( #7716 )
...
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc ) from 0.27.7 to 0.27.8.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases )
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.27.7...v0.27.8 )
---
updated-dependencies:
- dependency-name: typedoc
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-25 10:45:24 +02:00
Olivier Goffart
278e140147
Fix typo
2025-02-25 09:18:46 +01:00
Olivier Goffart
7390df1b47
ContextMenuArea: Intercept long press on Android
2025-02-24 18:27:25 +01:00
Simon Hausmann
f114ff28dd
Rename TargetPixelBuffer::Pixel to ::TargetPixel
2025-02-24 17:02:10 +01:00
Simon Hausmann
910d45a01f
Fix window background fill
...
Don't blend the background but fill it when going through ProcessScene.
2025-02-24 17:02:10 +01:00
Simon Hausmann
247074b5e7
Simplify accelerated texture and rectangle fills
...
There's no need to split the areas to span lines.
2025-02-24 17:02:10 +01:00
Simon Hausmann
5518720391
Fix docs about fixed point format for source texture offsets
2025-02-24 17:02:10 +01:00
Simon Hausmann
f6d61c1b09
Improve API for C++ TargetPixelBuffer::draw_texture's blending color
2025-02-24 17:02:10 +01:00
Simon Hausmann
b896cc394b
Fix the build with the experimental feature turned off
2025-02-24 17:02:10 +01:00
Simon Hausmann
efb2223db0
Some C++ docs for TargetPixelBuffer and related types
2025-02-24 17:02:10 +01:00
Simon Hausmann
9e515710ed
Expose screen rotation in the TargetPixelBuffer's draw_texture as integral angle
2025-02-24 17:02:10 +01:00
Simon Hausmann
df6c99871d
Change TargetPixelBuffer's draw_texture function to take a data structure instead of many arguments
2025-02-24 17:02:10 +01:00
Sam Cristall
491cb2f911
Add span_y to draw_texture to fix partial texture draws
2025-02-24 17:02:10 +01:00
Sam Cristall
3855cf6b9c
Add draw_texture/process_texture and use accelerated fill_rectangle for background draw
2025-02-24 17:02:10 +01:00
Simon Hausmann
fbee7f9566
WIP: Start wrapping TargetPIxelBuffer in C++
2025-02-24 17:02:10 +01:00
Simon Hausmann
ecd0bc1782
Node.js: Remove windows x86 packages
...
Skia doesn't compile on windows x86 in the CI due the long paths that
exceed the 255 limit. Somehow the workaround that works for x64 doesn't
work here. Since this is the only windows x86 binary we produce
(not for lsp, vsce, python, cpp), I choose the easier way out and
remove the package.
2025-02-24 10:06:39 +01:00
Olivier Goffart
c3e32c1665
Don't enable image-default-formats by default, remove compat-1-10 feature
...
We decided that the compatibility with people having enabled the extra
format in image 0.24 [1] is not worth it compared to the extra compilation
time most people gets by default when they don't need this feature.
(Which is less than 10% slower when the feature is enabled)
Since then there is no need for compat-1-10, remove it
[1] by depending directly on image 0.24 in their Cargo.toml and enabling
the features, which will not work with Slint 1.10 that now use image 0.25
2025-02-22 11:15:18 +01:00
Olivier Goffart
290468fb55
C++: Stabilize line by line renderer
...
Fixes https://github.com/slint-ui/slint/issues/7505
ChangeLog: C++: Added `SoftwareRenderer::render_by_line`.
2025-02-21 16:24:03 +01:00
Simon Hausmann
ecd8f8d00b
Add support for nightly esp-idf builds ( #7687 )
2025-02-21 12:19:23 +01:00
Olivier Goffart
1e814c9bdc
Stabilize the sdf-fonts feature
...
Enable the SDF feature by default in our compiler binaries
(Still disabled by default for other users because it takes up compile
time for something they probably don't need)
2025-02-19 21:24:53 +01:00
Olivier Goffart
210f0bd045
Revert "fix(node): prevent 100% CPU usage on Wayland by enforcing minimum eve…"
...
This reverts commit 417eaeb38a .
2025-02-19 13:48:10 +01:00
Arnold Loubriat
cc91de2d38
Add the accessible-read-only property
2025-02-19 09:16:41 +01:00
Olivier Goffart
e5c27d57ca
esp-idf: Fix rendering of rotated and single buffering
...
... or byte swapped.
We need to take the right stride which might be the height if it is
rotated
https://github.com/slint-ui/slint/issues/7597#issuecomment-2661975754
2025-02-19 09:11:39 +01:00
Olivier Goffart
07803ccd6c
C++: support for RGB8 in the line by line rendering
...
Note: this adds a mendatory template parametter to the
(experimental) `render_by_line` function.
I tried to get the PixelType auto-detected from the callback but i
didn't manage
2025-02-19 09:11:10 +01:00
Simon Hausmann
48fbf887aa
Python: Hide internal CompileError constructor from docs
2025-02-19 08:52:26 +01:00
Simon Hausmann
45b55b8a8c
Python: Remove builtins. namespace use
2025-02-19 08:52:26 +01:00
Simon Hausmann
1fc0c79cbd
Python: Run ruff linter
2025-02-19 08:52:26 +01:00
Simon Hausmann
18032e13b4
Python: Remove type ignore comments
2025-02-19 08:52:26 +01:00
autofix-ci[bot]
650e0ef775
[autofix.ci] apply automated fixes
2025-02-16 14:04:13 +00:00
Simon Hausmann
5a31ad437e
Python: Improve load_file signature's return type
2025-02-16 08:58:47 +00:00
Simon Hausmann
f0f2880430
Python: Add missing Model[T].set_row_data function
2025-02-16 08:58:47 +00:00
Simon Hausmann
3358bc24e3
Format Python files with ruff
2025-02-16 08:58:47 +00:00
Simon Hausmann
9001966dc9
Python: Fix mypy also on the Slint module implementation
2025-02-16 08:58:47 +00:00
Simon Hausmann
607d70b3fa
Python: run mypy on the tests
2025-02-16 08:58:47 +00:00
Simon Hausmann
c111098e49
Python: Add more type stubs to the internal Rust API
2025-02-16 08:58:47 +00:00
Simon Hausmann
2d89d6b666
Python: move rust originated types into dedicated .pyi file
...
That way annotations from __init__.py will get used, instead of
ignored because of the existence of __init__.pyi.
2025-02-12 08:48:45 +01:00
Simon Hausmann
3b367dcc0b
Python: Include @slint.callback in the doc reference
...
(Docs to be written)
- Also fix eq signature and avoid Self to fix links and mypy
2025-02-11 20:57:45 +01:00
Olivier Goffart
4f4bc787fb
esp-idf: deprecate old slint_esp_init variant and restore 1.6 compatibility
...
Only support the one that take a configuration
ChangeLog: esp-idf: Deprecate old version of `slint_esp_init` and restore 1.6 behavior with regards to color swap
Fix : #7597
2025-02-11 12:54:39 +01:00
dependabot[bot]
938634707d
build(deps-dev): bump typedoc from 0.27.6 to 0.27.7 ( #7584 )
...
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc ) from 0.27.6 to 0.27.7.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases )
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.27.6...v0.27.7 )
---
updated-dependencies:
- dependency-name: typedoc
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-11 10:50:40 +02:00
Simon Hausmann
5564972e82
Doc wrong Code fence and work around pdoc bug
...
It seems that with two subsequent fences the second one isn’t rendered.
2025-02-09 20:51:00 +01:00
Simon Hausmann
ddfb18b3cc
doc: fix bullet numbering
2025-02-09 20:32:21 +01:00
Simon Hausmann
94c655731f
Add Python typings for Rust declared types ( #7575 )
...
This comes with a bump of the Python version to 3.11
due to the need for typing.Self.
2025-02-09 16:06:34 +01:00
Simon Hausmann
30aefd4957
Python: Some Image docs
2025-02-09 13:50:26 +01:00