Merge pull request #5 from ThorsDev/features/scissor-rect

Scissor Rect Client Part
This commit is contained in:
d1str4ught
2025-09-26 00:05:07 +02:00
committed by GitHub

View File

@@ -131,7 +131,6 @@ class Window(object):
self.parentWindow=proxy(parent) self.parentWindow=proxy(parent)
wndMgr.SetParent(self.hWnd, parent.hWnd) wndMgr.SetParent(self.hWnd, parent.hWnd)
def GetParentProxy(self): def GetParentProxy(self):
return self.parentWindow return self.parentWindow
@@ -226,6 +225,15 @@ class Window(object):
if self.onMouseLeftButtonUpEvent: if self.onMouseLeftButtonUpEvent:
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 ListBoxEx(Window):
class Item(Window): class Item(Window):