Commit Graph

43 Commits

Author SHA1 Message Date
Michael Tesch
c23159df2b
Hb cmake2 (#11)
* 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
2019-11-14 16:59:54 +01:00
Michael Tesch
00933a86e9
Hb cmake cleanup (#10)
* 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
2019-11-12 15:45:00 +01:00
Michael Tesch
c050dd78f7 handle control-q as quit in demo, comments 2019-01-24 11:19:18 +01:00
Michael Tesch
8ed710c606 use more TBStr in place of (const char *) 2019-01-23 19:57:40 +01:00
Michael Tesch
1050b6bbd2 fix some types 2019-01-23 14:58:52 +01:00
michael tesch
b623ee3f12 only prepend GetRoot to filename when not absolute 2016-09-06 14:24:24 +02:00
michael tesch
2f55748bff added node write support, good enough for debugging 2016-06-17 21:03:51 +02:00
michael tesch
a55d77b2d2 added node write support, good enough for debugging 2016-06-17 21:03:19 +02:00
rongzhou
ccc8b310d2 Cleanup unnecessary comma 2015-11-01 16:45:09 -08:00
Emil Segerås
2f51f25369 Refactorized demo platform integration to better suit game loops.
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.
2015-07-02 14:27:53 +02:00
Emil Segerås
fe2fafdbf4 Removed some warnings in demo code 2014-09-30 21:35:38 +02:00
Emil Segerås
29512809e8 Set id the correct way, using constexpr. 2014-08-31 20:08:27 +02:00
Emil Segerås
bf82fe994d Deprecate TBAddon and made TBImage optional by define.
Making features optional by linking is messier than using defines.
Use tb_config.h for all optional core stuff instead.
2014-08-04 15:00:30 +02:00
Emil Segerås
55ad6d1343 Fixed incorrectly encoded source file.
Visual studio scrambled the utf-8 at some point.
Also reduced the number of default rendered glyphs.
2014-05-29 13:33:20 +02:00
Emil Segerås
b5fab7570e Fixed so Demo windows adapt better to high DPI skin.
-Position and sizes should of course be read as dimensions (dp by default).
-MoveIn and clip windows after getting preferred size.
2014-05-01 13:35:01 +02:00
Emil Segerås
4d50b23b73 Use constexpr ids for setting default skin on widgets. 2014-03-16 13:31:34 +01:00
Emil Segerås
c5c7670a23 Added testing of constantly busy message handler. 2014-03-02 21:45:54 +01:00
Emil Segerås
8c5a2cbf96 Added configuration defines for font systems & stb image loader.
Also added stb_truetype.h so it works out of the box just by enabling it.
2014-02-06 21:09:51 +01:00
Emil Segerås
36ae602ca9 Moved default_font, default_skin, icon and vera.ttf. 2014-01-16 21:04:52 +01:00
Emil Segerås
4e44d19115 Moved language files 2014-01-16 21:04:24 +01:00
Emil Segerås
d17cf8e661 Renamed methods for core init/shutdown. 2014-01-16 21:03:07 +01:00
Emil Segerås
2dcc17500a Make TBAnimationManager the entry point for animation methods. 2014-01-08 21:19:51 +01:00
Emil Segerås
c3b3b3fe0c Moved animation files to tinkerbell core. 2014-01-07 21:26:01 +01:00
Emil Segerås
a7ee83a914 Renamed animation objects.
Should be preceeded with TB.
2014-01-07 21:14:24 +01:00
Emil Segerås
cb26d88c9f Renamed widget animation objects.
Should be preceeded with TB.
2014-01-07 21:00:16 +01:00
Emil Segerås
b466b915ed Moved & renamed parser/TBNodeTree.h to tb_node_tree.h.
It's not part of the parser at all.
2013-10-01 08:10:12 +02:00
Emil Segerås
9291b072fc Cleaned up & changed layout a bit on demo resources. 2013-09-14 20:07:26 +02:00
Emil Segerås
c8480297ac Moved event debugging to runtime debug window.
Listens to all events globally.
2013-09-04 07:42:26 +02:00
Emil Segerås
924196e947 Added fragment debug drawing to runtime debug window. 2013-09-01 20:23:50 +02:00
Emil Segerås
0f255ebea9 Moved demo fonts to demo folder. 2013-07-13 16:49:46 +02:00
Emil Segerås
8c25e04e39 Major improvements to pointer/touch input:
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.
2013-07-10 21:03:44 +02:00
Emil Segerås
aa3001cc9b Runtime debug settings:
-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).
2013-06-15 21:16:41 +02:00
Emil Segerås
c8267eff72 Updated customized item source test:
-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)
2013-04-16 21:59:22 +02:00
Emil Segerås
e97a1109c5 Moved GetAlignedRect out to new class. Expand to target width by default for top/bottom alignment. 2013-04-04 19:01:11 +02:00
Emil Segerås
9973b84b16 The generic widget data should be TBValue so it can hold anything. 2013-03-20 21:57:30 +01:00
Emil Segerås
b07606013f Moved TBMenuWindow to separate file, and split it up into TBMenuWindow and TBPopupWindow. 2013-03-04 18:14:37 +01:00
Emil Segerås
eef2d81a70 Added tests in demo for inflating widgets into non-layouting widgets. 2013-01-23 21:59:36 +01:00
Emil Segerås
5608f2c699 Fix for inflating widgets into non-layouting widgets.
Now the children gets positioned & resized correctly on inflate.
This also optimizes inflate into layouting widgets since they can skip doing resize twice.
2013-01-23 21:45:53 +01:00
Emil Segerås
547d4594b9 Changed the type system implementation.
- 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.
2013-01-19 21:33:29 +01:00
Emil Segerås
8852933f0f Added multiple DPI support in skin. 2012-12-22 16:12:40 +01:00
Emil Segerås
9f2c1c3ce3 Repositioned demo windows a bit. 2012-11-14 22:40:51 +01:00
Emil Segerås
bd306a80a7 Init animation manager automatically from Application integration and added AnimationBlocker. 2012-11-13 22:04:32 +01:00
Emil Segerås
9a7968cc07 Move demo & integration files to more suitable folders. 2012-11-13 18:25:41 +01:00