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
20{
21enum class Type : uint8_t
22{
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
37void 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
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