vex_sdk::display

Function vexDisplayClipRegionSet

Source
pub unsafe fn vexDisplayClipRegionSet(x1: i32, y1: i32, x2: i32, y2: i32)
Expand description

Sets a rectangular region of the display’s framebuffer that the current task is allowed to modify.

When set, any draws to the display made by the calling task outside of its defined clip region will not be drawn.

§Safety

Calls to jumptable functions are unsafe because jumptable functions are owned by VEXos and we cannot guarantee their safety.