[−][src]Enum sciter::dom::ELEMENT_STATE_BITS
Collection of states (runtime flags) of a DOM element.
They reflect CSS pseudo-classes that are used in selectors,
e.g. STATE_HOVER
is :hover
, STATE_ACTIVE
is :active
, and so on.
Implements |
and &
bitwise operators.
Variants
Zero state.
Element is a link.
E.g. <a href
.
Mouse over the element at the moment.
Element is pressed.
Commonly used by <button>
or <a>
elements.
Element is focused.
Element was visited.
For example, a link that was clicked.
Current (hot) item.
Element is checked (or selected).
Element is disabled.
Readonly input element.
Expanded state - e.g. nodes in tree view.
Mutually exclusive with STATE_COLLAPSED
.
Collapsed state - e.g. nodes in tree view.
Mutually exclusive with STATE_EXPANDED
.
One of fore/back images was requested but is not delivered.
Is animating currently.
Will accept focus.
Anchor in selection (used with current in selects).
This is a synthetic element - i.e. don't emit it's head/tail.
A popup element is shown for this particular element.
Focus gained by tab traversal.
Element is empty.
i.e. the element has no text content nor children nodes.
If element has a behavior attached then the behavior is responsible for the value of this flag.
Busy or loading.
Drag over the block that can accept it (so is a current drop target).
Flag is set for the drop target block.
Active drop target.
Dragging/moving - the flag is set for the moving block.
Dragging/copying - the flag is set for the copying block.
Element that is a drag source.
Element is drop marker.
Close to STATE_ACTIVE
but has wider life span.
E.g. in MOUSE_UP
it is still on;
so behavior can check it in MOUSE_UP
to discover the CLICK
condition.
This element is out of flow.
The element or one of its containers has dir=ltr
declared.
The element or one of its containers has dir=rtl
declared.
Element is ready (behavior has finished initialization).
Trait Implementations
impl BitAnd<ELEMENT_STATE_BITS> for ELEMENT_STATE_BITS
[src]
Flags can be AND'ed.
type Output = ELEMENT_STATE_BITS
The resulting type after applying the &
operator.
fn bitand(self, rhs: Self::Output) -> Self::Output
[src]
impl BitOr<ELEMENT_STATE_BITS> for ELEMENT_STATE_BITS
[src]
Flags can be OR'ed.
type Output = ELEMENT_STATE_BITS
The resulting type after applying the |
operator.
fn bitor(self, rhs: Self::Output) -> Self::Output
[src]
impl Debug for ELEMENT_STATE_BITS
[src]
impl PartialEq<ELEMENT_STATE_BITS> for ELEMENT_STATE_BITS
[src]
fn eq(&self, other: &ELEMENT_STATE_BITS) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<ELEMENT_STATE_BITS> for ELEMENT_STATE_BITS
[src]
fn partial_cmp(&self, other: &ELEMENT_STATE_BITS) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for ELEMENT_STATE_BITS
[src]
Auto Trait Implementations
impl RefUnwindSafe for ELEMENT_STATE_BITS
impl Send for ELEMENT_STATE_BITS
impl Sync for ELEMENT_STATE_BITS
impl Unpin for ELEMENT_STATE_BITS
impl UnwindSafe for ELEMENT_STATE_BITS
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,