Screen Methods

master
Leonardo Domingues 2021-12-03 13:31:00 -03:00
parent 6bc18cedef
commit 126ef1e289
1 changed files with 25 additions and 0 deletions

View File

@ -402,6 +402,31 @@ func (c *Cli) ScreenSize() (ret []int, err error) {
return ret, err return ret, err
} }
func (c *Cli) ScreenShot(fmt string) (ret interface{}, err error) {
err = c.HttpCli().JsonGet("/ipc/wingui/screen/shot?fmt="+fmt, &ret)
return ret, err
}
func (c *Cli) ScreenDsInternal(fmt string) error {
err := c.HttpCli().JsonGet("/ipc/wingui/screen/dsinternal", nil)
return err
}
func (c *Cli) ScreenDsExternal(fmt string) error {
err := c.HttpCli().JsonGet("/ipc/wingui/screen/dsexternal", nil)
return err
}
func (c *Cli) ScreenDsClone(fmt string) error {
err := c.HttpCli().JsonGet("/ipc/wingui/screen/dsclone", nil)
return err
}
func (c *Cli) ScreenDsExtend(fmt string) error {
err := c.HttpCli().JsonGet("/ipc/wingui/screen/dsextend", nil)
return err
}
func NewCli() *Cli { func NewCli() *Cli {
ret := &Cli{ApiCli: api.NewApiCli()} ret := &Cli{ApiCli: api.NewApiCli()}
return ret return ret