MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / element_is_offscreen

Method element_is_offscreen

src/engine.rs:3639–3647  ·  view source on GitHub ↗
(&self, bbox: &BoundingBox)

Source from the content-addressed store, hash-verified

3637 }
3638
3639 fn element_is_offscreen(&self, bbox: &BoundingBox) -> bool {
3640 if self.culling_disabled {
3641 return false;
3642 }
3643 bbox.x > self.layout_dimensions.width
3644 || bbox.y > self.layout_dimensions.height
3645 || bbox.x + bbox.width < 0.0
3646 || bbox.y + bbox.height < 0.0
3647 }
3648
3649 fn add_render_command(&mut self, cmd: InternalRenderCommand<CustomElementData>) {
3650 self.render_commands.push(cmd);

Calls

no outgoing calls

Tested by

no test coverage detected