40#ifndef GEOGRAM_GFX_IMGUI_EXT
41#define GEOGRAM_GFX_IMGUI_EXT
46#ifdef GEO_COMPILER_GCC_FAMILY
47#pragma GCC diagnostic push
48#pragma GCC diagnostic ignored "-Wsign-conversion"
49#ifdef GEO_COMPILER_CLANG
50#pragma GCC diagnostic ignored "-Wunknown-warning-option"
51#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
52#pragma GCC diagnostic ignored "-Wc++98-compat-pedantic"
56#include <geogram_gfx/third_party/imgui/imgui.h>
57#include <geogram_gfx/third_party/imgui/misc/cpp/imgui_stdlib.h>
59#if defined(GEO_COMPILER_GCC_FAMILY)
60#pragma GCC diagnostic pop
75 enum { geo_imgui_string_length = 4096 };
77 namespace FileSystem {
82typedef int ImGuiExtFileDialogFlags;
85enum ImGuiExtFileDialogFlags_ {
86 ImGuiExtFileDialogFlags_Load = 1,
87 ImGuiExtFileDialogFlags_Save = 2
121 const char* label,
float* color
134 const char* label,
float* color
150 const char* extensions,
151 const char* filename,
152 ImGuiExtFileDialogFlags flags,
168 char* filename,
size_t filename_buff_len
174 inline bool MenuItem(
175 const std::string& name,
const char* shortcut,
176 bool* p_selected =
nullptr,
bool enabled =
true
178 return ImGui::MenuItem(name.c_str(), shortcut, p_selected, enabled);
184 inline bool MenuItem(
185 const std::string& name,
const char* shortcut =
nullptr,
186 bool selected =
false,
bool enabled =
true
188 return ImGui::MenuItem(name.c_str(), shortcut, selected, enabled);
194 inline bool BeginMenu(
const std::string& name) {
195 return ImGui::BeginMenu(name.c_str());
201 inline bool Button(
const std::string& name) {
202 return ImGui::Button(name.c_str());
221 inline void Tooltip(
const std::string& s) {
246 bool GEOGRAM_GFX_API SimpleButton(
const char* label,
const ImVec2& size);
251 inline bool SimpleButton(
const std::string& label) {
252 return SimpleButton(label.c_str());
#define GEOGRAM_GFX_API
Linkage declaration for geogram symbols.
Common include file, providing basic definitions. Should be included before anything else by all head...
Global Vorpaline namespace.