| 1 |
//go:build s390x || ppc64le || (!(cgo && darwin) && !windows && !linux && !freebsd && !openbsd && !netbsd) |
| 2 |
|
| 3 |
package screenshot |
| 4 |
|
| 5 |
import ( |
| 6 |
"image" |
| 7 |
) |
| 8 |
|
| 9 |
// Capture returns screen capture of specified desktop region. |
| 10 |
// x and y represent distance from the upper-left corner of primary display. |
| 11 |
// Y-axis is downward direction. This means coordinates system is similar to Windows OS. |
| 12 |
func Capture(x, y, width, height int) (*image.RGBA, error) { |
| 13 |
return nil, ErrUnsupported |
| 14 |
} |
| 15 |
|
| 16 |
// NumActiveDisplays returns the number of active displays. |
| 17 |
func NumActiveDisplays() int { |
| 18 |
return 0 |
| 19 |
} |
| 20 |
|
| 21 |
// GetDisplayBounds returns the bounds of displayIndex'th display. |
| 22 |
// The main display is displayIndex = 0. |
| 23 |
func GetDisplayBounds(displayIndex int) image.Rectangle { |
| 24 |
return image.Rectangle{} |
| 25 |
} |