win32

package
v2.0.0-...-21d7e90 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DwmsbtDisable = 1 // None
View Source
const DwmsbtMainWindow = 2 // Mica
View Source
const DwmsbtTabbedWindow = 4 // Tabbed
View Source
const DwmsbtTransientWindow = 3 // Acrylic
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 SupportsCustomThemes

func SupportsCustomThemes() bool

func SupportsThemes

func SupportsThemes() bool

Types

type BackdropType

type BackdropType int32
const DwmsbtAuto BackdropType = 0

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