Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/axmolengine/axmol
/ getRect
Method
getRect
tests/cpp-tests/Source/TouchesTest/Paddle.cpp:33–37 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
31
Paddle::~Paddle() {}
32
33
Rect Paddle::getRect()
34
{
35
auto s = getTexture()->getContentSize();
36
return Rect(-s.width / 2, -s.height / 2, s.width, s.height);
37
}
38
39
Paddle* Paddle::createWithTexture(Texture2D* aTexture)
40
{
Callers
9
setDisplayFrame
Method · 0.80
initWithSpriteFrame
Method · 0.80
initWithPolygon
Method · 0.80
setSpriteFrame
Method · 0.80
isFrameDisplayed
Method · 0.80
updateLabel
Method · 0.80
collideWithPaddle
Method · 0.80
axlua_get_PolygonInfo_rect
Function · 0.80
CCArmatureDisplay.cpp
File · 0.80
Calls
3
getTexture
Function · 0.50
Rect
Class · 0.50
getContentSize
Method · 0.45
Tested by
1
updateLabel
Method · 0.64