View Single Post
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#122
Originally Posted by Mitrandir View Post
This can be done easily in our case, but in common case this will require complex logic to compute this area with substraction of rectangles and this problem isn't solvable in all cases.

The only advantage is that DBE buffer automatically resize to match window's dimensions.
Wouldn't DBE think the window was 800x480 when you have it in fake portrait mode?

What if the slider widget is placed in a floating layer that is separate from the layer containing the other elements. Only the lower layer would get drawn into the buffer. When the slider changes it could extract the buffered layer, render itself and then rotate to the window. When a buffered widget changes it triggers a change event for its region of the buffer that gets passed up through the layers and any layer that intersects the changed regions could be redrawn.

There would be no app logic at all since the toolkit would handle everything. This would also work for screen events since they could be passed down through the layers and stopping at the layer that has a widget in the tap location.
 

The Following 2 Users Say Thank You to auouymous For This Useful Post: