MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / isHit

Method isHit

deps/Controls/TabBar/TabBar.cpp:888–897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886 }
887}
888bool CloseButtonZone::isHit(int x, int y, const RECT & testZone) const
889{
890 if (((x + _width + _fromRight) < testZone.right) || (x > (testZone.right - _fromRight)))
891 return false;
892
893 if (((y - _hight - _fromTop) > testZone.top) || (y < (testZone.top + _fromTop)))
894 return false;
895
896 return true;
897}
898
899RECT CloseButtonZone::getButtonRectFrom(const RECT & tabItemRect) const
900{

Callers 1

runProcMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected