MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / DrawTagPoint

Method DrawTagPoint

Source/GraphEditorComponentImpl.cpp:699–714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

697}
698
699void CLoopReleaseBar::DrawTagPoint(CDC &dc, int index, LPCWSTR str, COLORREF col) {
700 if (index > -1) {
701 CFont *pOldFont = dc.SelectObject(&font_);
702
703 int x = graph_parent_.GetItemWidth() * index + CGraphEditor::GRAPH_LEFT + 1;
704 GradientBar(dc, x + 1, region_.top, region_.right - x, region_.Height(), DIM(col, 2. / 3.), DIM(col, 1. / 6.)); // // //
705 dc.FillSolidRect(x, region_.top, 1, region_.bottom, col);
706
707 dc.SetTextColor(WHITE);
708 dc.SetBkMode(TRANSPARENT);
709 dc.SetTextAlign(TA_LEFT);
710 dc.TextOutW(x + 4, region_.top, str);
711
712 dc.SelectObject(pOldFont);
713 }
714}
715
716void CLoopReleaseBar::DoOnPaint(CDC &dc) {
717 const COLORREF COL_BOTTOM = GREY(64);

Callers

nothing calls this directly

Calls 3

GradientBarFunction · 0.85
DIMFunction · 0.85
GetItemWidthMethod · 0.80

Tested by

no test coverage detected