MCPcopy Create free account
hub / github.com/assaultcube/AC / width

Method width

source/src/menus.cpp:202–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200 mitemmanual(gmenu *parent, char *text, char *action, char *hoveraction, color *bgcolor, const char *desc) : mitem(parent, bgcolor, mitem::TYPE_MANUAL), text(text), action(action), hoveraction(hoveraction), desc(desc) {}
201
202 virtual int width() { return text_width(text) + (strchr(text, '\n') ? menurighttabwidth : 0); }
203
204 virtual void render(int x, int y, int w)
205 {

Callers 1

renderMethod · 0.45

Calls 1

text_widthFunction · 0.85

Tested by

no test coverage detected