@ -109,6 +109,7 @@ IMGUI_API void ImTriangleBarycentricCoords(const ImVec2& a, const ImVec
// Helpers: String
// Helpers: String
IMGUI_API int ImStricmp ( const char * str1 , const char * str2 ) ;
IMGUI_API int ImStricmp ( const char * str1 , const char * str2 ) ;
IMGUI_API int ImStrnicmp ( const char * str1 , const char * str2 , int count ) ;
IMGUI_API int ImStrnicmp ( const char * str1 , const char * str2 , int count ) ;
IMGUI_API void ImStrncpy ( char * dst , const char * src , int count ) ;
IMGUI_API char * ImStrdup ( const char * str ) ;
IMGUI_API char * ImStrdup ( const char * str ) ;
IMGUI_API int ImStrlenW ( const ImWchar * str ) ;
IMGUI_API int ImStrlenW ( const ImWchar * str ) ;
IMGUI_API const ImWchar * ImStrbolW ( const ImWchar * buf_mid_line , const ImWchar * buf_begin ) ; // Find beginning-of-line
IMGUI_API const ImWchar * ImStrbolW ( const ImWchar * buf_mid_line , const ImWchar * buf_begin ) ; // Find beginning-of-line
@ -142,6 +143,7 @@ static inline int ImClamp(int v, int mn, int mx)
static inline float ImClamp ( float v , float mn , float mx ) { return ( v < mn ) ? mn : ( v > mx ) ? mx : v ; }
static inline float ImClamp ( float v , float mn , float mx ) { return ( v < mn ) ? mn : ( v > mx ) ? mx : v ; }
static inline ImVec2 ImClamp ( const ImVec2 & f , const ImVec2 & mn , ImVec2 mx ) { return ImVec2 ( ImClamp ( f . x , mn . x , mx . x ) , ImClamp ( f . y , mn . y , mx . y ) ) ; }
static inline ImVec2 ImClamp ( const ImVec2 & f , const ImVec2 & mn , ImVec2 mx ) { return ImVec2 ( ImClamp ( f . x , mn . x , mx . x ) , ImClamp ( f . y , mn . y , mx . y ) ) ; }
static inline float ImSaturate ( float f ) { return ( f < 0.0f ) ? 0.0f : ( f > 1.0f ) ? 1.0f : f ; }
static inline float ImSaturate ( float f ) { return ( f < 0.0f ) ? 0.0f : ( f > 1.0f ) ? 1.0f : f ; }
static inline void ImSwap ( int & a , int & b ) { int tmp = a ; a = b ; b = tmp ; }
static inline void ImSwap ( float & a , float & b ) { float tmp = a ; a = b ; b = tmp ; }
static inline void ImSwap ( float & a , float & b ) { float tmp = a ; a = b ; b = tmp ; }
static inline int ImLerp ( int a , int b , float t ) { return ( int ) ( a + ( b - a ) * t ) ; }
static inline int ImLerp ( int a , int b , float t ) { return ( int ) ( a + ( b - a ) * t ) ; }
static inline float ImLerp ( float a , float b , float t ) { return a + ( b - a ) * t ; }
static inline float ImLerp ( float a , float b , float t ) { return a + ( b - a ) * t ; }
@ -182,7 +184,8 @@ enum ImGuiButtonFlags_
ImGuiButtonFlags_AlignTextBaseLine = 1 < < 8 , // vertically align button to match text baseline - ButtonEx() only // FIXME: Should be removed and handled by SmallButton(), not possible currently because of DC.CursorPosPrevLine
ImGuiButtonFlags_AlignTextBaseLine = 1 < < 8 , // vertically align button to match text baseline - ButtonEx() only // FIXME: Should be removed and handled by SmallButton(), not possible currently because of DC.CursorPosPrevLine
ImGuiButtonFlags_NoKeyModifiers = 1 < < 9 , // disable interaction if a key modifier is held
ImGuiButtonFlags_NoKeyModifiers = 1 < < 9 , // disable interaction if a key modifier is held
ImGuiButtonFlags_AllowOverlapMode = 1 < < 10 , // require previous frame HoveredId to either match id or be null before being usable
ImGuiButtonFlags_AllowOverlapMode = 1 < < 10 , // require previous frame HoveredId to either match id or be null before being usable
ImGuiButtonFlags_NoNavFocus = 1 < < 11 // don't override navigation focus when activated
ImGuiButtonFlags_NoHoldingActiveID = 1 < < 11 , // don't set ActiveId while holding the mouse (ImGuiButtonFlags_PressedOnClick only)
ImGuiButtonFlags_NoNavFocus = 1 < < 12 // don't override navigation focus when activated
} ;
} ;
enum ImGuiSliderFlags_
enum ImGuiSliderFlags_
@ -915,7 +918,7 @@ namespace ImGui
IMGUI_API void RenderColorRectWithAlphaCheckerboard ( ImVec2 p_min , ImVec2 p_max , ImU32 fill_col , float grid_step , ImVec2 grid_off , float rounding = 0.0f , int rounding_corners_flags = ~ 0 ) ;
IMGUI_API void RenderColorRectWithAlphaCheckerboard ( ImVec2 p_min , ImVec2 p_max , ImU32 fill_col , float grid_step , ImVec2 grid_off , float rounding = 0.0f , int rounding_corners_flags = ~ 0 ) ;
IMGUI_API void RenderCollapseTriangle ( ImVec2 pos , bool is_open , float scale = 1.0f ) ;
IMGUI_API void RenderCollapseTriangle ( ImVec2 pos , bool is_open , float scale = 1.0f ) ;
IMGUI_API void RenderBullet ( ImVec2 pos ) ;
IMGUI_API void RenderBullet ( ImVec2 pos ) ;
IMGUI_API void RenderCheckMark ( ImVec2 pos , ImU32 col ) ;
IMGUI_API void RenderCheckMark ( ImVec2 pos , ImU32 col , float sz ) ;
IMGUI_API void RenderNavHighlight ( const ImRect & bb , ImGuiID id , ImGuiNavHighlightFlags flags = ImGuiNavHighlightFlags_TypeDefault ) ; // Navigation highlight
IMGUI_API void RenderNavHighlight ( const ImRect & bb , ImGuiID id , ImGuiNavHighlightFlags flags = ImGuiNavHighlightFlags_TypeDefault ) ; // Navigation highlight
IMGUI_API void RenderRectFilledRangeH ( ImDrawList * draw_list , const ImRect & rect , ImU32 col , float x_start_norm , float x_end_norm , float rounding ) ;
IMGUI_API void RenderRectFilledRangeH ( ImDrawList * draw_list , const ImRect & rect , ImU32 col , float x_start_norm , float x_end_norm , float rounding ) ;
IMGUI_API const char * FindRenderedTextEnd ( const char * text , const char * text_end = NULL ) ; // Find the optional ## from which we stop displaying text.
IMGUI_API const char * FindRenderedTextEnd ( const char * text , const char * text_end = NULL ) ; // Find the optional ## from which we stop displaying text.