MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / ApplyMultiple

Method ApplyMultiple

Xaml/Controls/ConstrainedBox.cpp:69–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 }
68
69 void ConstrainedBox::ApplyMultiple(int32_t multiple, float &value) noexcept
70 {
71 if (multiple == 0)
72 {
73 value = 0.0f;
74 }
75 else if (multiple > 1)
76 {
77 value = std::floor(value / multiple) * multiple;
78 }
79 }
80
81 void ConstrainedBox::CalculateConstrainedSize(wf::Size &availableSize)
82 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected