MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / measure

Method measure

src/columns/ColUUID.cpp:45–52  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////// Set the minimum and maximum widths for the value.

Source from the content-addressed store, hash-verified

43////////////////////////////////////////////////////////////////////////////////
44// Set the minimum and maximum widths for the value.
45void ColumnUUID::measure(Task&, unsigned int& minimum, unsigned int& maximum) {
46 // Mandatory attribute, no need to check the value.
47
48 if (_style == "default" || _style == "long")
49 minimum = maximum = 36;
50 else if (_style == "short")
51 minimum = maximum = 8;
52}
53
54////////////////////////////////////////////////////////////////////////////////
55void ColumnUUID::render(std::vector<std::string>& lines, Task& task, int width, Color& color) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected