Widgets/CheckboxWidget: Add GetState() method

This commit is contained in:
SirLynix 2023-03-26 14:23:10 +02:00
parent 3c32f21c4a
commit 36643f173b
2 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,7 @@ namespace Nz
inline void EnableTristate(bool enabled);
inline CheckboxState GetState() const;
inline bool IsTristateEnabled() const;
inline void SetState(bool checkboxState);

View File

@ -11,6 +11,11 @@ namespace Nz
m_isTristateEnabled = enabled;
}
inline CheckboxState CheckboxWidget::GetState() const
{
return m_state;
}
inline bool CheckboxWidget::IsTristateEnabled() const
{
return m_isTristateEnabled;