convertMacOSToolbarStyleToWindowToolbarStyle static method
NSWindowToolbarStyle
convertMacOSToolbarStyleToWindowToolbarStyle(
- MacOSToolbarStyle toolbarStyle
)
Implementation
static NSWindowToolbarStyle convertMacOSToolbarStyleToWindowToolbarStyle(
MacOSToolbarStyle toolbarStyle,
) {
switch (toolbarStyle) {
case MacOSToolbarStyle.automatic:
return NSWindowToolbarStyle.automatic;
case MacOSToolbarStyle.expanded:
return NSWindowToolbarStyle.expanded;
case MacOSToolbarStyle.preference:
return NSWindowToolbarStyle.preference;
case MacOSToolbarStyle.unified:
return NSWindowToolbarStyle.unified;
case MacOSToolbarStyle.unifiedCompact:
return NSWindowToolbarStyle.unifiedCompact;
}
}