MCPcopy Create free account
hub / github.com/NetHack/NetHack / macClickMenu

Function macClickMenu

outdated/sys/mac/macwin.c:2778–2797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2776}
2777
2778static void
2779macClickMenu(EventRecord *theEvent, WindowRef theWindow)
2780{
2781 Point p;
2782 NhWindow *aWin = GetNhWin(theWindow);
2783
2784 if (aWin->scrollBar && IsControlVisible(aWin->scrollBar)) {
2785 short code;
2786 ControlHandle theBar;
2787
2788 p = theEvent->where;
2789 GlobalToLocal(&p);
2790 code = FindControl(p, theWindow, &theBar);
2791 if (code) {
2792 DoScrollBar(p, code, theBar, aWin);
2793 return;
2794 }
2795 }
2796 MenwClick(aWin, theEvent->where);
2797}
2798
2799static short
2800macUpdateMenu(EventRecord *theEvent, WindowPtr theWindow)

Callers

nothing calls this directly

Calls 3

GetNhWinFunction · 0.85
DoScrollBarFunction · 0.85
MenwClickFunction · 0.85

Tested by

no test coverage detected