New screen methods added
parent
048c8e0b4e
commit
6bc18cedef
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue