pub enum Subcontrol {
Host,
Content,
Header,
}Expand description
One addressable widget within a composite native backing (docs/tree.md,
docs/tweaks.md), Qt’s name for the concept (QStyle::SubControl). A list’s or
tree’s node handle is its scroller; Subcontrol::Content is the widget inside it.
Backends resolve an unknown subcontrol to None, never to the host.
Variants§
Host
The node’s own handle: what every tweak accessor reached before subcontrols existed.
Content
The content widget inside the scroller (NSOutlineView, NSTableView, …).
Header
The header view, where the widget has one. Day’s lists and trees ship headerless, so
this answers None until a kind grows a header.
Trait Implementations§
Source§impl Clone for Subcontrol
impl Clone for Subcontrol
impl Copy for Subcontrol
Source§impl Debug for Subcontrol
impl Debug for Subcontrol
impl Eq for Subcontrol
Source§impl Hash for Subcontrol
impl Hash for Subcontrol
Source§impl PartialEq for Subcontrol
impl PartialEq for Subcontrol
impl StructuralPartialEq for Subcontrol
Auto Trait Implementations§
impl Freeze for Subcontrol
impl RefUnwindSafe for Subcontrol
impl Send for Subcontrol
impl Sync for Subcontrol
impl Unpin for Subcontrol
impl UnsafeUnpin for Subcontrol
impl UnwindSafe for Subcontrol
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