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

Method Paint

src/grid_column.cpp:89–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

OnPaintMethod · 0.45

Calls 3

ValueFunction · 0.85
CenteredFunction · 0.85
GetWidthMethod · 0.45

Tested by

no test coverage detected