MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / as_irectangle

Method as_irectangle

src/graphics/rectangle.rs:117–124  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

115
116impl Rectangle {
117 pub fn as_irectangle(&self) -> IRectangle {
118 IRectangle {
119 x: self.x as i32,
120 y: self.y as i32,
121 width: self.width as i32,
122 height: self.height as i32,
123 }
124 }
125}
126
127rect!(IRectangle, i32, IVec2, 0);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected