Ashley
710f0c1968
Styled Text: add a macro and functions for parsing markdown ( #10060 )
...
* Add markdown macro and parse/escape functions
* Markdown stuff
* Implement escape markdown, handle trailing literal sections
* add StyledText Type and Value
* Implement more things
* [autofix.ci] apply automated fixes
* Rename MarkdownText to StyledText
* Add comments and solve warnings
* Apply automated fixes
* Fill out styled text type
* Change rendertext trait to use enum
* Add allow missing docs to stuff
* Fix testing backend thing
* Move test
* Don't use std:: for certain types
* Fix api/node
* [autofix.ci] apply automated fixes
* Rename to StyledTextItem
* Ignore styledtext in cpp for now
* Remove whitespace change
* Add tests, cpp generator changes
* Add markdown interpolation tests
* Add more tests, some fixes
* Implement some StyledText things
* Fix sharedparley imports
* Manually implement StyledText cpp type
* [autofix.ci] apply automated fixes
* Fix escape and parse markdown functions
* [autofix.ci] apply automated fixes
* Add ignore pyi, documentation for cpp styled text
* Apply some suggestions
* [autofix.ci] apply automated fixes
* Add cpp functions for styled text
* [autofix.ci] apply automated fixes
* Add documentation
* Fix api exports
* class -> struct
* Gate exports behind shared-parley
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-01 22:58:56 +13:00
Olivier Goffart
a0192d443e
C++: Fix ABI mismatch with Slice on MSVC AArch64
...
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-2025-08-15) (push) Blocked by required conditions
CI / node_test (macos-14) (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 / cpp_test_driver (macos-13) (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 (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (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 / android (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
The second constructor of `Slice` causes the Slice to be passed
differently (in different register) as a return value.
So remove that constructor and use a helper function to
construct a Slice
2025-08-19 15:05:48 +02:00
U. Bruhin
68b46276af
C++: Add clear() method to SharedString ( #8797 )
...
A convenience method to reset to an empty string, like already known
from std::string.
ChangeLog: [C++] Added `SharedString::clear()`
2025-06-27 13:44:37 +02:00
FloVanGH
6ebce7e5f4
cpp: added to_lowercase and to_uppercase to SharedString ( #6869 )
...
* cpp: added to_lowercase and to_uppercase to SharedString
* Update api/cpp/include/slint_string.h
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update api/cpp/include/slint_string.h
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update api/cpp/include/slint_string.h
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update api/cpp/include/slint_string.h
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/core/string.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/core/string.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/core/string.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/core/string.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* code review feedback
* Update api/cpp/tests/datastructures.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* code review feedback
* Update api/cpp/include/slint_string.h
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update api/cpp/include/slint_string.h
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-11-21 18:53:02 +00:00
U. Bruhin
40811193aa
C++: Add size() method to SharedString ( #6417 )
...
The length is an important property of a string and should be available
as a getter. The new size() method is consistent with std::string.
ChangeLog: [C++] Added `SharedString::size()`
2024-10-01 14:51:56 +02:00
Simon Hausmann
650f19a33c
Re-run clang-format with version 18
2024-06-10 02:25:40 -07:00
Aurindam Jana
3523e86359
Simplify commercial license ( #3063 )
...
Base the commercial license on the Royalty-free license adding clauses pertaining to the fees.
2024-05-31 14:06:17 +02:00
Aurindam Jana
9a3aa265d5
Update Royalty-free license ( #5257 )
...
Add clarification that Application may not expose Slint APIs.
2024-05-31 10:53:19 +02:00
Aurindam Jana
0cfeec1a31
Update Slint Community License ( #4994 )
...
Updated the version from 1.1 to 1.2
Renamed the header to "Slint Royalty-free Desktop, Mobile, and Web Applications License"
Added definition of "Mobile Application" and grant of right
Moved "Limitations" to 3rd section and "License Conditions - Attributions" to 2nd section
Added flexibility to choose between showing "MadeWithSlint" as a dialog/splash screen or on a public webpage
Moved the para on copyright notices to section under "Limitations"
2024-04-15 15:18:55 +02:00
Simon Hausmann
42d575262e
Fix SharedString::end() throwing an exception when MSVC iterator debugging is enabled ( #4017 )
...
Don't dereference end() of a string_view.
Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2023-11-27 18:11:55 +01:00
Olivier Goffart
0a8f9c585a
C++: expose special key codes constants
2023-07-31 15:11:57 +02:00
Aurindam Jana
5a4a7fee63
Update royalty free license to 1.1 ( #2994 )
2023-07-10 10:12:11 +02:00
Olivier Goffart
11dea135f7
Domain: slint-ui.com -> slint.dev
2023-06-16 10:55:08 +02:00
Aurindam Jana
039e54a5de
Add royalty free license to files except examples and docs ( #2888 )
2023-06-15 11:20:50 +02:00
Olivier Goffart
ca6dfc0cb5
Run clang-format over C++ files
2022-08-17 07:44:22 +02:00
Tobias Hunger
4230ac2572
Update copyright information to reflect name change
...
Also run resue over the codebase and fix complaints from that tool.
2022-02-09 10:27:47 +01:00
Simon Hausmann
f48d7d9f9e
SixtyFPS -> Slint in the C++ documentation
2022-02-02 15:19:13 +01:00
Simon Hausmann
fcf59f3793
Rename the C++ header files
2022-02-02 13:07:26 +01:00