| 24 | } |
| 25 | |
| 26 | SpinButton::Ptr SpinButton::Create( float minimum, float maximum, float step ) { |
| 27 | auto adjustment = Adjustment::Create(); |
| 28 | adjustment->Configure( minimum, minimum, maximum, step, 0.f, 0.f ); |
| 29 | |
| 30 | auto ptr = Ptr( new SpinButton ); |
| 31 | ptr->SetAdjustment( adjustment ); |
| 32 | |
| 33 | return ptr; |
| 34 | } |
| 35 | |
| 36 | SpinButton::Ptr SpinButton::Create( Adjustment::Ptr adjustment ) { |
| 37 | if( !adjustment ) { |
nothing calls this directly
no test coverage detected