mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-01 20:31:27 +00:00
c++: Turn (Logical|Physical)(Size|Position)` into structs
They used to declared by `using` before, so they were too easy to convert into.
This commit is contained in:
parent
0b29727aa5
commit
e14fae45cd
3 changed files with 30 additions and 7 deletions
|
|
@ -182,7 +182,7 @@ public:
|
|||
|
||||
slint::PhysicalPosition position() const
|
||||
{
|
||||
slint::PhysicalPosition pos { 0, 0 };
|
||||
slint::PhysicalPosition pos;
|
||||
cbindgen_private::slint_windowrc_position(&inner, &pos);
|
||||
return pos;
|
||||
}
|
||||
|
|
@ -197,7 +197,10 @@ public:
|
|||
cbindgen_private::slint_windowrc_set_physical_position(&inner, &pos);
|
||||
}
|
||||
|
||||
slint::PhysicalSize size() const { return cbindgen_private::slint_windowrc_size(&inner); }
|
||||
slint::PhysicalSize size() const
|
||||
{
|
||||
return slint::PhysicalSize(cbindgen_private::slint_windowrc_size(&inner));
|
||||
}
|
||||
|
||||
void set_logical_size(const slint::LogicalSize &size)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue