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
058b2aaa82
Call OnChange when undo/redo is trigged.
2013-01-22 19:07:57 +01:00
Emil Segerås
315d1f180c
Switched to static_cast to catch incorrect Add as compile error.
...
It should not be possible to Add* an object that has forgot to inherit TBLink/TBLinkOf.
2013-01-22 18:57:48 +01:00
Emil Segerås
ac626993ab
Scroll textfield if needed after undo/redo/paste.
2013-01-21 18:40:05 +01:00
Emil Segerås
512b063204
Mention skin expand in feature list.
...
It's soo nice! :)
2013-01-20 22:23:22 +01:00
Emil Segerås
3e9515178d
Changed from unsafe "user_ptr" to "TBValue tag" for custom item data.
2013-01-20 22:20:37 +01:00
Emil Segerås
1c105f6b9a
Added TBTypedObject content to TBValue.
2013-01-20 22:18:17 +01:00
Emil Segerås
5f4a65c51c
Use a typedef for the object type id.
...
Makes IDE autocompletion popups cleaner.
2013-01-20 22:05:07 +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
9e854aea21
Fixed gcc compile warning and issue reported by valgrind.
2013-01-19 10:59:38 +01:00
Emil Segerås
7acf95c912
Demo resource edit crash fix.
2013-01-17 20:59:27 +01:00
Emil Segerås
00760613be
Changes to override skin and added element patching.
...
Override skin is now just adding and patching elements into the same
skin. Makes it both simpler, more powerful and faster.
2013-01-17 20:45:21 +01:00
Emil Segerås
3acb9bb880
Minor optimization
2013-01-17 18:14:29 +01:00
Emil Segerås
bb6f7654cd
High DPI arrow skins.
2013-01-11 18:09:48 +01:00
Emil Segerås
ea3753d265
Updated copyright header.
2013-01-05 08:31:47 +01:00
Emil Segerås
8f1467eef2
Correct data type for animation duration.
2013-01-05 08:27:30 +01:00
Emil Segerås
879b67957a
TBImage addon should also load bitmaps in destination DPI.
2013-01-05 08:26:20 +01:00
Emil Segerås
85f37cd204
Moved DPI filename function.
2013-01-05 08:16:02 +01:00
Emil Segerås
ead45b9137
Added android test code.
2012-12-31 15:09:43 +01:00
Emil Segerås
8d182e685e
Fixed spinner timer catch up bug.
...
No need for precision timing depending on fire time here. Just use a delay.
2012-12-31 12:32:12 +01:00
Emil Segerås
94b42a85d7
Removed debug printout.
...
It's spamming the output when loading skins with only partial DPI support.
2012-12-30 16:13:39 +01:00
Emil Segerås
18dd588552
Made it possible to set font from resource.
...
Also added unit tests for TBPx and TBColor.
2012-12-30 16:11:46 +01:00
Emil Segerås
814775f965
High DPI checkbox and radio button skin.
2012-12-28 14:15:06 +01:00
Emil Segerås
6a5fdb7e76
Made pan threshold and pixels per line DPI aware.
2012-12-22 16:12:42 +01:00
Emil Segerås
8852933f0f
Added multiple DPI support in skin.
2012-12-22 16:12:40 +01:00
Emil Segerås
37d732c026
Removed hardcoded size.
2012-12-22 16:12:39 +01:00
Emil Segerås
9c4f472ea4
Added EVENT_TYPE_SHORTCUT and moved shortcut keybindings to platform code.
2012-11-28 20:45:58 +01:00
Emil Segerås
8060faf02b
Turned TBAddon factory code into a macro.
2012-11-16 08:20:14 +01:00
Emil Segerås
130945856e
Added Sublime Text 2 project, with SublimeGDB configuration.
2012-11-15 19:30:43 +01:00
Emil Segerås
9f2c1c3ce3
Repositioned demo windows a bit.
2012-11-14 22:40:51 +01:00
Emil Segerås
eaa7bb83c0
Implemented clipboard support for linux & mac using glfw.
2012-11-14 19:48:21 +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
a958a811f5
Don't enforce "gravity: all" on TBTabContainer.
2012-11-13 18:48:16 +01:00
Emil Segerås
0c27a1ebc8
Fix for placeholder position in multiline editfields.
...
It should always be at the top, not vertically centered.
2012-11-13 18:25:46 +01:00
Emil Segerås
a18a05f649
Fix for possible freeze when focus movement wrap backwards.
2012-11-13 18:25:46 +01:00
Emil Segerås
eab1dce469
Added background-color support to skin.
2012-11-13 18:25:45 +01:00
Emil Segerås
0d63626a06
Fixed incorrect result from DrawRectFill when it's the first call since BeginPaint.
2012-11-13 18:25:45 +01:00
Emil Segerås
9a7968cc07
Move demo & integration files to more suitable folders.
2012-11-13 18:25:41 +01:00
Emil Segerås
1451647d93
Separate the demo code from the demo integration and renderer.
2012-11-13 18:24:59 +01:00
Emil Segerås
26be187db1
Added edge fadeout to editfields too and moved to util file.
2012-11-11 10:49:27 +01:00
Emil Segerås
4c949ebc9d
Removed hardcoded opacity for placeholder and disabled state.
2012-11-11 10:39:20 +01:00
Emil Segerås
b22ceb0013
Minor GL backend fixes.
...
-Increased batch size.
-Changed default window size.
-Compilefix for GLES.
2012-11-08 20:02:00 +01:00
Emil Segerås
e84eb1bef0
Added animation curve Smooth.
2012-11-04 11:18:38 +01:00
Emil Segerås
dbcbc6e4a3
Fixed bug that pressed state was sometimes stuck on target of TBClickLabel.
2012-11-03 18:29:10 +01:00
Emil Segerås
f53314b253
fixup! Renamed port_glut.cpp -> port_glfw.cpp
2012-11-03 17:36:25 +01:00
Emil Segerås
b53c816c42
Only invoke context menu action on release of GLFW_KEY_MENU.
2012-11-03 17:29:21 +01:00
Emil Segerås
1f14a27d61
Renamed port_glut.cpp -> port_glfw.cpp
2012-11-03 17:25:42 +01:00
Emil Segerås
c70b0fe9ab
More skin improvements.
2012-11-03 17:16:24 +01:00
Emil Segerås
ffdb24b21a
Git ignore .bak files
2012-11-03 16:50:37 +01:00