logo
#[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

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

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

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.