| 72 | const uint32_t kHighlightColor = IM_COL32(0xff, 0x7f, 0x00, 0xcf); |
| 73 | |
| 74 | void drawRectFilled(const ImVec2& pos, const ImVec2& size, uint32_t color = 0xffffffff) |
| 75 | { |
| 76 | auto cursorPos = ImGui::GetCursorScreenPos(); |
| 77 | ImGui::GetWindowDrawList()->AddRectFilled( |
| 78 | ImVec2(cursorPos.x + pos.x, cursorPos.y + pos.y), ImVec2(cursorPos.x + pos.x + size.x, cursorPos.y + pos.y + size.y), color |
| 79 | ); |
| 80 | }; |
| 81 | |
| 82 | void drawBar(float fraction, const ImVec2& size, ImU32 color = 0xffffffff, ImU32 background = 0x00000000, bool highlight = false) |
| 83 | { |