| 229 | } |
| 230 | |
| 231 | ofVec2f RadioButton::GetOptionPosition(int optionIndex) |
| 232 | { |
| 233 | float x, y; |
| 234 | GetPosition(x, y, false); |
| 235 | if (mDirection == kRadioVertical) |
| 236 | return ofVec2f(x + mWidth, y + float(mHeight) / GetNumValues() * (optionIndex + .5f)); |
| 237 | else //kRadioHorizontal |
| 238 | return ofVec2f(x + float(mWidth) / GetNumValues() * (optionIndex + .5f), y + mHeight); |
| 239 | } |
| 240 | |
| 241 | void RadioButton::OnPulse(double time, float velocity, int flags) |
| 242 | { |
no test coverage detected