MCPcopy Create free account
hub / github.com/axmolengine/axmol / applyPadding

Function applyPadding

core/ui/UIEditBox/UIEditBoxImpl-common.cpp:48–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46{
47
48static Vec2 applyPadding(const Vec2& sizeToCorrect)
49{
50 return Vec2(sizeToCorrect.width - AX_EDIT_BOX_PADDING * 2, sizeToCorrect.height);
51}
52
53namespace ui
54{

Callers 3

setInactiveTextMethod · 0.85
setInputModeMethod · 0.85
setContentSizeMethod · 0.85

Calls 1

Vec2Function · 0.50

Tested by

no test coverage detected