New screen methods added

master
Leonardo Domingues 2021-12-03 13:04:03 -03:00
parent 048c8e0b4e
commit 6bc18cedef
1 changed files with 10 additions and 0 deletions

View File

@ -392,6 +392,16 @@ func (c *Cli) ScreenSetRes(x, y, cor int) error {
return err
}
func (c *Cli) ScreenScale() (ret []int, err error) {
err = c.HttpCli().JsonGet("/ipc/wingui/screen/scale", &ret)
return ret, err
}
func (c *Cli) ScreenSize() (ret []int, err error) {
err = c.HttpCli().JsonGet("/ipc/wingui/screen/size", &ret)
return ret, err
}
func NewCli() *Cli {
ret := &Cli{ApiCli: api.NewApiCli()}
return ret