Screen Methods
parent
6bc18cedef
commit
126ef1e289
|
@ -402,6 +402,31 @@ func (c *Cli) ScreenSize() (ret []int, err error) {
|
|||
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 {
|
||||
ret := &Cli{ApiCli: api.NewApiCli()}
|
||||
return ret
|
||||
|
|
Loading…
Reference in New Issue