MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / pointInControl

Method pointInControl

engine/source/gui/guiControl.cc:1029–1034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1027}
1028
1029bool GuiControl::pointInControl(const Point2I& parentCoordPoint)
1030{
1031 S32 xt = parentCoordPoint.x - mBounds.point.x;
1032 S32 yt = parentCoordPoint.y - mBounds.point.y;
1033 return xt >= 0 && yt >= 0 && xt < mBounds.extent.x && yt < mBounds.extent.y;
1034}
1035
1036
1037GuiControl* GuiControl::findHitControl(const Point2I &pt, S32 initialLayer)

Callers 2

findHitControlMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected