mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Merge pull request #651 from rustfix/master
chore: fix function names in comment
This commit is contained in:
commit
ffbf4f875b
@ -57,7 +57,7 @@ func SetForeg(hwnd win.HWND) bool {
|
|||||||
return win.SetForegroundWindow(hwnd)
|
return win.SetForegroundWindow(hwnd)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetMian get the main display hwnd
|
// GetMain get the main display hwnd
|
||||||
func GetMain() win.HWND {
|
func GetMain() win.HWND {
|
||||||
return win.GetActiveWindow()
|
return win.GetActiveWindow()
|
||||||
}
|
}
|
||||||
|
@ -190,7 +190,7 @@ func DisplaysNum() int {
|
|||||||
return int(reply.Number)
|
return int(reply.Number)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetMianId get the main display id
|
// GetMainId get the main display id
|
||||||
func GetMainId() int {
|
func GetMainId() int {
|
||||||
conn, err := xgb.NewConn()
|
conn, err := xgb.NewConn()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -16,13 +16,13 @@ import (
|
|||||||
"github.com/kbinani/screenshot"
|
"github.com/kbinani/screenshot"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetScreenBound gets the display screen bounds
|
// GetDisplayBounds gets the display screen bounds
|
||||||
func GetDisplayBounds(i int) (x, y, w, h int) {
|
func GetDisplayBounds(i int) (x, y, w, h int) {
|
||||||
bs := screenshot.GetDisplayBounds(i)
|
bs := screenshot.GetDisplayBounds(i)
|
||||||
return bs.Min.X, bs.Min.Y, bs.Dx(), bs.Dy()
|
return bs.Min.X, bs.Min.Y, bs.Dx(), bs.Dy()
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetDisplayBounds gets the display rect
|
// GetDisplayRect gets the display rect
|
||||||
func GetDisplayRect(i int) Rect {
|
func GetDisplayRect(i int) Rect {
|
||||||
x, y, w, h := GetDisplayBounds(i)
|
x, y, w, h := GetDisplayBounds(i)
|
||||||
return Rect{
|
return Rect{
|
||||||
|
Loading…
Reference in New Issue
Block a user