Advertisement
Guest User

Untitled

a guest
Jan 27th, 2022
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. GetCurrentState () ↦ (
  2. UInt32 serial,
  3. Array of monitors,
  4. Array of logical_monitors,
  5. Dict of properties
  6. )
  7.  
  8. ApplyMonitorsConfig (
  9. UInt32 serial,
  10. UInt32 method,
  11. Array of logical_monitors,
  12. Dict of properties
  13. ) ↦ ()
  14.  
  15. GetCurrentState () ↦ (
  16. UInt32 serial,
  17. Array of [
  18. Struct of (
  19. Struct of (
  20. String, connector
  21. String, vendor
  22. String, product
  23. String serial
  24. ) info?,
  25. Array of [
  26. Struct of (
  27. String, id (1 : preferred mode; 2 : current mode
  28. Int32, width
  29. Int32, height
  30. Double, refresh
  31. Double, preferred scale
  32. Array of [
  33. Double
  34. ] supported scales,
  35. Dict of {
  36. String,
  37. Variant
  38. } properties (is-current, is-preferred, is-interlaced, and more)
  39. )
  40. ] modes,
  41. Dict of {
  42. String,
  43. Variant
  44. } properties (width-mm, height-mm, is-underscanning, max-screen-size, is-builtin, display-name, privacy-screen-state, and more)
  45. )
  46. ] monitors,
  47. Array of [
  48. Struct of (
  49. Int32, x
  50. Int32, y
  51. Double, scale
  52. UInt32, transform (0: normal; 1: 90°; 2: 180°; 3: 270°; 4: flipped; 5: 90° flipped; 6: 180° flipped; 7: 270° flipped
  53. Boolean, primary
  54. Array of [
  55. Struct of (
  56. String, connector
  57. String, vendor
  58. String, product
  59. String serial
  60. )
  61. ] monitors,
  62. Dict of {
  63. String,
  64. Variant
  65. } properties
  66. )
  67. ] logical_monitors,
  68. Dict of {
  69. String,
  70. Variant
  71. } properties (layout-mode (u): [ 1: logical, 2 : physical ], supports-changing-layout-mode (b), global-scale-required (b), legacy-ui-scaling-factor (i))
  72. )
  73.  
  74. ApplyMonitorsConfig (
  75. UInt32 serial,
  76. UInt32 method,
  77. Array of [
  78. Struct of (
  79. Int32, layout x position
  80. Int32, layout y position
  81. Double, scale
  82. UInt32, transform (see GetCurrentState)
  83. Boolean, primary: true if this is the primary logical monitor
  84. Array of [
  85. Struct of (
  86. String, connector
  87. String, monitor mode ID
  88. Dict of {
  89. String,
  90. Variant
  91. } monitor properties ("enable_underscanning" (b))
  92. )
  93. ] a list of monitors
  94. )
  95. ] logical_monitors,
  96. Dict of {
  97. String,
  98. Variant
  99. } properties ("layout-mode" (u))
  100. ) ↦ ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement