Documentation ¶
Overview ¶
Package windriver provides the Windows driver for accessing a screen.
Index ¶
- Variables
- func AddAppMsg(fn func(hwnd syscall.Handle, uMsg uint32, wParam, lParam uintptr)) uint32
- func AddWindowMsg(fn func(hwnd syscall.Handle, uMsg uint32, wParam, lParam uintptr)) uint32
- func ConfigWindowGeom(hwnd syscall.Handle, pos image.Point, size image.Point) error
- func DecodeKeyEvent(r rune, hwnd syscall.Handle, uMsg uint32, wParam, lParam uintptr) (ro rune, c key.Codes, mod int32)
- func DeleteWindow(hwnd syscall.Handle)
- func Main(f func(oswin.App))
- func MoveWindowPos(hwnd syscall.Handle, pos image.Point) error
- func NewWindow(opts *oswin.NewWindowOptions) (syscall.Handle, error)
- func NullTermToString(b []byte) string
- func ResizeClientRect(hwnd syscall.Handle, size image.Point) error
- func ScreenSize() (width, height int)
- func SendAppMessage(uMsg uint32, wParam uintptr, lParam uintptr) (lResult uintptr)
- func SendMessage(hwnd syscall.Handle, uMsg uint32, wParam uintptr, lParam uintptr) (lResult uintptr)
- func Show(hwnd syscall.Handle)
Constants ¶
This section is empty.
Variables ¶
View Source
var ClipRetries = 5
ClipRetries determines how many times to retry in opening the clipboard
View Source
var ClipRetrySleep = 5 * time.Millisecond
ClipRetrySleep determines how long to sleep between retries
Functions ¶
func AddWindowMsg ¶
func ConfigWindowGeom ¶
ConfigWindowGeom configures size and position of window
func DecodeKeyEvent ¶
func DeleteWindow ¶
func Main ¶
Main is called by the program's main function to run the graphical application.
It calls f on the App, possibly in a separate goroutine, as some OS- specific libraries require being on 'the main thread'. It returns when f returns.
func NullTermToString ¶
func ResizeClientRect ¶
ResizeClientRect makes hwnd client rectangle given size
func ScreenSize ¶
func ScreenSize() (width, height int)
func SendAppMessage ¶
func SendMessage ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.