MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / ImVec2

Function ImVec2

KBotExt/imgui/imgui.h:263–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261{
262 float x, y;
263 constexpr ImVec2() : x(0.0f), y(0.0f) { }
264 constexpr ImVec2(float _x, float _y) : x(_x), y(_y) { }
265 float& operator[] (size_t idx) { IM_ASSERT(idx == 0 || idx == 1); return ((float*)(void*)(char*)this)[idx]; } // We very rarely use this [] operator, so the assert overhead is fine.
266 float operator[] (size_t idx) const { IM_ASSERT(idx == 0 || idx == 1); return ((const float*)(const void*)(const char*)this)[idx]; }

Callers 15

RenderMethod · 0.85
MenuInitMethod · 0.85
CustomMethod · 0.85
InvokeMethod · 0.85
RenderMethod · 0.85
RenderMethod · 0.85
RenderMethod · 0.85
RenderMethod · 0.85
RenderMethod · 0.85
ComboAutoSelectComplexFunction · 0.85
sizeCallbackMethod · 0.85
RenderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected