LLeon MatthesShortcut: Add enabled property
| Files | Last commit | Last update |
|---|---|---|
Simplify commercial license (#3063) Base the commercial license on the Royalty-free license adding clauses pertaining to the fees. | 2 years ago | |
Minor clippy fixes: comment typos, &'static, Error::other, is_err, unwrap_or_default, etc. | 8 months ago | |
Shortcut: Add enabled property During discussion in issue #102 it was agreed that this property should exist as an alternative to putting the shortcut in an if statement. | 8 months ago | |
SortModel: relax the bounds of some of the functions such as reset and sort_model, they should work regardless if the model was created with new or new_ascending | 10 months ago | |
Minor clippy fixes: comment typos, &'static, Error::other, is_err, unwrap_or_default, etc. | 8 months ago | |
Clippy fixes in core, backends and lsp | 8 months ago | |
Update popup.rs | 1 year ago | |
parley: Implement caching of parley layouts The result of shaping is cached in a per-renderer ItemCache. The cache can't be used for the size hints needed for layouts (as the word break changes as is used for shaping). The line breaking is also not re-used, but nevertheless this should reduce the amount of time spent rendering text. cc #10087 cc #2306 | 8 months ago | |
Remove license header from .md/.mdx files They should be in the lines, but the problem is that this causes issues in the .mdx files. License header doesn't really make sense for .md files anyway | 11 months ago | |
core: Switch to edition 2024 and just reformat Warnings fixed in follow-up commit | 1 year ago | |
| 1 year ago | ||
refactor: remove KeyboardModifiers from the public API exports of api.rs. | 8 months ago | |
core: Fix edition 2024 warnings | 1 year ago | |
ComponentHandle: don't rely on the Inner to be a VRc<ItemTreeVTable> Because i want to be able to hold componetns that do not directly implement ItemTreeVTable, but only forward to it | 1 year ago | |
software renderer & compiler: Replace fontdue with swash (#10825) Use swash to pre-compile glyphs in the compiler as well as rendering them at run-time with the systemfonts feature. This eliminates a dependency (fontdue, swash already exists via femtovg) and speeds up the screenshot drivers test. | 9 months ago | |
Upgrade cbindgen and use unsafe(no_mangle) attributes (#8539) To be compatible with the 2024 edition, we need to wrap the no_mangle attribute in unsafe(). The parsing for that in cbindgen was only added in the version 0.28, but we couldn't upgrade cbindgen before because of a regression in cbindgen 0.27 that prevented us from upgrading. Now that cbindgen 0.29 is released with a fix, we can prepare for the 2024 edition | 1 year ago | |
core: Switch to edition 2024 and just reformat Warnings fixed in follow-up commit | 1 year ago | |
Implement gdb pretty printer for SharedVector and Slice Before: (gdb) p self $1 = (*mut i_slint_core::sharedvector::SharedVector<u16>) 0x7ffff7452330 (gdb) p *self $2 = i_slint_core::sharedvector::SharedVector<u16> { inner: core::ptr::non_null::NonNull<i_slint_core::sharedvector::SharedVectorInner<u16>> { pointer: 0x5555562c9890 } } (gdb) p * repeater_indices $31 = i_slint_core::slice::Slice<u32> { ptr: core::ptr::non_null::NonNull<u32> { pointer: 0x555555698538 }, len: 2, phantom: core::marker::PhantomData<&[u32]> } After: (gdb) p *self $18 = <SharedVector, len=20> = {0, 1, 0, 2, 8, 9, 10, 11, 1, 2, 1, 3, 1, 1, 2, 4, 2, 2, 3, 5} (gdb) p * repeater_indices $34 = <Slice, len=2> = {1, 3} The debugger_visualizer makes gdb load the pretty printer automatically, when reading the debug info for the i-slint-core library. | 11 months ago | |
Add #[allow(...)] attributes to suppress clippy warnings For skia/cached_image.rs: When i-slint-core has WGPUTexture but the skia renderer doesn't have wgpu features, the match arm above is not compiled yet the variant may exist. The wildcard provides coverage; it is unreachable when all variants are already handled above. | 8 months ago | |
@keys: Use ? instead of Ignore* This is the preferred syntax as discussed in #102 | 8 months ago | |
Janitor: Always use #![no_std] for runtime lib And call extern crate std` when the feature is enabled. I've read this is the good practice on how to do it. So that the std prelude is no longer included automatically. There is then less difference between std and and no-std build which should avoid surprises in the CI when we use things from the prelude. The downside is that there is a bit of churn in the tests | 1 year ago | |
Simplify text layout caching data structure Instead of a Rc<RefCell<Option<>>> make it possible to obtain a RefMut from the ItemCache and use that in the guard instead. | 8 months ago | |
Expose layout kind through the test protocol Encode the layout kind (h-box, v-box, grid, flex-box) as a third field in the debug info string emitted by the compiler, and surface it through ItemRc, ElementHandle, and the systest protobuf protocol. This allows test tooling to distinguish layout elements from plain rectangles. | 8 months ago | |
Shortcut element (#10798) * Add a Shortcut element This element can be placed inside a FocusScope and provides an activated callback when the shortcut is activated. * Add C++ test for Shortcut element * Add Shortcut documentation * [autofix.ci] apply automated fixes * FocusScope: Activate one shortcut at maximum * Compiler: Duplicate shortcuts warning * Incoporate feedback by @tronical * Add note-level diagnostics --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> | 9 months ago | |
GridLayout: switch to a new cache format, to later allow nested repeaters (#10866) Use a single jump cell for repeaters in grid layouts (rather than one per child of a repeated row). From there we jump to an area that has entries for all the children in that row. This will allow to make that area of a dynamic size in a later commit, to support nested repeaters. This commit already has some bits that will be useful later, like the fact that inner_rep_idx is an Expression even if right now it's always set to a literal value. Same for stride_h_expr and friends. Overall this is a no-op feature wise, just a different cache format. | 8 months ago | |
Implemented a Size and Edges type in the Slint language (#10576) * Implemented a Size and Edges type in the Slint language, using it for the safe area and virtual keyboard. * Fixed Android backend for PhysicalEdges name change. * Moved Edges type to private, hardcoded Size type. * Documentation fixes for the safe area insets and keyboard rectangle. Fixes #10545 | 9 months ago | |
Add #[allow(...)] attributes to suppress clippy warnings For skia/cached_image.rs: When i-slint-core has WGPUTexture but the skia renderer doesn't have wgpu features, the match arm above is not compiled yet the variant may exist. The wildcard provides coverage; it is unreachable when all variants are already handled above. | 8 months ago | |
Port to if-let-chains in internal/core | 8 months ago | |
refactor: Relocate StandardListViewItem and TableColumn to i_slint_core::items and update imports | 8 months ago | |
Port to if-let-chains in internal/core | 8 months ago | |
Remove (semi-)public WindowEvent::SafeAreaChanged Instead, use the private API from our backend. | 9 months ago | |
Fix more clippy warnings in internal/core | 8 months ago | |
fontique: Move process-global font collection into slint context (#10800) This is cleaner and an effort towards reducing the number of globals. | 9 months ago | |
refactor: Relocate StandardListViewItem and TableColumn to i_slint_core::items and update imports | 8 months ago | |
core: Fix edition 2024 warnings | 1 year ago | |
Lay out grids at runtime rather than at compile time This includes support for row and col properties to be expressions rather than just constants. | 1 year ago | |
Clippy fixes in core, backends and lsp | 8 months ago | |
Allow @markdown macros to be used as arguments to other @markdown macros (#10815) * String to styled text * Basic parsing from args of styledtext paragraphs * Adjust substitute function * Add error for multi paragraph interpolation * Add small fix * Add underline_and_italic test * Use to_string in rust generator * Same thing for cpp generator * Use ToString * Extend tests/cases/elements/styledtext.slint * Fix types/styled_text.slint test * Change slint.h * Add slint.h function | 9 months ago | |
Fix animation not working for ListView (#10399) Reason: The ListView is handled differently than the ScrollView. The ListView does not load all item instances, but tries to estimate the position from the height to improve performance Problem: When an animation is set after the mouse release and ensure_updated_listview() gets called due to the next mouse event, the viewport_y value gets overwritten to a new value even the values are equal. When setting a new value the binding to the animation is removed and any animation is applied Fixes: #7043 | 10 months ago | |
Fix more clippy warnings in internal/core | 8 months ago | |
Fix all remaining clippy warnings in core & core-macros | 8 months ago | |
Clippy fixes in core, backends and lsp | 8 months ago | |
Fix clippy warnings for printerdemo_mcu/pico-st7789 target - unsafe_single_threaded.rs: add Default impl for OnceCell, allow result_unit_err on try_with - image.rs: remove needless return Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> | 8 months ago | |
Fix more clippy warnings in internal/core | 8 months ago |
Slint Runtime Library
NOTE: This library is an internal crate of the Slint project.
This crate should not be used directly by applications using Slint.
You should use the slint crate instead.
WARNING: This crate does not follow the semver convention for versioning and can
only be used with version = "=x.y.z" in Cargo.toml.