inspector: add grid section to screen

This commit is contained in:
Mitchell Hashimoto
2026-01-27 14:44:22 -08:00
parent 4992212ecd
commit f23e67388d
2 changed files with 13 additions and 2 deletions

View File

@@ -261,7 +261,6 @@ fn setupLayout(self: *Inspector, dock_id_main: cimgui.c.ImGuiID) void {
// Surface is docked first so it appears as the first tab.
cimgui.ImGui_DockBuilderDockWindow(inspector.surface.Window.name, dock_id_main);
cimgui.ImGui_DockBuilderDockWindow(inspector.terminal.Window.name, dock_id_main);
cimgui.ImGui_DockBuilderDockWindow(inspector.screen.Window.name, dock_id_main);
cimgui.ImGui_DockBuilderDockWindow(window_keyboard, dock_id_main);
cimgui.ImGui_DockBuilderDockWindow(window_termio, dock_id_main);
cimgui.ImGui_DockBuilderDockWindow(window_cell, dock_id_main);

View File

@@ -44,7 +44,6 @@ pub const Window = struct {
}
fn renderContent(self: *Window, data: FrameData) void {
_ = self;
const screen = data.screen;
// Show warning if viewing an inactive screen
@@ -143,6 +142,13 @@ pub const Window = struct {
} // table
} // keyboard
if (cimgui.c.ImGui_CollapsingHeader(
"Grid",
cimgui.c.ImGuiTreeNodeFlags_None,
)) {
self.renderGrid();
} // grid
if (cimgui.c.ImGui_CollapsingHeader(
"Kitty Graphics",
cimgui.c.ImGuiTreeNodeFlags_None,
@@ -283,4 +289,10 @@ pub const Window = struct {
}
} // terminal state
}
/// Render the grid section.
fn renderGrid(self: *Window) void {
_ = self;
cimgui.c.ImGui_Text("Mode");
}
};