Smolgui
Immediate gui library based on SFML
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
Style.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
#include <SFML/Graphics/Color.hpp>
5
#include <SFML/System/Vector2.hpp>
6
7
namespace
sgui
8
{
10
13
struct
FontSize
14
{
15
FontSize
() =
default
;
16
// data
17
uint32_t
footnote
= 10u;
18
uint32_t
subtitle
= 14u;
19
uint32_t
normal
= 16u;
20
uint32_t
title
= 18u;
21
};
22
26
struct
Style
27
{
28
Style
() =
default
;
29
// font related
30
FontSize
fontSize
= {};
31
sf::Color
fontColor
= sf::Color::White;
32
// widget related
33
float
itemSpacing
= 5.f;
34
};
35
36
}
// namespace sgui
sgui
Definition
Interpolation.h:16
sgui::FontSize
font size container
Definition
Style.h:14
sgui::FontSize::title
uint32_t title
Definition
Style.h:20
sgui::FontSize::subtitle
uint32_t subtitle
Definition
Style.h:18
sgui::FontSize::footnote
uint32_t footnote
Definition
Style.h:17
sgui::FontSize::FontSize
FontSize()=default
sgui::FontSize::normal
uint32_t normal
Definition
Style.h:19
sgui::Style::Style
Style()=default
sgui::Style::fontColor
sf::Color fontColor
Definition
Style.h:31
sgui::Style::itemSpacing
float itemSpacing
Definition
Style.h:33
sgui::Style::fontSize
FontSize fontSize
Definition
Style.h:30
src
sgui
Widgets
Style.h
Generated by
1.16.1