MCPcopy Create free account
hub / github.com/diasurgical/devilution / CircleMenuHint

Method CircleMenuHint

SourceX/controls/modifier_hints.cpp:29–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28struct CircleMenuHint {
29 CircleMenuHint(bool is_dpad, const char *top, const char *right, const char *bottom, const char *left)
30 : is_dpad(is_dpad)
31 , top(top)
32 , top_w(CalculateTextWidth(top))
33 , right(right)
34 , right_w(CalculateTextWidth(right))
35 , bottom(bottom)
36 , bottom_w(CalculateTextWidth(bottom))
37 , left(left)
38 , left_w(CalculateTextWidth(left))
39 , x_mid(left_w + SpaceWidth() * 2.5)
40 {
41 }
42
43 int width() const
44 {

Callers

nothing calls this directly

Calls 2

CalculateTextWidthFunction · 0.85
SpaceWidthFunction · 0.85

Tested by

no test coverage detected