gitlab.com/apertussolutions/u-root@v7.0.0+incompatible/cmds/core/elvish/sys/ztypes_windows.go (about)

     1  // Created by cgo -godefs - DO NOT EDIT
     2  // cgo.exe -godefs types_src_windows.go
     3  
     4  package sys
     5  
     6  type (
     7  	Coord struct {
     8  		X int16
     9  		Y int16
    10  	}
    11  	InputRecord struct {
    12  		EventType uint16
    13  		Pad_cgo_0 [2]byte
    14  		Event     [16]byte
    15  	}
    16  
    17  	KeyEvent struct {
    18  		BKeyDown          int32
    19  		WRepeatCount      uint16
    20  		WVirtualKeyCode   uint16
    21  		WVirtualScanCode  uint16
    22  		UChar             [2]byte
    23  		DwControlKeyState uint32
    24  	}
    25  	MouseEvent struct {
    26  		DwMousePosition   Coord
    27  		DwButtonState     uint32
    28  		DwControlKeyState uint32
    29  		DwEventFlags      uint32
    30  	}
    31  	WindowBufferSizeEvent struct {
    32  		DwSize Coord
    33  	}
    34  	MenuEvent struct {
    35  		DwCommandId uint32
    36  	}
    37  	FocusEvent struct {
    38  		BSetFocus int32
    39  	}
    40  )
    41  
    42  const (
    43  	KEY_EVENT                = 0x1
    44  	MOUSE_EVENT              = 0x2
    45  	WINDOW_BUFFER_SIZE_EVENT = 0x4
    46  	MENU_EVENT               = 0x8
    47  	FOCUS_EVENT              = 0x10
    48  )