MCPcopy Create free account
hub / github.com/SpartanJ/eepp / hasRadius

Method hasRadius

src/eepp/ui/uibackgrounddrawable.cpp:75–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75bool UIBackgroundDrawable::hasRadius() const {
76 if ( mNeedsRadiusUpdate ) {
77 const_cast<UIBackgroundDrawable*>( this )->updateRadiuses();
78 }
79
80 return mRadiuses.topLeft != Sizef::Zero || mRadiuses.topRight != Sizef::Zero ||
81 mRadiuses.bottomLeft != Sizef::Zero || mRadiuses.bottomRight != Sizef::Zero;
82}
83
84void UIBackgroundDrawable::setRadiuses( const BorderRadiuses& radiuses ) {
85 mRadiuses = radiuses;

Callers 1

drawMethod · 0.80

Calls 1

updateRadiusesMethod · 0.80

Tested by

no test coverage detected