* cleanup build system, modernize cmake
* build glfw and sdl2, w/ or w/o freetype
* fix android demo build
* win32 with CPack has PACKAGE target now
* added GLEW for windows
* bump to SDL2.0.10. fixes for building as subdir
* constexpr is always available these days.
* cleanup getwd() warning. add rpm to ubuntu packages
* dont use add_compile_definitions() for cmake, too new
* add rpm package to travis
* gh release packages
* build demo target on windows
* see if defines not working on winsodw
Removed old comment. New way of doing things is to build like lego.
With widgets as building blocks, build whatever you want. Instead
of implementing everything :)
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)
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).
-Added test where TBSelectDropDown is using the custom item source.
-Fixed typo.
-Test custom filter.
-New layout & Inflate the item widget from resource.
-Sort list (shows a bug when deleting items)
Now the children gets positioned & resized correctly on inflate.
This also optimizes inflate into layouting widgets since they can skip doing resize twice.
- 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.