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

Method _updateView

MyGUIEngine/src/MyGUI_PolygonalSkin.cpp:157–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155 }
156
157 void PolygonalSkin::_updateView()
158 {
159 bool margin = _checkMargin();
160
161 mEmptyView = ((0 >= _getViewWidth()) || (0 >= _getViewHeight()));
162
163 mGeometryOutdated = true;
164
165 mCurrentCoord.left = mCoord.left + mMargin.left;
166 mCurrentCoord.top = mCoord.top + mMargin.top;
167
168 // вьюпорт стал битым
169 if (margin)
170 {
171 // проверка на полный выход за границу
172 if (_checkOutside())
173 {
174 // запоминаем текущее состояние
175 mIsMargin = margin;
176
177 // обновить перед выходом
178 if (nullptr != mNode)
179 mNode->outOfDate(mRenderItem);
180 return;
181 }
182 }
183
184 // мы обрезаны или были обрезаны
185 if (mIsMargin || margin)
186 {
187 mCurrentCoord.width = _getViewWidth();
188 mCurrentCoord.height = _getViewHeight();
189 }
190
191 // запоминаем текущее состояние
192 mIsMargin = margin;
193
194 if (nullptr != mNode)
195 mNode->outOfDate(mRenderItem);
196 }
197
198 void PolygonalSkin::createDrawItem(ITexture* _texture, ILayerNode* _node)
199 {

Callers

nothing calls this directly

Calls 4

_getViewWidthFunction · 0.85
_getViewHeightFunction · 0.85
_checkOutsideFunction · 0.85
outOfDateMethod · 0.45

Tested by

no test coverage detected