generated from napi-rs/package-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.d.ts
238 lines (236 loc) · 6.23 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
/* tslint:disable */
/* eslint-disable */
/* auto-generated by NAPI-RS */
export const enum VcpValueType {
Continuous = 0,
NonContinuous = 1,
Table = 2,
}
export interface Continuous {
currentValue: number
maximumValue: number
type: VcpValueType.Continuous
}
export interface NonContinuous {
currentValue: number
currentValueRepresentation?: string
possibleValues: Record<string, string | undefined | null>
type: VcpValueType.NonContinuous
}
export interface Table {
currentData: Array<number>
type: VcpValueType.Table
}
export const enum JsQueryType {
Backend = 0,
Id = 1,
ManufacturerId = 2,
ModelName = 3,
SerialNumber = 4,
}
export interface Query {
queryType: JsQueryType
queryValue: string
}
export type JsDisplay = Display
export class Display {
index: number
backend: string
edidData?: Uint8Array
version?: string
mccsVersion?: string
displayId: string
serial?: number
serialNumber?: string
modelId?: number
modelName?: string
manufacturerId?: string
manufactureYear?: number
manufactureWeek?: number
capabilities?: string
constructor(index: number)
getVcpFeature(featureCode: number): Promise<Continuous | NonContinuous | Table>
setVcpFeature(
featureCode: number,
valueOrOffset: number,
bytes?: Array<number> | undefined | null,
): Promise<undefined>
updateCapabilities(): string | null
}
export type JsDisplayManager = DisplayManager
export class DisplayManager {
constructor(queries?: Query | Array<Query> | undefined | null)
static getByIndex(index: number): Display
get queries(): Array<Query>
set queries(queries: Array<Query>)
addQueries(queries?: Query | Array<Query> | undefined | null): void
collect(): Promise<Array<Display>>
list(): Promise<Array<Display>>
}
export namespace VCPFeatureCode {
export const enum PresetFunctions {
CodePage = 0,
RestoreFactoryColorDefaults = 8,
RestoreFactoryDefaults = 4,
RestoreFactoryGeometryDefaults = 6,
RestoreFactoryLuminanceContrastDefaults = 5,
RestoreFactoryTvDefaults = 10,
SaveRestoreSettings = 176,
}
export const enum ImageAdjustment {
SixAxisHueControlBlue = 159,
SixAxisHueControlCyan = 158,
SixAxisHueControlGreen = 157,
SixAxisHueControlMagenta = 160,
SixAxisHueControlRed = 155,
SixAxisHueControlYellow = 156,
SixAxisSaturationControlBlue = 93,
SixAxisSaturationControlCyan = 92,
SixAxisSaturationControlGreen = 91,
SixAxisSaturationControlMagenta = 94,
SixAxisSaturationControlRed = 89,
SixAxisSaturationControlYellow = 90,
AdjustZoom = 124,
AutoColorSetup = 31,
AutoSetup = 30,
AutoSetupOnOff = 162,
BacklightControl = 19,
BacklightLevelBlue = 113,
BacklightLevelGreen = 111,
BacklightLevelRed = 109,
BacklightLevelWhite = 107,
BlockLutOperation = 117,
Clock = 14,
ClockPhase = 62,
ColorSaturation = 138,
ColorTemperatureIncrement = 11,
ColorTemperatureRequest = 12,
Contrast = 18,
DisplayApplication = 220,
FleshToneEnhancement = 17,
Focus = 28,
Gamma = 114,
GrayScaleExpansion = 46,
HorizontalMoire = 86,
Hue = 144,
Luminance = 16,
LutSize = 115,
ScreenOrientation = 170,
SelectColorPreset = 20,
Sharpness = 135,
SinglePointLutOperation = 116,
StereoVideoMode = 212,
TvBlackLevelLuminance = 146,
TvContrast = 142,
TvSharpness = 140,
UserColorVisionCompensation = 23,
VelocityScanModulation = 136,
VerticalMoire = 88,
VideoBlackLevelBlue = 112,
VideoBlackLevelGreen = 110,
VideoBlackLevelRed = 108,
VideoGainBlue = 26,
VideoGainGreen = 24,
VideoGainRed = 22,
WindowBackground = 154,
WindowControlOnOff = 164,
WindowSelect = 165,
WindowSize = 166,
WindowTransparency = 167,
}
export const enum DisplayControl {
DisplayControllerId = 200,
DisplayFirmwareLevel = 201,
DisplayUsageTime = 198,
HorizontalFrequency = 172,
ImageMode = 219,
OsdButtonLevelControl = 202,
OsdLanguage = 204,
PowerMode = 214,
SourceColorCoding = 181,
SourceTimingMode = 180,
Version = 223,
VerticalFrequency = 174,
}
export const enum Geometry {
BottomCornerFlare = 74,
BottomCornerHook = 76,
DisplayScaling = 134,
HorizontalConvergenceMG = 41,
HorizontalConvergenceRB = 40,
HorizontalKeystone = 66,
HorizontalLinearity = 42,
HorizontalLinearityBalance = 44,
HorizontalMirror = 130,
HorizontalParallelogram = 64,
HorizontalPincushion = 36,
HorizontalPincushionBalance = 38,
HorizontalPosition = 32,
HorizontalSize = 34,
Rotation = 68,
ScanMode = 218,
TopCornerFlare = 70,
TopCornerHook = 72,
VerticalConvergenceMG = 57,
VerticalConvergenceRB = 56,
VerticalKeystone = 67,
VerticalLinearity = 58,
VerticalLinearityBalance = 60,
VerticalMirror = 132,
VerticalParallelogram = 65,
VerticalPincushion = 52,
VerticalPincushionBalance = 54,
VerticalPosition = 48,
VerticalSize = 50,
WindowPositionBrX = 151,
WindowPositionBrY = 152,
WindowPositionTlX = 149,
WindowPositionTlY = 150,
}
export const enum Miscellaneous {
ActiveControl = 82,
AmbientLightSensor = 102,
ApplicationEnableKey = 198,
AssetTag = 210,
AuxiliaryDisplayData = 207,
AuxiliaryDisplaySize = 206,
AuxiliaryPowerOutput = 215,
Degauss = 1,
DisplayDescriptorLength = 194,
DisplayIdentificationDataOperation = 135,
DisplayTechnologyType = 182,
EnableDisplayOfDisplayDescriptor = 196,
FlatPanelSubPixelLayout = 178,
InputSource = 96,
NewControlValue = 2,
OutputSelect = 208,
PerformancePreservation = 84,
RemoteProcedureCall = 118,
ScratchPad = 222,
SoftControls = 3,
StatusIndicators = 205,
TransmitDisplayDescriptor = 195,
TvChannelUpDown = 139,
}
export const enum Audio {
BalanceLR = 147,
Bass = 145,
JackConnectionStatus = 101,
MicrophoneVolume = 100,
Mute = 141,
ProcessorMode = 148,
SpeakerSelect = 99,
SpeakerVolume = 98,
Treble = 143,
}
export const enum Dpvl {
BodyCrcErrorCount = 188,
ClientId = 189,
HeaderErrorCount = 187,
LinkControl = 190,
MonitorStatus = 183,
MonitorXOrigin = 185,
MonitorYOrigin = 186,
PacketCount = 184,
}
}