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

Function GetNhWin

outdated/sys/mac/macwin.c:251–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249#endif
250
251static NhWindow *
252GetNhWin(WindowPtr mac_win)
253{
254 if (mac_win == _mt_window) /* term window is still maintained by both
255 systems, and */
256 return theWindows; /* WRefCon still refers to tty struct, so we have
257 to map it */
258 else {
259 NhWindow *aWin = (NhWindow *) GetWRefCon(mac_win);
260 if (aWin >= theWindows && aWin < &theWindows[NUM_MACWINDOWS])
261 return aWin;
262 }
263 return ((NhWindow *) nil);
264}
265
266Boolean
267CheckNhWin(WindowPtr mac_win)

Callers 15

CheckNhWinFunction · 0.85
MoveScrollBarFunction · 0.85
WindowGoAwayFunction · 0.85
macClickTermFunction · 0.85
macCursorTermFunction · 0.85
macClickMessageFunction · 0.85
macUpdateMessageFunction · 0.85
macKeyMenuFunction · 0.85
macClickMenuFunction · 0.85
macUpdateMenuFunction · 0.85
macKeyTextFunction · 0.85
macClickTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected