20 mSubSkinsVisible(true)
26 for (VectorSubWidget::iterator skin = mSubSkinChild.begin(); skin != mSubSkinChild.end(); ++skin)
27 (*skin)->_setAlign(_size);
32 for (VectorSubWidget::iterator skin = mSubSkinChild.begin(); skin != mSubSkinChild.end(); ++skin)
33 (*skin)->setVisible(_value);
38 for (VectorSubWidget::iterator skin = mSubSkinChild.begin(); skin != mSubSkinChild.end(); ++skin)
48 for (VectorSubWidget::iterator skin = mSubSkinChild.begin(); skin != mSubSkinChild.end(); ++skin)
49 (*skin)->setAlpha(_value);
54 for (VectorSubWidget::iterator skin = mSubSkinChild.begin(); skin != mSubSkinChild.end(); ++skin)
55 (*skin)->_correctView();
60 for (VectorSubWidget::iterator skin = mSubSkinChild.begin(); skin != mSubSkinChild.end(); ++skin)
61 (*skin)->_updateView();
66 MapWidgetStateInfo::const_iterator iter = mStateInfo.find(_state);
67 if (iter == mStateInfo.end())
71 for (VectorSubWidget::iterator skin = mSubSkinChild.begin(); skin != mSubSkinChild.end(); ++skin, ++index)
75 (*skin)->setStateData(data);
93 for (VectorSubWidgetInfo::const_iterator iter = _info->
getBasisInfo().begin(); iter != _info->
getBasisInfo().end(); ++iter)
96 if (
object ==
nullptr)
104 mSubSkinChild.push_back(sub);
108 if (mMainSkin ==
nullptr)
110 if (mText ==
nullptr)
128 for (VectorSubWidget::iterator skin = mSubSkinChild.begin(); skin != mSubSkinChild.end(); ++skin)
130 mSubSkinChild.clear();
135 mTextureName = _texture;
148 if (mSubSkinsVisible == _visible)
150 mSubSkinsVisible = _visible;
static FactoryManager & getInstance()
IObject * createObject(const std::string &_category, const std::string &_type)
virtual void setCoord(const IntCoord &_value)
void _setCroppedParent(ICroppedRectangle *_parent)
Type * castType(bool _throw=true)
void removeAllRenderItems()
void addRenderItem(ISubWidget *_item)
void setRenderItemTexture(ITexture *_texture)
virtual ITexture * getTexture(const std::string &_name)=0
static RenderManager & getInstance()
const MapWidgetStateInfo & getStateInfo() const
const VectorSubWidgetInfo & getBasisInfo() const
const std::string & getTextureName() const
ISubWidgetRect * getSubWidgetMain() const
void _correctSkinItemView()
ISubWidgetText * getSubWidgetText() const
void _setSkinItemAlpha(float _value)
void _createSkinItem(ResourceSkin *_info)
void _setSkinItemColour(const Colour &_value)
const std::string & _getTextureName() const
bool _setSkinItemState(const std::string &_state)
void _updateSkinItemView()
void _setSubSkinVisible(bool _visible)
void _setSkinItemAlign(const IntSize &_size)
void _setTextureName(const std::string &_texture)
void _setSkinItemVisible(bool _value)