> For the complete documentation index, see [llms.txt](https://refresh-cx.gitbook.io/refresh.cx-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://refresh-cx.gitbook.io/refresh.cx-docs/drawing/push-clip-rect.md).

# Push Clip Rect

Pushes a clip rectangle. Pass true as the last argument to intersect with the current one.

## **Syntax**

```lua
refresh.Drawing.PushClipRect(x, y, w, h [, intersect_with_current_clip_rect])
```

## Usage Example

```lua
refresh.Drawing.PushClipRect(100.0, 100.0, 50.0, 30.0, false)
refresh.Drawing.DrawRect(100.0, 100.0, 100.0, 100.0, 255, 0, 0, 255)
refresh.Drawing.PopClipRect()
```
