REAPER KB

coordinate_list

walter_themes/walter-expression-coordinate-list · kind=reference

coordinate_list

A WALTER expression made of up to eight numeric values in square brackets, used to position and size UI elements.

Kind: concept

Coordinate lists are a sequence of values in []s. They represent a sequence of 8 values, and only one is required (any omitted values are set to 0). The meaning of these values depends on context, but for most UI elements the meaning is as follows:

        [0 0 20 20 0 0 1 1]
         ^ ^ ^  ^  ^ ^ ^ ^
         | | |  |  | | | |
         | | |  |  | | | \ bottom attach: scale the bottom edge of control with parent height by this factor
         | | |  |  | | \ right attach: scale the right edge of control with parent width by this factor
         | | |  |  | \ top attach: scale the top edge of control with parent height by this factor
         | | |  |  \ left attach: scale the left edge of control with parent width by this factor
         | | |  \ height: height of control (before edge scaling, if any)
         | | \ width: width of control (before edge scaling, if any)
         | \ top: top edge of control (before edge scaling, if any)
         \ left: left edge of control (before edge scaling, if any)

Other uses:

Other sections in this document