7#ifndef MYGUI_IMAGE_BOX_H_
8#define MYGUI_IMAGE_BOX_H_
39 void setImageInfo(
const std::string& _texture,
const IntCoord& _coord,
const IntSize& _tile);
44 void setImageTexture(
const std::string& _value);
47 void setImageRect(
const IntRect& _value);
50 void setImageCoord(
const IntCoord& _value);
53 void setImageTile(
const IntSize& _value);
67 void setImageIndex(
size_t _index);
69 size_t getImageIndex()
const;
79 size_t getItemCount()
const;
82 void setItemSelect(
size_t _index);
84 size_t getItemSelect()
const;
86 void resetItemSelect();
89 void insertItem(
size_t _index,
const IntCoord& _item);
93 void setItem(
size_t _index,
const IntCoord& _item);
96 void deleteItem(
size_t _index);
98 void deleteAllItems();
105 void addItemFrame(
size_t _index,
const IntCoord& _item);
112 void insertItemFrame(
size_t _index,
size_t _indexFrame,
const IntCoord& _item);
118 void addItemFrameDuplicate(
size_t _index,
size_t _indexSourceFrame);
125 void insertItemFrameDuplicate(
size_t _index,
size_t _indexFrame,
size_t _indexSourceFrame);
132 void setItemFrame(
size_t _index,
size_t _indexFrame,
const IntCoord& _item);
138 void deleteItemFrame(
size_t _index,
size_t _indexFrame);
143 void deleteAllItemFrames(
size_t _index);
149 void setItemFrameRate(
size_t _index,
float _rate);
154 float getItemFrameRate(
size_t _index)
const;
164 bool setItemResource(
const std::string& _name);
167 void setItemGroup(
const std::string& _value);
169 void setItemName(
const std::string& _value);
181 void setItemResourceInfo(
ResourceImageSetPtr _resource,
const std::string& _group,
const std::string& _name);
184 void shutdownOverride()
override;
186 void setPropertyOverride(
const std::string& _key,
const std::string& _value)
override;
189 void frameEntered(
float _frame);
191 void recalcIndexes();
192 void updateSelectIndex(
size_t _index);
194 void frameAdvise(
bool _advise);
212 size_t mCurrentFrame;
215 std::string mItemName;
216 std::string mItemGroup;
217 std::string mCurrentTextureName;
#define MYGUI_RTTI_DERIVED(DerivedType)
widget description should be here.
std::vector< ImageItem > VectorImages