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

Method DrawRange

Source/GraphEditorComponentImpl.cpp:200–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void CGraphBase::DrawRange(CDC &dc, int Max, int Min) {
201 CFont *pOldFont = dc.SelectObject(&font_); // // //
202 const int Top = GetItemTop(); // // //
203 const int Bottom = GetItemBottom();
204
205 dc.FillSolidRect(region_.left - DPI::SX(CGraphEditor::GRAPH_LEFT), Top, region_.left, Bottom, BLACK);
206
207 dc.SetBkMode(TRANSPARENT);
208 dc.SetTextColor(WHITE);
209 dc.SetTextAlign(TA_RIGHT);
210
211 dc.TextOutW(region_.left - 4, Top - 3, FormattedW(L"%02i", Max));
212 dc.TextOutW(region_.left - 4, Bottom - 10, FormattedW(L"%02i", Min));
213
214 dc.SelectObject(pOldFont);
215}
216
217void CGraphBase::DoOnMouseHover(CPoint point) {
218 const int ItemIndex = GetItemIndex(point);

Callers

nothing calls this directly

Calls 9

FormattedWFunction · 0.85
to_wideFunction · 0.85
GetNoteStringFunction · 0.85
pitch_from_midiFunction · 0.85
oct_from_midiFunction · 0.85
GetSettingMethod · 0.80
GetGraphScrollOffsetMethod · 0.80
GetSequenceMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected