mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-03 03:05:18 +02:00
20 lines
626 B
C++
20 lines
626 B
C++
// Just some string_view and related wrappers.
|
|
|
|
#include <string_view>
|
|
#include "ext/imgui/imgui.h"
|
|
|
|
namespace ImGui {
|
|
|
|
inline void TextUnformatted(std::string_view str) {
|
|
TextUnformatted(str.data(), str.data() + str.size());
|
|
}
|
|
|
|
bool RepeatButton(const char *title);
|
|
int RepeatButtonShift(const char *label, float repeatRate = 0.05f);
|
|
|
|
bool CollapsingHeaderWithCount(const char *title, int count, ImGuiTreeNodeFlags flags = 0);
|
|
bool CheckboxInverted(const char *label, bool *v);
|
|
bool MenuItemInverted(const char* label, const char* shortcut = nullptr, bool* p_selected = nullptr, bool enabled = true);
|
|
|
|
} // namespace ImGui
|