Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GetCurrentState () ↦ (
- UInt32 serial,
- Array of monitors,
- Array of logical_monitors,
- Dict of properties
- )
- ApplyMonitorsConfig (
- UInt32 serial,
- UInt32 method,
- Array of logical_monitors,
- Dict of properties
- ) ↦ ()
- GetCurrentState () ↦ (
- UInt32 serial,
- Array of [
- Struct of (
- Struct of (
- String, connector
- String, vendor
- String, product
- String serial
- ) info?,
- Array of [
- Struct of (
- String, id (1 : preferred mode; 2 : current mode
- Int32, width
- Int32, height
- Double, refresh
- Double, preferred scale
- Array of [
- Double
- ] supported scales,
- Dict of {
- String,
- Variant
- } properties (is-current, is-preferred, is-interlaced, and more)
- )
- ] modes,
- Dict of {
- String,
- Variant
- } properties (width-mm, height-mm, is-underscanning, max-screen-size, is-builtin, display-name, privacy-screen-state, and more)
- )
- ] monitors,
- Array of [
- Struct of (
- Int32, x
- Int32, y
- Double, scale
- UInt32, transform (0: normal; 1: 90°; 2: 180°; 3: 270°; 4: flipped; 5: 90° flipped; 6: 180° flipped; 7: 270° flipped
- Boolean, primary
- Array of [
- Struct of (
- String, connector
- String, vendor
- String, product
- String serial
- )
- ] monitors,
- Dict of {
- String,
- Variant
- } properties
- )
- ] logical_monitors,
- Dict of {
- String,
- Variant
- } properties (layout-mode (u): [ 1: logical, 2 : physical ], supports-changing-layout-mode (b), global-scale-required (b), legacy-ui-scaling-factor (i))
- )
- ApplyMonitorsConfig (
- UInt32 serial,
- UInt32 method,
- Array of [
- Struct of (
- Int32, layout x position
- Int32, layout y position
- Double, scale
- UInt32, transform (see GetCurrentState)
- Boolean, primary: true if this is the primary logical monitor
- Array of [
- Struct of (
- String, connector
- String, monitor mode ID
- Dict of {
- String,
- Variant
- } monitor properties ("enable_underscanning" (b))
- )
- ] a list of monitors
- )
- ] logical_monitors,
- Dict of {
- String,
- Variant
- } properties ("layout-mode" (u))
- ) ↦ ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement