Widgets: Fix new line selection not being bound to scissor box

This commit is contained in:
SirLynix
2023-08-23 17:33:59 +02:00
parent 216686e7c1
commit 8f0890f719
4 changed files with 34 additions and 15 deletions

View File

@@ -55,6 +55,7 @@ namespace Nz
inline const Color& GetBackgroundColor() const;
inline Canvas* GetCanvas();
inline const Canvas* GetCanvas() const;
inline SystemCursor GetCursor() const;
inline float GetHeight() const;
@@ -123,6 +124,7 @@ namespace Nz
void InvalidateNode(Invalidation invalidation) override;
Recti GetScissorBox() const;
Rectf GetScissorRect() const;
virtual bool IsFocusable() const;

View File

@@ -113,6 +113,11 @@ namespace Nz
return m_canvas;
}
inline const Canvas* BaseWidget::GetCanvas() const
{
return m_canvas;
}
inline SystemCursor BaseWidget::GetCursor() const
{
return m_cursor;
@@ -359,4 +364,5 @@ namespace Nz
}
#include <Nazara/Widgets/DebugOff.hpp>
#include "BaseWidget.hpp"