1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-26 02:14:22 +00:00
This commit is contained in:
Gavin Burke 2025-07-11 04:30:17 +02:00 committed by GitHub
commit 8a99bc1a71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 54 additions and 9 deletions

View file

@ -2032,6 +2032,17 @@ static PopupMenu::Options with (PopupMenu::Options options, Member&& member, Ite
return options;
}
PopupMenu::Options PopupMenu::Options::withSelectableAreaLeftInset (int xInsetAmount) const
{
return with (*this, &Options::selectableAreaLeftInset, xInsetAmount);
}
PopupMenu::Options PopupMenu::Options::withSelectableAreaRightInset (int xInsetAmount) const
{
return with (*this, &Options::selectableAreaRightInset, xInsetAmount);
}
PopupMenu::Options PopupMenu::Options::withTargetComponent (Component* comp) const
{
auto o = with (with (*this, &Options::targetComponent, comp), &Options::topLevelTarget, comp);