Enum sciter::dom::ELEMENT_AREAS
source · [−]#[repr(C)]
pub enum ELEMENT_AREAS {
ROOT_RELATIVE,
SELF_RELATIVE,
CONTAINER_RELATIVE,
VIEW_RELATIVE,
CONTENT_BOX,
PADDING_BOX,
BORDER_BOX,
MARGIN_BOX,
BACK_IMAGE_AREA,
FORE_IMAGE_AREA,
SCROLLABLE_AREA,
}
Expand description
Bounding rectangle of the element.
Variants
ROOT_RELATIVE
or
this flag if you want to get Sciter window relative coordinates,
otherwise it will use nearest windowed container e.g. popup window.
SELF_RELATIVE
or
this flag if you want to get coordinates relative to the origin of element iself.
CONTAINER_RELATIVE
Position inside immediate container.
VIEW_RELATIVE
Position relative to view - Sciter window.
CONTENT_BOX
Content (inner) box.
PADDING_BOX
Content + paddings.
BORDER_BOX
Content + paddings + border.
MARGIN_BOX
Content + paddings + border + margins.
BACK_IMAGE_AREA
Relative to content origin - location of background image (if it set no-repeat
).
FORE_IMAGE_AREA
Relative to content origin - location of foreground image (if it set no-repeat
).
SCROLLABLE_AREA
Scroll_area - scrollable area in content box.
Implementations
sourceimpl ELEMENT_AREAS
impl ELEMENT_AREAS
Trait Implementations
sourceimpl Debug for ELEMENT_AREAS
impl Debug for ELEMENT_AREAS
sourceimpl PartialEq<ELEMENT_AREAS> for ELEMENT_AREAS
impl PartialEq<ELEMENT_AREAS> for ELEMENT_AREAS
sourceimpl PartialOrd<ELEMENT_AREAS> for ELEMENT_AREAS
impl PartialOrd<ELEMENT_AREAS> for ELEMENT_AREAS
sourcefn partial_cmp(&self, other: &ELEMENT_AREAS) -> Option<Ordering>
fn partial_cmp(&self, other: &ELEMENT_AREAS) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl StructuralPartialEq for ELEMENT_AREAS
Auto Trait Implementations
impl RefUnwindSafe for ELEMENT_AREAS
impl Send for ELEMENT_AREAS
impl Sync for ELEMENT_AREAS
impl Unpin for ELEMENT_AREAS
impl UnwindSafe for ELEMENT_AREAS
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more