slint/api/cpp/include
Simon Hausmann b1f408f683 Fix build of generated C++ code when using transitions on int properties with esp-idf
The energy monitor declares a transition on an animated int property,
for which Property<int>::set_animated_binding_for_transition is called,
which in turn calls slint_property_set_animated_binding_helper. The
latter is overloaded for various property types, such as float, Color,
or Brush, and then calls specialized functions from ffi, such as

slint_property_set_animated_binding_(int|float|etc.).

slint_property_set_animated_binding_int uses i32 in Rust, which cbindgen
maps to int32_t, so the
slint_property_set_animated_binding_helper overload also uses int32_t.

Unfortunately, with esp-idf, int32_t is a distinct type from int, and
the overload resolution fails.

As remedy, this change uses c_int instead of i32 in the Rust ffi, which
maps to int.

This seems easier than changing Property<int> to Property<int32_t> :-)
2024-03-12 20:25:00 +01:00
..
slint-interpreter.h C++ Interpreter: Add support for setting the translation domain 2024-02-22 16:58:38 +01:00
slint-platform.h C++: minimize/maximize/fullscreen API on Window 2024-02-22 13:17:50 +01:00
slint.h C++: fix the FilterModel's row_removed 2024-02-05 12:04:30 +01:00
slint_brush.h Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
slint_callbacks.h Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
slint_color.h Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
slint_config.h Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
slint_image.h Add 9slice information at runtime 2024-02-13 14:46:27 +01:00
slint_interpreter.h C++: rename slint_intepreter.h to slint-interpreter.h 2023-07-27 15:42:11 +02:00
slint_pathdata.h Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
slint_point.h Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
slint_properties.h Fix build of generated C++ code when using transitions on int properties with esp-idf 2024-03-12 20:25:00 +01:00
slint_sharedvector.h C++: add a STD feature enabled by default 2023-07-18 12:44:20 +02:00
slint_size.h Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
slint_string.h Fix SharedString::end() throwing an exception when MSVC iterator debugging is enabled (#4017) 2023-11-27 18:11:55 +01:00
slint_testing.h Remove the test function for sending double_click 2024-01-24 10:20:06 +01:00
slint_timer.h cpp: Make Timer available to other FFI-exported types 2023-12-01 18:47:00 +01:00
slint_window.h C++: minimize/maximize/fullscreen API on Window 2024-02-22 13:17:50 +01:00
vtable.h Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00