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

Method setPadding

src/eepp/ui/uiwidget.cpp:840–850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838}
839
840UIWidget* UIWidget::setPadding( const Rectf& padding ) {
841 if ( padding != mPadding ) {
842 mPadding = padding;
843 mPaddingPx = PixelDensity::dpToPx( mPadding ).ceil();
844 onAutoSize();
845 onPaddingChange();
846 notifyLayoutAttrChange();
847 }
848
849 return this;
850}
851
852UIWidget* UIWidget::setPaddingLeft( const Float& paddingLeft ) {
853 if ( paddingLeft != mPadding.Left ) {

Callers 4

onUpdateMethod · 0.45
setThemeMethod · 0.45
createBaseUIMethod · 0.45

Calls 1

ceilMethod · 0.45

Tested by 1

createBaseUIMethod · 0.36