Olivier Goffart
d2bd5366f4
Timer::set_interval
...
Don't return an Option, just return 0 when the timer is not started.
As discussed in the API review, the rational is that the interval is
just like a field in a struct and when the struct is default
constructed, it is initialized to 0
2024-09-18 09:24:39 +02:00
Simon Hausmann
4d585279b0
STM32: Add support for rendering rotation
2024-08-30 08:49:26 +02:00
Simon Hausmann
d78354f01b
Initial import of STM32 Platform Integration ( #5892 )
...
This is a head-only library for now.
2024-08-22 15:55:01 +02:00
Olivier Goffart
a9f526491a
Timer Element
...
Closes #5724
2024-08-16 16:36:38 +02:00
Olivier Goffart
0f8246d598
C++: add assert_main_thread to public functions in the Window
...
Some have it some don't. Just add it everywhere.
See https://github.com/slint-ui/slint/discussions/5762
2024-08-06 22:52:45 +02:00
Simon Hausmann
8a7db55bb6
Route debug() calls in Slint consistently through Platform's debug_log() ( #5718 )
2024-07-29 16:31:09 +02:00
Simon Hausmann
bda89c25da
Document that availability of slint::testing is conditional to enabling the feature and experimental features.
2024-07-11 11:47:09 +02:00
Simon Hausmann
27dc6e53c0
API review: enable all features in the C++ docs ( #5592 )
...
And make sure that functions excluded when freestanding is enabled are included in the docs.
2024-07-11 08:29:51 +02:00
Olivier Goffart
e67e46ab47
LLR: merge the popup's x and y property access in one expression
2024-07-10 17:54:03 +02:00
Simon Hausmann
419042f476
Add support for using own properties in PopupWindow's x and y properties
...
This allows positioning popup windows in a way that takes their width/height into account.
2024-07-10 13:43:41 +02:00
Olivier Goffart
42d7661ec6
C++: make the PhysicalRegion::rectangles non-overlapping
2024-07-10 10:58:27 +02:00
Arnold Loubriat
ce2db77e88
Add the accessible-placeholder-text
property ( #5464 )
2024-06-26 12:59:22 +02:00
Olivier Goffart
d0cdebfee6
C++: move globals in a different struct
...
So that subcomponent don't depend on the root component name
which will hallow to have several root components
2024-06-14 16:26:53 +02:00
Olivier Goffart
4cc6337c42
Rust: Don't get the default font size through the root component
...
Planning for multi-component support
2024-06-13 13:53:07 +02:00
Simon Hausmann
5247b0afae
Add ElementHandle::accessible_role() to the C++ API ( #5388 )
2024-06-13 06:32:25 +02:00
Olivier Goffart
58826ddd94
Testing C++ API: add a visitor over the ElementHandle
2024-06-10 15:52:40 +02:00
Simon Hausmann
88e1a366a3
Make rendering rotation a public feature of the software renderer
...
Fixes #5372
2024-06-10 05:24:48 -07:00
Simon Hausmann
650f19a33c
Re-run clang-format with version 18
2024-06-10 02:25:40 -07:00
Olivier Goffart
a780dd4905
Testing: Fix duplicated accessibility element
...
This fix the C++ todo test that wasn't run because of a typo
When an element is optimized in another one, only the first one should
report the accessible properties. (because element with accessible
properties cannot be optimized so they are always the first)
2024-06-07 13:18:12 +02:00
Olivier Goffart
445802c46d
date_time: simplification and cleanups
2024-06-06 09:03:50 +02:00
Simon Hausmann
37b63e4bd4
Add public API in the interpreter (Rust/C++) to obtain the list of functions
2024-06-05 14:06:10 -07:00
Florian Blasius
3ccee816be
Added TimePicker widget ( #5251 )
2024-06-05 15:23:06 +02:00
Simon Hausmann
622991a627
Fix ElementHandle::find_by_element_id docs
...
Describe what an id is and provide an example.
2024-06-05 01:29:58 -07:00
Simon Hausmann
7af0e7ae7c
Add C++ API for find_by_element_type_name
2024-06-05 01:29:58 -07:00
Simon Hausmann
a752851d0f
Expose element type names and ids in Rust and C++
2024-06-05 01:29:58 -07:00
Olivier Goffart
43a336b534
C++ part of element_ids
...
Simplify a bit the llr generation so that there is less code duplication
between Rust and C++
2024-06-05 01:29:58 -07:00
Simon Hausmann
623bae7732
Internalize hack for dynamic translations change so that it also works for Rust apps
2024-06-04 04:33:10 -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
Montel Laurent
f63523f708
Add increase/decrease support test ( #5224 )
2024-05-14 10:40:12 +02:00
Montel Laurent
c37c9d4f26
Testing: Add minimum/maximum support ( #5192 )
2024-05-10 16:18:02 +02:00
Simon Hausmann
eb85b7d359
Fix reset() on MappedModel
...
Use the right target template mapped type.
2024-05-09 10:50:49 +02:00
Montel Laurent
f8f3316dc1
Allow to check checkable support ( #5186 )
2024-05-07 13:44:14 +02:00
Olivier Goffart
6c58f4f492
C++ testing: gate under the experimental feature
2024-05-03 10:49:25 +02:00
Olivier Goffart
80f37a3acf
C++ ChangeTracker implementation
2024-05-02 22:25:53 +02:00
Olivier Goffart
12d904a71c
Fix compiler panic with init in a component inlined into a repeater
...
The problem was that the code from #4322 inlined the init code in the
parent Component as at that point, the per-repeater component don't
exist yet.
Fix it by removing the workaround from #4322 , but changing the order of
the passes so that the init code are already proccessed before any
inlining. This required to change the order of a bunch of passes.
Fixes #5146
As a drive-by, also add the missing C++ implementation of set_animated_value
for Brush that was discovered by the test. (Code wouldn't compile)
2024-04-29 15:34:12 +02:00
Olivier Goffart
15f09c9224
Testing: expose the description and the checked accessible property
...
also rename default_action to accessible_default_action
2024-04-26 15:09:37 +02:00
Olivier Goffart
5955d19706
Expose the individual rectangle in the dirty region
2024-04-26 14:45:23 +02:00
Simon Hausmann
31767eb6ab
Add a clear-focus()
function on all elements that have a focus()
function
...
This is the counter-part, which removes focus from the element if it's currently focused. The window - if focused - may still be focused towards the windowing system.
2024-04-26 11:09:11 +02:00
Simon Hausmann
7683f805a5
janitor: Remove dead code
...
Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2024-04-24 10:39:03 +02:00
Simon Hausmann
d8c1096149
Testing: Change ElementReference to be weak
...
We don't want testing variables to affect the life-cycle of elements in the UI.
2024-04-24 10:39:03 +02:00
Olivier Goffart
7c3f8683b7
C++: Move internal testing function to the internal namespace
...
Remove send_keyboard_char as it doesn't appear to be used
(while send_keyboard_string_sequence is used in a single test)
2024-04-23 11:19:14 +02:00
Olivier Goffart
475ced0a62
C++ testing API: Intreoduce the ElementHandle
2024-04-22 11:28:12 +02:00
Olivier Goffart
13fe59cc2e
C++: Move the internal test helper in the private_api namespace
...
in a different file
2024-04-22 11:28:12 +02:00
Olivier Goffart
808b1ef946
Add a function to mark translated strings as dirty
2024-04-18 19:23:57 +02:00
Olivier Goffart
0f05089d5e
Polish the C++ and Rust HSV API
2024-04-15 18:18:00 +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
a61ca93cd1
doc: Attempt to clarify how the factor of color's mix() function is applied
2024-04-15 09:05:54 +02:00
Olivier Goffart
31219223e5
C++: Gate the line by line rendering behind experimental flag
2024-04-04 10:23:00 +02:00
Olivier Goffart
48d1b96441
esp-idf: cleanup the line_by_line rendering
2024-04-04 10:23:00 +02:00