win32

package
v1.0.0-...-bc6fffa Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2014 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	DWM_BB_ENABLE                = 0x00000001 //     A value for the fEnable member has been specified.
	DWM_BB_BLURREGION            = 0x00000002 //     A value for the hRgnBlur member has been specified.
	DWM_BB_TRANSITIONONMAXIMIZED = 0x00000004 //     A value for the fTransitionOnMaximized member has been specified.
)
View Source
const (
	ENUM_CURRENT_SETTINGS = 0xffffffff

	DISP_CHANGE_SUCCESSFUL  = 0x0
	DISP_CHANGE_BADDUALVIEW = -0x6
	DISP_CHANGE_BADFLAGS    = -0x4
	DISP_CHANGE_BADMODE     = -0x2
	DISP_CHANGE_BADPARAM    = -0x5
	DISP_CHANGE_FAILED      = -0x1
	DISP_CHANGE_NOTUPDATED  = -0x3
	DISP_CHANGE_RESTART     = 0x1

	CDS_TEST           = 0x2
	CDS_UPDATEREGISTRY = 0x1

	HORZSIZE      = 0x4
	VERTSIZE      = 0x6
	HORZRES       = 0x8
	VERTRES       = 0xa
	VREFRESH      = 0x74
	CM_GAMMA_RAMP = 0x2
)
View Source
const (
	RIDEV_INPUTSINK         = 0x00000100
	RID_INPUT               = 0x10000003
	RIM_TYPEMOUSE           = 0
	HID_USAGE_PAGE_GENERIC  = 0x01
	HID_USAGE_GENERIC_MOUSE = 0x02
	ICON_SMALL2             = 2
	WM_INPUT                = 0x00FF
	WM_XBUTTONDOWN          = 0x020B
	WM_XBUTTONUP            = 0x020C
	WM_XBUTTONDBLCLK        = 0x020D
	MK_CONTROL              = 0x0008
	MK_LBUTTON              = 0x0001
	MK_MBUTTON              = 0x0010
	MK_RBUTTON              = 0x0002
	MK_SHIFT                = 0x0004
	MK_XBUTTON1             = 0x0020
	MK_XBUTTON2             = 0x0040
	WM_MOUSEHWHEEL          = 0x020E

	DMDFO_DEFAULT = 0
	DMDFO_STRETCH = 1
	DMDFO_CENTER  = 2
)
View Source
const (
	// We define these manually because some MinGW versions don't define them.
	DISPLAY_DEVICE_ATTACHED_TO_DESKTOP = 0x00000001
	DISPLAY_DEVICE_MULTI_DRIVER        = 0x00000002
	DISPLAY_DEVICE_PRIMARY_DEVICE      = 0x00000004
	DISPLAY_DEVICE_MIRRORING_DRIVER    = 0x00000008
	DISPLAY_DEVICE_VGA_COMPATIBLE      = 0x00000010
	DISPLAY_DEVICE_REMOVABLE           = 0x00000020
	DISPLAY_DEVICE_ACC_DRIVER          = 0x00000040
	DISPLAY_DEVICE_TS_COMPATIBLE       = 0x00200000
	DISPLAY_DEVICE_UNSAFE_MODES_ON     = 0x00080000
	DISPLAY_DEVICE_MODESPRUNED         = 0x08000000
	DISPLAY_DEVICE_REMOTE              = 0x04000000
	DISPLAY_DEVICE_DISCONNECT          = 0x02000000
	DISPLAY_DEVICE_ACTIVE              = 0x00000001
	DISPLAY_DEVICE_ATTACHED            = 0x00000002
)
View Source
const (
	// We define these manually because some MinGW versions don't define them.
	DM_BITSPERPEL       = 0x00040000
	DM_PELSWIDTH        = 0x00080000
	DM_PELSHEIGHT       = 0x00100000
	DM_DISPLAYFLAGS     = 0x00200000
	DM_DISPLAYFREQUENCY = 0x00400000
	DM_POSITION         = 0x00000020
)
View Source
const (
	WGL_CONTEXT_MAJOR_VERSION_ARB = 0x2091
	WGL_CONTEXT_MINOR_VERSION_ARB = 0x2092
	WGL_CONTEXT_LAYER_PLANE_ARB   = 0x2093
	WGL_CONTEXT_FLAGS_ARB         = 0x2094
	WGL_CONTEXT_PROFILE_MASK_ARB  = 0x9126

	WGL_CONTEXT_DEBUG_BIT_ARB              = 0x0001
	WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB = 0x0002

	WGL_CONTEXT_CORE_PROFILE_BIT_ARB          = 0x00000001
	WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB = 0x00000002

	ERROR_INVALID_VERSION_ARB = 0x2095
	ERROR_INVALID_PROFILE_ARB = 0x2096

	// Accepted in the <piAttributes> parameter array of
	// wglGetPixelFormatAttribivARB, and wglGetPixelFormatAttribfvARB, and
	// as a type in the <piAttribIList> and <pfAttribFList> parameter
	// arrays of wglChoosePixelFormatARB:
	WGL_NUMBER_PIXEL_FORMATS_ARB    = 0x2000
	WGL_DRAW_TO_WINDOW_ARB          = 0x2001
	WGL_DRAW_TO_BITMAP_ARB          = 0x2002
	WGL_ACCELERATION_ARB            = 0x2003
	WGL_NEED_PALETTE_ARB            = 0x2004
	WGL_NEED_SYSTEM_PALETTE_ARB     = 0x2005
	WGL_SWAP_LAYER_BUFFERS_ARB      = 0x2006
	WGL_SWAP_METHOD_ARB             = 0x2007
	WGL_NUMBER_OVERLAYS_ARB         = 0x2008
	WGL_NUMBER_UNDERLAYS_ARB        = 0x2009
	WGL_TRANSPARENT_ARB             = 0x200A
	WGL_TRANSPARENT_RED_VALUE_ARB   = 0x2037
	WGL_TRANSPARENT_GREEN_VALUE_ARB = 0x2038
	WGL_TRANSPARENT_BLUE_VALUE_ARB  = 0x2039
	WGL_TRANSPARENT_ALPHA_VALUE_ARB = 0x203A
	WGL_TRANSPARENT_INDEX_VALUE_ARB = 0x203B
	WGL_SHARE_DEPTH_ARB             = 0x200C
	WGL_SHARE_STENCIL_ARB           = 0x200D
	WGL_SHARE_ACCUM_ARB             = 0x200E
	WGL_SUPPORT_GDI_ARB             = 0x200F
	WGL_SUPPORT_OPENGL_ARB          = 0x2010
	WGL_DOUBLE_BUFFER_ARB           = 0x2011
	WGL_STEREO_ARB                  = 0x2012
	WGL_PIXEL_TYPE_ARB              = 0x2013
	WGL_COLOR_BITS_ARB              = 0x2014
	WGL_RED_BITS_ARB                = 0x2015
	WGL_RED_SHIFT_ARB               = 0x2016
	WGL_GREEN_BITS_ARB              = 0x2017
	WGL_GREEN_SHIFT_ARB             = 0x2018
	WGL_BLUE_BITS_ARB               = 0x2019
	WGL_BLUE_SHIFT_ARB              = 0x201A
	WGL_ALPHA_BITS_ARB              = 0x201B
	WGL_ALPHA_SHIFT_ARB             = 0x201C
	WGL_ACCUM_BITS_ARB              = 0x201D
	WGL_ACCUM_RED_BITS_ARB          = 0x201E
	WGL_ACCUM_GREEN_BITS_ARB        = 0x201F
	WGL_ACCUM_BLUE_BITS_ARB         = 0x2020
	WGL_ACCUM_ALPHA_BITS_ARB        = 0x2021
	WGL_DEPTH_BITS_ARB              = 0x2022
	WGL_STENCIL_BITS_ARB            = 0x2023
	WGL_AUX_BUFFERS_ARB             = 0x2024

	// Accepted as a value in the <piAttribIList> and <pfAttribFList>
	// parameter arrays of wglChoosePixelFormatARB, and returned in the
	// <piValues> parameter array of wglGetPixelFormatAttribivARB, and the
	// <pfValues> parameter array of wglGetPixelFormatAttribfvARB:
	WGL_NO_ACCELERATION_ARB      = 0x2025
	WGL_GENERIC_ACCELERATION_ARB = 0x2026
	WGL_FULL_ACCELERATION_ARB    = 0x2027

	WGL_SWAP_EXCHANGE_ARB  = 0x2028
	WGL_SWAP_COPY_ARB      = 0x2029
	WGL_SWAP_UNDEFINED_ARB = 0x202A

	WGL_TYPE_RGBA_ARB       = 0x202B
	WGL_TYPE_COLORINDEX_ARB = 0x202C

	WGL_SAMPLE_BUFFERS_ARB = 0x2041
	WGL_SAMPLES_ARB        = 0x2042
)
View Source
const (
	// We don't actually, use, we just hog the DC always.
	CS_OWNDC = C.CS_OWNDC

	CS_NOCLOSE = C.CS_NOCLOSE

	CS_PARENTDC = C.CS_PARENTDC

	// The window has a thin-line border.
	WS_BORDER = C.WS_BORDER

	// The window has a title bar (includes the WS_BORDER style).
	WS_CAPTION = C.WS_CAPTION

	// The window is a child window. A window with this style cannot have a menu bar. This style
	// cannot be used with the WS_POPUP style.
	WS_CHILD = C.WS_CHILD

	// Same as the WS_CHILD style.
	WS_CHILDWINDOW = C.WS_CHILDWINDOW

	// Excludes the area occupied by child windows when drawing occurs within the parent window.
	// This style is used when creating the parent window.
	WS_CLIPCHILDREN = C.WS_CLIPCHILDREN

	// Clips child windows relative to each other; that is, when a particular child window receives
	// a WM_PAINT message, the WS_CLIPSIBLINGS style clips all other overlapping child windows out
	// of the region of the child window to be updated. If WS_CLIPSIBLINGS is not specified and
	// child windows overlap, it is possible, when drawing within the client area of a child window
	// , to draw within the client area of a neighboring child window.
	WS_CLIPSIBLINGS = C.WS_CLIPSIBLINGS

	// The window is initially disabled. A disabled window cannot receive input from the user. To
	// change this after a window has been created, use the EnableWindow function.
	WS_DISABLED = C.WS_DISABLED

	// The window has a border of a style typically used with dialog boxes. A window with this
	// style cannot have a title bar.
	WS_DLGFRAME = C.WS_DLGFRAME

	// The window is the first control of a group of controls. The group consists of this first
	// control and all controls defined after it, up to the next control with the WS_GROUP style.
	// The first control in each group usually has the WS_TABSTOP style so that the user can move
	// from group to group. The user can subsequently change the keyboard focus from one control in
	// the group to the next control in the group by using the direction keys.
	// You can turn this style on and off to change dialog box navigation. To change this style
	// after a window has been created, use the SetWindowLong function.
	WS_GROUP = C.WS_GROUP

	// The window has a horizontal scroll bar.
	WS_HSCROLL = C.WS_HSCROLL

	// The window is initially minimized. Same as the WS_MINIMIZE style.
	WS_ICONIC = C.WS_ICONIC

	// The window is initially maximized.
	WS_MAXIMIZE = C.WS_MAXIMIZE

	// The window has a maximize button. Cannot be combined with the WS_EX_CONTEXTHELP style. The
	// WS_SYSMENU style must also be specified.
	WS_MAXIMIZEBOX = C.WS_MAXIMIZEBOX

	// The window is initially minimized. Same as the WS_ICONIC style.
	WS_MINIMIZE = C.WS_MINIMIZE

	// The window has a minimize button. Cannot be combined with the WS_EX_CONTEXTHELP style. The
	// WS_SYSMENU style must also be specified.
	WS_MINIMIZEBOX = C.WS_MINIMIZEBOX

	// The window is an overlapped window. An overlapped window has a title bar and a border. Same
	// as the WS_TILED style.
	WS_OVERLAPPED = C.WS_OVERLAPPED

	// The window is an overlapped window. Same as the WS_TILEDWINDOW style.
	WS_OVERLAPPEDWINDOW = C.WS_OVERLAPPEDWINDOW

	// The windows is a pop-up window. This style cannot be used with the WS_CHILD style.
	WS_POPUP = C.WS_POPUP

	// The window is a pop-up window. The WS_CAPTION and WS_POPUPWINDOW styles must be combined to
	// make the window menu visible.
	WS_POPUPWINDOW = C.WS_POPUPWINDOW

	// The window has a sizing border. Same as the WS_THICKFRAME style.
	WS_SIZEBOX = C.WS_SIZEBOX

	// The window has a window menu on its title bar. The WS_CAPTION style must also be specified.
	WS_SYSMENU = C.WS_SYSMENU

	// The window is a control that can receive the keyboard focus when the user presses the TAB
	// key. Pressing the TAB key changes the keyboard focus to the next control with the WS_TABSTOP
	// style.
	// You can turn this style on and off to change dialog box navigation. To change this style
	// after a window has been created, use the SetWindowLong function. For user-created windows
	// and modeless dialogs to work with tab stops, alter the message loop to call the
	// IsDialogMessage function.
	WS_TABSTOP = C.WS_TABSTOP

	// The window has a sizing border. Same as the WS_SIZEBOX style.
	WS_THICKFRAME = C.WS_THICKFRAME

	// The window is an overlapped window. An overlapped window has a title bar and a border. Same
	// as the WS_OVERLAPPED style.
	WS_TILED = C.WS_TILED

	// The window is an overlapped window. Same as the WS_OVERLAPPEDWINDOW style.
	WS_TILEDWINDOW = C.WS_TILEDWINDOW

	// The window is initially visible.
	// This style can be turned on and off by using the ShowWindow or SetWindowPos function.
	WS_VISIBLE = C.WS_VISIBLE

	// The window has a vertical scroll bar.
	WS_VSCROLL = C.WS_VSCROLL

	WS_EX_OVERLAPPEDWINDOW = C.WS_EX_OVERLAPPEDWINDOW

	WS_EX_COMPOSITED = C.WS_EX_COMPOSITED
)

http://msdn.microsoft.com/en-us/library/windows/desktop/ms632600(v=vs.85).aspx

View Source
const (
	GWL_EXSTYLE = C.GWL_EXSTYLE
	GWL_ID      = C.GWL_ID
	GWL_STYLE   = C.GWL_STYLE
)
View Source
const (
	// Minimizes a window, even if the thread that owns the window is not responding. This flag
	// should only be used when minimizing windows from a different thread.
	SW_FORCEMINIMIZE = C.SW_FORCEMINIMIZE

	// Hides the window and activates another window.
	SW_HIDE = C.SW_HIDE

	// Maximizes the specified window.
	SW_MAXIMIZE = C.SW_MAXIMIZE

	// Minimizes the specified window and activates the next top-level window in the Z order.
	SW_MINIMIZE = C.SW_MINIMIZE

	// Activates and displays the window. If the window is minimized or maximized, the system
	// restores it to its original size and position. An application should specify this flag when
	// restoring a minimized window.
	SW_RESTORE = C.SW_RESTORE

	// Activates the window and displays it in its current size and position.
	SW_SHOW = C.SW_SHOW

	// Sets the show state based on the SW_ value specified in the STARTUPINFO structure passed to
	// the CreateProcess function by the program that started the application.
	SW_SHOWDEFAULT = C.SW_SHOWDEFAULT

	// Activates the window and displays it as a maximized window.
	SW_SHOWMAXIMIZED = C.SW_SHOWMAXIMIZED

	// Activates the window and displays it as a minimized window.
	SW_SHOWMINIMIZED = C.SW_SHOWMINIMIZED

	// Displays the window as a minimized window. This value is similar to SW_SHOWMINIMIZED, except
	// the window is not activated.
	SW_SHOWMINNOACTIVE = C.SW_SHOWMINNOACTIVE

	// Displays the window in its current size and position. This value is similar to SW_SHOW,
	// except that the window is not activated.
	SW_SHOWNA = C.SW_SHOWNA

	// Displays a window in its most recent size and position. This value is similar to
	// SW_SHOWNORMAL, except that the window is not activated.
	SW_SHOWNOACTIVATE = C.SW_SHOWNOACTIVATE

	// Activates and displays a window. If the window is minimized or maximized, the system
	// restores it to its original size and position. An application should specify this flag when
	// displaying the window for the first time.
	SW_SHOWNORMAL = C.SW_SHOWNORMAL
)
View Source
const (
	PM_NOREMOVE       = C.PM_NOREMOVE
	PM_REMOVE         = C.PM_REMOVE
	PM_NOYIELD        = C.PM_NOYIELD
	PM_QS_INPUT       = C.PM_QS_INPUT
	PM_QS_POSTMESSAGE = C.PM_QS_POSTMESSAGE
	PM_QS_PAINT       = C.PM_QS_PAINT
	PM_QS_SENDMESSAGE = C.PM_QS_SENDMESSAGE
)
View Source
const (
	WM_TIMER         = C.WM_TIMER
	WM_GETMINMAXINFO = C.WM_GETMINMAXINFO

	WMSZ_BOTTOM      = C.WMSZ_BOTTOM
	WMSZ_BOTTOMLEFT  = C.WMSZ_BOTTOMLEFT
	WMSZ_BOTTOMRIGHT = C.WMSZ_BOTTOMRIGHT
	WMSZ_LEFT        = C.WMSZ_LEFT
	WMSZ_RIGHT       = C.WMSZ_RIGHT
	WMSZ_TOP         = C.WMSZ_TOP
	WMSZ_TOPLEFT     = C.WMSZ_TOPLEFT
	WMSZ_TOPRIGHT    = C.WMSZ_TOPRIGHT
	WM_SIZING        = C.WM_SIZING

	WM_PAINT      = C.WM_PAINT
	WM_ERASEBKGND = C.WM_ERASEBKGND

	WM_SETCURSOR = C.WM_SETCURSOR

	ICON_BIG   = C.ICON_BIG
	ICON_SMALL = C.ICON_SMALL
	WM_GETICON = C.WM_GETICON
	WM_SETICON = C.WM_SETICON

	WM_SIZE        = C.WM_SIZE
	SIZE_MAXIMIZED = C.SIZE_MAXIMIZED
	SIZE_MINIMIZED = C.SIZE_MINIMIZED
	SIZE_RESTORED  = C.SIZE_RESTORED

	WM_CLOSE = C.WM_CLOSE

	WM_ACTIVATE    = C.WM_ACTIVATE
	WA_INACTIVE    = C.WA_INACTIVE
	WA_ACTIVE      = C.WA_ACTIVE
	WA_CLICKACTIVE = C.WA_CLICKACTIVE

	WM_MOUSEMOVE     = C.WM_MOUSEMOVE
	WM_LBUTTONDOWN   = C.WM_LBUTTONDOWN
	WM_LBUTTONUP     = C.WM_LBUTTONUP
	WM_LBUTTONDBLCLK = C.WM_LBUTTONDBLCLK
	WM_RBUTTONDOWN   = C.WM_RBUTTONDOWN
	WM_RBUTTONUP     = C.WM_RBUTTONUP
	WM_RBUTTONDBLCLK = C.WM_RBUTTONDBLCLK
	WM_MBUTTONDOWN   = C.WM_MBUTTONDOWN
	WM_MBUTTONUP     = C.WM_MBUTTONUP
	WM_MBUTTONDBLCLK = C.WM_MBUTTONDBLCLK
	WM_MOUSEWHEEL    = C.WM_MOUSEWHEEL

	WM_MOUSELAST = C.WM_MOUSELAST

	// WM_MOUSEMOVE is WM_MOUSEENTER
	WM_MOUSELEAVE = C.WM_MOUSELEAVE

	WM_SYSKEYDOWN = C.WM_SYSKEYDOWN
	WM_SYSKEYUP   = C.WM_SYSKEYUP
	WM_KEYDOWN    = C.WM_KEYDOWN
	WM_KEYUP      = C.WM_KEYUP

	WM_CHAR = C.WM_CHAR

	WM_MOVE = C.WM_MOVE

	GIDC_ARRIVAL           = 1
	GIDC_REMOVAL           = 2
	WM_INPUT_DEVICE_CHANGE = 0x00FE

	MONITOR_DEFAULTTONEAREST = C.MONITOR_DEFAULTTONEAREST
	WM_EXITSIZEMOVE          = C.WM_EXITSIZEMOVE

	HTNOWHERE     = C.HTNOWHERE
	HTTRANSPARENT = C.HTTRANSPARENT
	WM_NCHITTEST  = C.WM_NCHITTEST
)
View Source
const (
	SM_CYCAPTION   = C.SM_CYCAPTION // Title bar width
	SM_CXSIZEFRAME = C.SM_CXSIZEFRAME
	SM_CYSIZEFRAME = C.SM_CYSIZEFRAME
	SM_CXCURSOR    = C.SM_CXCURSOR
	SM_CYCURSOR    = C.SM_CYCURSOR
	SM_CXICON      = C.SM_CXICON
	SM_CYICON      = C.SM_CYICON
	SM_CXSMICON    = C.SM_CXSMICON
	SM_CYSMICON    = C.SM_CYSMICON
)
View Source
const (
	SWP_ASYNCWINDOWPOS = C.SWP_ASYNCWINDOWPOS
	SWP_DEFERERASE     = C.SWP_DEFERERASE
	SWP_DRAWFRAME      = C.SWP_DRAWFRAME
	SWP_FRAMECHANGED   = C.SWP_FRAMECHANGED
	SWP_HIDEWINDOW     = C.SWP_HIDEWINDOW
	SWP_NOACTIVATE     = C.SWP_NOACTIVATE
	SWP_NOCOPYBITS     = C.SWP_NOCOPYBITS
	SWP_NOMOVE         = C.SWP_NOMOVE
	SWP_NOOWNERZORDER  = C.SWP_NOOWNERZORDER
	SWP_NOREDRAW       = C.SWP_NOREDRAW
	SWP_NOREPOSITION   = C.SWP_NOREPOSITION
	SWP_NOSENDCHANGING = C.SWP_NOSENDCHANGING
	SWP_NOSIZE         = C.SWP_NOSIZE
	SWP_NOZORDER       = C.SWP_NOZORDER
	SWP_SHOWWINDOW     = C.SWP_SHOWWINDOW
)
View Source
const (
	DIB_RGB_COLORS = C.DIB_RGB_COLORS
	BI_RGB         = C.BI_RGB
)
View Source
const (
	NULL_BRUSH  = C.NULL_BRUSH
	BLACK_BRUSH = C.BLACK_BRUSH
)
View Source
const (
	AC_SRC_OVER  = C.AC_SRC_OVER
	AC_SRC_ALPHA = C.AC_SRC_ALPHA
)
View Source
const (
	PFD_DRAW_TO_WINDOW      = C.PFD_DRAW_TO_WINDOW
	PFD_DRAW_TO_BITMAP      = C.PFD_DRAW_TO_BITMAP
	PFD_SUPPORT_GDI         = C.PFD_SUPPORT_GDI
	PFD_SUPPORT_OPENGL      = C.PFD_SUPPORT_OPENGL
	PFD_GENERIC_ACCELERATED = C.PFD_GENERIC_ACCELERATED
	PFD_GENERIC_FORMAT      = C.PFD_GENERIC_FORMAT
	PFD_NEED_PALETTE        = C.PFD_NEED_PALETTE
	PFD_NEED_SYSTEM_PALETTE = C.PFD_NEED_SYSTEM_PALETTE
	PFD_DOUBLEBUFFER        = C.PFD_DOUBLEBUFFER
	PFD_STEREO              = C.PFD_STEREO
	PFD_SWAP_LAYER_BUFFERS  = C.PFD_SWAP_LAYER_BUFFERS

	PFD_SUPPORT_COMPOSITION = 0x00008000
)
View Source
const (
	PFD_TYPE_RGBA       = C.PFD_TYPE_RGBA
	PFD_TYPE_COLORINDEX = C.PFD_TYPE_COLORINDEX
)
View Source
const (
	VK_LBUTTON  = 0x01
	VK_RBUTTON  = 0x02
	VK_CANCEL   = 0x03
	VK_MBUTTON  = 0x04
	VK_XBUTTON1 = 0x05
	VK_XBUTTON2 = 0x06
	VK_BACK     = 0x08
	VK_TAB      = 0x09
	VK_CLEAR    = 0x0C
	VK_RETURN   = 0x0D
	VK_SHIFT    = 0x10
	VK_CONTROL  = 0x11
	VK_MENU     = 0x12
	VK_PAUSE    = 0x13
	VK_CAPITAL  = 0x14

	VK_KANA    = 0x15
	VK_HANGUEL = 0x15
	VK_HANGUL  = 0x15

	VK_JUNJA = 0x17
	VK_FINAL = 0x18

	VK_HANJA = 0x19
	VK_KANJI = 0x19

	VK_ESCAPE     = 0x1B
	VK_CONVERT    = 0x1C
	VK_NONCONVERT = 0x1D
	VK_ACCEPT     = 0x1E

	VK_MODECHANGE = 0x1F
	VK_SPACE      = 0x20
	VK_PRIOR      = 0x21
	VK_NEXT       = 0x22
	VK_END        = 0x23
	VK_HOME       = 0x24
	VK_LEFT       = 0x25
	VK_UP         = 0x26
	VK_RIGHT      = 0x27
	VK_DOWN       = 0x28
	VK_SELECT     = 0x29
	VK_PRINT      = 0x2A
	VK_EXECUTE    = 0x2B
	VK_SNAPSHOT   = 0x2C
	VK_INSERT     = 0x2D
	VK_DELETE     = 0x2E
	VK_HELP       = 0x2F

	VK_UNDEF_0 = 0x30
	VK_UNDEF_1 = 0x31
	VK_UNDEF_2 = 0x32
	VK_UNDEF_3 = 0x33
	VK_UNDEF_4 = 0x34
	VK_UNDEF_5 = 0x35
	VK_UNDEF_6 = 0x36
	VK_UNDEF_7 = 0x37
	VK_UNDEF_8 = 0x38
	VK_UNDEF_9 = 0x39

	VK_UNDEF_A = 0x41
	VK_UNDEF_B = 0x42
	VK_UNDEF_C = 0x43
	VK_UNDEF_D = 0x44
	VK_UNDEF_E = 0x45
	VK_UNDEF_F = 0x46
	VK_UNDEF_G = 0x47
	VK_UNDEF_H = 0x48
	VK_UNDEF_I = 0x49
	VK_UNDEF_J = 0x4A
	VK_UNDEF_K = 0x4B
	VK_UNDEF_L = 0x4C
	VK_UNDEF_M = 0x4D
	VK_UNDEF_N = 0x4E
	VK_UNDEF_O = 0x4F
	VK_UNDEF_P = 0x50
	VK_UNDEF_Q = 0x51
	VK_UNDEF_R = 0x52
	VK_UNDEF_S = 0x53
	VK_UNDEF_T = 0x54
	VK_UNDEF_U = 0x55
	VK_UNDEF_V = 0x56
	VK_UNDEF_W = 0x57
	VK_UNDEF_X = 0x58
	VK_UNDEF_Y = 0x59
	VK_UNDEF_Z = 0x5A

	VK_LWIN      = 0x5B
	VK_RWIN      = 0x5C
	VK_APPS      = 0x5D
	VK_SLEEP     = 0x5F
	VK_NUMPAD0   = 0x60
	VK_NUMPAD1   = 0x61
	VK_NUMPAD2   = 0x62
	VK_NUMPAD3   = 0x63
	VK_NUMPAD4   = 0x64
	VK_NUMPAD5   = 0x65
	VK_NUMPAD6   = 0x66
	VK_NUMPAD7   = 0x67
	VK_NUMPAD8   = 0x68
	VK_NUMPAD9   = 0x69
	VK_MULTIPLY  = 0x6A
	VK_ADD       = 0x6B
	VK_SEPARATOR = 0x6C
	VK_SUBTRACT  = 0x6D
	VK_DECIMAL   = 0x6E
	VK_DIVIDE    = 0x6F
	VK_F1        = 0x70
	VK_F2        = 0x71
	VK_F3        = 0x72
	VK_F4        = 0x73
	VK_F5        = 0x74
	VK_F6        = 0x75
	VK_F7        = 0x76
	VK_F8        = 0x77
	VK_F9        = 0x78
	VK_F10       = 0x79
	VK_F11       = 0x7A
	VK_F12       = 0x7B
	VK_F13       = 0x7C
	VK_F14       = 0x7D
	VK_F15       = 0x7E
	VK_F16       = 0x7F
	VK_F17       = 0x80
	VK_F18       = 0x81
	VK_F19       = 0x82
	VK_F20       = 0x83
	VK_F21       = 0x84
	VK_F22       = 0x85
	VK_F23       = 0x86
	VK_F24       = 0x87

	VK_NUMLOCK  = 0x90
	VK_SCROLL   = 0x91
	VK_LSHIFT   = 0xA0
	VK_RSHIFT   = 0xA1
	VK_LCONTROL = 0xA2
	VK_RCONTROL = 0xA3
	VK_LMENU    = 0xA4

	VK_RMENU               = 0xA5
	VK_BROWSER_BACK        = 0xA6
	VK_BROWSER_FORWARD     = 0xA7
	VK_BROWSER_REFRESH     = 0xA8
	VK_BROWSER_STOP        = 0xA9
	VK_BROWSER_SEARCH      = 0xAA
	VK_BROWSER_FAVORITES   = 0xAB
	VK_BROWSER_HOME        = 0xAC
	VK_VOLUME_MUTE         = 0xAD
	VK_VOLUME_DOWN         = 0xAE
	VK_VOLUME_UP           = 0xAF
	VK_MEDIA_NEXT_TRACK    = 0xB0
	VK_MEDIA_PREV_TRACK    = 0xB1
	VK_MEDIA_STOP          = 0xB2
	VK_MEDIA_PLAY_PAUSE    = 0xB3
	VK_LAUNCH_MAIL         = 0xB4
	VK_LAUNCH_MEDIA_SELECT = 0xB5
	VK_LAUNCH_APP1         = 0xB6
	VK_LAUNCH_APP2         = 0xB7
	VK_OEM_1               = 0xBA
	VK_OEM_PLUS            = 0xBB
	VK_OEM_COMMA           = 0xBC
	VK_OEM_MINUS           = 0xBD
	VK_OEM_PERIOD          = 0xBE
	VK_OEM_2               = 0xBF
	VK_OEM_3               = 0xC0
	VK_OEM_4               = 0xDB
	VK_OEM_5               = 0xDC
	VK_OEM_6               = 0xDD
	VK_OEM_7               = 0xDE
	VK_OEM_8               = 0xDF
	VK_OEM_102             = 0xE2
	VK_PROCESSKEY          = 0xE5
	VK_PACKET              = 0xE7
	VK_ATTN                = 0xF6
	VK_CRSEL               = 0xF7
	VK_EXSEL               = 0xF8
	VK_EREOF               = 0xF9
	VK_PLAY                = 0xFA
	VK_ZOOM                = 0xFB
	VK_PA1                 = 0xFD
	VK_OEM_CLEAR           = 0xFE
)
View Source
const COLOR_WINDOW = C.COLOR_WINDOW
View Source
const (
	GL_VERSION = 0x1F02
)
View Source
const (
	HC_ACTION = C.HC_ACTION
)

Variables

View Source
var (
	HWND_TOP       = *(*HWND)(unsafe.Pointer(&iHWND_TOP))
	HWND_BOTTOM    = *(*HWND)(unsafe.Pointer(&iHWND_BOTTOM))
	HWND_TOPMOST   = *(*HWND)(unsafe.Pointer(&iHWND_TOPMOST))
	HWND_NOTOPMOST = *(*HWND)(unsafe.Pointer(&iHWND_NOTOPMOST))
)

Functions

func AlphaBlend

func AlphaBlend(hdcDest HDC, xoriginDest, yoriginDest, wDest, hDest Int, hdcSrc HDC, xoriginSrc, yoriginSrc, wSrc, hSrc Int, ftn *BLENDFUNCTION) bool

func ClientToScreen

func ClientToScreen(hwnd HWND, point *POINT) bool

func ClipCursor

func ClipCursor(rect *RECT) bool

func DeleteObject

func DeleteObject(object HGDIOBJ) bool

func DescribePixelFormat

func DescribePixelFormat(hdc HDC, iPixelFormat Int) (Int, *PIXELFORMATDESCRIPTOR)

func DestroyCursor

func DestroyCursor(cursor HCURSOR) bool

func DestroyIcon

func DestroyIcon(icon HICON) bool

func DestroyWindow

func DestroyWindow(hwnd HWND) (ret bool)

func DwmEnableBlurBehindWindow

func DwmEnableBlurBehindWindow(hwnd HWND, pBlurBehind *DWM_BLURBEHIND) error

func DwmExtendFrameIntoClientArea

func DwmExtendFrameIntoClientArea(hwnd HWND, pMarInset *MARGINS) error

func EnableWindow

func EnableWindow(hwnd HWND, enable bool) bool

func EnumDisplayDevices

func EnumDisplayDevices(device string, iDevNum DWORD, pDisplayDevice *DISPLAY_DEVICE, dwFlags DWORD) bool

func EnumDisplayMonitors

func EnumDisplayMonitors(hdc HDC, lprcClip *RECT, fn MonitorEnumProc, dwData LPARAM) bool

func EnumDisplaySettings

func EnumDisplaySettings(deviceName string, iModeNum DWORD, pDevMode *DEVMODE) bool

func FillRect

func FillRect(hdc HDC, rect *RECT, hbr HBRUSH) bool

func FlashWindow

func FlashWindow(hwnd HWND, invert bool) bool

func GetAsyncKeyState

func GetAsyncKeyState(vKey Int) int16

func GetKeyState

func GetKeyState(vKey Int) int16

func GetLastErrorString

func GetLastErrorString() (ret string)

Not an actual win32 api function

func GetMonitorInfo

func GetMonitorInfo(hMonitor HMONITOR, lpmi *MONITORINFOEX) bool

func GetUpdateRect

func GetUpdateRect(hwnd HWND, lpRect *RECT, bErase bool) bool

func GlGetString

func GlGetString(name uint32) string

func IsIconic

func IsIconic(hwnd HWND) bool

func LPTSTRToString

func LPTSTRToString(cstr C.LPTSTR) string

Decodes a UTF-16 encoded C.LPTSTR/C.LPWSTR to a UTF-8 encoded Go string.

if cstr == nil: "" is returned

This function does not touch/free the memory held by the cstr parameter.

func LowLevelKeyboardHookCallback

func LowLevelKeyboardHookCallback(nCode C.int, wParam C.WPARAM, lParam C.LPARAM) C.LRESULT

func MonitorEnumProcCallback

func MonitorEnumProcCallback(hMonitor C.HMONITOR, hdcMonitor C.HDC, lprcMonitor *C.RECT, dwData LPARAM) C.BOOL

func PeekMessage

func PeekMessage(msg *MSG, hwnd HWND, wMsgFilterMin, wMsgFilterMax, wRemoveMsg UINT) bool

func RegisterRawInputDevices

func RegisterRawInputDevices(pRawInputDevices *RAWINPUTDEVICE, uiNumDevices UINT, cbSize UINT) bool

func RegisterWndProc

func RegisterWndProc(hwnd HWND, fn func(HWND, UINT, WPARAM, LPARAM) LRESULT)

func ReleaseCapture

func ReleaseCapture() bool

func ReleaseDC

func ReleaseDC(wnd HWND, dc HDC) (ret bool)

http://msdn.microsoft.com/en-us/library/windows/desktop/dd162920(v=vs.85).aspx just returns bool even though docs say int.. stupid!

func ScreenToClient

func ScreenToClient(hwnd HWND, point *POINT) bool

func SetCursorPos

func SetCursorPos(x, y int32) bool

func SetPixelFormat

func SetPixelFormat(hdc HDC, iPixelFormat Int, ppfd *PIXELFORMATDESCRIPTOR) bool

func SetWindowPos

func SetWindowPos(hwnd, hwndInsertAfter HWND, X, Y, cx, cy Int, uFlags UINT) (ret bool)

func SetWindowText

func SetWindowText(hwnd HWND, str string) bool

func ShowWindow

func ShowWindow(hwnd HWND, nCmdShow Int) (wasShownBefore bool)

func String

func String(s []uint16) string

func StringToLPTSTR

func StringToLPTSTR(g string) C.LPTSTR

Encodes a UTF-8 encoded Go string to a UTF-16 encoded C.LPTSTR/C.LPWSTR.

if len(g) == 0: nil is returned.

Note: The returned C.LPTSTR should be free'd at some point; it is malloc'd

func SwapBuffers

func SwapBuffers(hdc HDC) bool

func TranslateMessage

func TranslateMessage(msg *MSG) (ret bool)

func TransparentBlt

func TransparentBlt(a HDC, b, c, d, e Int, f HDC, g, h, i, j Int, k uint32) bool

func UnhookWindowsHookEx

func UnhookWindowsHookEx(hook HHOOK) bool

func UnregisterClass

func UnregisterClass(class string, instance HINSTANCE) bool

func UnregisterWndProc

func UnregisterWndProc(hwnd HWND)

func ValidateRect

func ValidateRect(hwnd HWND, rect *RECT) bool

func WglDeleteContext

func WglDeleteContext(hglrc HGLRC) bool

func WglGetExtensionsStringARB

func WglGetExtensionsStringARB(hdc HDC) (string, bool)

func WglGetPixelFormatAttribfvARB

func WglGetPixelFormatAttribfvARB(hdc HDC, iPixelFormat, iLayerPlane Int, piAttributes []Int, pfValues *Float) bool

func WglGetPixelFormatAttribivARB

func WglGetPixelFormatAttribivARB(hdc HDC, iPixelFormat, iLayerPlane Int, piAttributes []Int, piValues *Int) bool

func WglGetProcAddress

func WglGetProcAddress(lpszProc string) uintptr

func WglMakeCurrent

func WglMakeCurrent(hdc HDC, hglrc HGLRC) bool

func WglShareLists

func WglShareLists(hglrc1, hglrc2 HGLRC) bool

func WglSwapIntervalEXT

func WglSwapIntervalEXT(interval int) bool

func WndProcCallback

func WndProcCallback(hwnd C.HWND, msg C.UINT, wParam C.WPARAM, lParam C.LPARAM) C.LRESULT

Types

type ATOM

type ATOM C.ATOM

func RegisterClassEx

func RegisterClassEx(wc *WNDCLASSEX) ATOM

type BITMAPINFO

type BITMAPINFO struct {
	BmiHeader BITMAPINFOHEADER
	BmiColors [1]RGBQUAD
}

type BITMAPINFOHEADER

type BITMAPINFOHEADER struct {
	Size DWORD
	Width,
	Height LONG
	Planes,
	BitCount WORD
	Compression,
	SizeImage DWORD
	XPelsPerMeter,
	YPelsPerMeter LONG
	ClrUsed,
	ClrImportant DWORD
}

type BLENDFUNCTION

type BLENDFUNCTION struct {
	BlendOp             BYTE
	BlendFlags          BYTE
	SourceConstantAlpha BYTE
	AlphaFormat         BYTE
}

type BYTE

type BYTE uint8

type COLORREF

type COLORREF uint32

type CREATESTRUCT

type CREATESTRUCT C.CREATESTRUCT

type DEVMODE

type DEVMODE struct {
	DmDeviceName       [32]uint16
	DmSpecVersion      uint16
	DmDriverVersion    uint16
	DmSize             uint16
	DmDriverExtra      uint16
	DmFields           uint32
	Anon0              [16]byte
	DmColor            int16
	DmDuplex           int16
	DmYResolution      int16
	DmTTOption         int16
	DmCollate          int16
	DmFormName         [32]uint16
	DmLogPixels        uint16
	DmBitsPerPel       uint32
	DmPelsWidth        uint32
	DmPelsHeight       uint32
	Anon1              [4]byte
	DmDisplayFrequency uint32
	DmICMMethod        uint32
	DmICMIntent        uint32
	DmMediaType        uint32
	DmDitherType       uint32
	DmReserved1        uint32
	DmReserved2        uint32
	DmPanningWidth     uint32
	DmPanningHeight    uint32
}

func (*DEVMODE) DmDisplayFixedOutput

func (d *DEVMODE) DmDisplayFixedOutput() DWORD

type DISPLAY_DEVICE

type DISPLAY_DEVICE struct {
	Cb           uint32
	DeviceName   [32]uint16
	DeviceString [128]uint16
	StateFlags   uint32
	DeviceID     [128]uint16
	DeviceKey    [128]uint16
}

type DWM_BLURBEHIND

type DWM_BLURBEHIND struct {
	DwFlags                uint32
	FEnable                int32
	HRgbBlur               HRGN
	FTransitionOnMaximized int32
}

type DWORD

type DWORD uint32

func FormatMessage

func FormatMessage(dwFlags DWORD, lpSource unsafe.Pointer, dwMessageId, dwLanguageId DWORD, lpBuffer unsafe.Pointer, nSize DWORD, args unsafe.Pointer) DWORD

type Float

type Float C.FLOAT

type GUID

type GUID struct {
	Data1 uint32
	Data2 uint16
	Data3 uint16
	Data4 [8]uint8
}

type HBITMAP

type HBITMAP unsafe.Pointer

func CreateCompatibleBitmap

func CreateCompatibleBitmap(hdc HDC, nWidth, nHeight Int) HBITMAP

type HBRUSH

type HBRUSH unsafe.Pointer

func CreateSolidBrush

func CreateSolidBrush(crColor COLORREF) HBRUSH

func IntToHBRUSH

func IntToHBRUSH(v Int) HBRUSH

type HCURSOR

type HCURSOR unsafe.Pointer

func LoadCursor

func LoadCursor(instance HINSTANCE, cursorName string) HCURSOR

func SetCursor

func SetCursor(cursor HCURSOR) HCURSOR

type HDC

type HDC unsafe.Pointer

func CreateCompatibleDC

func CreateCompatibleDC(hdc HDC) HDC

func CreateDC

func CreateDC(driver string, device string, initData *DEVMODE) HDC

func GetDC

func GetDC(hwnd HWND) HDC

type HGDIOBJ

type HGDIOBJ C.HGDIOBJ

func GetStockObject

func GetStockObject(fnObject Int) HGDIOBJ

func SelectObject

func SelectObject(hdc HDC, hgdiobj HGDIOBJ) HGDIOBJ

type HGLRC

type HGLRC C.HGLRC

OpenGL functions

func WglCreateContext

func WglCreateContext(hdc HDC) HGLRC

func WglCreateContextAttribsARB

func WglCreateContextAttribsARB(hdc HDC, hglrc HGLRC, attribs []Int) (HGLRC, bool)

type HHOOK

type HHOOK unsafe.Pointer

func SetLowLevelKeyboardHook

func SetLowLevelKeyboardHook(fn LowLevelKeyboardHookProc, hMod HINSTANCE, dwThreadId DWORD) HHOOK

type HICON

type HICON unsafe.Pointer

func CreateIconIndirect

func CreateIconIndirect(piconinfo *ICONINFO) HICON

type HINSTANCE

type HINSTANCE unsafe.Pointer

type HMENU

type HMENU unsafe.Pointer

type HMODULE

type HMODULE C.HMODULE

func GetModuleHandle

func GetModuleHandle(moduleName string) HMODULE

type HMONITOR

type HMONITOR unsafe.Pointer

func MonitorFromWindow

func MonitorFromWindow(hwnd HWND, dwFlags DWORD) HMONITOR

type HRAWINPUT

type HRAWINPUT unsafe.Pointer

type HRGN

type HRGN unsafe.Pointer

func CreateRectRgn

func CreateRectRgn(nLeftRect, nTopRect, nRightRect, nBottomRect int) HRGN

type HWND

type HWND unsafe.Pointer

func CreateWindowEx

func CreateWindowEx(dwExStyle uint32, lpClassName, lpWindowName string, dwStyle DWORD, x, y, nWidth, nHeight Int, hWndParent HWND, hMenu HMENU, hInstance HINSTANCE, createStruct *CREATESTRUCT) (ret HWND)

func SetCapture

func SetCapture(hwnd HWND) HWND

func WindowFromDC

func WindowFromDC(hdc HDC) HWND

type ICONINFO

type ICONINFO struct {
	FIcon    Int
	XHotspot DWORD
	YHotspot DWORD
	HbmMask  HBITMAP
	HbmColor HBITMAP
}

type Int

type Int int32

func GetDeviceCaps

func GetDeviceCaps(dc HDC, nIndex Int) (ret Int)

func GetSystemMetrics

func GetSystemMetrics(nIndex Int) (ret Int)

func SetDIBits

func SetDIBits(hdc HDC, hbmp HBITMAP, uStartScan, cScanLines UINT, lpvBits unsafe.Pointer, bmi *BITMAPINFO, fuColorUse UINT) Int

type KBDLLHOOKSTRUCT

type KBDLLHOOKSTRUCT struct {
	VkCode      uint32
	ScanCode    uint32
	Flags       uint32
	Time        uint32
	DwExtraInfo uint64
}

type LONG

type LONG int32

func ChangeDisplaySettingsEx

func ChangeDisplaySettingsEx(deviceName string, pDevMode *DEVMODE, dwFlags DWORD, lParam *VIDEOPARAMETERS) (ret LONG)

func GetWindowLong

func GetWindowLong(hwnd HWND, nIndex Int) (ret LONG)

func SetWindowLong

func SetWindowLong(hwnd HWND, nIndex Int, dwNewLong LONG) (ret LONG)

type LONG_PTR

type LONG_PTR int64

func GetWindowLongPtr

func GetWindowLongPtr(hwnd HWND, nIndex Int) (ret LONG_PTR)

func SetWindowLongPtr

func SetWindowLongPtr(hwnd HWND, nIndex Int, dwNewLong LONG_PTR) (ret LONG_PTR)

type LPARAM

type LPARAM C.LPARAM

func (LPARAM) HIWORD

func (c LPARAM) HIWORD() uint16

#define LOWORD(l) ((WORD)(l)) #define HIWORD(l) ((WORD)(((DWORD)(l) >> 16) & 0xFFFF))

func (LPARAM) LOWORD

func (c LPARAM) LOWORD() uint16

func (LPARAM) MINMAXINFO

func (c LPARAM) MINMAXINFO() *MINMAXINFO

func (LPARAM) RECT

func (c LPARAM) RECT() *RECT

type LPTSTR

type LPTSTR C.LPTSTR

type LRESULT

type LRESULT int64

func CallNextHookEx

func CallNextHookEx(hhk HHOOK, nCode Int, wParam WPARAM, lParam LPARAM) LRESULT

func DefWindowProc

func DefWindowProc(hwnd HWND, msg UINT, wParam WPARAM, lParam LPARAM) (ret LRESULT)

func DispatchMessage

func DispatchMessage(msg *MSG) (ret LRESULT)

func SendMessage

func SendMessage(hwnd HWND, msg UINT, wParam WPARAM, lParam LPARAM) LRESULT

type LowLevelKeyboardHookProc

type LowLevelKeyboardHookProc func(nCode Int, wParam WPARAM, lParam LPARAM) LRESULT

type MARGINS

type MARGINS struct {
	CxLeftWidth, CxRightWidth, CyTopHeight, CyBottomHeight int
}

type MINMAXINFO

type MINMAXINFO struct {
	PtReserved     POINT
	PtMaxSize      POINT
	PtMaxPosition  POINT
	PtMinTrackSize POINT
	PtMaxTrackSize POINT
}

type MONITORINFOEX

type MONITORINFOEX struct {
	CbSize    uint32
	RcMonitor RECT
	RcWork    RECT
	DwFlags   uint32
	SzDevice  [32]uint16
}

type MSG

type MSG C.MSG

func (*MSG) Hwnd

func (c *MSG) Hwnd() HWND

func (*MSG) LParam

func (c *MSG) LParam() LPARAM

func (*MSG) Message

func (c *MSG) Message() UINT

func (*MSG) Time

func (c *MSG) Time() DWORD

func (*MSG) WParam

func (c *MSG) WParam() WPARAM

type MonitorEnumProc

type MonitorEnumProc func(hMonitor HMONITOR, hdcMonitor HDC, lprcMonitor *RECT, dwData LPARAM) bool

type OSVERSIONINFOEX

type OSVERSIONINFOEX struct {
	DwOSVersionInfoSize uint32
	DwMajorVersion      uint32
	DwMinorVersion      uint32
	DwBuildNumber       uint32
	DwPlatformId        uint32
	SzCSDVersion        [128]uint16
	WServicePackMajor   uint16
	WServicePackMinor   uint16
	WSuiteMask          uint16
	WProductType        uint8
	WReserved           uint8
}

func GetVersionEx

func GetVersionEx() (ret bool, vi *OSVERSIONINFOEX)

type PIXELFORMATDESCRIPTOR

type PIXELFORMATDESCRIPTOR struct {
	NSize           uint16
	NVersion        uint16
	DwFlags         uint32
	IPixelType      uint8
	CColorBits      uint8
	CRedBits        uint8
	CRedShift       uint8
	CGreenBits      uint8
	CGreenShift     uint8
	CBlueBits       uint8
	CBlueShift      uint8
	CAlphaBits      uint8
	CAlphaShift     uint8
	CAccumBits      uint8
	CAccumRedBits   uint8
	CAccumGreenBits uint8
	CAccumBlueBits  uint8
	CAccumAlphaBits uint8
	CDepthBits      uint8
	CStencilBits    uint8
	CAuxBuffers     uint8
	ILayerType      uint8
	BReserved       uint8
	DwLayerMask     uint32
	DwVisibleMask   uint32
	DwDamageMask    uint32
}

type POINT

type POINT struct {
	X int32
	Y int32
}

type POINTL

type POINTL struct {
	X int32
	Y int32
}

type RAWINPUT

type RAWINPUT struct {
	Header RAWINPUTHEADER
	Data   [24]byte
}

func (*RAWINPUT) Mouse

func (r *RAWINPUT) Mouse() RAWMOUSE

See: http://msdn.microsoft.com/en-us/library/windows/desktop/ms645562(v=vs.85).aspx RAWMOUSE is in a union

type RAWINPUTDEVICE

type RAWINPUTDEVICE struct {
	UsUsagePage uint16
	UsUsage     uint16
	DwFlags     uint32
	HwndTarget  HWND
}

type RAWINPUTHEADER

type RAWINPUTHEADER struct {
	DwType  uint32
	DwSize  uint32
	HDevice *byte
	WParam  uint64
}

type RAWMOUSE

type RAWMOUSE struct {
	UsFlags            uint16
	Pad_cgo_0          [2]byte
	Anon0              [4]byte
	UlRawButtons       uint32
	LLastX             int32
	LLastY             int32
	UlExtraInformation uint32
}

type RECT

type RECT struct {
	Left   int32
	Top    int32
	Right  int32
	Bottom int32
}

func GetClipCursor

func GetClipCursor() (clip *RECT, ok bool)

type RGBQUAD

type RGBQUAD struct {
	RgbBlue,
	RgbGreen,
	RgbRed,
	RgbReserved uint8
}

type TCHAR

type TCHAR uint16

type TIMERPROC

type TIMERPROC C.TIMERPROC

type UINT

type UINT uint32

func GetRawInputData

func GetRawInputData(hRawInput HRAWINPUT, uiCommand UINT, pData unsafe.Pointer, pcbSize *UINT, cbSizeHeader UINT) UINT

type UINT_PTR

type UINT_PTR uint64

type ULONG_PTR

type ULONG_PTR uint64

type USHORT

type USHORT uint16

type VIDEOPARAMETERS

type VIDEOPARAMETERS struct {
	Guid                  GUID
	DwOffset              uint32
	DwCommand             uint32
	DwFlags               uint32
	DwMode                uint32
	DwTVStandard          uint32
	DwAvailableModes      uint32
	DwAvailableTVStandard uint32
	DwFlickerFilter       uint32
	DwOverScanX           uint32
	DwOverScanY           uint32
	DwMaxUnscaledX        uint32
	DwMaxUnscaledY        uint32
	DwPositionX           uint32
	DwPositionY           uint32
	DwBrightness          uint32
	DwContrast            uint32
	DwCPType              uint32
	DwCPCommand           uint32
	DwCPStandard          uint32
	DwCPKey               uint32
	APSTriggerBits        uint32
	BOEMCopyProtection    [256]uint8
}

type WNDCLASSEX

type WNDCLASSEX C.WNDCLASSEX

func NewWNDCLASSEX

func NewWNDCLASSEX() *WNDCLASSEX

func (*WNDCLASSEX) SetCbClsExtra

func (w *WNDCLASSEX) SetCbClsExtra(v Int)

func (*WNDCLASSEX) SetCbWndExtra

func (w *WNDCLASSEX) SetCbWndExtra(v Int)

func (*WNDCLASSEX) SetHCursor

func (w *WNDCLASSEX) SetHCursor(cursor HCURSOR)

func (*WNDCLASSEX) SetHIcon

func (w *WNDCLASSEX) SetHIcon(icon HICON)

func (*WNDCLASSEX) SetHIconSm

func (w *WNDCLASSEX) SetHIconSm(icon HICON)

func (*WNDCLASSEX) SetHInstance

func (w *WNDCLASSEX) SetHInstance(instance HINSTANCE)

func (*WNDCLASSEX) SetHbrBackground

func (w *WNDCLASSEX) SetHbrBackground(v HBRUSH)

func (*WNDCLASSEX) SetLpfnWndProc

func (w *WNDCLASSEX) SetLpfnWndProc()

func (*WNDCLASSEX) SetLpszClassName

func (w *WNDCLASSEX) SetLpszClassName(v string)

func (*WNDCLASSEX) SetLpszMenuName

func (w *WNDCLASSEX) SetLpszMenuName(v string)

func (*WNDCLASSEX) SetStyle

func (w *WNDCLASSEX) SetStyle(style UINT)

type WORD

type WORD uint16

type WPARAM

type WPARAM C.WPARAM

func (WPARAM) HIWORD

func (c WPARAM) HIWORD() uint16

func (WPARAM) LOWORD

func (c WPARAM) LOWORD() uint16

Jump to

Keyboard shortcuts

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