pub struct HighlightRectParams {
pub x: i32,
pub y: i32,
pub width: u64,
pub height: i64,
pub color: Option<RGBA>,
pub outlineColor: Option<RGBA>,
}Expand description
Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport. Issue: the method does not handle device pixel ratio (DPR) correctly. The coordinates currently have to be adjusted by the client if DPR is not 1 (see crbug.com/437807128).
Fields§
§x: i32X coordinate
y: i32Y coordinate
width: u64Rectangle width
height: i64Rectangle height
color: Option<RGBA>The highlight fill color (default: transparent).
outlineColor: Option<RGBA>The highlight outline color (default: transparent).
Implementations§
Trait Implementations§
Source§impl CdpCommand for HighlightRectParams
impl CdpCommand for HighlightRectParams
Source§impl Clone for HighlightRectParams
impl Clone for HighlightRectParams
Source§fn clone(&self) -> HighlightRectParams
fn clone(&self) -> HighlightRectParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HighlightRectParams
impl Debug for HighlightRectParams
Source§impl Default for HighlightRectParams
impl Default for HighlightRectParams
Source§fn default() -> HighlightRectParams
fn default() -> HighlightRectParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HighlightRectParams
impl<'de> Deserialize<'de> for HighlightRectParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HighlightRectParams
impl RefUnwindSafe for HighlightRectParams
impl Send for HighlightRectParams
impl Sync for HighlightRectParams
impl Unpin for HighlightRectParams
impl UnsafeUnpin for HighlightRectParams
impl UnwindSafe for HighlightRectParams
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