MyGUI
3.2.0
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
MyGUIEngine
include
MyGUI_SkinItem.h
Go to the documentation of this file.
1
6
/*
7
This file is part of MyGUI.
8
9
MyGUI is free software: you can redistribute it and/or modify
10
it under the terms of the GNU Lesser General Public License as published by
11
the Free Software Foundation, either version 3 of the License, or
12
(at your option) any later version.
13
14
MyGUI is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU Lesser General Public License for more details.
18
19
You should have received a copy of the GNU Lesser General Public License
20
along with MyGUI. If not, see <http://www.gnu.org/licenses/>.
21
*/
22
#ifndef __MYGUI_SKIN_ITEM_H__
23
#define __MYGUI_SKIN_ITEM_H__
24
25
#include "
MyGUI_Prerequest.h
"
26
#include "
MyGUI_LayerItem.h
"
27
#include "
MyGUI_ISubWidgetRect.h
"
28
#include "
MyGUI_ISubWidgetText.h
"
29
#include "
MyGUI_ResourceSkin.h
"
30
31
namespace
MyGUI
32
{
33
34
class
MYGUI_EXPORT
SkinItem
:
35
public
LayerItem
36
{
37
public
:
38
SkinItem
();
39
41
ISubWidgetText
* getSubWidgetText();
43
ISubWidgetRect
* getSubWidgetMain();
44
45
void
_setTextureName(
const
std::string& _texture);
46
const
std::string& _getTextureName()
const
;
47
48
protected
:
49
void
_createSkinItem(
ResourceSkin
* _info);
50
void
_deleteSkinItem();
51
52
void
_setSkinItemAlign(
const
IntSize
& _size);
53
void
_setSkinItemVisible(
bool
_value);
54
void
_setSkinItemColour(
const
Colour
& _value);
55
void
_setSkinItemAlpha(
float
_value);
56
void
_correctSkinItemView();
57
void
_updateSkinItemView();
58
59
bool
_setSkinItemState(
const
std::string& _state);
60
void
_setSubSkinVisible(
bool
_visible);
61
62
private
:
63
// вектор всех детей сабскинов
64
VectorSubWidget
mSubSkinChild;
65
// указатель на окно текста
66
ISubWidgetText
* mText;
67
// указатель на первый не текстовой сабскин
68
ISubWidgetRect
* mMainSkin;
69
// список всех стейтов
70
MapWidgetStateInfo
mStateInfo;
71
72
std::string mTextureName;
73
ITexture
* mTexture;
74
75
bool
mSubSkinsVisible;
76
};
77
78
}
// namespace MyGUI
79
80
#endif // __MYGUI_SKIN_ITEM_H__
Generated on Tue Apr 30 2013 23:15:05 for MyGUI by
1.8.3.1