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

Method _updateView

MyGUIEngine/src/MyGUI_EditText.cpp:97–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 }
96
97 void EditText::_updateView()
98 {
99 bool margin = _checkMargin();
100
101 mEmptyView = ((0 >= _getViewWidth()) || (0 >= _getViewHeight()));
102
103 mCurrentCoord.left = mCoord.left + mMargin.left;
104 mCurrentCoord.top = mCoord.top + mMargin.top;
105
106 // вьюпорт стал битым
107 if (margin)
108 {
109 // проверка на полный выход за границу
110 if (_checkOutside())
111 {
112 // запоминаем текущее состояние
113 mIsMargin = margin;
114
115 // обновить перед выходом
116 if (nullptr != mNode)
117 mNode->outOfDate(mRenderItem);
118 return;
119 }
120 }
121
122 // мы обрезаны или были обрезаны
123 if (mIsMargin || margin)
124 {
125 mCurrentCoord.width = _getViewWidth();
126 mCurrentCoord.height = _getViewHeight();
127 }
128
129 // запоминаем текущее состояние
130 mIsMargin = margin;
131
132 if (nullptr != mNode)
133 mNode->outOfDate(mRenderItem);
134 }
135
136 void EditText::setCaption(const UString& _value)
137 {

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