infinipaint/src/GUIStuff/GUIManagerID.cpp

20 lines
382 B
C++
Raw Normal View History

2025-07-06 20:43:53 +03:00
#include "GUIManagerID.hpp"
namespace GUIStuff {
2026-01-07 12:03:59 +03:00
GUIManagerID::GUIManagerID(intptr_t numID):
2025-07-06 20:43:53 +03:00
idIsStr(false),
idNum(numID)
{}
2026-01-07 12:03:59 +03:00
GUIManagerID::GUIManagerID(const char* strID):
2025-07-06 20:43:53 +03:00
idIsStr(true),
2026-01-07 12:03:59 +03:00
idNum(reinterpret_cast<intptr_t>(strID))
2025-07-06 20:43:53 +03:00
{}
bool GUIManagerID::operator==(const GUIManagerID& other) const {
2026-01-07 12:03:59 +03:00
return idIsStr == other.idIsStr && idNum == other.idNum;
2025-07-06 20:43:53 +03:00
}
}