slint/internal/core
Ashley 13623bc152
Some checks are pending
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
CI / node_test (macos-14) (push) Blocked by required conditions
CI / files-changed (push) Waiting to run
CI / build_and_test (--exclude bevy-example, ubuntu-22.04, 1.85) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, --exclude bevy-example, windows-2022, 1.85) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, macos-14, stable) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, beta) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, stable) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / node_test (ubuntu-22.04) (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (macos-14) (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / python_test (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_test_driver (macos-14) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.85) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / docs (push) Blocked by required conditions
CI / wasm (push) Blocked by required conditions
CI / wasm_demo (push) Blocked by required conditions
CI / tree-sitter (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
CI / material-components (push) Blocked by required conditions
feature/fontique: switch femtovg to parley (#9466)
* Parlay init

* Start on femtovg

* Cargo fmt

* Decimate fonts.rs

* Use fill_glyphs

* [autofix.ci] apply automated fixes

* Use positioned_glyphs instead

* Clean up a little

* Format

* [autofix.ci] apply automated fixes

* Few fixes

* [autofix.ci] apply automated fixes

* More small changes

* Clean up

* [autofix.ci] apply automated fixes

* Display text cursor

* Handle text_input_cursor_rect_for_byte_offset

* stoke glyphs

* Handle text selections

* Stroke selection as well

* Fix wierd cargo.toml padding

* Move selection and stroking to brush settings

* Removed commented out code

* [autofix.ci] apply automated fixes

* Cursor sizing

* [autofix.ci] apply automated fixes

* Mark unused variables

* _scale -> scale

* Handle a lot more layout options

* Use the parley cursor

* Removed unused PhysicalPoint

* Start combining stuff WIP

* Move things into i_slint_core::textlayout::sharedparley

* [autofix.ci] apply automated fixes

* Go back to splitting paragraphs correctly

* Handle font_metrics via ttf_parser

* Move (lack of) overflow handling to sharedparley

* [autofix.ci] apply automated fixes

* impl Deref for Layout

* Be more explit about the width passed to layout being physical

* Cargo fmt, rename fonts to font_cache

* Use a thread local for layout context

* Use parley selection

* fix femtovg wgpu

* Switch femtovg branch

* max_physical_width -> max_width

* Box contexts

* [autofix.ci] apply automated fixes

* Fallback to GenericFamily::SansSerif if no font is set

* Add paint.set_font_size

* Use max_physical_height

* Fix text_size to return correct logical sizes

* Use femtovg from crates.io

* Fix C++ build

The `sharedparley` module declares a public `Layout` struct, which
clashes with the `Layout` struct we use in the C++ API. The former
however is entirely internal to Rust, so we can instruct cbindgen to
ignore the module.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2025-09-26 02:48:48 +12:00
..
graphics feature/fontique - switch femtovg over and use a default fontdb for usvg (#9426) 2025-09-24 16:54:09 +02:00
items Add DeleteToStartOfLine text shortcut for Cmd + Backspace key on macOS 2025-09-16 09:02:37 +02:00
LICENSES Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
model Rust adapter model: don't panic over broken model returning None from row_data 2025-08-22 13:27:35 +02:00
properties Fix crash in change callback evaluation 2025-06-25 09:32:20 +02:00
software_renderer feature/fontique: Remove fontdb, adapt glyph embedding code (#9434) 2025-09-24 16:54:09 +02:00
textlayout feature/fontique: switch femtovg to parley (#9466) 2025-09-26 02:48:48 +12:00
window Update popup.rs 2025-06-21 08:00:10 +02:00
accessibility.rs Expose more kinds of text edit widgets to AccessKit 2025-03-17 14:27:08 +01:00
animations.rs Add assertions for clocks monotonicity (#9514) 2025-09-24 18:20:48 +02:00
api.rs Docs: document that window_handle may not work immediatly 2025-09-12 10:04:58 +02:00
callbacks.rs Upgrade cbindgen and use unsafe(no_mangle) attributes (#8539) 2025-05-26 11:21:33 +02:00
Cargo.toml feature/fontique: switch femtovg to parley (#9466) 2025-09-26 02:48:48 +12:00
component_factory.rs ComponentHandle: don't rely on the Inner to be a VRc<ItemTreeVTable> 2025-07-04 10:07:22 +02:00
context.rs Janitor: Always use `#![no_std] for runtime lib 2025-01-27 19:22:00 +01:00
date_time.rs Upgrade cbindgen and use unsafe(no_mangle) attributes (#8539) 2025-05-26 11:21:33 +02:00
future.rs Janitor: Always use `#![no_std] for runtime lib 2025-01-27 19:22:00 +01:00
graphics.rs feature/fontique: switch femtovg to parley (#9466) 2025-09-26 02:48:48 +12:00
input.rs Add DeleteToStartOfLine text shortcut for Cmd + Backspace key on macOS 2025-09-16 09:02:37 +02:00
item_focus.rs Janitor: Always use `#![no_std] for runtime lib 2025-01-27 19:22:00 +01:00
item_rendering.rs Change the Rotate item to a Transform that supports scaling (#9387) 2025-09-15 21:14:33 +12:00
item_tree.rs Change the Rotate item to a Transform that supports scaling (#9387) 2025-09-15 21:14:33 +12:00
items.rs Change the Rotate item to a Transform that supports scaling (#9387) 2025-09-15 21:14:33 +12:00
layout.rs core: Fix constraints for empty layout 2025-09-24 18:20:13 +02:00
lengths.rs Add support for rotation to the partial renderer 2025-01-23 09:17:54 +01:00
lib.rs Refactor Apple platform detection for keyboard input handling 2025-09-16 09:02:37 +02:00
menus.rs support for menus with checkmarks (#9056) 2025-08-21 09:07:01 +02:00
model.rs CI: Fix lifetime annotation warnings in model types 2025-06-06 12:09:09 +02:00
platform.rs Add assertions for clocks monotonicity (#9514) 2025-09-24 18:20:48 +02:00
properties.rs janitor: cargo fmt 2025-07-30 12:26:43 +02:00
README.md Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
renderer.rs Handle rotating mouse events (#9317) 2025-09-12 00:13:14 +12:00
rtti.rs Experimental support for Drag & Drop 2025-06-26 15:39:18 +02:00
sharedvector.rs Speed up Extend<char> impl for SharedString 2025-07-29 14:52:29 +02:00
slice.rs Fix clippy issues, plus a few manual cleanups 2025-02-06 17:28:51 +01:00
software_renderer.rs Change the Rotate item to a Transform that supports scaling (#9387) 2025-09-15 21:14:33 +12:00
string.rs Speed up Extend<char> impl for SharedString 2025-07-29 14:52:29 +02:00
tests.rs Upgrade cbindgen and use unsafe(no_mangle) attributes (#8539) 2025-05-26 11:21:33 +02:00
textlayout.rs feature/fontique: switch femtovg to parley (#9466) 2025-09-26 02:48:48 +12:00
timers.rs Timer: Don't panic if starting timers while drop'ing thread_locals 2025-07-11 12:24:44 +02:00
translations.rs Upgrade cbindgen and use unsafe(no_mangle) attributes (#8539) 2025-05-26 11:21:33 +02:00
unsafe_single_threaded.rs MCU: fix timer not starting if started before first call to update_timers_and_animations 2025-09-08 16:27:12 +02:00
window.rs Hide Android selection handles when scrolled out of view 2025-09-16 08:50:29 +02:00

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.