win32

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const HCF_HIGHCONTRASTON = 0x00000001
View Source
const SPI_GETHIGHCONTRAST = 0x0042

Variables

This section is empty.

Functions

func EnableTranslucency

func EnableTranslucency(hwnd uintptr, backdrop BackdropType)

func IsCurrentlyDarkMode

func IsCurrentlyDarkMode() bool

func IsCurrentlyHighContrastMode

func IsCurrentlyHighContrastMode() bool

func SetBorderColour

func SetBorderColour(hwnd uintptr, titleBorderColour int32)

func SetTheme

func SetTheme(hwnd uintptr, useDarkMode bool)

func SetTitleBarColour

func SetTitleBarColour(hwnd uintptr, titleBarColour int32)

func SetTitleTextColour

func SetTitleTextColour(hwnd uintptr, titleTextColour int32)

func SupportsBackdropTypes

func SupportsBackdropTypes() bool

func SupportsCustomThemes

func SupportsCustomThemes() bool

func SupportsImmersiveDarkMode

func SupportsImmersiveDarkMode() bool

func SupportsThemes

func SupportsThemes() bool

Types

type BackdropType

type BackdropType int32

BackdropType defines the type of translucency we wish to use

type DWMWINDOWATTRIBUTE

type DWMWINDOWATTRIBUTE int32
const DwmwaBorderColor DWMWINDOWATTRIBUTE = 34
const DwmwaCaptionColor DWMWINDOWATTRIBUTE = 35
const DwmwaSystemBackdropType DWMWINDOWATTRIBUTE = 38
const DwmwaTextColor DWMWINDOWATTRIBUTE = 36
const DwmwaUseImmersiveDarkMode DWMWINDOWATTRIBUTE = 20
const DwmwaUseImmersiveDarkModeBefore20h1 DWMWINDOWATTRIBUTE = 19

Jump to

Keyboard shortcuts

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