| 76 | } |
| 77 | |
| 78 | void GridColumn::UpdateWidth(const agi::Context *c, WidthHelper &helper) { |
| 79 | if (!visible) { |
| 80 | width = 0; |
| 81 | return; |
| 82 | } |
| 83 | |
| 84 | width = Width(c, helper); |
| 85 | if (width) // 10 is an arbitrary amount of padding |
| 86 | width = 10 + std::max(width, helper(Header())); |
| 87 | } |
| 88 | |
| 89 | void GridColumn::Paint(wxDC &dc, int x, int y, const AssDialogue *d, const agi::Context *c) const { |
| 90 | wxString str = Value(d, c); |
no test coverage detected