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

Method setInternalPixelsSize

src/eepp/ui/uinode.cpp:154–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void UINode::setInternalPixelsSize( const Sizef& size ) {
155 Sizef s( fitMinMaxSizePx( size ) );
156
157 if ( s != mSize ) {
158 mDpSize = PixelDensity::pxToDp( s ).ceil();
159 mSize = s;
160 mNodeFlags |= NODE_FLAG_POLYGON_DIRTY;
161 updateCenter();
162 onSizeChange();
163 sendCommonEvent( Event::OnSizeChange );
164 invalidateDraw();
165 }
166}
167
168Node* UINode::setSize( const Sizef& size ) {
169 Sizef s( fitMinMaxSizeDp( size ) );

Callers 2

updateLayoutMethod · 0.45
updateLayoutMethod · 0.45

Calls 1

ceilMethod · 0.45

Tested by

no test coverage detected