mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 05:01:05 +01:00 
			
		
		
		
	Nav: Added code to render thin highlight type. (#787)
This commit is contained in:
		| @@ -51,6 +51,7 @@ typedef int ImGuiTreeNodeFlags;   // enum ImGuiTreeNodeFlags_ | ||||
| typedef int ImGuiSliderFlags;     // enum ImGuiSliderFlags_ | ||||
| typedef int ImGuiSeparatorFlags;  // enum ImGuiSeparatorFlags_ | ||||
| typedef int ImGuiItemFlags;       // enum ImGuiItemFlags_ | ||||
| typedef int ImGuiNavHighlightFlags; | ||||
|  | ||||
| //------------------------------------------------------------------------- | ||||
| // STB libraries | ||||
| @@ -250,6 +251,13 @@ enum ImGuiDir | ||||
|     ImGuiDir_Down    = 3 | ||||
| }; | ||||
|  | ||||
| enum ImGuiNavHighlightFlags_ | ||||
| { | ||||
|     ImGuiNavHighlightFlags_TypeDefault  = 1 << 0, | ||||
|     ImGuiNavHighlightFlags_TypeThin     = 1 << 1, | ||||
|     ImGuiNavHighlightFlags_AlwaysRender = 1 << 2 | ||||
| }; | ||||
|  | ||||
| enum ImGuiCorner | ||||
| { | ||||
|     ImGuiCorner_TopLeft     = 1 << 0, // 1 | ||||
| @@ -895,7 +903,7 @@ namespace ImGui | ||||
|     IMGUI_API void          RenderCollapseTriangle(ImVec2 pos, bool is_open, float scale = 1.0f); | ||||
|     IMGUI_API void          RenderBullet(ImVec2 pos); | ||||
|     IMGUI_API void          RenderCheckMark(ImVec2 pos, ImU32 col); | ||||
|     IMGUI_API void          RenderNavHighlight(const ImRect& bb, ImGuiID id);                   // 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 const char*   FindRenderedTextEnd(const char* text, const char* text_end = NULL); // Find the optional ## from which we stop displaying text. | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user