MCPcopy Create free account
hub / github.com/axmolengine/axmol / ignoreContentAdaptWithSize

Method ignoreContentAdaptWithSize

core/ui/UIButton.cpp:242–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void Button::ignoreContentAdaptWithSize(bool ignore)
243{
244 if (_unifySize)
245 {
246 this->updateContentSize();
247 return;
248 }
249
250 if (!_scale9Enabled || (_scale9Enabled && !ignore))
251 {
252 Widget::ignoreContentAdaptWithSize(ignore);
253 _prevIgnoreSize = ignore;
254 }
255}
256
257void Button::loadTextures(std::string_view normal,
258 std::string_view selected,

Callers 15

initAfterInsertMethod · 0.45
initMethod · 0.45
initMethod · 0.45
initMethod · 0.45
touchEventMethod · 0.45
initMethod · 0.45
initMethod · 0.45
initMethod · 0.45
initMethod · 0.45
initMethod · 0.45
initMethod · 0.45

Calls 1

updateContentSizeMethod · 0.95

Tested by 12

initMethod · 0.36
initMethod · 0.36
initMethod · 0.36
touchEventMethod · 0.36
initMethod · 0.36
initMethod · 0.36
initMethod · 0.36
initMethod · 0.36
initMethod · 0.36
initMethod · 0.36
LabelRichTextMethod · 0.36
createDownloadViewMethod · 0.36