Commit graph

84 commits

Author SHA1 Message Date
Olivier Goffart
0ab60dff81 continue Window refactoring. Remove a few function from GenericWindow 2021-01-15 15:02:55 +01:00
Olivier Goffart
f1ce103c7b WIP: start splitting Window and PLatformWindow 2021-01-15 15:02:55 +01:00
Olivier Goffart
9741b56e30 Start implementing path with the Qt backend
(WIP)
2021-01-14 13:22:53 +01:00
Olivier Goffart
fff024731b Don't pass Pin by reference
(consistant with other method in that trait)
2021-01-14 11:54:17 +01:00
Simon Hausmann
42a5a62fb5 Fix rendering of image elements without specified width/height
Fall back to the source image dimensions like the old renderer
2021-01-14 08:53:14 +01:00
Olivier Goffart
44e279382f Qt backend: fix tests 2021-01-14 08:53:14 +01:00
Olivier Goffart
21c2100f8d Fix warnings 2021-01-14 08:53:14 +01:00
Olivier Goffart
2231711cf9 Qt text backend: draw the TextInput 2021-01-14 08:53:14 +01:00
Simon Hausmann
b79e4180c8 Rename trait Font to trait FontMetrics
This name more closely resembles the functionality it provides.
2021-01-14 08:53:14 +01:00
Olivier Goffart
62150cba1a Basic text input 2021-01-14 08:53:13 +01:00
Olivier Goffart
f396c1749f Qt backend: Don't cache the font
Not necessary after all
2021-01-14 08:53:13 +01:00
Olivier Goffart
61e6e9cf74 Qt backend: Actually fix border drawing 2021-01-14 08:53:13 +01:00
Olivier Goffart
55da32c343 Qt backend: fix border rectangle of the checkbox in the slide puzzle 2021-01-14 08:53:13 +01:00
Olivier Goffart
705c3f6ec0 Qt Backend: enable anti-aliasing 2021-01-14 08:53:13 +01:00
Olivier Goffart
b0d89d5fd7 Qt backend: font cache 2021-01-14 08:53:13 +01:00
Olivier Goffart
12e954ad03 Qt backend: properly clear the cache 2021-01-14 08:53:13 +01:00
Olivier Goffart
00f165f6ed Qt backend: cache images 2021-01-14 08:53:13 +01:00
Olivier Goffart
84c7b28256 Decouple the ItemRenderer from QPainter so it can hold a cache 2021-01-14 08:53:13 +01:00
Simon Hausmann
21bd79c1b7 Prospective C++ build fix
Include <memory> for std::unique_ptr
2021-01-14 08:53:13 +01:00
Olivier Goffart
e77872c775 Let Qt handle all the highdpi thing, and don't borther within SixtyFPS
This is less than ideal, because the phx unit has no meening anymore.
Eventually we will want to do that right
2021-01-14 08:53:13 +01:00
Olivier Goffart
754020d999 Qt backend: Popup menu 2021-01-14 08:53:13 +01:00
Olivier Goffart
10dffa7d79 Use the QPainter directly when using the Qt paint engine 2021-01-14 08:53:13 +01:00
Olivier Goffart
7bd1fb9ec8 Silence warning 2021-01-14 08:53:13 +01:00
Olivier Goffart
1ea522a7d0 Qt backend: Make the animation not take 100% CPU 2021-01-14 08:53:13 +01:00
Olivier Goffart
7dfc43977f Qt backend: animations 2021-01-14 08:53:13 +01:00
Olivier Goffart
118d40d9e9 QtBackend: Timer 2021-01-14 08:53:13 +01:00
Olivier Goffart
7b4c600a4f Fix compilation after rebase 2021-01-14 08:53:13 +01:00
Olivier Goffart
d4c357195d Qt backend: make clicking on a TextInput not panic 2021-01-14 08:53:13 +01:00
Olivier Goffart
1eac260d99 Qt Backend: font size fixes 2021-01-14 08:53:13 +01:00
Olivier Goffart
d71bb9ab84 Qt backend: Image rendering 2021-01-14 08:53:13 +01:00
Olivier Goffart
7d91651b48 Qt backend: input events 2021-01-14 08:53:13 +01:00
Olivier Goffart
4aa9faf532 Qt backend: border rectangle 2021-01-14 08:53:13 +01:00
Olivier Goffart
aeb67fa927 Qt backend: Resize event and layouting 2021-01-14 08:53:13 +01:00
Olivier Goffart
531ff42973 WIP: Qt backend using Qt 2021-01-14 08:53:13 +01:00