mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-29 13:24:48 +00:00
Expose the individual rectangle in the dirty region
This commit is contained in:
parent
f45bab6a3f
commit
5955d19706
7 changed files with 117 additions and 29 deletions
|
@ -32,13 +32,13 @@ using Size2D = Size<T>;
|
|||
struct LogicalSize : public Size<float>
|
||||
{
|
||||
/// Explicitly convert a Size<float> to a LogicalSize
|
||||
explicit LogicalSize(const Size<float> s) : Size<float>(s) {};
|
||||
explicit constexpr LogicalSize(const Size<float> s = { 0, 0 }) : Size<float>(s) { }
|
||||
};
|
||||
/// A size given in physical pixels.
|
||||
struct PhysicalSize : public Size<uint32_t>
|
||||
{
|
||||
/// Explicitly convert a Size<uint32_t> to a LogicalSize
|
||||
explicit PhysicalSize(const Size<uint32_t> s) : Size<uint32_t>(s) {};
|
||||
explicit constexpr PhysicalSize(const Size<uint32_t> s = { 0, 0 }) : Size<uint32_t>(s) { }
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue