MCPcopy Create free account
hub / github.com/DFHack/dfhack / fixWidth

Method fixWidth

plugins/listcolumn.h:89–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 }
88
89 int fixWidth()
90 {
91 if (text_clip_at > 0 && max_item_width > text_clip_at)
92 max_item_width = text_clip_at;
93
94 for (auto it = list.begin(); it != list.end(); it++)
95 {
96 it->text = pad_string(it->text, max_item_width, false);
97 }
98
99 return getMaxItemWidth();
100 }
101
102 int getMaxItemWidth()
103 {

Callers 6

populateDwarfColumnMethod · 0.80
populateFortColumnMethod · 0.80
populateDwarfColumnMethod · 0.80

Calls 3

pad_stringFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected