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:
@@ -11,44 +11,40 @@
|
||||
#include "Gwen/Controls/Base.h"
|
||||
#include "Gwen/Controls/Button.h"
|
||||
|
||||
namespace Gwen
|
||||
namespace Gwen
|
||||
{
|
||||
namespace Controls
|
||||
{
|
||||
class TabControl;
|
||||
namespace Controls
|
||||
{
|
||||
class TabControl;
|
||||
|
||||
class GWEN_EXPORT TabButton : public Button
|
||||
{
|
||||
public:
|
||||
class GWEN_EXPORT TabButton : public Button
|
||||
{
|
||||
public:
|
||||
GWEN_CONTROL(TabButton, Button);
|
||||
virtual void Render(Skin::Base* skin);
|
||||
|
||||
GWEN_CONTROL( TabButton, Button );
|
||||
virtual void Render( Skin::Base* skin );
|
||||
void SetPage(Base* page) { m_Page = page; }
|
||||
Base* GetPage() { return m_Page; }
|
||||
|
||||
void SetPage( Base* page ){ m_Page = page; }
|
||||
Base* GetPage(){ return m_Page; }
|
||||
void SetTabControl(TabControl* ctrl);
|
||||
TabControl* GetTabControl() { return m_Control; }
|
||||
|
||||
void SetTabControl( TabControl* ctrl );
|
||||
TabControl* GetTabControl(){ return m_Control; }
|
||||
bool IsActive() { return m_Page && m_Page->Visible(); }
|
||||
|
||||
bool IsActive() { return m_Page && m_Page->Visible(); }
|
||||
virtual bool DragAndDrop_ShouldStartDrag();
|
||||
virtual void DragAndDrop_StartDragging(Gwen::DragAndDrop::Package* /*pPackage*/, int /*x*/, int /*y*/) { SetHidden(true); }
|
||||
virtual void DragAndDrop_EndDragging(bool /*bSuccess*/, int /*x*/, int /*y*/) { SetHidden(false); }
|
||||
|
||||
virtual bool DragAndDrop_ShouldStartDrag();
|
||||
virtual void DragAndDrop_StartDragging( Gwen::DragAndDrop::Package* /*pPackage*/, int /*x*/, int /*y*/ ){ SetHidden( true ); }
|
||||
virtual void DragAndDrop_EndDragging( bool /*bSuccess*/, int /*x*/, int /*y*/ ){ SetHidden( false ); }
|
||||
virtual bool OnKeyLeft(bool bDown);
|
||||
virtual bool OnKeyRight(bool bDown);
|
||||
virtual bool OnKeyUp(bool bDown);
|
||||
virtual bool OnKeyDown(bool bDown);
|
||||
|
||||
virtual bool OnKeyLeft( bool bDown );
|
||||
virtual bool OnKeyRight( bool bDown );
|
||||
virtual bool OnKeyUp( bool bDown );
|
||||
virtual bool OnKeyDown( bool bDown );
|
||||
|
||||
private:
|
||||
Base* m_Page;
|
||||
TabControl* m_Control;
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
Base* m_Page;
|
||||
TabControl* m_Control;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace Controls
|
||||
} // namespace Gwen
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user