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

Function macClickText

outdated/sys/mac/macwin.c:2935–2951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2933}
2934
2935static void
2936macClickText(EventRecord *theEvent, WindowPtr theWindow)
2937{
2938 NhWindow *aWin = GetNhWin(theWindow);
2939
2940 if (aWin->scrollBar && IsControlVisible(aWin->scrollBar)) {
2941 short code;
2942 Point p = theEvent->where;
2943 ControlHandle theBar;
2944
2945 GlobalToLocal(&p);
2946 code = FindControl(p, theWindow, &theBar);
2947 if (code) {
2948 DoScrollBar(p, code, theBar, aWin);
2949 }
2950 }
2951}
2952
2953#endif /* !TARGET_API_MAC_CARBON */
2954

Callers 1

macClickMessageFunction · 0.85

Calls 2

GetNhWinFunction · 0.85
DoScrollBarFunction · 0.85

Tested by

no test coverage detected