Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor improvements to layout API #145

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

samu698
Copy link

@samu698 samu698 commented Nov 14, 2023

The changes in this PR are:

  1. Added with_settings function for Layout that receives a LayoutConfig instance allowing to configure the layout without having to call reset().
  2. Added LayoutSettingsBuilder a builder pattern for LayoutSettings.

This allows for easier configuration of layout
Because LayoutSettings::default() is not a const function I moved the
implementation of it to a const function, allowing for usage in const
and non-const contexts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant