pub struct HighlightRectParams {
pub x: i64,
pub y: i64,
pub width: i64,
pub height: i64,
pub color: Option<Rgba>,
pub outline_color: 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).
Parameters of Overlay.highlightRect.
Fields§
§x: i64X coordinate
y: i64Y coordinate
width: i64Rectangle width
height: i64Rectangle height
color: Option<Rgba>The highlight fill color (default: transparent).
outline_color: Option<Rgba>The highlight outline color (default: transparent).
Trait Implementations§
Source§impl Clone for HighlightRectParams
impl Clone for HighlightRectParams
Source§impl Command for HighlightRectParams
impl Command for HighlightRectParams
Source§impl Debug for HighlightRectParams
impl Debug for HighlightRectParams
Source§impl Default for HighlightRectParams
impl Default for HighlightRectParams
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
Source§impl PartialEq for HighlightRectParams
impl PartialEq for HighlightRectParams
Source§impl Serialize for HighlightRectParams
impl Serialize for HighlightRectParams
impl StructuralPartialEq for HighlightRectParams
Auto Trait Implementations§
impl Forget for HighlightRectParams
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