MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / HitTest

Method HitTest

gui/builtinMarketBrowser/pfSearchBox.py:112–118  ·  view source on GitHub ↗
(self, target, position, area)

Source from the content-addressed store, hash-verified

110 return self.EditBox.GetLineText(lineno)
111
112 def HitTest(self, target, position, area):
113 x, y = target
114 px, py = position
115 aX, aY = area
116 if (x < px < x + aX) and (y < py < y + aY):
117 return True
118 return False
119
120 def GetButtonsPos(self):
121 btnpos = [

Callers 2

OnLeftDownMethod · 0.95
OnLeftUpMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected