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

Method GetItemGridIndex

Source/GraphEditorComponentImpl.cpp:116–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116int CGraphBase::GetItemGridIndex(CPoint point) const { // // //
117 int ItemWidth = GetItemWidth();
118 int idx = point.x - CGraphEditor::GRAPH_LEFT + ItemWidth / 2;
119 return idx >= 0 ? idx / ItemWidth : -1;
120}
121
122void CGraphBase::DrawRect(CDC &dc, int x, int y, int w, int h) {
123 DrawRect<GREY(240), GREY(208), WHITE, GREY(160)>(dc, x, y, w, h, false);

Callers 5

DoOnMouseHoverMethod · 0.80
DoOnLButtonDownMethod · 0.80
DoOnLButtonMoveMethod · 0.80
DoOnRButtonDownMethod · 0.80
DoOnRButtonMoveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected