272 Commits

Author SHA1 Message Date
Bruno Van de Velde
5f07a0ea16 Don't allow the size of a scrollbar to get smaller than the scrollbar width 2018-08-06 20:20:38 +02:00
Bruno Van de Velde
a87a4a3075 Fixed android test 2018-07-28 16:51:56 +02:00
Bruno Van de Velde
8dae5538f2 Updated android test script 2018-07-28 11:52:21 +02:00
Bruno Van de Velde
a8b8c319f0 Added 'AnimationFinished' signal to Widget that will be called at end of showWithEffect or hideWithEffect animations
Usage:
  widget->connect("AnimationFinished", [](){});
  widget->connect("AnimationFinished", [](tgui::ShowAnimationType type){});
  widget->connect("AnimationFinished", [](bool visible){});
  widget->connect("AnimationFinished", [](tgui::ShowAnimationType type, bool visible){});

  The ShowAnimationType parameter is the same as passed to showWithEffect/hideWithEffect while the boolean will be true for showWithEffect and false for hideWithEffect
2018-07-24 20:24:12 +02:00
Bruno Van de Velde
158a647561 Tab can now have different textures on hover 2018-05-21 17:10:12 +02:00
Bruno Van de Velde
aba2c4c96e Added event and draw tests for ComboBox 2018-05-21 15:52:25 +02:00
Bruno Van de Velde
a66702c924 Added widget and event tests for Tabs 2018-05-20 16:23:55 +02:00
Bruno Van de Velde
307e85bc71 Added event tests for Slider 2018-05-20 16:23:28 +02:00
Bruno Van de Velde
4c890a8144 Removed whitespace in ListBox tests 2018-05-20 16:23:13 +02:00
Bruno Van de Velde
c285c69ce6 Added event and draw tests for ListBox 2018-05-14 22:59:06 +02:00
Bruno Van de Velde
3f4f1f657b Added ScrollbarWidth property to renderers with Scrollbar property 2018-05-14 22:56:09 +02:00
Bruno Van de Velde
280484f044 Renamed borders in Grid to padding 2018-05-14 22:55:23 +02:00
Bruno Van de Velde
b27f155828 Added extra tests for HorizontalLayout and VerticalLayout 2018-05-12 17:03:52 +02:00
Bruno Van de Velde
4d8bec343a Changed SFML versions used by CI 2018-05-12 17:03:01 +02:00
Bruno Van de Velde
7d62f24dfa Added draw tests for BitmapButton 2018-05-12 17:01:23 +02:00
Bruno Van de Velde
e8361ef45f Dropped support for function references with unbound parameters in signal system 2018-05-11 14:24:12 +02:00
Bruno Van de Velde
d1bfd5e477 Sprite test was failing since isTransparentPixel now returns true when no sprite was loaded 2018-05-10 19:20:12 +02:00
Bruno Van de Velde
5b820718b1 Added TransparentTexture property to WidgetRenderer to let mouse events pass through invisible parts of textures (replaces IgnoreTransparentParts which only existed in Picture) 2018-05-10 15:01:31 +02:00
Bruno Van de Velde
3a08eb5750 Revert "Updated cmake script to use interface library to set compiler options in targets"
This reverts commit 0f3380c7557df4cd91e3109120a02c44cfa34da7.
2018-05-10 14:07:09 +02:00
Bruno Van de Velde
0f3380c755 Updated cmake script to use interface library to set compiler options in targets 2018-05-07 22:48:18 +02:00
Bruno Van de Velde
bc251ddcca Renamed LowValue to ViewportSize in ScrollBar 2018-05-06 15:51:45 +02:00
Bruno Van de Velde
06665e6d8d Added MinimumResizableBorderWidth to ChildWindow renderer to allow having an invisible area next to the borders to make resizing easier on child windows with small borders 2018-04-30 14:58:42 +02:00
Bruno Van de Velde
5368fc0a4e Added BorderBelowTitleBar propery to ChildWindow 2018-04-26 19:51:31 +02:00
Bruno Van de Velde
5ba7c5c21d Renamed SpaceBetweenArrows to BorderBetweenArrows in SpinButton to better reflect that the space is filled with the border color 2018-04-26 19:50:33 +02:00
Bruno Van de Velde
dd8d447ad2 Place borders of ChildWindow around the entire window including its title bar 2018-04-25 20:27:15 +02:00
Bruno Van de Velde
39b391c6bc Minor change in cmake files 2018-04-15 15:45:52 +02:00
Bruno Van de Velde
8142739108 Don't allow ChildWindow to be dragged outside the window 2018-04-08 22:46:54 +02:00
Bruno Van de Velde
f7b657a2a5 TextBox tests did not work with SFML 2.5 2018-04-08 22:46:36 +02:00
Bruno Van de Velde
7d0c56f72f Added setTabVisible and setTabEnabled functions to Tabs widget 2018-04-07 10:57:35 +02:00
Bruno Van de Velde
558b8b9410 Don't run the test for TGUIConfig.cmake when using an SFML version without SFMLConfig.cmake 2018-04-01 18:00:16 +02:00
Bruno Van de Velde
679a300875 New test does not need to be executed, just check if exe exists 2018-04-01 17:52:32 +02:00
Bruno Van de Velde
881fada2d9 Test for TGUIConfig.cmake did not call make 2018-04-01 16:43:52 +02:00
Bruno Van de Velde
5ae71483a0 Removed code related to gcov from cmake script 2018-04-01 16:30:09 +02:00
Bruno Van de Velde
4a63498b25 Compile cmake test with -std=c++14 2018-04-01 16:08:58 +02:00
Bruno Van de Velde
a23ed2a969 Also run TGUIConfig.cmake on macOS 2018-04-01 16:00:20 +02:00
Bruno Van de Velde
ad6877e19d Rewrote cmake scripts 2018-04-01 15:38:13 +02:00
Bruno Van de Velde
48164c8499 SFML patch for gcc 4.9 on ubuntu was broken with updated SFML cmake script 2018-03-30 23:14:20 +02:00
Bruno Van de Velde
2772dce8c6 Replaced hide/show, enable/disable, focus/unfocus and check/uncheck with setVisible, setEnabled, setFocused and setChecked 2018-03-30 19:55:26 +02:00
Bruno Van de Velde
46db2577f9 Unit tests crashed on windows 2018-03-24 14:39:37 +01:00
Bruno Van de Velde
8387f69fd8 stack include missing in test 2018-03-22 20:00:14 +01:00
Bruno Van de Velde
11c5ee05ae Updated copyright to 2018 2018-03-22 19:57:45 +01:00
Bruno Van de Velde
7461aff68e Rewrote code for focusing widgets 2018-03-22 19:45:25 +01:00
Bruno Van de Velde
a14760aef0 Updated catch.hpp 2018-03-21 19:39:01 +01:00
Bruno Van de Velde
75c578f4a3 Added method to slider to revert values (e.g. top being minimum value instead of maximum) 2018-03-21 19:38:12 +01:00
Bruno Van de Velde
2dca551e07 Use a single text size for all lines in ChatBox 2018-01-14 14:16:15 +01:00
Bruno Van de Velde
f9d44cc34c Added 'Step' property to RangeSlider and SpinButton and use float instead of int for the value 2018-01-13 17:29:12 +01:00
Bruno Van de Velde
aa84a3447e Renamed 'Frequency' property in Slider to 'Step' 2018-01-13 17:27:03 +01:00
Bruno Van de Velde
dc3adf116a Global font could cause crash on exit 2017-12-24 15:42:55 +01:00
Bruno Van de Velde
54f0245ad5 Replaced auto-sized texts with a fixed text size by default + other related changes
- A global text size was added which widgets will use by default. The size can be changed with tgui::setGlobalTextSize(). The default text size is 13 pixels.
- A global font was added. Widgets now have a font upon construction instead of only receiving it once they are added to their parent. Operations that require a font (e.g. getting the size of an auto-sized label) can now be done before the widget is added to the parent. The font can be changed with tgui::setGlobalFont().
- A small padding was added to the side of texts. The text will no longer be touching the borders of the widget.
- Reduced size of check in colored CheckBox and RadioButton
- The white theme has been updated to look slightly better.
- Default sizes of widgets with text now depend on the global text size.
- The size of a button now changes with the text it contains until setSize is called.
- ChildWindow title buttons can show some unicode characters instead of being empty squares.
- Text size of title in ChildWindow can now be independently set from the title bar height.
- Scrollbars are now only inside borders and no longer inside padding as well.
- ChatBox no longer has a separate font per line.
2017-12-24 11:34:46 +01:00
Bruno Van de Velde
3dd94747ab Added BitmapButton widget which is a buttonwith both glyph and text 2017-12-01 22:51:22 +01:00