wingman

package
v0.0.0-...-6b9026f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureWindow

func CaptureWindow(hwnd win.HWND) (*image.RGBA, error)

func ExpandActiveWindowDir

func ExpandActiveWindowDir(dir ScreenDir, count int) error

func ExpandWindowDir

func ExpandWindowDir(hwnd win.HWND, dir ScreenDir, count int) error

func ExpandWindowDirW

func ExpandWindowDirW(hwnd win.HWND, dir ScreenDir, count int32) error

func FindWindowByClassName

func FindWindowByClassName(nameToFind string) (win.HWND, error)

func GetWindowRect

func GetWindowRect(hwnd win.HWND) (image.Rectangle, error)

func GetWindowRectW

func GetWindowRectW(hwnd win.HWND) (win.RECT, error)

func Height

func Height(r win.RECT) int32

func ImageRectangle

func ImageRectangle(wr win.RECT) image.Rectangle

func LoudCountdown

func LoudCountdown(n int)

func MoveActiveWindowDir

func MoveActiveWindowDir(dir ScreenDir, count int) error

MoveActiveWindowDir moves the active window in a certain direction, the given count.

func MoveActiveWindowTo

func MoveActiveWindowTo(rect image.Rectangle) error

func MoveActiveWindowToLoc

func MoveActiveWindowToLoc(loc WindowLocation) error

func MoveActiveWindowToW

func MoveActiveWindowToW(rect win.RECT) error

func MoveWindowClassTo

func MoveWindowClassTo(nameToFind, loc string)

func MoveWindowClassToLoc

func MoveWindowClassToLoc(nameToFind string, loc WindowLocation)

func MoveWindowDir

func MoveWindowDir(hwnd win.HWND, dir ScreenDir, count int) error

func MoveWindowDirW

func MoveWindowDirW(hwnd win.HWND, dir ScreenDir, count int32) error

func MoveWindowTo

func MoveWindowTo(hwnd win.HWND, ir image.Rectangle) error

func MoveWindowToLoc

func MoveWindowToLoc(hwnd win.HWND, loc WindowLocation) error

func MoveWindowToLocW

func MoveWindowToLocW(hwnd win.HWND, loc WindowLocation) error

func MoveWindowToW

func MoveWindowToW(hwnd win.HWND, rect win.RECT) error

func RunKbMove0

func RunKbMove0() error

func RunOverlay

func RunOverlay()

func SaveDisplay

func SaveDisplay(name string) error

func SaveDisplayN

func SaveDisplayN(n int, name string) error

func SaveWindow

func SaveWindow(hwnd win.HWND, name string) error

func SetWindowPos

func SetWindowPos(hwnd win.HWND, x0, y0, x1, y1 int) bool

func SetWindowPosW

func SetWindowPosW(hwnd win.HWND, x, y, dx, dy int32) bool

func SetWindowRect

func SetWindowRect(hwnd win.HWND, ir image.Rectangle) bool

func SetWindowRectW

func SetWindowRectW(hwnd win.HWND, rect win.RECT) bool

func ShrinkActiveWindowDir

func ShrinkActiveWindowDir(dir ScreenDir, count int) error

func ShrinkWindowDir

func ShrinkWindowDir(hwnd win.HWND, dir ScreenDir, count int) error

func ShrinkWindowDirW

func ShrinkWindowDirW(hwnd win.HWND, dir ScreenDir, count int32) error

func ThreeTwoOneGo

func ThreeTwoOneGo()

func Width

func Width(r win.RECT) int32

func WinRECT

func WinRECT(ir image.Rectangle) win.RECT

Types

type Game

type Game struct{}

func (*Game) Draw

func (g *Game) Draw(screen *ebiten.Image)

func (*Game) Layout

func (g *Game) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)

func (*Game) Update

func (g *Game) Update() error

type ScreenDir

type ScreenDir int32
const (
	ScreenLeft ScreenDir = iota
	ScreenTop
	ScreenRight
	ScreenBottom
)

type WindowLocation

type WindowLocation int32
const (
	MainM1 WindowLocation = iota

	FullishM1
	FullSharedM1
	LeftMarginishM1

	FullishM2
	FullSharedM2
	LeftMarginishM2
)

func LocationByInitials

func LocationByInitials(loc string) WindowLocation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL