C++: Api changes in the WindowAdapter

- s/physical_size/size/ (consistant with the slint::Window API)
 - remove const of virtual function  (they don't need to be const and
   make implementation potentially easier)
 - Move the WindowProperties in it
This commit is contained in:
Olivier Goffart 2023-08-30 13:40:02 +02:00 committed by Olivier Goffart
parent 465fe20478
commit c47e6cd029
5 changed files with 83 additions and 87 deletions

View file

@ -62,7 +62,7 @@ struct MyWindowAdapter : public slint::platform::WindowAdapter
slint::platform::AbstractRenderer &renderer() override { return m_renderer.value(); }
slint::PhysicalSize physical_size() const override
slint::PhysicalSize size() override
{
RECT r;
GetWindowRect(hwnd, &r);