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,
}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.
Implementations§
Source§impl FacetCaps
impl FacetCaps
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