Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/axmolengine/axmol
/ getCapInsets
Method
getCapInsets
core/ui/UIScale9Sprite.cpp:578–582 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
576
}
577
578
ax::Rect Scale9Sprite::getCapInsets() const
579
{
580
return Rect(_insetLeft, _insetTop, _originalContentSize.width - _insetLeft - _insetRight,
581
_originalContentSize.height - _insetTop - _insetBottom);
582
}
Callers
6
initWithFile
Method · 0.95
initWithSpriteFrameName
Method · 0.95
init
Method · 0.80
lua_ax_ui_ImageView_getCapInsets
Function · 0.80
lua_ax_ui_LoadingBar_getCapInsets
Function · 0.80
lua_ax_ui_Scale9Sprite_getCapInsets
Function · 0.80
Calls
1
Rect
Function · 0.50
Tested by
1
init
Method · 0.64