# Panel:DrawFilledRect

- **Ortam:** İstemci, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/Panel:DrawFilledRect
- **Çeviri tarihi:** 2025-09-08

```lua
Panel:DrawFilledRect()
```

## Açıklama

Bu metot, çağrıldığı panel nesnesini dolduracak renkli bir dikdörtgen çizer. Renk, [surface.SetDrawColor](https://gmod.tr/wiki/surface.SetDrawColor) kullanılarak ayarlanır. Bu, [surface.DrawRect](https://gmod.tr/wiki/surface.DrawRect) için bir kısayol olarak, sadece nesnenin [PANEL:Paint](https://gmod.tr/wiki/PANEL:Paint) veya [PANEL:PaintOver](https://gmod.tr/wiki/PANEL:PaintOver) hook'ları içinde çağrılmalıdır.

> **NOT:** Bu, 2 boyutlu bir çizim bağlamı (2D rendering context) gerektiren bir render fonksiyonudur.
>
> Bu, fonksiyonun sadece [2D Çizim Hook'ları](https://gmod.tr/wiki/2D_Rendering_Hooks) (2D Rendering Hooks) içinde çalışacağı anlamına gelir.

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/Panel:DrawFilledRect
