Windowing support & Widgets refactoring#6
Open
ilsalvopss wants to merge 84 commits into
Open
Conversation
…low is deprecated (or even not supported anymore); [this seems to not break anything]. also swap cmake_minimum_required() to be above project(). Also use Qt6 # Conflicts: # _tools/qtsimulator/CMakeLists.txt
…windowing support
…causes modern compilers to emit ud2
…f, not from the RadioGroup
…ation for qt driver
… skipped writing text if its anchor point was outside the clipping area. this is (now) clearly wrong.
…ack to their "parent" window
WindowManager: introduce WMMessage and a first sketch of a message loop
…id of -1 for the Desktop as the Window constructor already takes care of it
…d invalid dereference of a end() iterator
…y with new miosix settings path
…> to DrawableOwner& so gcc compiles elsewhere: add comments
…s the same as Rect::subtractRect
…ingContextProxy::verticalScanLine
…ss them to the ClippedDrawingCtx)
widgets/image.h: fix config path
drovers: st25dvdiscovery: implement specialized version of verticalScanLine drivers: display_qt: implement specialized version of verticalScanLine
…lback to handle keyboard events. it is immutable so no synchronization is needed
…ibleRegions clipping
…'s available outside Window
…ying drawables of an opaque drawable that covers the entirety of the requested region
…e the verticalScanLine primitive rather that (slow) diagonal lines. now ìt's smooooth!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for real windowing capabilities for level2.
It features a (thread safe!) WindowManager, an underlying ClippedDrawingContext and lots of accompaing code. Also, all widgets (with the exclusion of ScrollingList, which wasn't compiling anyway before) have been ported to the new API.
Correctness has been preferred to microoptimization, however some optimization has been done so that all provided functionality runs smooth on the STM32F405 discovery kit.
Existing examples are also ported to the new API and a new windowing example is added.