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

@@ -5,44 +5,38 @@ using namespace Gwen;
class Checkbox : public GUnit
{
public:
GWEN_CONTROL_INLINE( Checkbox, GUnit )
public:
GWEN_CONTROL_INLINE(Checkbox, GUnit)
{
Gwen::Controls::CheckBox* check = new Gwen::Controls::CheckBox( this );
check->SetPos( 10, 10 );
check->onChecked.Add( this, &Checkbox::OnChecked );
check->onUnChecked.Add( this, &Checkbox::OnUnchecked );
check->onCheckChanged.Add( this, &Checkbox::OnCheckChanged );
Gwen::Controls::CheckBoxWithLabel* labeled = new Gwen::Controls::CheckBoxWithLabel( this );
labeled->SetPos( 10, 10 );
labeled->Label()->SetText( "Labeled CheckBox" );
labeled->Checkbox()->onChecked.Add( this, &Checkbox::OnChecked );
labeled->Checkbox()->onUnChecked.Add( this, &Checkbox::OnUnchecked );
labeled->Checkbox()->onCheckChanged.Add( this, &Checkbox::OnCheckChanged );
Gwen::Align::PlaceBelow( labeled, check, 10 );
Gwen::Controls::CheckBox* check = new Gwen::Controls::CheckBox(this);
check->SetPos(10, 10);
check->onChecked.Add(this, &Checkbox::OnChecked);
check->onUnChecked.Add(this, &Checkbox::OnUnchecked);
check->onCheckChanged.Add(this, &Checkbox::OnCheckChanged);
Gwen::Controls::CheckBoxWithLabel* labeled = new Gwen::Controls::CheckBoxWithLabel(this);
labeled->SetPos(10, 10);
labeled->Label()->SetText("Labeled CheckBox");
labeled->Checkbox()->onChecked.Add(this, &Checkbox::OnChecked);
labeled->Checkbox()->onUnChecked.Add(this, &Checkbox::OnUnchecked);
labeled->Checkbox()->onCheckChanged.Add(this, &Checkbox::OnCheckChanged);
Gwen::Align::PlaceBelow(labeled, check, 10);
}
void OnChecked( Controls::Base* pControl )
void OnChecked(Controls::Base* pControl)
{
UnitPrint( L"Checkbox Checked (using 'OnChecked' event)" );
UnitPrint(L"Checkbox Checked (using 'OnChecked' event)");
}
void OnUnchecked( Controls::Base* pControl )
void OnUnchecked(Controls::Base* pControl)
{
UnitPrint( L"Checkbox Unchecked (using 'OnUnchecked' event)" );
UnitPrint(L"Checkbox Unchecked (using 'OnUnchecked' event)");
}
void OnCheckChanged( Controls::Base* pControl )
void OnCheckChanged(Controls::Base* pControl)
{
UnitPrint( L"Checkbox CheckChanged (using 'OnCheckChanged' event)" );
UnitPrint(L"Checkbox CheckChanged (using 'OnCheckChanged' event)");
}
};
DEFINE_UNIT_TEST( Checkbox, L"Checkbox" );
DEFINE_UNIT_TEST(Checkbox, L"Checkbox");