mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Use Point2D in the C++ ffi when setting the window position
This commit is contained in:
parent
94b4f81be6
commit
d6f8048232
3 changed files with 10 additions and 4 deletions
|
@ -19,4 +19,11 @@ struct Point
|
|||
bool operator==(const Point &other) const = default;
|
||||
};
|
||||
|
||||
namespace cbindgen_private {
|
||||
// The Size types are expanded to the Point2D<...> type from the euclid crate which
|
||||
// is binary compatible with Point<T>
|
||||
template<typename T>
|
||||
using Point2D = Point<T>;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue