Widgets: Add widget theme (WIP)

This commit is contained in:
Jérôme Leclercq
2021-11-28 23:04:56 +01:00
parent 8299a5a4bd
commit f7b69e11c2
16 changed files with 447 additions and 163 deletions

View File

@@ -0,0 +1,35 @@
// Copyright (C) 2021 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Widgets module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Widgets/WidgetTheme.hpp>
#include <Nazara/Widgets/Canvas.hpp>
#include <Nazara/Widgets/Debug.hpp>
namespace Nz
{
WidgetTheme::~WidgetTheme() = default;
BaseWidgetStyle::~BaseWidgetStyle() = default;
UInt32 BaseWidgetStyle::GetRenderMask() const
{
return m_widgetOwner->GetCanvas()->GetRenderMask();
}
void ButtonWidgetStyle::OnHoverBegin()
{
}
void ButtonWidgetStyle::OnHoverEnd()
{
}
void ButtonWidgetStyle::OnPress()
{
}
void ButtonWidgetStyle::OnRelease()
{
}
}