mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-02 04:48:27 +00:00
janitor: Go over our spell checking setup
* Extend the cspell word list * Remove those extensions from individual source files * white-list licenses and such as we should not meddle with those * Fix spelling
This commit is contained in:
parent
ef39adce30
commit
b12575a4c4
84 changed files with 236 additions and 219 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<!-- Copyright © SixtyFPS GmbH <info@slint.dev> ; SPDX-License-Identifier: MIT -->
|
||||
<!-- cSpell: ignore ccmake dslint femtovg skia winit -->
|
||||
<!-- cSpell: ignore ccmake dslint femtovg -->
|
||||
|
||||
# Installing Or Building With CMake
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ First you need to install the prerequisites:
|
|||
|
||||
* Install Rust by following the [Rust Getting Started Guide](https://www.rust-lang.org/learn/get-started). If you already
|
||||
have Rust installed, make sure that it's at least version 1.60 or newer. You can check which version you have installed
|
||||
by running `rustc --version`. Once this is done, you should have the ```rustc``` compiler and the ```cargo``` build system installed in your path.
|
||||
by running `rustc --version`. Once this is done, you should have the `rustc` compiler and the `cargo` build system installed in your path.
|
||||
* **[cmake](https://cmake.org/download/)** (3.21 or newer)
|
||||
* A C++ compiler that supports C++20 (e.g., **MSVC 2019 16.6** on Windows)
|
||||
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ private:
|
|||
///
|
||||
/// If the implementation of this bi-directional message passing protocol is incomplete, the user
|
||||
/// may experience unexpected behavior, or the intention of the developer calling functions on the
|
||||
/// Window API may not be fullfilled.
|
||||
/// Window API may not be fulfilled.
|
||||
///
|
||||
/// Your WindowAdapter subclass must hold a renderer (either a SoftwareRenderer or a SkiaRenderer).
|
||||
/// In the renderer() method, you must return a reference to it.
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ public:
|
|||
///
|
||||
/// Safety:
|
||||
///
|
||||
/// This function is unsafe because invalid texture ids may lead to undefind behavior in OpenGL
|
||||
/// This function is unsafe because invalid texture ids may lead to undefined behavior in OpenGL
|
||||
/// drivers. A valid texture id is one that was created by the same OpenGL context that is
|
||||
/// current during any of the invocations of the callback set on
|
||||
/// [`Window::set_rendering_notifier()`]. OpenGL contexts between instances of [`slint::Window`]
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ mod allocator {
|
|||
if align <= core::mem::size_of::<usize>() {
|
||||
malloc(layout.size()) as *mut u8
|
||||
} else {
|
||||
// Ideally we'd use alligned_alloc, but that function caused heap corruption with esp-idf
|
||||
// Ideally we'd use aligned_alloc, but that function caused heap corruption with esp-idf
|
||||
let ptr = malloc(layout.size() + align) as *mut u8;
|
||||
let shift = align - (ptr as usize % align);
|
||||
let ptr = ptr.add(shift);
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ struct CppPlatform {
|
|||
window_factory: unsafe extern "C" fn(PlatformUserData, *mut WindowAdapterRcOpaque),
|
||||
#[cfg(not(feature = "std"))]
|
||||
duration_since_start: unsafe extern "C" fn(PlatformUserData) -> u64,
|
||||
// silent the warning depite `Clipboard` is a `#[non_exhaustive]` enum from another crate.
|
||||
// silent the warning despite `Clipboard` is a `#[non_exhaustive]` enum from another crate.
|
||||
#[allow(improper_ctypes_definitions)]
|
||||
set_clipboard_text: unsafe extern "C" fn(PlatformUserData, &SharedString, Clipboard),
|
||||
#[allow(improper_ctypes_definitions)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue