* Draw an inset widget. * @param r Rectangle of the background. * @param colour Colour of the inset. * @param text_colour Colour of the text. * @param str Text to draw. * @param align Alignment of the text. * @param fs Font size of the text. */
| 443 | * @param fs Font size of the text. |
| 444 | */ |
| 445 | static inline void DrawInset(const Rect &r, Colours colour, TextColour text_colour, std::string_view str, StringAlignment align, FontSize fs) |
| 446 | { |
| 447 | DrawFrameRect(r, colour, {FrameFlag::Lowered, FrameFlag::Darkened}); |
| 448 | if (!str.empty()) DrawString(r.Shrink(WidgetDimensions::scaled.inset), str, text_colour, align, false, fs); |
| 449 | } |
| 450 | |
| 451 | /** |
| 452 | * Draw a matrix widget. |
no test coverage detected