MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / UpdateWidth

Method UpdateWidth

src/grid_column.cpp:78–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void 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
89void GridColumn::Paint(wxDC &dc, int x, int y, const AssDialogue *d, const agi::Context *c) const {
90 wxString str = Value(d, c);

Callers 1

SetColumnWidthsMethod · 0.80

Calls 1

WidthFunction · 0.85

Tested by

no test coverage detected