Player12
An open source football management simulator
Loading...
Searching...
No Matches
icons.h
Go to the documentation of this file.
1
// -----------------------------------------------------------------------------
2
// Football Management Project
3
// Copyright (c) 2025 - 2026 Flavio Milinanni. All Rights Reserved.
4
//
5
// This file is part of the Football Management Project.
6
// See the LICENSE file in the project root.
7
// -----------------------------------------------------------------------------
8
9
#pragma once
10
11
#include <imgui.h>
12
13
#include <cstdint>
14
18
namespace
UI
19
{
20
22
enum class
Icon
: uint8_t
23
{
24
HOME
,
25
SQUAD
,
26
LINEUP
,
27
TACTICS
,
28
FIXTURES
,
29
STANDINGS
,
30
TRANSFERS
,
31
FINANCES
,
32
SAVE
,
33
SETTINGS
,
34
EXIT
,
35
SEARCH
,
36
EDIT
,
37
INBOX
,
38
CLUB
39
};
40
49
void
drawIcon
(ImDrawList* drawList,
Icon
icon, ImVec2 center,
float
size,
50
ImU32 color);
51
52
}
// namespace UI
UI
Small vector icons drawn with ImDrawList (no icon font needed).
Definition
icons.cpp:33
UI::Icon
Icon
Available icons.
Definition
icons.h:23
UI::Icon::SEARCH
@ SEARCH
UI::Icon::FINANCES
@ FINANCES
UI::Icon::STANDINGS
@ STANDINGS
UI::Icon::TACTICS
@ TACTICS
UI::Icon::FIXTURES
@ FIXTURES
UI::Icon::HOME
@ HOME
UI::Icon::INBOX
@ INBOX
UI::Icon::EDIT
@ EDIT
UI::Icon::EXIT
@ EXIT
UI::Icon::LINEUP
@ LINEUP
UI::Icon::CLUB
@ CLUB
UI::Icon::SQUAD
@ SQUAD
UI::Icon::TRANSFERS
@ TRANSFERS
UI::Icon::SETTINGS
@ SETTINGS
UI::Icon::SAVE
@ SAVE
UI::drawIcon
void drawIcon(ImDrawList *drawList, Icon icon, ImVec2 c, float s, ImU32 color)
Draws an icon centred on a point.
Definition
icons.cpp:35
src
gui
widgets
icons.h
Generated by
1.9.8