SpiecsEngine
 
Loading...
Searching...
No Matches
UUIDComponent.cpp
Go to the documentation of this file.
1/**
2* @file UUIDComponent.cpp.
3* @brief The UUIDComponent Class Implementation.
4* @author Spices.
5*/
6
7#include "Pchheader.h"
9
10namespace Spices {
11
13 {
14
15 }
16
18 {
19
20 }
21
23 {
25
26 ImGui::Spacing();
27 ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2{ 0, 3.0f });
28 float columeWidth = ImGuiH::GetLineItemSize().x * 6.5f;
29
30 {
31 SPICES_PROFILE_ZONEN("UUIDComponent UUID");
32
33 ImGuiH::DrawPropertyItem("UUID", columeWidth, nullptr, [&]() {
34 ImGui::PushItemWidth(ImGui::GetContentRegionAvail().x - ImGuiH::GetLineItemSize().x);
35 char buffer[256] = {};
36 ImGui::InputTextWithHint("##", ICON_TEXT_ROW(" ", std::to_string(m_uuid).c_str()), buffer, sizeof(buffer));
37 ImGui::PopItemWidth();
38 ImGui::SameLine();
39 ImGuiH::DrawResetIcon(false);
40 });
41 }
42
43 ImGui::PopStyleVar();
44 ImGui::Spacing();
45 }
46}
#define ICON_TEXT_ROW(icon, text)
Definition ImguiHelper.h:25
#define SPICES_PROFILE_ZONEN(...)
#define SPICES_PROFILE_ZONE
virtual void OnSerialize() override
This interface defines how to serialize.
virtual void DrawThis() override
This interface defines how to draw this component to property panel.
virtual void OnDeSerialize() override
This interface defines how to deserialize.
UUIDComponent Class. This class defines the specific behaves of UUIDComponent.