MyGUI_SubSkin.h
Go to the documentation of this file.
/*
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#ifndef MYGUI_SUB_SKIN_H_
#define MYGUI_SUB_SKIN_H_
#include "MyGUI_Prerequest.h"
#include "MyGUI_Types.h"
#include "MyGUI_XmlDocument.h"
#include "MyGUI_ISubWidgetRect.h"
#include "MyGUI_ResourceSkin.h"
#include "MyGUI_RenderFormat.h"
#include "MyGUI_IStateInfo.h"
namespace MyGUI
{
class RenderItem;
class MYGUI_EXPORT SubSkin : public ISubWidgetRect
{
MYGUI_RTTI_DERIVED(SubSkin)
public:
SubSkin();
void setAlpha(float _alpha) override;
void setVisible(bool _visible) override;
void setStateData(IStateInfo* _data) override;
void createDrawItem(ITexture* _texture, ILayerNode* _node) override;
void destroyDrawItem() override;
// метод для отрисовки себя
void doRender() override;
/*internal:*/
void _updateView() override;
void _correctView() override;
void _setAlign(const IntSize& _oldsize) override;
void _setUVSet(const FloatRect& _rect) override;
void _setColour(const Colour& _value) override;
protected:
FloatRect mRectTexture;
bool mEmptyView{false};
VertexColourType mVertexFormat;
uint32 mCurrentColour{0xFFFFFFFF};
FloatRect mCurrentTexture;
IntCoord mCurrentCoord;
ILayerNode* mNode{nullptr};
RenderItem* mRenderItem{nullptr};
bool mSeparate{false};
};
} // namespace MyGUI
#endif // MYGUI_SUB_SKIN_H_
MyGUI_IStateInfo.h
MyGUI_ISubWidgetRect.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition MyGUI_RTTI.h:69
MyGUI_RenderFormat.h
MyGUI_ResourceSkin.h
MyGUI_Types.h
MyGUI_XmlDocument.h
MyGUI::ILayerNode
Definition MyGUI_ILayerNode.h:29
MyGUI::IStateInfo
Definition MyGUI_IStateInfo.h:17
MyGUI::ISubWidgetRect
Definition MyGUI_ISubWidgetRect.h:18
MyGUI::ITexture
Definition MyGUI_ITexture.h:28
MyGUI::RenderItem
Definition MyGUI_RenderItem.h:23
MyGUI::SubSkin::destroyDrawItem
void destroyDrawItem() override
Definition MyGUI_SubSkin.cpp:165
MyGUI::SubSkin::mSeparate
bool mSeparate
Definition MyGUI_SubSkin.h:64
MyGUI::SubSkin::setVisible
void setVisible(bool _visible) override
Definition MyGUI_SubSkin.cpp:25
MyGUI::SubSkin::mCurrentTexture
FloatRect mCurrentTexture
Definition MyGUI_SubSkin.h:58
MyGUI::SubSkin::mEmptyView
bool mEmptyView
Definition MyGUI_SubSkin.h:53
MyGUI::SubSkin::mCurrentCoord
IntCoord mCurrentCoord
Definition MyGUI_SubSkin.h:59
MyGUI::SubSkin::mNode
ILayerNode * mNode
Definition MyGUI_SubSkin.h:61
MyGUI::SubSkin::setStateData
void setStateData(IStateInfo *_data) override
Definition MyGUI_SubSkin.cpp:256
MyGUI::SubSkin::_updateView
void _updateView() override
Definition MyGUI_SubSkin.cpp:91
MyGUI::SubSkin::mVertexFormat
VertexColourType mVertexFormat
Definition MyGUI_SubSkin.h:55
MyGUI::SubSkin::doRender
void doRender() override
Definition MyGUI_SubSkin.cpp:208
MyGUI::SubSkin::_setUVSet
void _setUVSet(const FloatRect &_rect) override
Definition MyGUI_SubSkin.cpp:174
MyGUI::SubSkin::SubSkin
SubSkin()
Definition MyGUI_SubSkin.cpp:20
MyGUI::SubSkin::_setColour
void _setColour(const Colour &_value) override
Definition MyGUI_SubSkin.cpp:247
MyGUI::SubSkin::_correctView
void _correctView() override
Definition MyGUI_SubSkin.cpp:44
MyGUI::SubSkin::mRenderItem
RenderItem * mRenderItem
Definition MyGUI_SubSkin.h:62
MyGUI::SubSkin::mRectTexture
FloatRect mRectTexture
Definition MyGUI_SubSkin.h:52
MyGUI::SubSkin::setAlpha
void setAlpha(float _alpha) override
Definition MyGUI_SubSkin.cpp:35
MyGUI::SubSkin::mCurrentColour
uint32 mCurrentColour
Definition MyGUI_SubSkin.h:56
MyGUI::SubSkin::createDrawItem
void createDrawItem(ITexture *_texture, ILayerNode *_node) override
Definition MyGUI_SubSkin.cpp:156
MyGUI::SubSkin::_setAlign
void _setAlign(const IntSize &_oldsize) override
Definition MyGUI_SubSkin.cpp:50
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::uint32
uint32_t uint32
Definition MyGUI_Types.h:48
MyGUI::FloatRect
types::TRect< float > FloatRect
Definition MyGUI_Types.h:34
MyGUI::IntCoord
types::TCoord< int > IntCoord
Definition MyGUI_Types.h:36
MyGUI::IntSize
types::TSize< int > IntSize
Definition MyGUI_Types.h:30
MyGUI::Colour
Definition MyGUI_Colour.h:17
MyGUI::VertexColourType
Definition MyGUI_RenderFormat.h:16