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

Method cellWidth

outdated/win/Qt3/qt3_win.cpp:2757–2771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2755}
2756
2757int NetHackQtMenuWindow::cellWidth(int col)
2758{
2759 switch (col) {
2760 case 0:
2761 return fontMetrics().width("All ");
2762 break; case 1:
2763 return fontMetrics().width(" m ");
2764 break; case 2:
2765 return qt_settings->glyphs().width();
2766 break; case 3:
2767 return str_width;
2768 }
2769 impossible("Extra column (#%d) in MenuWindow",col);
2770 return 0;
2771}
2772
2773QWidget* NetHackQtMenuWindow::Widget() { return dialog; }
2774

Callers

nothing calls this directly

Calls 2

impossibleFunction · 0.50
widthMethod · 0.45

Tested by

no test coverage detected