* remove TBSystem::GetRoot. fix glew header
* make runtime debug info an indepedent setting
* windows build on travis
* fix IOS and macos high-dpi
* fix win+sdl2 combo
* try to auto detect what can be make-all'd
* 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
Implemented using 2x2 sized fragment.
Makes TBRenderer a lot simpler since shaders doesn't have to deal with
special case. Also makes batching better since color fills are drawn just
like everything else.
Added thickness parameter to PaintRect.
Makes it easier to reuse the demo platform glue for other projects.
Especially game loops or platforms where rendering is set up in a
different order.
TB API change: Removed language file path from tb_core_init.
g_tb_lng->Load should be called manually after tb_core_init instead.
NOTE: Local listeners are now called on the parent widget instead of the child!
It makes more sense to use a listener to listen for additions/removes in a certain
widget, than listening to when a specific widget is added/removed anywhere.
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.