public ImGui(GuiBuilder gui, Padding padding, RectAllocator defaultAllocator = RectAllocator.Stretch, bool clip = false) { this.gui = gui; if (gui == null) { action = ImGuiAction.Build; } this.defaultAllocator = defaultAllocator; this.clip = clip; initialPadding = padding; }
public static void ShowTooltip(this ImGui gui, GuiBuilder builder, float width = 20f) => gui.window?.ShowTooltip(gui, gui.lastRect, builder, width);
public void Show(GuiBuilder builder, ImGui gui, Rect rect, float width = 30f) { this.width = width; this.builder = builder; base.SetFocus(gui, rect); }