Sdk/Widgets: Add possibility to set cursor when mouse hover a widget

This commit is contained in:
Lynix
2017-01-20 20:03:00 +01:00
parent bb3f395319
commit cf286e0413
6 changed files with 48 additions and 14 deletions

View File

@@ -12,6 +12,7 @@ namespace Ndk
m_canvasIndex(InvalidCanvasIndex),
m_backgroundColor(Nz::Color(230, 230, 230, 255)),
m_canvas(nullptr),
m_cursor(Nz::SystemCursor_Default),
m_contentSize(50.f, 50.f),
m_widgetParent(nullptr),
m_visible(true)
@@ -54,6 +55,11 @@ namespace Ndk
return m_canvas;
}
inline Nz::SystemCursor BaseWidget::GetCursor() const
{
return m_cursor;
}
inline const BaseWidget::Padding& BaseWidget::GetPadding() const
{
return m_padding;