Struct chrome_remote_interface_model::layer_tree::Layer [−][src]
experimental
and LayerTree
and DOM
only.Information about a compositing layer.
Implementations
impl Layer
[src]
pub fn builder() -> LayerBuilder
[src]
pub fn layer_id(&self) -> &LayerId
[src]
The unique id for this layer.
pub fn parent_layer_id(&self) -> Option<&LayerId>
[src]
The id of parent (not present for root).
pub fn backend_node_id(&self) -> Option<&BackendNodeId>
[src]
The backend id for the node associated with this layer.
pub fn offset_x(&self) -> f64
[src]
Offset from parent layer, X coordinate.
pub fn offset_y(&self) -> f64
[src]
Offset from parent layer, Y coordinate.
pub fn width(&self) -> f64
[src]
Layer width.
pub fn height(&self) -> f64
[src]
Layer height.
pub fn transform(&self) -> Option<&Vec<f64>>
[src]
Transformation matrix for layer, default is identity matrix
pub fn anchor_x(&self) -> Option<&f64>
[src]
Transform anchor point X, absent if no transform specified
pub fn anchor_y(&self) -> Option<&f64>
[src]
Transform anchor point Y, absent if no transform specified
pub fn anchor_z(&self) -> Option<&f64>
[src]
Transform anchor point Z, absent if no transform specified
pub fn paint_count(&self) -> u32
[src]
Indicates how many time this layer has painted.
pub fn draws_content(&self) -> bool
[src]
Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
pub fn invisible(&self) -> Option<&bool>
[src]
Set if layer is not visible.
pub fn scroll_rects(&self) -> Option<&Vec<ScrollRect>>
[src]
Rectangles scrolling on main thread only.
pub fn sticky_position_constraint(&self) -> Option<&StickyPositionConstraint>
[src]
Sticky position constraint information
Trait Implementations
impl Clone for Layer
[src]
impl Debug for Layer
[src]
impl<'de> Deserialize<'de> for Layer
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Layer
[src]
Auto Trait Implementations
impl RefUnwindSafe for Layer
[src]
impl Send for Layer
[src]
impl Sync for Layer
[src]
impl Unpin for Layer
[src]
impl UnwindSafe for Layer
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,