|
|
@ -1310,7 +1310,7 @@ enum ImGuiSliderFlags_
|
|
|
|
|
|
|
|
|
|
|
|
// Obsolete names (will be removed)
|
|
|
|
// Obsolete names (will be removed)
|
|
|
|
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
|
|
|
|
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
|
|
|
|
, ImGuiSliderFlags_ClampOnInput = ImGuiSliderFlags_AlwaysClamp, // [renamed in 1.79]
|
|
|
|
, ImGuiSliderFlags_ClampOnInput = ImGuiSliderFlags_AlwaysClamp // [renamed in 1.79]
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -1408,8 +1408,8 @@ struct ImVector
|
|
|
|
inline int size_in_bytes() const { return Size * (int)sizeof(T); }
|
|
|
|
inline int size_in_bytes() const { return Size * (int)sizeof(T); }
|
|
|
|
inline int max_size() const { return 0x7FFFFFFF / (int)sizeof(T); }
|
|
|
|
inline int max_size() const { return 0x7FFFFFFF / (int)sizeof(T); }
|
|
|
|
inline int capacity() const { return Capacity; }
|
|
|
|
inline int capacity() const { return Capacity; }
|
|
|
|
inline T& operator[](int i) { IM_ASSERT(i < Size); return Data[i]; }
|
|
|
|
inline T& operator[](int i) { IM_ASSERT(i >= 0 && i < Size); return Data[i]; }
|
|
|
|
inline const T& operator[](int i) const { IM_ASSERT(i < Size); return Data[i]; }
|
|
|
|
inline const T& operator[](int i) const { IM_ASSERT(i >= 0 && i < Size); return Data[i]; }
|
|
|
|
|
|
|
|
|
|
|
|
inline void clear() { if (Data) { Size = Capacity = 0; IM_FREE(Data); Data = NULL; } }
|
|
|
|
inline void clear() { if (Data) { Size = Capacity = 0; IM_FREE(Data); Data = NULL; } }
|
|
|
|
inline T* begin() { return Data; }
|
|
|
|
inline T* begin() { return Data; }
|
|
|
|