uint square_left = rtl ? r.right - WD_MATRIX_RIGHT - square.width : r.left + WD_MATRIX_LEFT;
uint cid_left = rtl ? square_left - 10 - widest_cid : square_left + square.width + 10;
uint cid_right = rtl ? cid_left + widest_cid : cid_left + widest_cid;
uint text_left = rtl ? cid_left - 10 - text_width : cid_right + 10;
uint text_right = rtl ? text_left + text_width : text_left + text_width;
uint rai_left = rtl ? text_left - 10 - rai_width : text_right + 10;
uint rai_right = rtl ? rai_left + rai_width : rai_left + rai_width;