MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / SizeToContents

Method SizeToContents

examples/ThirdPartyLibs/Gwen/Controls/Label.cpp:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void Label::SizeToContents()
57{
58 m_Text->SetPos(m_rTextPadding.left + m_Padding.left, m_rTextPadding.top + m_Padding.top);
59 m_Text->RefreshSize();
60
61 SetSize(m_Text->Width() + m_Padding.left + m_Padding.right + m_rTextPadding.left + m_rTextPadding.right, m_Text->Height() + m_Padding.top + m_Padding.bottom + m_rTextPadding.top + m_rTextPadding.bottom);
62}
63
64Gwen::Point Label::GetCharacterPosition(int iChar)
65{

Callers 11

GWEN_CONTROL_INLINEMethod · 0.45
AddPageMethod · 0.45
SetToolTipMethod · 0.45
GWEN_CONTROL_CONSTRUCTORFunction · 0.45
LayoutMethod · 0.45
AddItemMethod · 0.45
CreateLabelMethod · 0.45
OnAddItemMethod · 0.45
OnAddItemMethod · 0.45
SizeToContentsFunction · 0.45
DoSizeToContentsFunction · 0.45

Calls 3

SetPosMethod · 0.80
RefreshSizeMethod · 0.80
WidthMethod · 0.80

Tested by

no test coverage detected