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

Method getTextSize

MyGUIEngine/src/MyGUI_EditText.cpp:368–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366 }
367
368 IntSize EditText::getTextSize() const
369 {
370 // если нуно обновить, или изменились пропорции экрана
371 if (mTextOutDate)
372 updateRawData();
373
374 IntSize size = mTextView.getViewSize();
375 // плюс размер курсора
376 if (mIsAddCursorWidth)
377 size.width += 2;
378
379 if (mShadow)
380 {
381 if (!mIsAddCursorWidth)
382 size.width++;
383 size.height++;
384 }
385
386 return size;
387 }
388
389 const VectorLineInfo& EditText::getLineInfo() const
390 {

Callers

nothing calls this directly

Calls 1

getViewSizeMethod · 0.45

Tested by

no test coverage detected