44 const char *name = title ? title : panel.
get_title();
45 ImGui::SeparatorText(name);
51 const char *name = title ? title : panel.
get_title();
52 bool result = ImGui::CollapsingHeader(name, flags);
virtual bool draw_window()
virtual bool menu_item(const char *shortcut=nullptr)
const char * get_title() const
std::string disabled_reason
IEditorPanel(std::string_view name)
bool draw_collapsing(IEditorPanel &panel, const char *title=nullptr, ImGuiTreeNodeFlags flags=ImGuiTreeNodeFlags_None)
void draw_seperated(IEditorPanel &panel, const char *title=nullptr)