Inceptum/launcher-imgui/src/main/java/io/gitlab/jfronny/inceptum/imgui/control/Tab.java
JFronny 441a9b26b2
Some checks failed
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline failed
Remove manifold and add JPMS in every project except wrapper, launchwrapper and launcher-gtk
2023-05-05 18:49:56 +02:00

25 lines
462 B
Java

package io.gitlab.jfronny.inceptum.imgui.control;
import imgui.ImGui;
public abstract class Tab {
private final String name;
public Tab(String name) {
this.name = name;
}
protected abstract void renderInner();
public void render() {
if (isVisible() && ImGui.beginTabItem(name)) {
renderInner();
ImGui.endTabItem();
}
}
protected boolean isVisible() {
return true;
}
}