This change optionally pass constraints down through hierarchy
when measuring. Axis specific dependency information is bubbled
back up (so future multi-pass layout may take further action).
This enables f.ex wrapping textfields to adapt to content a bit
better, but all layout is still done in a single pass (Still WIP
on the layout branch)
The documentation indicates that the default is RGB_888 + depth if not
calling this method, but most phones still only get 16bit colors.
Removing the depth requirement seems to fix it. We don't need it for the demo.
List of changes:
-Refactorized virtual scroll methods and introduced virtual GetScrollInfo.
-Added TBScroller to do slow down scroll after panning.
-Added TBScrollerSnapListener for snapped smooth scrolling.
-Added keyboard scroll support in TBScrollContainer and TBSelectList.
-Added possibility to cancel EVENT_TYPE_CLICK for current touch (stopping scroll should not cause click)
-Added flag to TBWidgetEvent to distinguish cursor base pointer events from touch events (Fixes issue #2).
--Pan TBEditField on touch pointer events instead of doing selection scroll.
--Touch events should not result in setting the hover state automatically.
-Moved config defines and debug defines to dedicated files.
-Made debug settings slightly more handy (change stuff runtime instead of toggling defines and recompile everything).
- Moved the type code our from TBWidget to new TBTypedObject.
- Work with template generated unique class id, instead of using strcmp on class names.
- Use template functions similar to dynamic_cast.
- Added unit tests.