#[repr(C)]pub enum ELEMENT_AREAS {
ROOT_RELATIVE = 1,
SELF_RELATIVE = 2,
CONTAINER_RELATIVE = 3,
VIEW_RELATIVE = 4,
CONTENT_BOX = 0,
PADDING_BOX = 16,
BORDER_BOX = 32,
MARGIN_BOX = 48,
BACK_IMAGE_AREA = 64,
FORE_IMAGE_AREA = 80,
SCROLLABLE_AREA = 96,
}
Expand description
Bounding rectangle of the element.
Variants§
ROOT_RELATIVE = 1
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 = 2
or
this flag if you want to get coordinates relative to the origin of element iself.
CONTAINER_RELATIVE = 3
Position inside immediate container.
VIEW_RELATIVE = 4
Position relative to view - Sciter window.
CONTENT_BOX = 0
Content (inner) box.
PADDING_BOX = 16
Content + paddings.
BORDER_BOX = 32
Content + paddings + border.
MARGIN_BOX = 48
Content + paddings + border + margins.
BACK_IMAGE_AREA = 64
Relative to content origin - location of background image (if it set no-repeat
).
FORE_IMAGE_AREA = 80
Relative to content origin - location of foreground image (if it set no-repeat
).
SCROLLABLE_AREA = 96
Scroll_area - scrollable area in content box.
Implementations§
Source§impl ELEMENT_AREAS
impl ELEMENT_AREAS
Trait Implementations§
Source§impl Debug for ELEMENT_AREAS
impl Debug for ELEMENT_AREAS
Source§impl PartialEq for ELEMENT_AREAS
impl PartialEq for ELEMENT_AREAS
Source§impl PartialOrd for ELEMENT_AREAS
impl PartialOrd for ELEMENT_AREAS
impl StructuralPartialEq for ELEMENT_AREAS
Auto Trait Implementations§
impl Freeze for ELEMENT_AREAS
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more