Emil Segerås
0f255ebea9
Moved demo fonts to demo folder.
2013-07-13 16:49:46 +02:00
Emil Segerås
97600432a9
Choose 32bit color mode on android.
...
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.
2013-07-10 21:05:56 +02:00
Emil Segerås
c0241d173e
Added touch event emulation to glfw demo app to make testing easier.
2013-07-10 21:05:56 +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
0342c25bf4
Updated visual studio projects to use toolset v110.
2013-06-19 20:21:41 +02:00
Emil Segerås
8bbfdc4390
Added runtime debug setting for render batch info.
...
Shows how inefficient the default renderer batcher is.
2013-06-15 21:16:42 +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
c4292d23e4
Content should left align by default on TBClickLabel that grow larger than preferred size.
2013-06-15 21:16:41 +02:00
Emil Segerås
fb31ebf48c
Handle some Android configuration changes ourselves.
2013-06-02 19:56:40 +02:00
Emil Segerås
5d8fbc2109
Fixed ugly rendering glitch on android sometimes when showing keyboard.
2013-06-02 19:45:10 +02:00
Emil Segerås
155c2e1144
Enabled c++0x for Android so we get constexpr TBID.
...
Also added no-rtti and no-exceptions even though they are default.
2013-06-02 19:45:04 +02:00
Emil Segerås
f41641aedb
Optimized triangle throughput slightly on some compilers.
2013-06-02 19:44:57 +02:00
Emil Segerås
7d726ead12
Some initial work on keyboard handling on Android.
2013-06-02 19:44:37 +02:00
Emil Segerås
625b74b6da
Added file inclusion to TBNode parsing.
...
"@file filename" will include all nodes from the file under the parent node.
The filename will be searched for in the same path as the parent file.
Also output parsing errors in debug builds.
2013-04-23 20:48:35 +02:00
Emil Segerås
93b5b89dc3
Added test of button with multiline text.
2013-04-16 22:05:25 +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
f3a2633e5e
Added "text-align" and "ignore-input" attributes to resource parsing.
...
Finetuned documentation.
2013-04-16 21:11:37 +02:00
Emil Segerås
06b4b243ff
Fix for skin override when a grouped button was pressed and not hovered.
...
When the button state was forcefully set to pressed, the first override
with an exact match was TBButton.pressed instead of the TBButtonInGroup
override.
2013-04-16 18:29:47 +02:00
Emil Segerås
4a60b9786a
Added methods to get selected item ID from TBSelect/TBSelectDropdown.
2013-04-16 18:29:21 +02:00
Emil Segerås
fefca30304
Invalidate layout when TBEditField change wrap mode with adapt enabled.
2013-04-09 22:35:55 +02:00
Emil Segerås
9c8d7ba100
Added inflate & layout speed tests to Android demo.
2013-04-09 22:32:24 +02:00
Emil Segerås
56622e174a
Return if key was consumed or not from InvokeKey.
2013-04-05 23:44:07 +02:00
Emil Segerås
5ff06b328d
.gitignore: Exclude android build files and generated stuff.
2013-04-05 20:41:29 +02:00
Emil Segerås
a3f1b92178
Fixed bug in utf8::decode_next.
2013-04-04 21:13:00 +02:00
Emil Segerås
35e6f33105
fixup! Clip only in scrollable direction in scroll container.
2013-04-04 19:05:04 +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
5755040e17
fixup! Renamed some resource attributes to be more consistent.
2013-03-29 20:27:17 +01:00
Emil Segerås
fc1e6b6fa0
Let click through in resource editor if alt is pressed.
2013-03-29 14:36:46 +01:00
Emil Segerås
9e0d616848
constified GetIndexFromChild method.
2013-03-29 14:31:49 +01:00
Emil Segerås
a0903b12d1
Updated some demo layouts a bit.
2013-03-29 14:30:59 +01:00
Emil Segerås
a84d687de5
Clip only in scrollable direction in scroll container.
...
Same as in TBLayout.
2013-03-29 14:28:16 +01:00
Emil Segerås
41d9afab57
Added scroll-mode attribute, and added mode off.
2013-03-29 11:12:04 +01:00
Emil Segerås
ab77fc9109
Added LayoutParams so widgets can get individual size preferences.
2013-03-26 21:39:43 +01:00
Emil Segerås
9c26eedd59
Renamed some layout methods, introduced PS caching and measure & layout debugging.
2013-03-26 21:33:19 +01:00
Emil Segerås
39b902eb16
Added vertical separator graphics to skin.
2013-03-25 18:32:25 +01:00
Emil Segerås
4a2a58d624
Bugfix in global widget focus listener.
...
Was always sending false.
2013-03-25 18:30:31 +01:00
Emil Segerås
c39bbbe1ef
Added dimension unit mm (millimeter).
2013-03-22 21:43:00 +01:00
Emil Segerås
b5a9d47227
Renamed some resource attributes to be more consistent.
2013-03-22 21:42:42 +01:00
Emil Segerås
95f40edea9
Bugfixed ScrollIntoView.
...
When there was no room for the entire target, it jumped back and forth each time.
2013-03-22 21:18:47 +01: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
2d41f307ed
Give TBSeparator a default skin.
2013-03-20 21:09:50 +01:00
Emil Segerås
916ad24d47
Compilefix for some compilers.
2013-03-20 21:07:33 +01:00
Emil Segerås
5d0148f074
fixup! Changes to dimensions handling:
2013-03-04 18:52:56 +01:00
Emil Segerås
a073e5fca3
Changes to dimensions handling:
...
- Don't switch TBValue type when going from string to number (preserves numbers unit).
- Fixed so parser handles numbers with units correctly.
- Removed TBPx16. Everything is converted to pixels anyway and it was inconsistently used.
2013-03-04 18:28:41 +01:00
Emil Segerås
1c45163e09
TBMessageWindow should start dying when target starts dying instead of when target is being deleted.
...
Also fixed weird inheritance.
2013-03-04 18:14:47 +01:00
Emil Segerås
c164fc0d0d
Make sure focus comes back to window behind popups that steal focus.
...
Popups doesn't activate, so the window behind was already activated and didn't try regaining focus.
2013-03-04 18:14:45 +01:00
Emil Segerås
a5caa3ef82
Made it possible to focus widgets inside popups.
2013-03-04 18:14:43 +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
f00af46b07
Finetuned window titlebar gradient.
...
Made it handle larger titlebar sizes better. The bottom fade to dark will stretch.
2013-02-03 20:05:45 +01:00
Emil Segerås
ef7ad709f8
Fixed batching bug, visible with the CJK font test.
...
The batch wasn't always flushed when the oldest glyphs (bitmapfragments) was kicked out of the fragment map.
2013-01-30 21:12:45 +01:00