mirror of https://github.com/axmolengine/axmol.git
Modify layout enum
This commit is contained in:
parent
be7c7a5f0b
commit
f4471ae93c
|
@ -47,7 +47,7 @@ _gEndColor(Color3B::WHITE),
|
|||
_alongVector(Point(0.0f, -1.0f)),
|
||||
_cOpacity(255),
|
||||
_backGroundImageTextureSize(Size::ZERO),
|
||||
_layoutType(LAYOUT_DEFAULT)
|
||||
_layoutType(LAYOUT_ABSOLUTE)
|
||||
{
|
||||
_widgetType = WidgetTypeContainer;
|
||||
}
|
||||
|
@ -420,7 +420,7 @@ void Layout::doLayout()
|
|||
{
|
||||
switch (_layoutType)
|
||||
{
|
||||
case LAYOUT_DEFAULT:
|
||||
case LAYOUT_ABSOLUTE:
|
||||
break;
|
||||
case LAYOUT_LINEAR_VERTICAL:
|
||||
{
|
||||
|
|
|
@ -38,7 +38,7 @@ typedef enum
|
|||
|
||||
typedef enum
|
||||
{
|
||||
LAYOUT_DEFAULT,
|
||||
LAYOUT_ABSOLUTE,
|
||||
LAYOUT_LINEAR_VERTICAL,
|
||||
LAYOUT_LINEAR_HORIZONTAL,
|
||||
LAYOUT_RELATIVE
|
||||
|
@ -175,7 +175,7 @@ public:
|
|||
*
|
||||
* @param LayoutType
|
||||
*/
|
||||
void setLayoutType(LayoutType type);
|
||||
virtual void setLayoutType(LayoutType type);
|
||||
|
||||
/**
|
||||
* Gets LayoutType.
|
||||
|
@ -184,7 +184,7 @@ public:
|
|||
*
|
||||
* @return LayoutType
|
||||
*/
|
||||
LayoutType getLayoutType() const;
|
||||
virtual LayoutType getLayoutType() const;
|
||||
|
||||
virtual void doLayout();
|
||||
|
||||
|
|
|
@ -198,7 +198,7 @@ public:
|
|||
*
|
||||
* @param LayoutType
|
||||
*/
|
||||
void setLayoutType(LayoutType type);
|
||||
virtual void setLayoutType(LayoutType type);
|
||||
|
||||
/**
|
||||
* Gets LayoutType.
|
||||
|
@ -207,7 +207,7 @@ public:
|
|||
*
|
||||
* @return LayoutType
|
||||
*/
|
||||
LayoutType getLayoutType() const;
|
||||
virtual LayoutType getLayoutType() const;
|
||||
|
||||
virtual void doLayout();
|
||||
|
||||
|
|
|
@ -172,7 +172,7 @@ public:
|
|||
*
|
||||
* @param LayoutType
|
||||
*/
|
||||
void setLayoutType(LayoutType type);
|
||||
virtual void setLayoutType(LayoutType type);
|
||||
|
||||
/**
|
||||
* Gets LayoutType.
|
||||
|
@ -181,7 +181,7 @@ public:
|
|||
*
|
||||
* @return LayoutType
|
||||
*/
|
||||
LayoutType getLayoutType() const;
|
||||
virtual LayoutType getLayoutType() const;
|
||||
|
||||
virtual void doLayout();
|
||||
|
||||
|
|
Loading…
Reference in New Issue