Documentation
¶
Rendered for windows/amd64
Overview ¶
Package ewindows provides extra Windows-specific system utilities.
Index ¶
- Constants
- func ReadConsoleInput(h windows.Handle, buf []InputRecord) (int, error)
- func WaitForMultipleObjects(handles []windows.Handle, waitAll bool, timeout uint32) (trigger int, abandoned bool, err error)
- type Coord
- type FocusEvent
- type InputEvent
- type InputRecord
- type KeyEvent
- type MenuEvent
- type MouseEvent
- type WindowBufferSizeEvent
Constants ¶
View Source
const ( WAIT_OBJECT_0 = 0 WAIT_ABANDONED_0 = 0x00000080 WAIT_TIMEOUT = 0x00000102 WAIT_FAILED = 0xFFFFFFFF )
View Source
const ( KEY_EVENT = 0x1 MOUSE_EVENT = 0x2 WINDOW_BUFFER_SIZE_EVENT = 0x4 MENU_EVENT = 0x8 FOCUS_EVENT = 0x10 )
View Source
const (
INFINITE = 0xFFFFFFFF
)
Variables ¶
This section is empty.
Functions ¶
func ReadConsoleInput ¶
func ReadConsoleInput(h windows.Handle, buf []InputRecord) (int, error)
ReadConsoleInput input wraps the homonymous Windows API call.
func WaitForMultipleObjects ¶
func WaitForMultipleObjects(handles []windows.Handle, waitAll bool, timeout uint32) (trigger int, abandoned bool, err error)
WaitForMultipleObjects blocks until any of the objects is triggered or timeout.
DWORD WINAPI WaitForMultipleObjects(
_In_ DWORD nCount, _In_ const HANDLE *lpHandles, _In_ BOOL bWaitAll, _In_ DWORD dwMilliseconds
);
Types ¶
type FocusEvent ¶
type FocusEvent struct {
BSetFocus int32
}
type InputEvent ¶
type InputEvent interface {
// contains filtered or unexported methods
}
InputEvent is either a KeyEvent, MouseEvent, WindowBufferSizeEvent, MenuEvent or FocusEvent.
type InputRecord ¶
func (*InputRecord) GetEvent ¶
func (input *InputRecord) GetEvent() InputEvent
GetEvent converts InputRecord to InputEvent.
type MouseEvent ¶
type WindowBufferSizeEvent ¶
type WindowBufferSizeEvent struct {
DwSize Coord
}
Click to show internal directories.
Click to hide internal directories.