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,
}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.
Implementations§
Source§impl FacetCaps
impl FacetCaps
pub const fn scalable(self) -> Self
pub const fn copyable(self) -> Self
pub const fn pasteable(self) -> Self
pub const fn selectable(self) -> Self
pub const fn themeable(self) -> Self
pub const fn resizable(self) -> Self
pub const fn searchable(self) -> Self
pub const fn editable(self) -> Self
Trait Implementations§
impl Copy for FacetCaps
impl Eq for FacetCaps
impl StructuralPartialEq for FacetCaps
Auto Trait Implementations§
impl Freeze for FacetCaps
impl RefUnwindSafe for FacetCaps
impl Send for FacetCaps
impl Sync for FacetCaps
impl Unpin for FacetCaps
impl UnsafeUnpin for FacetCaps
impl UnwindSafe for FacetCaps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more