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

Method HitTest

gui/builtinShipBrowser/sfBrowserItem.py:201–207  ·  view source on GitHub ↗
(target, position, area)

Source from the content-addressed store, hash-verified

199
200 @staticmethod
201 def HitTest(target, position, area):
202 x, y = target
203 px, py = position
204 aX, aY = area
205 if (x < px < x + aX) and (y < py < y + aY):
206 return True
207 return False
208
209 def Render(self, pdc):
210 bx = self.toolbarX

Callers 15

MouseMoveMethod · 0.95
MouseClickMethod · 0.95
OnLeftDownMethod · 0.45
OnLeftDClickMethod · 0.45
OnFromListDclickMethod · 0.45
OnToListDclickMethod · 0.45
HitTestSubItemMethod · 0.45
getRowByAbsMethod · 0.45
mouseHitMethod · 0.45
removeItemMethod · 0.45
addModuleMethod · 0.45
swapCargoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected