| 240 | } |
| 241 | |
| 242 | void 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 | |
| 257 | void Button::loadTextures(std::string_view normal, |
| 258 | std::string_view selected, |