diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-08-26 19:00:35 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-08-28 00:07:28 -0700 |
commit | 7339eaea1296de0e0f3ebc03d3606470ba143ac3 (patch) | |
tree | cd0b764b9a893cc263e9754e6f6f4410ee52263b /randrproto.txt | |
parent | afe532b119fe46d32513dc71c76c3a906e06c5a8 (diff) |
spec: Update data type sections
Make definitions more consistent about use of {} for enums, [] for structs
Reflect the incorporation of more types from the Render spec in 1.3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'randrproto.txt')
-rw-r--r-- | randrproto.txt | 47 |
1 files changed, 33 insertions, 14 deletions
diff --git a/randrproto.txt b/randrproto.txt index 8c6292a..478c507 100644 --- a/randrproto.txt +++ b/randrproto.txt @@ -212,9 +212,12 @@ are visible on the reconfigured screen). 3. Data Types -The subpixel order is shared with the Render extension, and is documented -there. The only datatype defined is the screen size, defined in the normal -(0 degree) orientation. +The subpixel order and transform data types are shared with the Render +extension, and are documented there. + +The only datatype defined in the original extension is the screen size, +defined in the normal (0 degree) orientation. Several more are added +in later revisions. ❧❧❧❧❧❧❧❧❧❧❧ @@ -296,15 +299,9 @@ CONNECTION { Connected, Disconnected, UnknownConnection } This value provides an indication of whether an output is actually connected to a monitor or other presentation device. -SUBPIXELORDER { SubPixelUnknown The subpixel order uses the Render - SubPixelHorizontalRGB extensions definitions; they are here - SubPixelHorizontalBGR only for convenience. - SubPixelVerticalRGB - SubPixelVerticalBGR - SubPixelNone } -SCREENSIZE { widthInPixels, heightInPixels: CARD16 - widthInMillimeters, heightInMillimeters: CARD16 } +SCREENSIZE [ widthInPixels, heightInPixels: CARD16 + widthInMillimeters, heightInMillimeters: CARD16 ] MODEFLAG { HSyncPositive HSyncNegative @@ -321,15 +318,37 @@ MODEFLAG { HSyncPositive DoubleClock ClockDivideBy2 } -MODEINFO { id: MODE +MODEINFO [ id: MODE name: STRING width, height: CARD16 dotClock: CARD32 hSyncStart, hSyncEnd, hTotal, hSkew: CARD16 vSyncStart, vSyncEnd, vTotal: CARD16 - modeFlags: SETofMODEFLAG } + modeFlags: SETofMODEFLAG ] + +REFRESH [ rates: LISTofCARD16 ] + + ❧❧❧❧❧❧❧❧❧❧❧ + +5.1 Data Types defined by the Render extension + +These data types use the Render extension definitions; they are shown here +only for convenience: + +SUBPIXELORDER { SubPixelUnknown + SubPixelHorizontalRGB + SubPixelHorizontalBGR + SubPixelVerticalRGB + SubPixelVerticalBGR + SubPixelNone } + +FIXED 32-bit value (top 16 are integer portion, bottom 16 are fraction) -REFRESH { rates: LISTofCARD16 } +TRANSFORM [ + p11, p12, p13: FIXED + p21, p22, p23: FIXED + p31, p32, p33: FIXED + ] ❧❧❧❧❧❧❧❧❧❧❧ |