| 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); |
| 91 | if (Centered()) |
| 92 | x += (width - 6 - dc.GetTextExtent(str).GetWidth()) / 2; |
| 93 | dc.DrawText(str, x + 4, y + 2); |
| 94 | } |
| 95 | |
| 96 | namespace { |
| 97 | #define COLUMN_HEADER(value) \ |