Menu bar
functionSLSCopyActiveMenuBarDisplayIdentifiercprobed
The UUID string of the display that currently owns the menu bar. Follows the menu bar as it moves between displays. Copy semantics: you own the returned string.
Swift
typealias CopyActiveMenuBarDisplay = @convention(c) (Int32) -> Unmanaged<CFString>?
let uuid = unsafeBitCast(dlsym(lib, "SLSCopyActiveMenuBarDisplayIdentifier")!,
to: CopyActiveMenuBarDisplay.self)(cid)?.takeRetainedValue() as String?
// -> "0D5B9E93-949A-4E5D-A9FB-D78261BBE5F1"CFStringRef SLSCopyActiveMenuBarDisplayIdentifier(int cid);
also exported by CoreGraphics as
CGSCopyActiveMenuBarDisplayIdentifierfunctionSLSGetMenuBarAutohideEnabledcprobed
Reads whether the menu bar is set to hide automatically. Returns a
CGError (0 on success) and writes the flag through the out-parameter — it does not return the flag itself.Swift
typealias GetMenuBarAutohide = @convention(c) (Int32, UnsafeMutablePointer<Bool>) -> Int32
var autohide = false
let err = unsafeBitCast(dlsym(lib, "SLSGetMenuBarAutohideEnabled")!,
to: GetMenuBarAutohide.self)(cid, &autohide)
// err == 0, autohide == false when "Automatically hide and show the menu bar" is offCGError SLSGetMenuBarAutohideEnabled(int cid, bool *outEnabled);
also exported by CoreGraphics as
CGSGetMenuBarAutohideEnabledfunctionSLSSetMenuBarAutohideEnabledc
Sets menu-bar autohide, the write counterpart of
SLSGetMenuBarAutohideEnabled. This changes live system state, so it is exercised only by the gated read/write/restore probe, never on the machine that builds this site.Swift
typealias SetMenuBarAutohide = @convention(c) (Int32, Bool) -> Int32
let err = unsafeBitCast(dlsym(lib, "SLSSetMenuBarAutohideEnabled")!,
to: SetMenuBarAutohide.self)(cid, true)
// restore the previous value when you are doneCGError SLSSetMenuBarAutohideEnabled(int cid, bool enabled);
also exported by CoreGraphics as
CGSSetMenuBarAutohideEnabledNo published signature
| symbol | kind | CoreGraphics name |
|---|---|---|
| SLSAdjustSystemStatusBarWindows | function | CGSAdjustSystemStatusBarWindows |
| SLSCopySystemStatusBarMetrics | function | |
| SLSGetActiveMenuBarDrawingStyle | function | CGSGetActiveMenuBarDrawingStyle |
| SLSGetMenuBar | function | CGSGetMenuBar |
| SLSGetMenuBarDrawingStyle | function | CGSGetMenuBarDrawingStyle |
| SLSGetMenuBarUseBlurredAppearance | function | |
| SLSGetMenuBarUsesRTLLayoutOnDisplayLegacy | function | |
| SLSGetMenuBarVarnishAppearanceEnabled | function | |
| SLSGetMenuBarVisibilityOverrideOnDisplay | function | |
| SLSGetProcessMenuBarWindowList | function | CGSGetProcessMenuBarWindowList |
| SLSGetRevealedMenuBarBounds | function | CGSGetRevealedMenuBarBounds |
| SLSGetSpaceMenuBarReveal | function | |
| SLSInterruptMenuBarReveal | function | CGSInterruptMenuBarReveal |
| SLSIsMenuBarVisibleOnSpace | function | CGSIsMenuBarVisibleOnSpace |
| SLSMenuBarExists | function | CGSMenuBarExists |
| SLSMenuBarHideShowRecordGetAnimationDuration | function | |
| SLSMenuBarHideShowRecordGetAnimationStartTime | function | |
| SLSMenuBarHideShowRecordGetSpaceID | function | |
| SLSMenuBarPrivacyIndicatorInset | function | |
| SLSResetMenuBarSystemOverrideAlphas | function | CGSResetMenuBarSystemOverrideAlphas |
| SLSSetActiveMenuBarDisplayIdentifier | function | CGSSetActiveMenuBarDisplayIdentifier |
| SLSSetMenuBar | function | CGSSetMenuBar |
| SLSSetMenuBarBounds | function | CGSSetMenuBarBounds |
| SLSSetMenuBarCompanionWindow | function | CGSSetMenuBarCompanionWindow |
| SLSSetMenuBarDrawingStyle | function | CGSSetMenuBarDrawingStyle |
| SLSSetMenuBarInsetAndAlpha | function | CGSSetMenuBarInsetAndAlpha |
| SLSSetMenuBarSystemOverrideAlpha | function | CGSSetMenuBarSystemOverrideAlpha |
| SLSSetMenuBarUseBlurredAppearance | function | |
| SLSSetMenuBarVisibilityOverrideOnDisplay | function | |
| SLSSetMenuBars | function | CGSSetMenuBars |
| SLSSetSystemStatusBarWindowSubitemOffsets | function | CGSSetSystemStatusBarWindowSubitemOffsets |
| SLSSpaceResetMenuBar | function | CGSSpaceResetMenuBar |
| SLSStatusBarCopyItemLayout | function | |
| SLSStatusBarGetRequiredSpace | function | |
| SLSSystemStatusBarGetCurrentNavigationWindow | function | |
| SLSSystemStatusBarGetWindowPreferredPosition | function | |
| SLSSystemStatusBarNavigateFromWindow | function | |
| SLSSystemStatusBarPrepareToUnregisterWindow | function | |
| SLSSystemStatusBarRegisterReplicantWindow | function | |
| SLSSystemStatusBarRegisterSortedWindow | function | |
| SLSSystemStatusBarRegisterWindow | function | CGSSystemStatusBarRegisterWindow |
| SLSSystemStatusBarWindowGetDragState | function | |
| SLSSystemStatusBarWindowIsDraggedOutOfBar | function | |
| SLSTransactionClearMenuBarSystemOverrideAlphas | function | |
| SLSTransactionResetSpaceMenuBar | function | |
| SLSTransactionSetMenuBarBounds | function | |
| SLSTransactionSetMenuBarCompanionWindow | function | |
| SLSTransactionSetMenuBarOverrideMaximumReveal | function | |
| SLSTransactionSetMenuBarOverrideStatusBarClipping | function | |
| SLSTransactionSetMenuBarSystemOverrideAlpha | function | |
| SLSTransactionSetMenuBars | function | |
| SLSTransactionSpaceRebuildMenuBar | function | |
| SLSTransactionSystemStatusBarRegisterReplicantWindow | function | |
| SLSTransactionSystemStatusBarRegisterSortedWindow | function | |
| SLSTransactionSystemStatusBarResetLayout | function | |
| SLSTransactionSystemStatusBarSetDropPriority | function | |
| SLSTransactionSystemStatusBarSetItemPrivacyIndicator | function | |
| SLSTransactionSystemStatusBarSetLayoutIndex | function | |
| SLSTransactionSystemStatusBarSetOverflowSpecifierPriority | function | |
| SLSTransactionSystemStatusBarSetSelectedContentFrame | function | |
| SLSTransactionSystemStatusBarSetSelectedContentFrameWithOptions | function | |
| SLSTransactionSystemStatusBarUnregisterWindow | function | |
| SLSUnregisterWindowWithSystemStatusBar | function | CGSUnregisterWindowWithSystemStatusBar |
| kSLContentStreamIgnoreMenuBarWindowFromActiveCalculationKey | data | |
| kSLMenuBarClientConnectionID | data | |
| kSLMenuBarFirstMenuMaxXKey | data | |
| kSLMenuBarImageWindowDarkKey | data | |
| kSLMenuBarImageWindowLightKey | data | |
| kSLMenuBarInactiveImageWindowDarkKey | data | |
| kSLMenuBarInactiveImageWindowLightKey | data | |
| kSLMenuBarIsRevealedKey | data | |
| kSLMenuBarRevealDurationKey | data | |
| kSLMenuBarTitleBreakOffsetsArrayKey | data | |
| kSLMenuBarTitleMaterialTintColorKey | data | |
| kSLMenuBarTrackingIsActive | data | |
| kSLSCoordinatedMenuBarBlurredBackgroundChangeNotificationName | data | |
| kSLSCoordinatedSpaceMenuBarRevealChangedNotificationName | data | |
| kSLSCoordinatedSystemStatusBarMetricsChangedNotificationName | data | |
| kSLSMenuBarDifferentiateWithoutColor | data | |
| kSLSMenuBarHasHiddenUserspaceBarKey | data | |
| kSLSMenuBarIncreasedContrast | data | |
| kSLSMenuBarRTLKey | data | |
| kSLSMenuBarReduceTransparency | data | |
| kSLSMenuBarUseFullScreenMenuBarAppearance | data | |
| kSLSUpdateMenuBarInterval | data |