mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
C++: Make the SkiaRenderer constructor explicit
As discussed in API review
This commit is contained in:
parent
7649153b3e
commit
68a255b1d2
1 changed files with 1 additions and 1 deletions
|
@ -479,7 +479,7 @@ public:
|
|||
SkiaRenderer &operator=(const SkiaRenderer &) = delete;
|
||||
/// Constructs a new Skia renderer for the given window - referenced by the provided
|
||||
/// WindowHandle - and the specified initial size.
|
||||
SkiaRenderer(const NativeWindowHandle &window_handle, PhysicalSize initial_size)
|
||||
explicit SkiaRenderer(const NativeWindowHandle &window_handle, PhysicalSize initial_size)
|
||||
{
|
||||
inner = cbindgen_private::slint_skia_renderer_new(window_handle.inner, initial_size);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue