MCPcopy Create free account
hub / github.com/MyGUI/mygui / setImageRect

Method setImageRect

MyGUIEngine/src/MyGUI_ImageBox.cpp:68–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 }
67
68 void ImageBox::setImageRect(const IntRect& _rect)
69 {
70 mRectImage = _rect;
71
72 // если тайл еще не установлен, то ставим тот что у координат
73 if (mSizeTile.empty())
74 mSizeTile.set(_rect.width(), _rect.height());
75 //если индекса еще нет, то ставим 0
76 if (mIndexSelect == ITEM_NONE)
77 mIndexSelect = 0;
78
79 recalcIndexes();
80 updateSelectIndex(mIndexSelect);
81 }
82
83 void ImageBox::setImageTexture(std::string_view _texture)
84 {

Callers 2

SetImageRectFunction · 0.80

Calls 4

emptyMethod · 0.45
setMethod · 0.45
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected