[][src]Enum sciter::dom::ELEMENT_AREAS

#[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,
}

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

impl ELEMENT_AREAS[src]

pub fn self_content() -> u32[src]

Size of content (i.e (0, 0, width, height)).

pub fn self_rect() -> u32[src]

Size of rect (i.e (left, top, width, height))

Trait Implementations

impl Debug for ELEMENT_AREAS[src]

impl PartialEq<ELEMENT_AREAS> for ELEMENT_AREAS[src]

impl PartialOrd<ELEMENT_AREAS> for ELEMENT_AREAS[src]

impl StructuralPartialEq for ELEMENT_AREAS[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.