MCPcopy Create free account
hub / github.com/audulus/rui / width

Method width

src/views/toggle.rs:38–41  ·  view source on GitHub ↗
(mut self, width: f32)

Source from the content-addressed store, hash-verified

36
37impl ToggleConfig {
38 pub fn width(mut self, width: f32) -> Self {
39 self.width = width.max(self.height); // Ensure width is at least as large as height
40 self
41 }
42
43 pub fn height(mut self, height: f32) -> Self {
44 self.height = height;

Callers 5

knobFunction · 0.80
text_editorFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
showMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected