From 21336f80e1db5246cb4e8309bab9dbacc5d3b53f Mon Sep 17 00:00:00 2001 From: ThorsDev Date: Mon, 22 Sep 2025 17:48:13 +0200 Subject: [PATCH] scissor rect --- assets/root/ui.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/assets/root/ui.py b/assets/root/ui.py index c85882d9..d4732156 100644 --- a/assets/root/ui.py +++ b/assets/root/ui.py @@ -131,7 +131,6 @@ class Window(object): self.parentWindow=proxy(parent) wndMgr.SetParent(self.hWnd, parent.hWnd) - def GetParentProxy(self): return self.parentWindow @@ -226,6 +225,15 @@ class Window(object): if self.onMouseLeftButtonUpEvent: self.onMouseLeftButtonUpEvent() + def EnableScissorRect(self): + wndMgr.EnableScissorRect(self.hWnd) + + def DisableScissorRect(self): + wndMgr.DisableScissorRect(self.hWnd) + + def IsScissorRectEnabled(self): + return wndMgr.IsScissorRectEnabled(self.hWnd) + class ListBoxEx(Window): class Item(Window):