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

Method setProgress

src/eepp/ui/uiloader.cpp:189–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189UILoader* UILoader::setProgress( const Float& progress ) {
190 if ( progress != mProgress ) {
191 mProgress = eemax( 0.f, eemin( progress, mMaxProgress ) );
192
193 if ( !mIndeterminate ) {
194 mArcAngle = progress / mMaxProgress * 360.f;
195 mArc.setArcAngle( mArcAngle );
196 }
197
198 invalidateDraw();
199 }
200 return this;
201}
202
203const Float& UILoader::getProgress() const {
204 return mProgress;

Callers 5

startDownloadMethod · 0.45
scheduledUpdateMethod · 0.45
createNewUIMethod · 0.45
onValueChangeMethod · 0.45
mainFunction · 0.45

Calls 3

eemaxFunction · 0.85
eeminFunction · 0.85
setArcAngleMethod · 0.80

Tested by 2

createNewUIMethod · 0.36
onValueChangeMethod · 0.36