Enum pixel_widgets::stylesheet::Selector [−][src]
pub enum Selector {
Widget(SelectorWidget),
WidgetDirectChild(SelectorWidget),
WidgetDirectAfter(SelectorWidget),
WidgetAfter(SelectorWidget),
NthMod(usize, usize),
NthLastMod(usize, usize),
Nth(usize),
NthLast(usize),
OnlyChild,
Class(String),
State(StyleState<String>),
Not(Box<Selector>),
}Expand description
A stylesheet selector, which widgets have to match against.
Variants
Widget(SelectorWidget)Match a widget
WidgetDirectChild(SelectorWidget)Match a widget that is a direct child of the parent
WidgetDirectAfter(SelectorWidget)Match a widget that follows directly after the previous widget
WidgetAfter(SelectorWidget)Match a widget that follows after a previous widget
Match the nth child widget modulo a number
Match the nth child widget counted from the last child widget modulo a number
Nth(usize)Match the nth child widget
NthLast(usize)Match the nth child widget counted from the last child widget
Match widgets that are the only child of their parent
Class(String)Match widgets that have a class
State(StyleState<String>)Match widgets that are in a state
Invert the nested selector
Implementations
impl Selector[src]
impl Selector[src]pub fn match_sibling(&self, direct: bool, widget: &str) -> Option<bool>[src]
pub fn match_sibling(&self, direct: bool, widget: &str) -> Option<bool>[src]Match a sibling widget of the current rule. If this selector is not a sibling selector None is returned.
Trait Implementations
impl StructuralPartialEq for Selector[src]
Auto Trait Implementations
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnwindSafe for Selector
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> Any for T where
T: Any,
T: Any,
impl<T> CloneAny for T where
T: Any + Clone,
T: Any + Clone,