Widgets/CheckboxWidget: Add GetState() method
This commit is contained in:
parent
3c32f21c4a
commit
36643f173b
|
|
@ -26,6 +26,7 @@ namespace Nz
|
|||
|
||||
inline void EnableTristate(bool enabled);
|
||||
|
||||
inline CheckboxState GetState() const;
|
||||
inline bool IsTristateEnabled() const;
|
||||
|
||||
inline void SetState(bool checkboxState);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue