UI module

push_clip

procedure · 1 overloadsince 0.31.0Source

Restrict drawing to rect (intersected with the clip already in force) until pop_clip.

push_clip :: (ui: *UI_State, rect: Rect)

Restrict drawing to rect (intersected with the clip already in force) until pop_clip.

Parameters

ui: *UI_State
the UI whose display list gets the clip.
rect: Rect
the area to keep, in points.

See also