Commit Graph

14 Commits

Author SHA1 Message Date
de8ce3e7bc Added text overflow to label.
Generalised text fitting (to width) and implemented binary search.
2021-07-19 17:55:10 +02:00
c0586c1d8f Added overridable text padding. 2021-07-19 07:58:46 +02:00
11e37af9c2 Added shorthand method for retrieving default font for the control. 2020-12-13 07:40:58 +01:00
5babda0ca9 Added (optional) dropshadow for label. 2020-12-13 07:40:58 +01:00
75fce53716 Added Paragraph control.
Extended DesiredSize method with extra arguments that tells the control how much space is available for the parent control (note: this might not be the actual given size when Arrange is called on the control).
2020-05-16 15:37:53 +02:00
ae46d2a1f2 Added Disabled to controls. 2020-05-16 13:46:07 +02:00
3591e22c97 Added Fonts() to context similarly as Textures().
- Fonts are now managed by context instead of the implementation specific renderers.
2020-05-15 15:42:24 +02:00
5ecfd10754 Made cache more generic. 2020-05-12 20:58:42 +02:00
757758d8e9 Fixed right/center alignment of labels. 2019-07-09 19:07:40 +02:00
36d620108c Optimized rendering a lot of labels.
- Added caching of the desired size of a label.
2019-07-04 22:15:32 +02:00
e867925de8 Added (horizontal) text alignment. 2019-06-24 20:58:14 +02:00
3ea0d76efb Created unified spacing control.
Build control methods now accept nil as visitor method.
2019-03-12 21:11:43 +01:00
c83a6d5aad Added FontStyle on ControlBase.
Forced putting text on integer coordinates.
2019-03-12 19:43:52 +01:00
19daffd110 Added UI elements.
Reversed order of operands when comparing with nil/0 .
2019-03-05 21:52:18 +01:00