MCPcopy Create free account
hub / github.com/cksac/oxui / zero

Method zero

src/rendering/basic_types.rs:12–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 }
11
12 pub fn zero() -> Self {
13 Self {
14 width: 0.0,
15 height: 0.0,
16 }
17 }
18
19 pub fn is_empty(&self) -> bool {
20 self.width <= 0.0 || self.height <= 0.0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected