Bruno Van de Velde
8da47fd75e
Added function to layout class to check if it contains a constant
2019-03-26 10:22:26 +01:00
Bruno Van de Velde
76509db5e0
Loading widget from file failed when min or max was used in layout strings
2019-03-18 22:39:05 +01:00
Bruno Van de Velde
e8f2981c88
Added min and max functions to layouts again
2019-02-16 19:04:46 +01:00
Bruno Van de Velde
bf87c0af10
Updated the copyright year to 2019
2019-01-21 19:31:21 +01:00
Bruno Van de Velde
5fd78c88ad
Percentages in layouts now refer to the inner size of the container instead of including borders and padding
2018-09-16 18:05:41 +02:00
Bruno Van de Velde
11c5ee05ae
Updated copyright to 2018
2018-03-22 19:57:45 +01:00
Bruno Van de Velde
b0766a619a
Rewrote the layout system again
...
This combines the best features of the last 2 implementations, which were extremely different with the last one focusing on being easy but having dropped several features.
You can still use percentages to refer to the size of the parent:
widget->setPosition({"20%", "10%"});
But binding widgets has been introduced again so that you can e.g. easily center the widget:
widget->setPosition("(parent.size - size) / 2");
2017-08-24 11:44:38 +02:00
Bruno Van de Velde
4e1ff679ef
Layouts can now be constructed from expressions containing plus/minus symbols and terms that can be both relative and absolute
2017-07-30 14:08:12 +02:00
Bruno Van de Velde
ec1591c29c
Outline can now be relative to the widget size
2017-07-02 17:29:44 +02:00
Bruno Van de Velde
a7c3bcf0ae
Added a few minor tests
2017-06-29 18:05:02 +02:00
Bruno Van de Velde
3fae08dc5f
Rewrite the core of the layout system
2017-06-29 13:29:05 +02:00
Bruno Van de Velde
2e9eca5f6a
Updated copyright header to 2017
2017-01-20 20:06:07 +01:00
Bruno Van de Velde
cabce9164f
The position of the view of the gui is no longer stored in GuiContainer
...
This change was made because ComboBox would open its list at the wrong location when the center of the view was not the center of the window.
2016-11-22 16:46:37 +01:00
Bruno Van de Velde
8170a4e229
Several minor changes that were changed while developing TGUI.Net
2016-10-05 15:10:21 +02:00
Bruno Van de Velde
abdbf5eeae
Slightly reduce included headers by only including SFML headers where needed instead of always including SFML/Graphics.hpp
2016-09-15 02:48:45 +02:00
Bruno Van de Velde
06b8d3b919
Added a static 'create' function to all widgets which is now the intended way to construct a widget
2016-09-14 20:11:20 +02:00
Bruno Van de Velde
c43cbc61eb
Mostly stuff related to the renderers
2016-07-11 00:01:18 +02:00
Bruno Van de Velde
238abc8e00
Ported EditBox to new rendering system + implemented changes that were made in 0.7 in the meantime
2016-06-30 16:12:43 +02:00
Bruno Van de Velde
e1bfb672c8
Update copyright dates
2016-03-17 16:12:06 +01:00
Bruno Van de Velde
73d6dc44d9
Borders are now inside Label
2016-03-01 23:56:44 +01:00
Bruno Van de Velde
71f3b260ee
Fixed issue with negative layout values ( fixes #54 )
2016-01-22 15:14:57 +01:00
Bruno Van de Velde
1854dd1530
Added even more tests for Layout to get 100% coverage in Layout.cpp
2016-01-21 18:02:51 +01:00
Bruno Van de Velde
0c14a5c04b
Fixed some extreme situations in layout string
2016-01-21 13:58:29 +01:00
Bruno Van de Velde
a103a68365
Fixed bug in layouts when using comparison operator in string ( fixes #51 )
2016-01-20 13:22:19 +01:00
Bruno Van de Velde
e4f3abb560
Added HorizontalLayout and VerticalLayout tests
2015-09-19 13:58:48 +02:00
Bruno Van de Velde
558862fda5
Use TGUI_IMPORT_LAYOUT_BIND_FUNCTIONS again instead of TGUI_IMPORT_LAYOUTS
2015-08-15 01:48:26 +02:00
Bruno Van de Velde
07790c878d
Fixed warnings when building tests with VS2015 (which can't compile the tests anyway due to lack of SFINAE support)
2015-08-13 00:16:20 +02:00
Bruno Van de Velde
114106ea70
Adapted remaining widgets to new loading system
2015-08-12 13:45:37 +02:00
Bruno Van de Velde
79352118ef
Finished new layout system
2015-07-27 16:14:28 +02:00
Bruno Van de Velde
807d3e28c3
More unit tests for new code
2015-07-27 16:11:33 +02:00
Bruno Van de Velde
aa5d0f1745
Added tests for layout + let CI build examples and run tests
2015-07-19 18:20:11 +02:00