Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RGBA ¶
type RGBA struct { // The red component, in the [0-255] range. R int `json:"r"` // The green component, in the [0-255] range. G int `json:"g"` // The blue component, in the [0-255] range. B int `json:"b"` // The alpha component, in the [0-1] range (default: 1). A float64 `json:"a"` }
A structure holding an RGBA color.
type Rect ¶
type Rect struct { // X coordinate X float64 `json:"x"` // Y coordinate Y float64 `json:"y"` // Rectangle width Width float64 `json:"width"` // Rectangle height Height float64 `json:"height"` }
Rectangle.
type TimeSinceEpoch ¶
type TimeSinceEpoch float64
type Viewport ¶
type Viewport struct { // X offset in device independent pixels (dip). X float64 `json:"x"` // Y offset in device independent pixels (dip). Y float64 `json:"y"` // Rectangle width in device independent pixels (dip). Width float64 `json:"width"` // Rectangle height in device independent pixels (dip). Height float64 `json:"height"` // Page scale factor. Scale float64 `json:"scale"` }
Viewport for capturing screenshot.
Click to show internal directories.
Click to hide internal directories.