Function sixtyfps_corelib::layout::reorder_dialog_button_layout [−][src]
pub fn reorder_dialog_button_layout(
cells: &mut [GridLayoutCellData],
roles: &[DialogButtonRole]
)
Expand description
Given the cells of a layout of a Dialog, re-order the button according to the platform
This function assume that the roles
contains the roles of the button which are the first cells
It will simply change the column field of the cell