Commit Graph

1163 Commits

Author SHA1 Message Date
Emil Segerås
220037f7be Moved FlushBitmapFragment so it happens automatically when removing fragments. 2013-10-09 07:14:55 +02:00
Emil Segerås
c19f10c811 Added TBDebugPrint variadic macro. 2013-10-01 20:53:41 +02:00
Emil Segerås
fd4091f5e4 Added TB prefix to Parser, ParserTarget, ParserStream. 2013-10-01 20:04:43 +02:00
Emil Segerås
b5d70cd4ea Renamed TBParser.h -> tb_parser.h.
Now all source file names are consistent!
2013-10-01 19:57:16 +02: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
2ad9c54229 TBID parameter should be const reference. 2013-09-29 19:39:39 +02:00
Emil Segerås
fb7f06f21f Assert on add if link is already added. 2013-09-29 19:38:17 +02:00
Emil Segerås
a8cb97059a TBValue bugfix and minor optimization.
Bug: Copy didn't make sure any old value was deallocated properly.
2013-09-29 19:37:46 +02:00
Emil Segerås
aeb7392450 Made more TBNode link methods public. 2013-09-29 19:35:15 +02:00
Emil Segerås
f294f85afc Added option to create missing nodes on get. 2013-09-21 20:51:03 +02:00
Emil Segerås
a34cbf652d Added Makefile DEBUG=YES option to sublime project 2013-09-21 20:30:07 +02:00
Emil Segerås
897c61c723 Relayout TBScrollContainer if adapt properties change.
Also added adapt setting in ResourceEditWindow.
2013-09-21 20:12:05 +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
07d5889f53 Update strong-override only if states has been invalidated. 2013-09-14 15:47:26 +02:00
Emil Segerås
0371d9dd4f Hashtable optimization.
Faster on ARM devices.
2013-09-14 15:47:21 +02:00
Emil Segerås
83d973e2b9 Added OnScroll callback. 2013-09-14 15:47:16 +02:00
Emil Segerås
a8ccf2d13e Fixed some edge artifacts in the default skin. 2013-09-14 15:47:00 +02:00
Emil Segerås
429fa11fea Fixed antialiasing for skin edges when drawing transformed.
There's some similar artifacts left though:
-StretchBorder/StretchBox may get seams on semitransparent skins.
-The default skin has some bad colors (white highlights) that get
 ugly when transformed.

Also tweaked debug drawing a bit.
2013-09-14 15:46:45 +02:00
Emil Segerås
425e538e83 Fixed 2 text editing bugs.
Hopefully without regressions.
2013-09-04 07:42:34 +02:00
Emil Segerås
b0406bb180 Finetuned caret word movement.
It was really annoying that shift+ctrl+right to select the last
word before a line break would select both the word and the
linebreak (so delete would also remove the linebreak).

Tuned it a bit so is stops more frequently in various cases.
2013-09-04 07:42:30 +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
d659761dd9 TBClickLabel should not grow vertically by default.
It's always single line text.
2013-09-04 07:42:17 +02:00
Emil Segerås
2327942efa TBMessageData should be a TBTypedObject.
Enables safe casting.
2013-09-01 20:23:58 +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
77d75400fe Switched to markdown syntax for readme file. 2013-09-01 12:39:40 +02:00
Emil Segerås
fccd2a4deb Updated readme file. 2013-09-01 12:39:40 +02:00
Emil Segerås
184a1e5e46 Separated text selection drawing from text drawing.
-Gives better/quicker render batches.
-Looks nicer when the selection is slightly rounded.
-Getting selection region is useful for other things as well.
2013-08-28 07:48:14 +02:00
Emil Segerås
f5a28bd930 Minor optimization in TBRegion coalescing. 2013-08-28 07:48:11 +02:00
Emil Segerås
c65f7674c4 Use text color for <hr> instead of hardcoded color. 2013-08-28 07:48:08 +02:00
Emil Segerås
1361826fb8 Moved TBRect & TBPoint to geometry files. 2013-08-28 07:48:05 +02:00
Emil Segerås
918c43bf57 Added TBRegion.
Should be useful for a lot of stuff.
2013-08-28 07:48:01 +02:00
Emil Segerås
e8328c8f1b Fixed encoding on source files. 2013-08-28 07:47:16 +02:00
Emil Segerås
aa28bfb27a Avoid glfw typing bug on osx.
There's several bugs left though.
Hopefully fixed in upcoming glfw releases.
2013-08-09 10:27:19 +02:00
Emil Segerås
3555d89ee3 Compilefix for osx with glfw 3.0.1. 2013-08-09 10:07:15 +02:00
Emil Segerås
a54be1bc5a Removed compilation warning. 2013-08-08 11:02:21 +02:00
Emil Segerås
d73e3d56a2 Fixed compilation for windows using glfw 3.0.1. 2013-08-08 10:59:04 +02:00
Emil Segerås
d87674879d Plugged more leaks in selftests. 2013-08-08 10:08:02 +02:00
Emil Segerås
961164d261 Fixed key combinations for linux & mac.
GLFW is now consistent across platforms and the WIN32 ifdef can be removed.

Also use the new window user pointer instead of global backend pointer.
2013-08-08 10:07:32 +02:00
Emil Segerås
da95b23844 Removed incorrect skin type.
Stretch Box was intended, and it's the default.
2013-08-07 20:24:29 +02:00
Emil Segerås
a836d60619 Fixed key press repeat. 2013-08-07 20:24:29 +02:00
Emil Segerås
1660f57197 Updated to glfw 3.0.1 and fixed compilation errors. 2013-08-07 20:24:29 +02:00
Emil Segerås
93133f6618 Switched to official glfw rep.
This will require "git submodule sync".
2013-08-07 20:24:29 +02:00
Emil Segerås
c70da6eb2a Fixed encoding on source files (should be utf-8). 2013-08-07 19:48:38 +02:00
Emil Segerås
81bbcfb33c Fixed sublime text build system so it abort on building errors. 2013-07-30 15:20:41 +02:00
Emil Segerås
50ef6d0be2 Added TBRect::Contains(TBPoint).
Also fixed incorrect data type on mm conversion.
2013-07-30 15:20:41 +02:00
Emil Segerås
2075a2d002 Moved widget interaction status out to a new getter.
Might need to be called from f.ex customized GetHitStatus methods.
2013-07-30 15:20:40 +02:00
Emil Segerås
fd4429df5b Added screen info dialog to the Android test app. 2013-07-30 15:20:40 +02:00
Emil Segerås
639ecc2ae7 Added DEBUG=YES option to the Makefile. 2013-07-29 19:39:29 +02:00
Emil Segerås
5b8229a7ea Plugged minor leaks in selftests. 2013-07-18 20:55:27 +02:00
Emil Segerås
c103288e88 Fixed linker error on some linux systems. 2013-07-17 12:44:27 +02:00