| 187 | } |
| 188 | |
| 189 | UILoader* 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 | |
| 203 | const Float& UILoader::getProgress() const { |
| 204 | return mProgress; |