MCPcopy Create free account
hub / github.com/TankOs/SFGUI / Create

Method Create

src/SFGUI/SpinButton.cpp:26–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26SpinButton::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
36SpinButton::Ptr SpinButton::Create( Adjustment::Ptr adjustment ) {
37 if( !adjustment ) {

Callers

nothing calls this directly

Calls 2

ConfigureMethod · 0.45
SetAdjustmentMethod · 0.45

Tested by

no test coverage detected