Documentation
¶
Index ¶
- Constants
- func BrightnessTest(hPhysicalMonitor syscall.Handle) (err error)
- func GetMonitorBrightness(hPhysicalMonitor syscall.Handle) (currentValue int, minimumValue int, maximumValue int, err error)
- func GetMonitorContrast(hPhysicalMonitor syscall.Handle) (currentValue int, minimumValue int, maximumValue int, err error)
- func GetMonitorNumberFromHandle(hMonitor syscall.Handle) (number int32, err error)
- func GetVCPFeatureAndVCPFeatureReply(hPhysicalMonitor syscall.Handle, bVCPCode byte) (currentValue int, maximumValue int, err error)
- func RestoreMonitorFactoryColorDefaults(hPhysicalMonitor syscall.Handle) (err error)
- func RestoreRestoreMonitorFactoryDefaults(hPhysicalMonitor syscall.Handle) (err error)
- func SetMonitorBrightness(hPhysicalMonitor syscall.Handle, value int) (err error)
- func SetMonitorContrast(hPhysicalMonitor syscall.Handle, value int) (err error)
- func SetVCPFeature(hPhysicalMonitor syscall.Handle, bVCPCode byte, value int) (err error)
- type CompositeMonitorInfo
- type PhysicalMonitorInfo
- type RECT
- type SystemMonitorInfo
Constants ¶
View Source
const ( Brightness byte = 0x10 Contrast byte = 0x12 Red byte = 0x16 Green byte = 0x18 Blue byte = 0x1a InputSource byte = 0x60 Volume byte = 0x62 Sharpness byte = 0x87 ColorSaturation byte = 0x8a MuteORScreenBlank byte = 0x8d HorizontalFrequency byte = 0xac VerticalFrequency byte = 0xae DisplayTechnologyType byte = 0xb6 DisplayUsageTime byte = 0xc0 PowerMode byte = 0xd6 )
https://www.hattelandtechnology.com/hubfs/pdf/misc/doc101681-1_8_and_13inch_dis_ddc_control.pdf https://www.ddcutil.com/vcpinfo_output/
Variables ¶
This section is empty.
Functions ¶
func BrightnessTest ¶
BrightnessTest 亮度循环测试
func GetMonitorBrightness ¶ added in v1.0.2
func GetMonitorBrightness(hPhysicalMonitor syscall.Handle) (currentValue int, minimumValue int, maximumValue int, err error)
GetMonitorBrightness 获取显示器亮度
func GetMonitorContrast ¶ added in v1.0.2
func GetMonitorContrast(hPhysicalMonitor syscall.Handle) (currentValue int, minimumValue int, maximumValue int, err error)
GetMonitorContrast 获取显示器对比度
func GetMonitorNumberFromHandle ¶
GetMonitorNumberFromHandle 获取显示器句柄下的显示器数量
func GetVCPFeatureAndVCPFeatureReply ¶
func GetVCPFeatureAndVCPFeatureReply(hPhysicalMonitor syscall.Handle, bVCPCode byte) (currentValue int, maximumValue int, err error)
GetVCPFeatureAndVCPFeatureReply 获取显示器VCP参数(需要使用 GetPhysicalMonitorInfo 获取到的物理显示器 Handle)
func RestoreMonitorFactoryColorDefaults ¶ added in v1.0.2
RestoreMonitorFactoryColorDefaults 还原显示器出场默认颜色设置
func RestoreRestoreMonitorFactoryDefaults ¶ added in v1.0.2
RestoreRestoreMonitorFactoryDefaults 还原显示器出场默认设置
func SetMonitorBrightness ¶ added in v1.0.2
SetMonitorBrightness 设置显示器亮度
func SetMonitorContrast ¶ added in v1.0.2
SetMonitorContrast 设置显示器对比度
Types ¶
type CompositeMonitorInfo ¶ added in v1.0.1
type CompositeMonitorInfo struct { PhysicalInfo PhysicalMonitorInfo SysInfo SystemMonitorInfo }
func GetCompositeMonitors ¶ added in v1.0.1
func GetCompositeMonitors() (monitors []CompositeMonitorInfo, err error)
GetCompositeMonitors 获取复合显示器信息
type PhysicalMonitorInfo ¶
func GetPhysicalMonitor ¶
func GetPhysicalMonitor(hMonitor syscall.Handle) (info PhysicalMonitorInfo, err error)
GetPhysicalMonitor 获取物理显示器信息
type SystemMonitorInfo ¶ added in v1.0.1
func GetSystemMonitors ¶ added in v1.0.1
func GetSystemMonitors() (info []SystemMonitorInfo, err error)
GetSystemMonitors 获取所有屏幕设备信息
Click to show internal directories.
Click to hide internal directories.