First implementation

This commit is contained in:
Stefan Csomor
2020-09-17 22:35:22 +02:00
parent dcdcbbe078
commit 92ea83f00b
8 changed files with 46 additions and 7 deletions

View File

@@ -32,6 +32,45 @@
#include "wx/control.h"
class WXDLLIMPEXP_FWD_CORE wxRadioButton;
wxRadioButton* wxGetNextButtonInGroup(wxRadioButton *btn);
wxRadioButton* wxGetPreviousButtonInGroup(wxRadioButton *btn);
wxRadioButton* wxGetFirstButtonInGroup(wxRadioButton *btn);
wxRadioButton* wxGetLastButtonInGroup(wxRadioButton *btn);
template <class W>
class WXDLLIMPEXP_CORE wxRadioButtonBase : public W
{
public:
typedef W BaseWindowClass;
wxRadioButtonBase() { }
wxRadioButton* GetFirstInGroup() const
{
return wxGetFirstButtonInGroup( static_cast<wxRadioButton*>(this));
}
wxRadioButton* GetLastInGroup() const
{
return wxGetLastButtonInGroup( static_cast<wxRadioButton*>(this));
}
wxRadioButton* GetPreviousInGroup() const
{
return wxGetPreviousButtonInGroup( static_cast<wxRadioButton*>(this));
}
wxRadioButton* GetNextInGroup() const
{
return wxGetNextButtonInGroup( static_cast<wxRadioButton*>(this));
}
private:
wxDECLARE_NO_COPY_TEMPLATE_CLASS(wxRadioButtonBase, W);
};
extern WXDLLIMPEXP_DATA_CORE(const char) wxRadioButtonNameStr[];
#if defined(__WXUNIVERSAL__)