mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
C++ platform API: Remove const qualified from request_redraw()
This commit is contained in:
parent
865f7a5091
commit
835510c7f6
3 changed files with 4 additions and 4 deletions
|
@ -68,7 +68,7 @@ class WindowAdapter
|
|||
},
|
||||
[](void *wa) { reinterpret_cast<const WindowAdapter *>(wa)->show(); },
|
||||
[](void *wa) { reinterpret_cast<const WindowAdapter *>(wa)->hide(); },
|
||||
[](void *wa) { reinterpret_cast<const WindowAdapter *>(wa)->request_redraw(); },
|
||||
[](void *wa) { reinterpret_cast<WindowAdapter *>(wa)->request_redraw(); },
|
||||
[](void *wa) -> cbindgen_private::IntSize {
|
||||
return reinterpret_cast<const WindowAdapter *>(wa)->physical_size();
|
||||
},
|
||||
|
@ -99,7 +99,7 @@ public:
|
|||
///
|
||||
/// You should not render the window in the implementation of this call. Instead you should
|
||||
/// do that in the next iteration of the event loop, or in a callback from the window manager.
|
||||
virtual void request_redraw() const { }
|
||||
virtual void request_redraw() { }
|
||||
|
||||
/// Returns the actual physical size of the window
|
||||
virtual slint::PhysicalSize physical_size() const = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue