Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.21)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "iOS" OR IOS)
set(CMAKE_OSX_ARCHITECTURES "arm64")
Expand Down
2 changes: 2 additions & 0 deletions include/API.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ namespace devtools {
inline void sameLine() GEODE_EVENT_EXPORT_NORES(&sameLine, ());
inline void separator() GEODE_EVENT_EXPORT_NORES(&separator, ());
inline void nextItemWidth(float width) GEODE_EVENT_EXPORT_NORES(&nextItemWidth, (width));
inline void indent() GEODE_EVENT_EXPORT_NORES(&indent, ());
inline void unindent() GEODE_EVENT_EXPORT_NORES(&unindent, ());

inline bool combo(
char const* label,
Expand Down
6 changes: 6 additions & 0 deletions src/API.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ void devtools::separator() {
void devtools::nextItemWidth(float width) {
ImGui::SetNextItemWidth(width);
}
void devtools::indent() {
ImGui::Indent(16.f);
}
void devtools::unindent() {
ImGui::Unindent(16.f);
}
bool devtools::combo(char const* label, int& current, std::span<char const*> items, int maxHeight) {
return ImGui::Combo(
label,
Expand Down
Loading