#include <MyGUI_StaticImage.h>
Public Types | |
typedef RTTIBase | Base |
typedef StaticImage | RTTIBase |
Public Member Functions | |
virtual const std::string & | getTypeName () const |
virtual bool | isType (const std::type_info &_type) const |
template<typename Type > | |
bool | isType () const |
StaticImage () | |
void | setImageInfo (const std::string &_texture, const IntCoord &_coord, const IntSize &_tile) |
void | setImageTexture (const std::string &_value) |
void | setImageRect (const IntRect &_value) |
void | setImageCoord (const IntCoord &_value) |
void | setImageTile (const IntSize &_value) |
void | setImageIndex (size_t _index) |
size_t | getImageIndex () |
void | setImageRot (const float angle) |
void | setImageRotCenter (const IntPoint &_center) |
size_t | getItemCount () |
Get number of items. | |
void | setItemSelect (size_t _index) |
Select specified _index. | |
size_t | getItemSelect () |
Get index of selected item (ITEM_NONE if none selected). | |
void | resetItemSelect () |
Reset item selection. | |
void | insertItem (size_t _index, const IntCoord &_item) |
Insert an item into a list at a specified position. | |
void | addItem (const IntCoord &_item) |
Add an item to the end of a list. | |
void | setItem (size_t _index, const IntCoord &_item) |
Replace an item at a specified position. | |
void | deleteItem (size_t _index) |
Delete item at a specified position. | |
void | deleteAllItems () |
Delete all items. | |
void | addItemFrame (size_t _index, const IntCoord &_item) |
void | insertItemFrame (size_t _index, size_t _indexFrame, const IntCoord &_item) |
void | addItemFrameDublicate (size_t _index, size_t _indexSourceFrame) |
void | insertItemFrameDublicate (size_t _index, size_t _indexFrame, size_t _indexSourceFrame) |
void | setItemFrame (size_t _index, size_t _indexFrame, const IntCoord &_item) |
void | deleteItemFrame (size_t _index, size_t _indexFrame) |
void | deleteAllItemFrames (size_t _index) |
void | setItemFrameRate (size_t _index, float _rate) |
float | getItemFrameRate (size_t _index) |
bool | setItemResource (const Guid &_id) |
bool | setItemResource (const std::string &_name) |
void | setItemGroup (const std::string &_value) |
void | setItemName (const std::string &_value) |
void | setItemResourcePtr (ResourceImageSetPtr _resource) |
void | setItemResourceInfo (const ImageIndexInfo &_info) |
ResourceImageSetPtr | getItemResource () |
void | setItemResourceInfo (ResourceImageSetPtr _resource, const std::string &_group, const std::string &_name) |
virtual void | setProperty (const std::string &_key, const std::string &_value) |
virtual void | _initialise (WidgetStyle _style, const IntCoord &_coord, Align _align, ResourceSkin *_info, WidgetPtr _parent, ICroppedRectangle *_croppedParent, IWidgetCreator *_creator, const std::string &_name) |
Static Public Member Functions | |
static const std::string & | getClassTypeName () |
Protected Member Functions | |
virtual | ~StaticImage () |
void | baseChangeWidgetSkin (ResourceSkin *_info) |
Definition at line 35 of file MyGUI_StaticImage.h.
typedef RTTIBase MyGUI::StaticImage::Base |
Definition at line 38 of file MyGUI_StaticImage.h.
Reimplemented from MyGUI::Widget.
Definition at line 38 of file MyGUI_StaticImage.h.
MyGUI::StaticImage::StaticImage | ( | ) |
Definition at line 37 of file MyGUI_StaticImage.cpp.
MyGUI::StaticImage::~StaticImage | ( | ) | [protected, virtual] |
Definition at line 53 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::_initialise | ( | WidgetStyle | _style, | |
const IntCoord & | _coord, | |||
Align | _align, | |||
ResourceSkin * | _info, | |||
WidgetPtr | _parent, | |||
ICroppedRectangle * | _croppedParent, | |||
IWidgetCreator * | _creator, | |||
const std::string & | _name | |||
) | [virtual] |
Reimplemented from MyGUI::Widget.
Definition at line 46 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::addItem | ( | const IntCoord & | _item | ) | [inline] |
Add an item to the end of a list.
Definition at line 107 of file MyGUI_StaticImage.h.
void MyGUI::StaticImage::addItemFrame | ( | size_t | _index, | |
const IntCoord & | _item | |||
) |
Add frame
_index | Image item index | |
_item | Frame coordinates at image texture |
Definition at line 296 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::addItemFrameDublicate | ( | size_t | _index, | |
size_t | _indexSourceFrame | |||
) |
Add copy of frame (similar to StaticImage::addItemFrame but we copy frame coordinates)
_index | Image item index | |
_indexSourceFrame | Frame index of frame that we copying |
Definition at line 317 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::baseChangeWidgetSkin | ( | ResourceSkin * | _info | ) | [protected, virtual] |
Reimplemented from MyGUI::Widget.
Definition at line 58 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::deleteAllItemFrames | ( | size_t | _index | ) |
Delete all frames
_index | Image item index |
Definition at line 289 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::deleteAllItems | ( | ) |
Delete all items.
Definition at line 241 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::deleteItem | ( | size_t | _index | ) |
Delete item at a specified position.
Definition at line 229 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::deleteItemFrame | ( | size_t | _index, | |
size_t | _indexFrame | |||
) |
Delete frame
_index | Image item index | |
_indexFrame | Frame index that we delete |
Definition at line 361 of file MyGUI_StaticImage.cpp.
static const std::string& MyGUI::StaticImage::getClassTypeName | ( | ) | [inline, static] |
Reimplemented from MyGUI::Widget.
Definition at line 38 of file MyGUI_StaticImage.h.
size_t MyGUI::StaticImage::getImageIndex | ( | ) |
Get current tile index
Definition at line 497 of file MyGUI_StaticImage.cpp.
size_t MyGUI::StaticImage::getItemCount | ( | ) | [inline] |
Get number of items.
Definition at line 95 of file MyGUI_StaticImage.h.
float MyGUI::StaticImage::getItemFrameRate | ( | size_t | _index | ) |
Get item frame rate
_index | Image item index |
Definition at line 310 of file MyGUI_StaticImage.cpp.
ResourceImageSetPtr MyGUI::StaticImage::getItemResource | ( | ) | [inline] |
Get current items resource used in StaticImage
Definition at line 201 of file MyGUI_StaticImage.h.
size_t MyGUI::StaticImage::getItemSelect | ( | ) | [inline] |
Get index of selected item (ITEM_NONE if none selected).
Definition at line 100 of file MyGUI_StaticImage.h.
virtual const std::string& MyGUI::StaticImage::getTypeName | ( | ) | const [inline, virtual] |
Get type name as string
Reimplemented from MyGUI::Widget.
Definition at line 38 of file MyGUI_StaticImage.h.
void MyGUI::StaticImage::insertItem | ( | size_t | _index, | |
const IntCoord & | _item | |||
) |
Insert an item into a list at a specified position.
Definition at line 247 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::insertItemFrame | ( | size_t | _index, | |
size_t | _indexFrame, | |||
const IntCoord & | _item | |||
) |
Insert frame
_index | Image item index | |
_indexFrame | Frame index where we insert frame | |
_item | Frame coordinates at image texture |
Definition at line 326 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::insertItemFrameDublicate | ( | size_t | _index, | |
size_t | _indexFrame, | |||
size_t | _indexSourceFrame | |||
) |
Insert copy of frame (similar to StaticImage::insertItemFrame but we copy frame coordinates)
_index | Image item index | |
_indexFrame | Frame index where we insert frame | |
_indexSourceFrame | Frame index of frame that we copying |
Definition at line 338 of file MyGUI_StaticImage.cpp.
bool MyGUI::StaticImage::isType | ( | ) | const [inline] |
Compare with selected type
Reimplemented from MyGUI::Widget.
Definition at line 38 of file MyGUI_StaticImage.h.
virtual bool MyGUI::StaticImage::isType | ( | const std::type_info & | _type | ) | const [inline, virtual] |
Compare with selected type
Reimplemented from MyGUI::Widget.
Definition at line 38 of file MyGUI_StaticImage.h.
void MyGUI::StaticImage::resetItemSelect | ( | ) | [inline] |
Reset item selection.
Definition at line 102 of file MyGUI_StaticImage.h.
void MyGUI::StaticImage::setImageCoord | ( | const IntCoord & | _value | ) |
Set _coord - part of texture where we take tiles
Definition at line 118 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::setImageIndex | ( | size_t | _index | ) |
Set current tile index
_index | - tile index |
+---+---+---+ | 0 | 1 | 2 | +---+---+---+ | 3 | 4 | 5 | +---+---+---+
Definition at line 492 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::setImageInfo | ( | const std::string & | _texture, | |
const IntCoord & | _coord, | |||
const IntSize & | _tile | |||
) |
Definition at line 90 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::setImageRect | ( | const IntRect & | _value | ) |
Set _rect - part of texture where we take tiles
Definition at line 134 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::setImageRot | ( | const float | angle | ) |
Allows to set rotation angle if we use 'RotatingSkin' as skin
Definition at line 502 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::setImageRotCenter | ( | const IntPoint & | _center | ) |
Allows to set rotation center if we use 'RotatingSkin' as skin
Definition at line 510 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::setImageTexture | ( | const std::string & | _value | ) |
Definition at line 147 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::setImageTile | ( | const IntSize & | _value | ) |
Set _tile size
Definition at line 105 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::setItem | ( | size_t | _index, | |
const IntCoord & | _item | |||
) |
Replace an item at a specified position.
Definition at line 259 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::setItemFrame | ( | size_t | _index, | |
size_t | _indexFrame, | |||
const IntCoord & | _item | |||
) |
Change frame
_index | Image item index | |
_indexFrame | Frame index to change | |
_item | Frame coordinates at image texture |
Definition at line 351 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::setItemFrameRate | ( | size_t | _index, | |
float | _rate | |||
) |
Set item frame rate
_index | Image item index | |
_rate | Duration of one frame in seconds |
Definition at line 303 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::setItemGroup | ( | const std::string & | _value | ) |
Select current item group
Definition at line 449 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::setItemName | ( | const std::string & | _value | ) |
Select current item mane
Definition at line 456 of file MyGUI_StaticImage.cpp.
bool MyGUI::StaticImage::setItemResource | ( | const Guid & | _id | ) |
Select current items resource used in StaticImage
_id | Resource guid |
Definition at line 395 of file MyGUI_StaticImage.cpp.
bool MyGUI::StaticImage::setItemResource | ( | const std::string & | _name | ) |
Select current items resource used in StaticImage
_id | Resource name |
Definition at line 402 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::setItemResourceInfo | ( | ResourceImageSetPtr | _resource, | |
const std::string & | _group, | |||
const std::string & | _name | |||
) |
Select current item resource, group and name
Definition at line 463 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::setItemResourceInfo | ( | const ImageIndexInfo & | _info | ) |
Set current item
Definition at line 372 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::setItemResourcePtr | ( | ResourceImageSetPtr | _resource | ) |
Select current items resource used in StaticImage
_resource | Resource pointer |
Definition at line 409 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::setItemSelect | ( | size_t | _index | ) |
Select specified _index.
Definition at line 518 of file MyGUI_StaticImage.cpp.
void MyGUI::StaticImage::setProperty | ( | const std::string & | _key, | |
const std::string & | _value | |||
) | [virtual] |
Reimplemented from MyGUI::Widget.
Definition at line 523 of file MyGUI_StaticImage.cpp.