mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-29 13:24:48 +00:00
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:
parent
465fe20478
commit
c47e6cd029
5 changed files with 83 additions and 87 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue