0.4.1
Loading...
Searching...
No Matches
PinIcon.hpp
Go to the documentation of this file.
1
// This file is part of INSTINCT, the INS Toolkit for Integrated
2
// Navigation Concepts and Training by the Institute of Navigation of
3
// the University of Stuttgart, Germany.
4
//
5
// This Source Code Form is subject to the terms of the Mozilla Public
6
// License, v. 2.0. If a copy of the MPL was not distributed with this
7
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
9
/// @file HelpMarker.hpp
10
/// @brief Icon Widget
11
/// @author T. Topp (topp@ins.uni-stuttgart.de)
12
/// @date 2020-12-14
13
14
#pragma once
15
16
#include "imgui.h"
17
#include <cstdint>
18
19
namespace
NAV::gui::widgets::PinIcon
20
{
21
enum class
Type
: uint8_t
22
{
23
Flow
,
24
Circle
,
25
Square
,
26
Grid
,
27
RoundSquare
,
28
Diamond
29
};
30
31
/// @brief Draws an Icon for a Pin with the specified settings
32
/// @param[in] size Size of the Icons
33
/// @param[in] type Type of the Icon (Flow, Circle, Square, Grid, ...)
34
/// @param[in] filled Specifies if the icons should be filled
35
/// @param[in] color Color of the Icon
36
/// @param[in] innerColor Color to fill the Icon with
37
void
Draw
(
const
ImVec2& size,
Type
type,
bool
filled,
const
ImVec4& color = ImVec4(1, 1, 1, 1),
const
ImVec4& innerColor = ImVec4(0, 0, 0, 0));
38
39
}
// namespace NAV::gui::widgets::PinIcon
NAV::gui::widgets::PinIcon
Definition
PinIcon.cpp:13
NAV::gui::widgets::PinIcon::Type
Type
Definition
PinIcon.hpp:22
NAV::gui::widgets::PinIcon::Type::Circle
@ Circle
Definition
PinIcon.hpp:24
NAV::gui::widgets::PinIcon::Type::Grid
@ Grid
Definition
PinIcon.hpp:26
NAV::gui::widgets::PinIcon::Type::RoundSquare
@ RoundSquare
Definition
PinIcon.hpp:27
NAV::gui::widgets::PinIcon::Type::Diamond
@ Diamond
Definition
PinIcon.hpp:28
NAV::gui::widgets::PinIcon::Type::Square
@ Square
Definition
PinIcon.hpp:25
NAV::gui::widgets::PinIcon::Type::Flow
@ Flow
Definition
PinIcon.hpp:23
NAV::gui::widgets::PinIcon::Draw
void Draw(const ImVec2 &size, Type type, bool filled, const ImVec4 &color=ImVec4(1, 1, 1, 1), const ImVec4 &innerColor=ImVec4(0, 0, 0, 0))
Draws an Icon for a Pin with the specified settings.
Definition
PinIcon.cpp:253
src
internal
gui
widgets
PinIcon.hpp
Generated by
1.13.2