Code-style consistency improvement:

Apply clang-format-all.sh using the _clang-format file through all the cpp/.h files.
make sure not to apply it to certain serialization structures, since some parser expects the * as part of the name, instead of type.
This commit contains no other changes aside from adding and applying clang-format-all.sh
This commit is contained in:
erwincoumans
2018-09-23 14:17:31 -07:00
parent b73b05e9fb
commit ab8f16961e
1773 changed files with 1081087 additions and 474249 deletions

View File

@@ -7,60 +7,56 @@ using namespace Gwen;
class Slider : public GUnit
{
public:
GWEN_CONTROL_INLINE( Slider, GUnit )
public:
GWEN_CONTROL_INLINE(Slider, GUnit)
{
{
Gwen::Controls::HorizontalSlider* pSlider = new Gwen::Controls::HorizontalSlider( this );
pSlider->SetPos( 10, 10 );
pSlider->SetSize( 150, 20 );
pSlider->SetRange( 0, 100 );
pSlider->SetValue( 25 );
pSlider->onValueChanged.Add( this, &Slider::SliderMoved );
Gwen::Controls::HorizontalSlider* pSlider = new Gwen::Controls::HorizontalSlider(this);
pSlider->SetPos(10, 10);
pSlider->SetSize(150, 20);
pSlider->SetRange(0, 100);
pSlider->SetValue(25);
pSlider->onValueChanged.Add(this, &Slider::SliderMoved);
}
{
Gwen::Controls::HorizontalSlider* pSlider = new Gwen::Controls::HorizontalSlider( this );
pSlider->SetPos( 10, 40 );
pSlider->SetSize( 150, 20 );
pSlider->SetRange( 0, 100 );
pSlider->SetValue( 25 );
pSlider->SetNotchCount( 10 );
pSlider->SetClampToNotches( true );
pSlider->onValueChanged.Add( this, &Slider::SliderMoved );
Gwen::Controls::HorizontalSlider* pSlider = new Gwen::Controls::HorizontalSlider(this);
pSlider->SetPos(10, 40);
pSlider->SetSize(150, 20);
pSlider->SetRange(0, 100);
pSlider->SetValue(25);
pSlider->SetNotchCount(10);
pSlider->SetClampToNotches(true);
pSlider->onValueChanged.Add(this, &Slider::SliderMoved);
}
{
Gwen::Controls::VerticalSlider* pSlider = new Gwen::Controls::VerticalSlider( this );
pSlider->SetPos( 160, 10 );
pSlider->SetSize( 20, 200 );
pSlider->SetRange( 0, 100 );
pSlider->SetValue( 25 );
pSlider->onValueChanged.Add( this, &Slider::SliderMoved );
Gwen::Controls::VerticalSlider* pSlider = new Gwen::Controls::VerticalSlider(this);
pSlider->SetPos(160, 10);
pSlider->SetSize(20, 200);
pSlider->SetRange(0, 100);
pSlider->SetValue(25);
pSlider->onValueChanged.Add(this, &Slider::SliderMoved);
}
{
Gwen::Controls::VerticalSlider* pSlider = new Gwen::Controls::VerticalSlider( this );
pSlider->SetPos( 190, 10 );
pSlider->SetSize( 20, 200 );
pSlider->SetRange( 0, 100 );
pSlider->SetValue( 25 );
pSlider->SetNotchCount( 10 );
pSlider->SetClampToNotches( true );
pSlider->onValueChanged.Add( this, &Slider::SliderMoved );
Gwen::Controls::VerticalSlider* pSlider = new Gwen::Controls::VerticalSlider(this);
pSlider->SetPos(190, 10);
pSlider->SetSize(20, 200);
pSlider->SetRange(0, 100);
pSlider->SetValue(25);
pSlider->SetNotchCount(10);
pSlider->SetClampToNotches(true);
pSlider->onValueChanged.Add(this, &Slider::SliderMoved);
}
}
void SliderMoved( Base* pControl )
void SliderMoved(Base* pControl)
{
Gwen::Controls::Slider* pSlider = (Gwen::Controls::Slider*)pControl;
UnitPrint( Utility::Format( L"Slider Value: %.2f", pSlider->GetValue() ) );
UnitPrint(Utility::Format(L"Slider Value: %.2f", pSlider->GetValue()));
}
};
DEFINE_UNIT_TEST( Slider, L"Slider" );
DEFINE_UNIT_TEST(Slider, L"Slider");