Enum sciter::dom::ELEMENT_AREAS
[−]
[src]
#[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_RELATIVEor this flag if you want to get Sciter window relative coordinates,
otherwise it will use nearest windowed container e.g. popup window.
SELF_RELATIVEor this flag if you want to get coordinates relative to the origin of element iself.
CONTAINER_RELATIVEPosition inside immediate container.
VIEW_RELATIVEPosition relative to view - Sciter window.
CONTENT_BOXContent (inner) box.
PADDING_BOXContent + paddings.
BORDER_BOXContent + paddings + border.
MARGIN_BOXContent + paddings + border + margins.
BACK_IMAGE_AREARelative to content origin - location of background image (if it set no-repeat).
FORE_IMAGE_AREARelative to content origin - location of foreground image (if it set no-repeat).
SCROLLABLE_AREAScroll_area - scrollable area in content box.
Methods
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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl PartialOrd for ELEMENT_AREAS[src]
fn partial_cmp(&self, __arg_0: &ELEMENT_AREAS) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more