mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
C++: Enable support for the Slint software renderer by default (#10217)
This is in line with Rust.
This commit is contained in:
parent
41be30ee6a
commit
ffee1e01fb
3 changed files with 5 additions and 3 deletions
|
|
@ -793,9 +793,11 @@ public:
|
|||
/// The first template parameter (PixelType) must be specified and can be either Rgb565Pixel or
|
||||
/// Rgb8Pixel.
|
||||
template<typename PixelType, typename Callback>
|
||||
# if !defined(__clang__) || __clang_major__ >= 17
|
||||
requires requires(Callback callback) {
|
||||
callback(size_t(0), size_t(0), size_t(0), [&callback](std::span<PixelType>) { });
|
||||
callback(size_t(0), size_t(0), size_t(0), [&callback](std::span<PixelType>) {});
|
||||
}
|
||||
# endif
|
||||
PhysicalRegion render_by_line(Callback process_line_callback) const
|
||||
{
|
||||
auto process_line_fn = [](void *process_line_callback_ptr, uintptr_t line,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue