Versions in this module Expand all Collapse all v2 v2.2.2 Dec 20, 2022 v2.2.1 Dec 19, 2022 Changes in this version + const GCLP_HBRBACKGROUND — windows/amd64 + const GWL_STYLE — windows/amd64 + const HCF_HIGHCONTRASTON + 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 + 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) + func ExtendFrameIntoClientArea(hwnd uintptr) — windows/amd64 + func GetMonitorInfo(hMonitor HMONITOR, lmpi *MONITORINFO) bool — windows/amd64 + func IsCurrentlyDarkMode() bool + func IsCurrentlyHighContrastMode() bool + 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) + func SetTheme(hwnd uintptr, useDarkMode bool) + func SetTitleBarColour(hwnd uintptr, titleBarColour int32) + func SetTitleTextColour(hwnd uintptr, titleTextColour int32) + func ShowWindow(hwnd uintptr) — windows/amd64 + func ShowWindowMaximised(hwnd uintptr) — windows/amd64 + func ShowWindowMinimised(hwnd uintptr) — windows/amd64 + func SupportsBackdropTypes() bool + func SupportsCustomThemes() bool + func SupportsImmersiveDarkMode() bool + func SupportsThemes() bool + type BackdropType int32 + type DWMWINDOWATTRIBUTE int32 + 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