pub struct FacetCaps {
pub scalable: bool,
pub copyable: bool,
pub pasteable: bool,
pub cuttable: bool,
pub selectable: bool,
pub themeable: bool,
pub resizable: bool,
pub searchable: bool,
pub editable: bool,
pub navigable: bool,
}Expand description
What a Facet can do, so hosts treat every component uniformly. All-false by default: a facet opts in to each capability it actually honors.
Fields§
§scalable: boolHonors a uniform scale: f32 (Ctrl-+/Ctrl– and a toolbar zoom).
copyable: boolHas a current selection that can be copied (drives Ctrl-C/Ctrl-X gating).
pasteable: boolAccepts pasted content (drives Ctrl-V gating).
cuttable: boolSupports cut (remove-on-copy). Implies copyable.
selectable: boolHas a user selection model (rows, nodes, points…).
themeable: boolReads the facett Theme from the context (vs. fixed colours).
resizable: boolIts content area can be resized by the host without breaking.
searchable: boolExposes a text search/filter over its content.
editable: boolSupports inline cell editing (Enter/double-click to enter edit mode, Enter/Tab to commit, Escape to cancel). Emits change events via GridResponse.
Drives the shared Navigable pan/zoom/fit model
(wheel zoom-to-cursor, drag-pan, keyboard pan/zoom, fit-to-view). A host
can offer navigation help / a fit affordance when this is set.