mirror of
https://github.com/krishpranav/remote-desktop.git
synced 2025-12-24 12:47:52 +08:00
rdisplay: service
This commit is contained in:
21
rdisplay/service.go
Normal file
21
rdisplay/service.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package rdisplay
|
||||
|
||||
import "image"
|
||||
|
||||
type ScreenGrabber interface {
|
||||
Start()
|
||||
Frames() <-chan *image.RGBA
|
||||
Stop()
|
||||
Fps() int
|
||||
Screen() *Screen
|
||||
}
|
||||
|
||||
type Screen struct {
|
||||
Index int
|
||||
Bounds image.Rectangle
|
||||
}
|
||||
|
||||
type Service interface {
|
||||
CreateScreenGrabber(screen Screen, fps int) (ScreenGrabber, error)
|
||||
Screens() ([]Screen, error)
|
||||
}
|
||||
Reference in New Issue
Block a user