Skip to main content

sqlly_datatable/grid/
mod.rs

1//! `GridState` plus the GPUI widget, paint functions, and helpers that swing
2//! between them. The flat public re-exports below keep existing consumers of
3//! the 0.1.x API working; new code should prefer importing from the canonical
4//! `crate::grid::*` paths.
5
6pub mod context_menu;
7pub mod menu;
8pub mod paint;
9pub mod selection;
10pub mod state;
11pub mod theme;
12pub mod widget;
13
14// Flat re-exports so external code can write `use sqlly_datatable::GridState`
15// without mapping the internal split.
16pub use context_menu::{
17    ContextMenuItem, ContextMenuProvider, ContextMenuRequest, ContextMenuSelection,
18    ContextMenuTarget, SelectedCellContext, SelectedRowContext,
19};
20pub use menu::{ContextMenu, MenuAction, MenuItem};
21pub use selection::{HitResult, ScrollbarAxis, Selection, SortDirection};
22pub use state::{BusyState, FilterInput, FilterPanel, FilterValueRow, GridState};
23pub use theme::GridTheme;
24pub use widget::{SqllyDataTable, SqllyDataTableBuilder};
25
26// Inline a couple of constants that callers used to read from the `grid` mod.
27pub use state::SCROLLBAR_SIZE;