Menu bar

88 symbols · 66 function · 22 data

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 CGSCopyActiveMenuBarDisplayIdentifier

functionSLSGetMenuBarAutohideEnabledcprobed

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 off
CGError SLSGetMenuBarAutohideEnabled(int cid, bool *outEnabled);
also exported by CoreGraphics as CGSGetMenuBarAutohideEnabled

functionSLSSetMenuBarAutohideEnabledc

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 done
CGError SLSSetMenuBarAutohideEnabled(int cid, bool enabled);
also exported by CoreGraphics as CGSSetMenuBarAutohideEnabled

No published signature (85)

Exported and resolvable with dlsym, but not reverse-engineered here yet.
symbolkindCoreGraphics name
SLSAdjustSystemStatusBarWindowsfunctionCGSAdjustSystemStatusBarWindows
SLSCopySystemStatusBarMetricsfunction
SLSGetActiveMenuBarDrawingStylefunctionCGSGetActiveMenuBarDrawingStyle
SLSGetMenuBarfunctionCGSGetMenuBar
SLSGetMenuBarDrawingStylefunctionCGSGetMenuBarDrawingStyle
SLSGetMenuBarUseBlurredAppearancefunction
SLSGetMenuBarUsesRTLLayoutOnDisplayLegacyfunction
SLSGetMenuBarVarnishAppearanceEnabledfunction
SLSGetMenuBarVisibilityOverrideOnDisplayfunction
SLSGetProcessMenuBarWindowListfunctionCGSGetProcessMenuBarWindowList
SLSGetRevealedMenuBarBoundsfunctionCGSGetRevealedMenuBarBounds
SLSGetSpaceMenuBarRevealfunction
SLSInterruptMenuBarRevealfunctionCGSInterruptMenuBarReveal
SLSIsMenuBarVisibleOnSpacefunctionCGSIsMenuBarVisibleOnSpace
SLSMenuBarExistsfunctionCGSMenuBarExists
SLSMenuBarHideShowRecordGetAnimationDurationfunction
SLSMenuBarHideShowRecordGetAnimationStartTimefunction
SLSMenuBarHideShowRecordGetSpaceIDfunction
SLSMenuBarPrivacyIndicatorInsetfunction
SLSResetMenuBarSystemOverrideAlphasfunctionCGSResetMenuBarSystemOverrideAlphas
SLSSetActiveMenuBarDisplayIdentifierfunctionCGSSetActiveMenuBarDisplayIdentifier
SLSSetMenuBarfunctionCGSSetMenuBar
SLSSetMenuBarBoundsfunctionCGSSetMenuBarBounds
SLSSetMenuBarCompanionWindowfunctionCGSSetMenuBarCompanionWindow
SLSSetMenuBarDrawingStylefunctionCGSSetMenuBarDrawingStyle
SLSSetMenuBarInsetAndAlphafunctionCGSSetMenuBarInsetAndAlpha
SLSSetMenuBarSystemOverrideAlphafunctionCGSSetMenuBarSystemOverrideAlpha
SLSSetMenuBarUseBlurredAppearancefunction
SLSSetMenuBarVisibilityOverrideOnDisplayfunction
SLSSetMenuBarsfunctionCGSSetMenuBars
SLSSetSystemStatusBarWindowSubitemOffsetsfunctionCGSSetSystemStatusBarWindowSubitemOffsets
SLSSpaceResetMenuBarfunctionCGSSpaceResetMenuBar
SLSStatusBarCopyItemLayoutfunction
SLSStatusBarGetRequiredSpacefunction
SLSSystemStatusBarGetCurrentNavigationWindowfunction
SLSSystemStatusBarGetWindowPreferredPositionfunction
SLSSystemStatusBarNavigateFromWindowfunction
SLSSystemStatusBarPrepareToUnregisterWindowfunction
SLSSystemStatusBarRegisterReplicantWindowfunction
SLSSystemStatusBarRegisterSortedWindowfunction
SLSSystemStatusBarRegisterWindowfunctionCGSSystemStatusBarRegisterWindow
SLSSystemStatusBarWindowGetDragStatefunction
SLSSystemStatusBarWindowIsDraggedOutOfBarfunction
SLSTransactionClearMenuBarSystemOverrideAlphasfunction
SLSTransactionResetSpaceMenuBarfunction
SLSTransactionSetMenuBarBoundsfunction
SLSTransactionSetMenuBarCompanionWindowfunction
SLSTransactionSetMenuBarOverrideMaximumRevealfunction
SLSTransactionSetMenuBarOverrideStatusBarClippingfunction
SLSTransactionSetMenuBarSystemOverrideAlphafunction
SLSTransactionSetMenuBarsfunction
SLSTransactionSpaceRebuildMenuBarfunction
SLSTransactionSystemStatusBarRegisterReplicantWindowfunction
SLSTransactionSystemStatusBarRegisterSortedWindowfunction
SLSTransactionSystemStatusBarResetLayoutfunction
SLSTransactionSystemStatusBarSetDropPriorityfunction
SLSTransactionSystemStatusBarSetItemPrivacyIndicatorfunction
SLSTransactionSystemStatusBarSetLayoutIndexfunction
SLSTransactionSystemStatusBarSetOverflowSpecifierPriorityfunction
SLSTransactionSystemStatusBarSetSelectedContentFramefunction
SLSTransactionSystemStatusBarSetSelectedContentFrameWithOptionsfunction
SLSTransactionSystemStatusBarUnregisterWindowfunction
SLSUnregisterWindowWithSystemStatusBarfunctionCGSUnregisterWindowWithSystemStatusBar
kSLContentStreamIgnoreMenuBarWindowFromActiveCalculationKeydata
kSLMenuBarClientConnectionIDdata
kSLMenuBarFirstMenuMaxXKeydata
kSLMenuBarImageWindowDarkKeydata
kSLMenuBarImageWindowLightKeydata
kSLMenuBarInactiveImageWindowDarkKeydata
kSLMenuBarInactiveImageWindowLightKeydata
kSLMenuBarIsRevealedKeydata
kSLMenuBarRevealDurationKeydata
kSLMenuBarTitleBreakOffsetsArrayKeydata
kSLMenuBarTitleMaterialTintColorKeydata
kSLMenuBarTrackingIsActivedata
kSLSCoordinatedMenuBarBlurredBackgroundChangeNotificationNamedata
kSLSCoordinatedSpaceMenuBarRevealChangedNotificationNamedata
kSLSCoordinatedSystemStatusBarMetricsChangedNotificationNamedata
kSLSMenuBarDifferentiateWithoutColordata
kSLSMenuBarHasHiddenUserspaceBarKeydata
kSLSMenuBarIncreasedContrastdata
kSLSMenuBarRTLKeydata
kSLSMenuBarReduceTransparencydata
kSLSMenuBarUseFullScreenMenuBarAppearancedata
kSLSUpdateMenuBarIntervaldata