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

Function topl_resp_rect

outdated/sys/mac/macwin.c:985–998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

983#define BTN_H (SBARHEIGHT - 3)
984
985static void
986topl_resp_rect(int resp_idx, Rect *r)
987{
988 Rect rect;
989
990 GetWindowBounds(theWindows[WIN_MESSAGE].its_window, kWindowContentRgn,
991 &rect);
992 OffsetRect(&rect, -rect.left, -rect.top);
993 r->left = (BTN_IND + BTN_W) * resp_idx + BTN_IND;
994 r->right = r->left + BTN_W;
995 r->bottom = rect.bottom - 1;
996 r->top = r->bottom - BTN_H;
997 return;
998}
999
1000void
1001enter_topl_mode(char *query)

Callers 5

topl_flash_respFunction · 0.85
topl_set_defFunction · 0.85
topl_set_respFunction · 0.85
MsgClickFunction · 0.85
MsgUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected