MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / set_max_width

Method set_max_width

src/RichText/TextBox.cpp:919–924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

917}
918
919void TextBox::set_max_width(float newWidth) {
920 if(width != newWidth) {
921 width = std::max(newWidth, 4.0f);
922 needsRebuild = true;
923 }
924}
925
926void TextBox::set_max_height(float newMaxHeight) {
927 if(maxHeight != newMaxHeight) {

Callers 3

init_text_boxMethod · 0.80
layoutMethod · 0.80
init_textboxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected