Versions in this module Expand all Collapse all v2 v2.7.2 Jan 29, 2024 Changes in this version + const GCLP_HBRBACKGROUND — windows/amd64 + const GWL_STYLE — windows/amd64 + const HCF_HIGHCONTRASTON — windows/amd64 + const MONITOR_DEFAULTTOPRIMARY — windows/amd64 + const PBT_APMPOWERSTATUSCHANGE — windows/amd64 + const PBT_APMRESUMEAUTOMATIC — windows/amd64 + const PBT_APMRESUMESUSPEND — windows/amd64 + const PBT_APMSUSPEND — windows/amd64 + const PBT_POWERSETTINGCHANGE — windows/amd64 + const SPI_GETHIGHCONTRAST — windows/amd64 + const SW_FORCEMINIMIZE — windows/amd64 + const SW_HIDE — windows/amd64 + const SW_MAXIMIZE — windows/amd64 + const SW_MINIMIZE — windows/amd64 + const SW_NORMAL — windows/amd64 + const SW_RESTORE — windows/amd64 + const SW_SHOW — windows/amd64 + const SW_SHOWDEFAULT — windows/amd64 + const SW_SHOWMAXIMIZED — windows/amd64 + const SW_SHOWMINIMIZED — windows/amd64 + const SW_SHOWMINNOACTIVE — windows/amd64 + const SW_SHOWNA — windows/amd64 + const SW_SHOWNOACTIVATE — windows/amd64 + const SW_SHOWNORMAL — windows/amd64 + const WM_POWERBROADCAST — windows/amd64 + const WS_MAXIMIZE — windows/amd64 + const WS_MINIMIZE — windows/amd64 + func EnableTranslucency(hwnd uintptr, backdrop BackdropType) — windows/amd64 + func ExtendFrameIntoClientArea(hwnd uintptr, extend bool) — windows/amd64 + func GetClipboardText() (string, error) — windows/amd64 + func GetMonitorInfo(hMonitor HMONITOR, lmpi *MONITORINFO) bool — windows/amd64 + func IsCurrentlyDarkMode() bool — windows/amd64 + func IsCurrentlyHighContrastMode() bool — windows/amd64 + func IsVisible(hwnd uintptr) bool — windows/amd64 + func IsWindowFullScreen(hwnd uintptr) bool — windows/amd64 + func IsWindowMaximised(hwnd uintptr) bool — windows/amd64 + func IsWindowMinimised(hwnd uintptr) bool — windows/amd64 + func IsWindowNormal(hwnd uintptr) bool — windows/amd64 + func IsWindowsVersionAtLeast(major, minor, buildNumber int) bool — windows/amd64 + func RestoreWindow(hwnd uintptr) — windows/amd64 + func SetBackgroundColour(hwnd uintptr, r, g, b uint8) — windows/amd64 + func SetBorderColour(hwnd uintptr, titleBorderColour int32) — windows/amd64 + func SetClipboardText(text string) error — windows/amd64 + func SetTheme(hwnd uintptr, useDarkMode bool) — windows/amd64 + func SetTitleBarColour(hwnd uintptr, titleBarColour int32) — windows/amd64 + func SetTitleTextColour(hwnd uintptr, titleTextColour int32) — windows/amd64 + func ShowWindow(hwnd uintptr) — windows/amd64 + func ShowWindowMaximised(hwnd uintptr) — windows/amd64 + func ShowWindowMinimised(hwnd uintptr) — windows/amd64 + func SupportsBackdropTypes() bool — windows/amd64 + func SupportsCustomThemes() bool — windows/amd64 + func SupportsImmersiveDarkMode() bool — windows/amd64 + func SupportsThemes() bool — windows/amd64 + type BackdropType int32 — windows/amd64 + type DWMWINDOWATTRIBUTE int32 — windows/amd64 + const DwmwaBorderColor + const DwmwaCaptionColor + const DwmwaSystemBackdropType + const DwmwaTextColor + const DwmwaUseImmersiveDarkMode + const DwmwaUseImmersiveDarkModeBefore20h1 + type HANDLE uintptr — windows/amd64 + type HMONITOR HANDLE — windows/amd64 + func MonitorFromWindow(hwnd uintptr, dwFlags uint32) HMONITOR + type HRESULT int32 — windows/amd64 + type MARGINS struct — windows/amd64 + CxLeftWidth int32 + CxRightWidth int32 + CyBottomHeight int32 + CyTopHeight int32 + type MONITORINFO struct — windows/amd64 + CbSize uint32 + DwFlags uint32 + RcMonitor RECT + RcWork RECT + type RECT struct — windows/amd64 + Bottom int32 + Left int32 + Right int32 + Top int32 + func GetWindowRect(hwnd uintptr) *RECT