Skip to content

Basic types#

ImGui::ImVec2: 2D vector used to store positions, sizes etc. [Compile-time configurable type]
This is a frequently used type in the API. Consider using IM_VEC2_CLASS_EXTRA to create implicit cast from/to our preferred type.

struct ImGui::ImVec2
inherits Struct #

Included modules

ImGui::StructType
#x : Float32#
View source
#y : Float32#
View source

We very rarely use this [] operator, the assert overhead is fine.
We very rarely use this [] operator, the assert overhead is fine.

Define additional constructors and implicit cast operators in imconfig.h to convert back and forth between your math types and ImGui::ImVec2.

ImGui::ImVec4: 4D vector used to store clipping rectangles, colors etc. [Compile-time configurable type]

struct ImGui::ImVec4
inherits Struct #

Included modules

ImGui::StructType
#x : Float32#
View source
#y : Float32#
View source
#z : Float32#
View source
#w : Float32#
View source

Define additional constructors and implicit cast operators in imconfig.h to convert back and forth between your math types and ImGui::ImVec4.