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

Class ImVec2ih

KBotExt/imgui/imgui_internal.h:495–501  ·  view source on GitHub ↗

Helper: ImVec2ih (2D vector, half-size integer, for long-term packed storage)

Source from the content-addressed store, hash-verified

493
494// Helper: ImVec2ih (2D vector, half-size integer, for long-term packed storage)
495struct ImVec2ih
496{
497 short x, y;
498 constexpr ImVec2ih() : x(0), y(0) {}
499 constexpr ImVec2ih(short _x, short _y) : x(_x), y(_y) {}
500 constexpr explicit ImVec2ih(const ImVec2& rhs) : x((short)rhs.x), y((short)rhs.y) {}
501};
502
503// Helper: ImRect (2D axis aligned bounding-box)
504// NB: we can't rely on ImVec2 math operators being available here!

Callers 3

SetWindowHitTestHoleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected