New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fruxo upstream merge #6
Conversation
The touch API is not yet suited for touchpads because their movement cannot be mapped 1:1 onto the screen. I will have to change it to make touch input independent from the pointer location again. |
243ed00
to
ba30f59
Compare
Conflicts: src/tb/tb_editfield.cpp src/tb/tb_style_edit.cpp src/tb/tb_style_edit.h src/tb/tb_style_edit_content.cpp src/tb/tb_style_edit_content.h
Conflicts: src/tb/tb_style_edit.cpp
These: @$'~|?
Conflicts: src/tb/tb_style_edit.cpp src/tb/tb_style_edit.h src/tb/tb_style_edit_content.cpp src/tb/tb_style_edit_content.h
Conflicts: src/tb/tb_style_edit.h
fixed compiler warnings
Conflicts: src/tb/tb_widgets_reader.cpp
Conflicts: Demo/platform/port_glfw.cpp
Added missing GetNumItems and decrement count when items are removed. Conflicts: src/tb/tb_hashtable.h
Opt-in support for multi touch. Widgets will still only respond to pointer/first touch events, but new API makes it possible to implement multi touch widgets (such as action buttons, pan/zoom containers etc). Conflicts: src/tb/tb_widgets.h
Conflicts: src/tb/tb_widgets_reader.h
Not sure about c++11 policy... but fixing this would be cool, it fills all my compile logs.
Conflicts: image/tb_image_manager.h image/tb_image_manager.cpp
this allows application to test parsing before replacing existing ui
Conflicts: src/tb/tb_widgets_reader.h
Don't call GetHashId twice.
Avoid remeasuring strings during painting. Conflicts: src/tb/tb_widgets_common.cpp src/tb/tb_widgets_common.h
Makes painting faster when text is selected or styled. Will also make Reformat(false) faster (f.ex resizing a text field). Conflicts: src/tb/tb_style_edit.h src/tb/tb_style_edit.cpp
Conflicts: src/tb/tb_color.h
Round integer conversions and removed nonzero guarantee for values that where not zero before conversion. Unknown/mistyped unit is treated like dp instead of px. Conflicts: src/tb/tb_dimension.cpp src/tb/tb_dimension.h
Just a note: this repo has not enabled issues. It's virtually impossible to propose anything to the repo while the readme encourages doing so. Commenting here (most recent PR) ... because I can not open an issue. |
Thanks for the note, they're enabled now. |
A note for outside observers - this PR is in limbo -- it contains a lot of changes and it's hard to test them all. I see a few different things going on here 1) merging the fruxo/turbobadger mainline, 2) switching to a different(new) multi-touch / gesture model, 3) ? I haven't had time to review all of these things, and some of them are changes to APIs that are in use elsewhere, so I wouldn't count on this being merged as-is. |
I'm trying so summarize the changes in ff533f4 and 0828da2 There were five trivial changes:
The remaining changes boil down to those three:
All in all it's a very lightweight addition of a InvokeTouchGesture() method compared to the fruxo master branch.
There were no additional changes beside the two commits mentioned above. All other commits (authored on fruxo master) can be compiled by their own and have only be minorly adapted to the current code base (~90% uint32 to uint32_t). I hope this helps for the review. |
This is a full merge of current fruxo/master.
The multi touch API and code has changed, here's a list of what has been taken from each branch:
Each commit has been tested with "make sdl2" and an execution of the demo.