| | |
| | | static inline constexpr RECT qrect2rect(const QRect &qrect) { |
| | | return RECT{LONG(qrect.left()), LONG(qrect.top()), LONG(qrect.right()), |
| | | LONG(qrect.bottom())}; |
| | | } |
| | | |
| | | static inline constexpr QMargins margins2qmargins(const MARGINS &margins) { |
| | | return {margins.cxLeftWidth, margins.cyTopHeight, margins.cxRightWidth, |
| | | margins.cyBottomHeight}; |
| | | } |
| | | |
| | | static inline constexpr MARGINS qmargins2margins(const QMargins &qmargins) { |
| | | return MARGINS{qmargins.left(), qmargins.right(), qmargins.top(), qmargins.bottom()}; |
| | | } |
| | | |
| | | static inline /*constexpr*/ QString hwnd2str(const WId windowId) { |