mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
Move reordering of dialog buttons to the organize step
This repairs the feature of reordering buttons, which was temporarily left out in the previous commit.
This commit is contained in:
parent
8ae28adb6b
commit
804ca74c24
10 changed files with 160 additions and 165 deletions
|
|
@ -131,6 +131,15 @@ organize_grid_layout(cbindgen_private::Slice<cbindgen_private::GridLayoutInputDa
|
|||
return result;
|
||||
}
|
||||
|
||||
inline SharedVector<float> organize_dialog_button_layout(
|
||||
cbindgen_private::Slice<cbindgen_private::GridLayoutInputData> input_data,
|
||||
cbindgen_private::Slice<DialogButtonRole> dialog_button_roles)
|
||||
{
|
||||
SharedVector<float> result;
|
||||
cbindgen_private::slint_organize_dialog_button_layout(input_data, dialog_button_roles, &result);
|
||||
return result;
|
||||
}
|
||||
|
||||
inline SharedVector<float>
|
||||
solve_grid_layout(const cbindgen_private::GridLayoutData &data,
|
||||
cbindgen_private::Slice<cbindgen_private::LayoutInfo> constraints,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue