NativeMac

backend.NativeMac (extern class)

Native macOS-specific functionality for the Clay backend.

This extern class provides bindings to native macOS APIs through C++ code (linc_NativeMac.h).

The class is marked with @:keep to ensure it's not removed by DCE (Dead Code Elimination) since it's referenced from native code.

Static Members

clay
setAppleMomentumScrollSupported(value: Bool): Void

Enables or disables Apple's momentum scrolling behavior.

Momentum scrolling provides the characteristic "bounce" effect when scrolling past content boundaries on macOS. This can be disabled for applications that want more direct scroll control.

Name Type Description
value Bool true to enable momentum scrolling, false to disable

Metadata

Name Parameters
:include "linc_NativeMac.h"
:build bindhx.Linc.touch()
:build bindhx.Linc.xml("NativeMac", "./")