MyGUI
3.2.0
|
#include <MyGUI_ImageBox.h>
Public Types | |
typedef RTTIBase | Base |
typedef ImageBox | 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 |
ImageBox () | |
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 () const |
size_t | getItemCount () const |
Get number of items. | |
void | setItemSelect (size_t _index) |
Select specified _index. | |
size_t | getItemSelect () const |
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 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 () const |
void | setItemResourceInfo (ResourceImageSetPtr _resource, const std::string &_group, const std::string &_name) |
Static Public Member Functions | |
static const std::string & | getClassTypeName () |
Protected Member Functions | |
virtual void | shutdownOverride () |
virtual void | setPropertyOverride (const std::string &_key, const std::string &_value) |
Definition at line 33 of file MyGUI_ImageBox.h.
typedef RTTIBase MyGUI::ImageBox::Base |
Reimplemented from MyGUI::Widget.
Definition at line 36 of file MyGUI_ImageBox.h.
typedef ImageBox MyGUI::ImageBox::RTTIBase |
Reimplemented from MyGUI::Widget.
Definition at line 36 of file MyGUI_ImageBox.h.
Definition at line 36 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::addItem | ( | const IntCoord & | _item | ) |
Add an item to the end of a list.
Definition at line 525 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::addItemFrame | ( | size_t | _index, |
const IntCoord & | _item | ||
) |
Add frame
_index | Image item index |
_item | Frame coordinates at image texture |
Definition at line 265 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::addItemFrameDublicate | ( | size_t | _index, |
size_t | _indexSourceFrame | ||
) |
Add copy of frame (similar to ImageBox::addItemFrame but we copy frame coordinates)
_index | Image item index |
_indexSourceFrame | Frame index of frame that we copying |
Definition at line 286 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::deleteAllItemFrames | ( | size_t | _index | ) |
Delete all frames
_index | Image item index |
Definition at line 258 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::deleteAllItems | ( | ) |
Delete all items.
Definition at line 209 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::deleteItem | ( | size_t | _index | ) |
Delete item at a specified position.
Definition at line 196 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::deleteItemFrame | ( | size_t | _index, |
size_t | _indexFrame | ||
) |
Delete frame
_index | Image item index |
_indexFrame | Frame index that we delete |
Definition at line 330 of file MyGUI_ImageBox.cpp.
static const std::string& MyGUI::ImageBox::getClassTypeName | ( | ) | [inline, static] |
Reimplemented from MyGUI::Widget.
Definition at line 36 of file MyGUI_ImageBox.h.
size_t MyGUI::ImageBox::getImageIndex | ( | ) | const |
Get current tile index
Definition at line 470 of file MyGUI_ImageBox.cpp.
size_t MyGUI::ImageBox::getItemCount | ( | ) | const |
Get number of items.
Definition at line 510 of file MyGUI_ImageBox.cpp.
float MyGUI::ImageBox::getItemFrameRate | ( | size_t | _index | ) |
Get item frame rate
_index | Image item index |
Definition at line 279 of file MyGUI_ImageBox.cpp.
Get current items resource used in ImageBox
Definition at line 530 of file MyGUI_ImageBox.cpp.
size_t MyGUI::ImageBox::getItemSelect | ( | ) | const |
Get index of selected item (ITEM_NONE if none selected)
Definition at line 515 of file MyGUI_ImageBox.cpp.
virtual const std::string& MyGUI::ImageBox::getTypeName | ( | ) | const [inline, virtual] |
Get type name as string
Reimplemented from MyGUI::Widget.
Definition at line 36 of file MyGUI_ImageBox.h.
void MyGUI::ImageBox::insertItem | ( | size_t | _index, |
const IntCoord & | _item | ||
) |
Insert an item into a list at a specified position.
Definition at line 215 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::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 295 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::insertItemFrameDublicate | ( | size_t | _index, |
size_t | _indexFrame, | ||
size_t | _indexSourceFrame | ||
) |
Insert copy of frame (similar to ImageBox::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 307 of file MyGUI_ImageBox.cpp.
bool MyGUI::ImageBox::isType | ( | ) | const [inline] |
Compare with selected type
Reimplemented from MyGUI::Widget.
Definition at line 36 of file MyGUI_ImageBox.h.
virtual bool MyGUI::ImageBox::isType | ( | const std::type_info & | _type | ) | const [inline, virtual] |
Compare with selected type
Reimplemented from MyGUI::Widget.
Definition at line 36 of file MyGUI_ImageBox.h.
void MyGUI::ImageBox::resetItemSelect | ( | ) |
Reset item selection.
Definition at line 520 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::setImageCoord | ( | const IntCoord & | _value | ) |
Set _coord - part of texture where we take tiles
Definition at line 80 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::setImageIndex | ( | size_t | _index | ) |
Set current tile index
_index | - tile index |
+---+---+---+ | 0 | 1 | 2 | +---+---+---+ | 3 | 4 | 5 | +---+---+---+
Definition at line 465 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::setImageInfo | ( | const std::string & | _texture, |
const IntCoord & | _coord, | ||
const IntSize & | _tile | ||
) |
Definition at line 52 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::setImageRect | ( | const IntRect & | _value | ) |
Set _rect - part of texture where we take tiles
Definition at line 96 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::setImageTexture | ( | const std::string & | _value | ) |
Definition at line 109 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::setImageTile | ( | const IntSize & | _value | ) |
Set _tile size
Definition at line 67 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::setItem | ( | size_t | _index, |
const IntCoord & | _item | ||
) |
Replace an item at a specified position.
Definition at line 227 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::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 320 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::setItemFrameRate | ( | size_t | _index, |
float | _rate | ||
) |
Set item frame rate
_index | Image item index |
_rate | Duration of one frame in seconds |
Definition at line 272 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::setItemGroup | ( | const std::string & | _value | ) |
Select current item group
Definition at line 416 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::setItemName | ( | const std::string & | _value | ) |
Select current item mane
Definition at line 426 of file MyGUI_ImageBox.cpp.
bool MyGUI::ImageBox::setItemResource | ( | const std::string & | _name | ) |
Select current items resource used in ImageBox
_name | Resource name |
Definition at line 366 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::setItemResourceInfo | ( | const ImageIndexInfo & | _info | ) |
Set current item
Definition at line 341 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::setItemResourceInfo | ( | ResourceImageSetPtr | _resource, |
const std::string & | _group, | ||
const std::string & | _name | ||
) |
Select current item resource, group and name
Definition at line 436 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::setItemResourcePtr | ( | ResourceImageSetPtr | _resource | ) |
Select current items resource used in ImageBox
_resource | Resource pointer |
Definition at line 373 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::setItemSelect | ( | size_t | _index | ) |
Select specified _index.
Definition at line 475 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::setPropertyOverride | ( | const std::string & | _key, |
const std::string & | _value | ||
) | [protected, virtual] |
Reimplemented from MyGUI::Widget.
Definition at line 486 of file MyGUI_ImageBox.cpp.
void MyGUI::ImageBox::shutdownOverride | ( | ) | [protected, virtual] |
Reimplemented from MyGUI::Widget.
Definition at line 45 of file MyGUI_ImageBox.cpp.