Emil Segerås
a958a811f5
Don't enforce "gravity: all" on TBTabContainer.
2012-11-13 18:48:16 +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
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
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
69a5cb05e3
Improved skin.
2012-11-03 10:45:54 +01:00
Emil Segerås
9198c7bcb3
Fixed makefile and compilation for mac.
2012-11-01 21:08:43 +01:00
Emil Segerås
70321ae449
Moved clipboard implementations to dedicated files. Also turned hardcoded value into system getter.
2012-10-17 20:42:10 +02:00
Emil Segerås
729c0534a3
Dummy msg loop stuff and makefile changes to get glfw running on linux.
2012-10-17 20:29:24 +02:00
Emil Segerås
876d672721
Document build process and new timer functions.
2012-09-18 18:54:27 +02:00
Emil Segerås
a803129cfa
Fixed timer bug on windows.
...
Windows SetTimer callback sometimes fire *before* the delay has elapsed,
causing the ProcessMessages to not process any messages and since the
next fire time will be exactly the same the reschedule didn't happen.
2012-09-18 18:20:59 +02:00
Emil Segerås
0800eeb3e9
Removed note about switching from freeglut
2012-09-16 21:12:34 +02:00
Emil Segerås
fee08e5698
Switched to glfw
2012-09-16 21:09:52 +02:00
Emil Segerås
59533400d6
Added submodule for glfw 3 (unfinished work branch)
2012-09-16 20:40:44 +02:00
Emil Segerås
ec9b7054bb
Removed freeglut
2012-09-16 20:34:05 +02:00
Emil Segerås
5381d56436
Changed parsing order of skin padding.
...
Makes it consistent with CSS which might make some people happy.
2012-09-15 17:49:23 +02:00
Emil Segerås
36cd2a71fe
Made TBWidget members private.
2012-09-15 17:17:59 +02:00
Emil Segerås
7f363571ad
Move some classes from tb_select.h/cpp to new files.
2012-09-08 19:03:13 +02:00
Emil Segerås
aa12df5758
Work on model/view API's for TBSelectList:
...
Now the viewers can be updated when the model (item source) is changed.
Moved demo ListWindow code to separate files and fixed some related stuff.
2012-09-08 18:38:23 +02:00
Emil Segerås
52bdbb95f4
Made flags combination type safe with some operator overloading on enums.
2012-09-08 11:39:25 +02:00
Emil Segerås
13f4a4a89f
Added note about freeglut incompability with visual studio 2012.
2012-09-03 18:15:29 +02:00
Emil Segerås
4443d110bc
Changed state section name for overlays from "overlay" to "overlays".
...
Made it consistent with other state sections.
2012-09-01 14:50:46 +02:00
Emil Segerås
7316882b70
Added group look for TBButton skin.
2012-09-01 14:45:04 +02:00
Emil Segerås
701bc3f676
Enabled multiprocess compilation
2012-08-25 14:33:24 +02:00
Emil Segerås
7325f95f1a
Moved readme & integration text files to tinkerbell project.
2012-08-25 13:09:08 +02:00
Emil Segerås
5aaf4aea50
Fix for static library linking.
...
Enabled "Use library dependency inputs" because otherwise many
used classes gets optimized away (visual studio bug?)
2012-08-25 13:07:35 +02:00
Emil Segerås
7ee0ac9d94
Moved tinkerbell to static library (separate project)
2012-08-25 13:05:02 +02:00
unknown
5237bdda84
Merge branch 'master' of C:\Users\Emil Segers\Dropbox\tinkerbell\gitrep\tinkerbell
2012-08-20 07:56:41 +02:00
Emil Segerås
f31a40925a
Moved fps checkbox in demo to the resource.
2012-08-19 17:14:04 +02:00
Emil Segerås
e2b837f323
Fixed typo
2012-08-19 15:06:14 +02:00
Emil Segerås
a378f5e4fa
Renamed some demo resource files
2012-08-13 20:41:18 +02:00
Emil Segerås
3c21fba7c8
Added TBToggleContainer & TBSection etc.
...
Automates some really tedious UI tasks.
2012-08-12 12:45:09 +02:00
Emil Segerås
3ca2a46336
Fixed typo in file headers.
2012-08-05 16:33:37 +02:00
Emil Segerås
2bf5b22926
Compilefix for gcc.
2012-08-05 16:32:28 +02:00
Emil Segerås
92b914c290
Added comment in demo text.
2012-07-31 21:26:00 +02:00
Emil Segerås
ff7ae6e30e
Choose the closest available font size, instead of failing if no exact match.
2012-07-29 18:15:01 +02:00
Emil Segerås
6e037b4c95
Added styling as setting to TBMessageWindow.
2012-07-29 14:33:47 +02:00
Emil Segerås
b114bb623d
Added edit type search and added inline search icon (with custom skin condition property!)
2012-07-29 14:30:02 +02:00
Emil Segerås
a43c52bbd6
Merge branch 'master' of C:\Users\emil\Documents\My Dropbox\tinkerbell\gitrep\tinkerbell
2012-07-28 21:24:02 +02:00
Emil Segerås
5ca6d672b4
Renamed IsParentOf -> IsAncestorOf.
2012-07-28 21:23:46 +02:00
Emil Segerås
a0be5a60d5
Changed long demo text to multi line syntax.
2012-07-28 11:24:21 +02:00
Emil Segerås
11b391520d
Added parser unit tests, and support multiline syntax for text.
2012-07-28 10:54:02 +02:00
Emil Segerås
9731141071
Set the correct path on startup.
2012-07-26 21:29:46 +02:00
Emil Segerås
dfd6063e16
Made string concatenation with TBTempBuffer a little more convenient.
2012-07-26 21:28:54 +02:00
Emil Segerås
cec37809cb
Request demo window close on key TB_KEY_ESC.
2012-07-26 17:46:26 +02:00
Emil Segerås
0a027e3b6a
Added condition support to skin, and positioning support for skin type image.
2012-07-26 17:39:53 +02:00
Emil Segerås
d59348027d
Use TBID representing font names, for font lookups instead of a integer.
...
Makes it a lot easier to use.
Also make sure widget opacity is clamped.
2012-07-17 20:33:31 +02:00
Emil Segerås
6081709d28
Adde another font size in font selection menu.
2012-07-14 11:17:50 +02:00
Emil Segerås
2952c70c73
Added animation test and default generic item provider that can be fed from resource.
...
Now generic string items can be added from resource files.
2012-07-14 10:58:58 +02:00
Emil Segerås
4139b78e56
Renamed Widget to TBWidget
2012-07-13 09:49:46 +02:00
Emil Segerås
a920651bc0
Renamed WidgetEvent to TBWidgetEvent
2012-07-13 09:36:31 +02:00
Emil Segerås
541d8c6fae
Fix for skin states, override and child skin state elements.
...
-Changed so the drawing order is the same as specified in the skin.
2012-07-12 17:56:40 +02:00
Emil Segerås
2dbfd0e32a
Added "Adapt to content size" on TBEditField and a few other fixes:
...
-Recalculate content_width properly if the widest line shrink. Also prevent this from happening recursively by locking scrollbar updating during most intensive operations.
-Setting text alignment fixes.
-Avoid setting unnecessary clipping.
-Some cleanup
-Test button in resource window
2012-07-10 07:21:00 +02:00
Emil Segerås
cd175fcea4
Added TBAddon system, and TBImage, TBImageManager, TBImageWidget:
...
-Makes it easy to extend tinkerbell with new systems & widgets.
-TBImageWidget loads & shows images dynamically (so it's easy to show
images that are rarely showed and should not be part of the skin).
2012-07-08 21:10:12 +02:00
Emil Segerås
4642294660
Merge branch 'emil_font_wip_4' of C:/Users/emil/Documents/My Dropbox/tinkerbell/gitrep/tinkerbell into emil_font_wip_4
2012-07-07 10:08:34 +02:00
Emil Segerås
a6219b732a
Minor demo cleanup
2012-07-07 10:07:00 +02:00
Emil Segerås
3bd5d4d00c
Fixed opacity on text.
2012-07-06 15:50:36 +02:00
Emil Segerås
e37e0f328f
More work on fonts:
...
-TBBitmapFragments can be removed individually. Free space is maintained by new TBSpaceAllocator class.
-The glyph cache is now a real cache (forgets least recently used glyph)
-Changes to batcher to handle flushing properly when removing fragments.
-Changes to batcher to wait with validating fragments bitmap until drawing, to avoid flush after each character when the glyph cache is full.
2012-07-06 15:26:42 +02:00
Emil Segerås
25879f03a8
Added a menu buton to the edit window.
2012-06-30 10:48:00 +02:00
Emil Segerås
80a6123235
Some cleanup of demo files & work on resource editor.
...
Also made a template version of TBGenericStringItemSource to avoid casts to subclasses of TBGenericStringItem.
2012-06-25 18:36:16 +02:00
Emil Segerås
7e9927e5a1
Fix for DrawRect/FillRect color with opacity, and flush batch before modifying texture.
2012-06-25 17:13:48 +02:00
Emil Segerås
4a762cf133
Some demo cleanup.
2012-06-24 17:36:54 +02:00
Emil Segerås
9eac332545
Added context lost & restored listener.
...
Need to handle context lost & restored in more places than the
skin (in fonts), so the new listener API should be invoked by the
platform instead of just reloading the skin directly.
2012-06-21 16:32:46 +02:00
Emil Segerås
a01137cace
New font handling:
...
-Added TBFontRenderer & TBFontFace etc. with glyph caching using
TBBitmapFragment.
-Removed hardcoded window title bar height.
-Lots of work to get TBFontFace & TBFontDescription into use in widgets.
-Replaced old TdFont with a new bitmap font system using a TBFontRenderer
backend. Supports characters in any range, glow and shadow.
2012-06-21 12:06:08 +02:00
Emil Segerås
bbd3d63604
Fixed so TBBitmapFragment can update TBBitmap dynamically.
...
Also:
UTF-8 fix in demo.
Some cleanup.
2012-06-21 12:01:19 +02:00
Emil Segerås
f5adef3437
Unicode (utf-8) support:
...
-Added utf-8 conversion functions.
-Switched to utf-8 in clipboard implementation (windows)
-Switched to utf-8 on all resource files.
-Skip BOM character at the beginning of resource files.
-Made old TDFont system unicode aware (not supporting displaying unicode, but able to handle it)
2012-06-10 15:45:32 +02:00
Emil Segerås
877067c40c
Changed demo app default window size.
2012-06-02 15:10:30 +02:00
Emil Segerås
f3eadedaef
Removed temporary debug text.
2012-05-30 17:45:09 +02:00
Emil Segerås
aaf0f787d1
Let it be up to caller of TBRunTests to assert on failed tests.
...
Show failed test dialog on fails, instead of annoying assert.
2012-05-29 21:34:05 +02:00
Emil Segerås
9415864fc7
renamed test file
2012-05-28 19:08:56 +02:00
Emil Segerås
f620ae05c7
Changed embedded widget content vertical alignment.
...
Center around line instead of standing on it. Aligns better with widgets containing a vertically centered line of text.
2012-05-28 19:00:11 +02:00
Emil Segerås
1eeb8547a2
Major changes to PStyleEdit and renaming to TBStyleEdit.
...
The PStyleEdit code was really old and crappy. This an attempt
to clean up, fix bugs and improve the design completly.
Work in progress - There is still issues to fix, especially with undo & linebreaks.
2012-05-27 21:34:54 +02:00
Emil Segerås
3eddf2f035
Changed recommended order of InvokeProcessStates and InvokeProcess!
...
Makes much more sense to update states that might affect layout before
the layout. Otherwise changes appear a frame too late.
Might be good with better naming on theese (OnProcess -> OnLayout etc.)
2012-05-20 16:23:26 +02:00
Emil Segerås
4797ac7104
Merge branch 'stb_image_wip'
2012-05-19 15:01:39 +02:00
Emil Segerås
45a3f348e8
Removed TDImage class.
2012-05-19 14:59:46 +02:00
Emil Segerås
0597ea3c68
Replaced lodepng with stb_image. Started removing TdImage.
2012-05-17 13:41:27 +02:00
Emil Segerås
def8da1ed1
Perform gfx load performance test in demo, on "Reload skin bitmaps".
2012-05-17 13:40:46 +02:00
Emil Segerås
1dd6739575
Disabled annoying MS warnings for release builds too.
2012-05-17 12:53:37 +02:00
Emil Segerås
8a54044d5f
Some demo cleanup.
2012-05-16 08:42:07 +02:00
Emil Segerås
30c09fa9a2
Moved parser/TBValue.h to tb_value.h
2012-05-16 08:41:55 +02:00
Emil Segerås
d5998d7d6b
Added possibility to synchronize widgets values when changed.
...
Widgets can be connected to TBWidgetValue by the "connection" attribute in
resources (all TBWidgetValue should have unique names). Then the value
can always be set/get from TBWidgetValue instead of various pieces of UI.
Fixes ON_CHANGE event for TBEditField, TBInlineSelect.
Added handy GetText method that returns the string (with no status). Relying on RVO.
2012-05-16 08:41:42 +02:00
Emil Segerås
7d0edca2b0
Removed some gcc warnings.
2012-05-11 19:35:20 +02:00
Emil Segerås
91410e08dd
Compilefixes for macosx.
2012-05-11 18:37:55 +02:00
Emil Segerås
d0560b30a0
Added unit testing framework and safe linklist iterator.
2012-04-22 15:10:42 +02:00
Emil Segers
c8d3b1ecbd
Added content offset for skin and use it for pressed buttons.
2012-04-15 20:11:15 +02:00
Emil Segers
00491ca9ea
Refined textfield password API & minor cleanup.
2012-04-15 19:42:12 +02:00
Emil Segers
1b7b7a8fa0
TBSlider fixes & cleanup:
...
-Swapped value direction of vertical slider.
-Added debug output field to demo app.
-Misc cleanup.
2012-04-15 19:22:13 +02:00
Emil Segerås
6586ca671b
Sort name list in demo
2012-04-14 20:17:25 +02:00
Emil Segerås
80eea3c443
Added TBSlider
2012-04-14 20:13:59 +02:00
Emil Segers
16fbfa2bda
Added integration guide.
2012-02-28 20:18:25 +01:00
Emil Segerås
3a9bfeac6d
Moved data types out to a new file to fix gcc compilation.
...
disabled constexpr for experimental gcc since it doesn't actually work (yet).
It just ignore it and compiles a normal function.
2012-02-28 19:26:31 +01:00
Emil Segers
9f3b6724de
Added const expr hash support for compilers that support it.
...
Create all TBID with a TBIDC macro that turns into a simple uint32 compiletime.
2012-02-28 08:56:31 +01:00
Emil Segers
985e958690
Added text color to skin and widgets:
...
Added Widget::PaintProps that inherit text-color to child widgets that hasn't specified text-color in the skin or has no skin element.
Added default text-color property in skin, that will apply to all specified skin elements.
Added color in the renderer DrawString method.
2012-02-24 19:27:25 +01:00
Emil Segers
f4437201b7
Begun PStyleEdit cleanup.
...
Introduced TBColor and TBFontDescription.
Made renderer DrawRect and DrawRectFill mandatory and use TBColor in it.
2012-02-21 19:57:30 +01:00
Emil Segers
4be5aa9f72
Fixed some /analyze warnings.
2012-02-20 19:34:23 +01:00
Emil Segerås
b12829994f
whitespace fixes & compilation fixes.
...
Also made signed data types signed.
2012-02-20 19:03:15 +01:00
Emil Segers
18eb2a00e8
fixed bug with the glut timer hack.
...
First message post didn't result in a new timercallback.
2011-12-14 20:45:18 +01:00
Emil Segers
c63088d3d0
First commit to public rep
2011-12-14 08:42:33 +01:00