Smolgui
Immediate gui library based on SFML
Loading...
Searching...
No Matches
DrawOptions.h
Go to the documentation of this file.
1#pragma once
2
3#include <SFML/Graphics/Color.hpp>
5
6namespace sgui
7{
8
13 bool horizontal = true;
14 float progress = 1.f;
16};
17
22 TextDrawOptions () = default;
26 TextDrawOptions (const sf::Vector2f& p, const sf::Color& c, uint32_t s)
27 : position (p), color (c), size (s) {}
28 // data
29 sf::Vector2f position = {};
30 sf::Color color = sf::Color::White;
31 uint32_t size = 16u;
32};
33
34} // namespace sgui
Definition Interpolation.h:16
uint32_t size
Font size.
Definition DrawOptions.h:31
TextDrawOptions(const sf::Vector2f &p, const sf::Color &c, uint32_t s)
Helper constructo.
Definition DrawOptions.h:26
sf::Vector2f position
Text position.
Definition DrawOptions.h:29
sf::Color color
Text color.
Definition DrawOptions.h:30
Store data required to fully customize how a widget is drawn.
Definition Aspect.h:14
Store options for drawing widgets.
Definition DrawOptions.h:12
float progress
Percent to draw for a widget.
Definition DrawOptions.h:14
WidgetAspect aspect
To control widget aspect.
Definition DrawOptions.h:15
bool horizontal
Specify if a widget is horizontal or vertical.
Definition DrawOptions.h:13