added wxCheckBox::IsChecked() to wxMac and documented it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -93,7 +93,15 @@ Gets the state of the checkbox.
|
||||
|
||||
\wxheading{Return value}
|
||||
|
||||
Returns TRUE if it is checked, FALSE otherwise.
|
||||
Returns {\tt TRUE} if it is checked, {\tt FALSE} otherwise.
|
||||
|
||||
\membersection{wxCheckBox::IsChecked}\label{wxcheckboxischecked}
|
||||
|
||||
\constfunc{bool}{IsChecked}{\void}
|
||||
|
||||
This is just a maybe more readable synonym for
|
||||
\helpref{GetValue}{wxcheckboxgetvalue}: just as the latter, it returns
|
||||
{\tt TRUE} if the checkbox is checked and {\tt FALSE} otherwise.
|
||||
|
||||
\membersection{wxCheckBox::SetValue}\label{wxcheckboxsetvalue}
|
||||
|
||||
@@ -104,6 +112,6 @@ wxEVT\_COMMAND\_CHECKBOX\_CLICKED event to get emitted.
|
||||
|
||||
\wxheading{Parameters}
|
||||
|
||||
\docparam{state}{If TRUE, the check is on, otherwise it is off.}
|
||||
\docparam{state}{If {\tt TRUE|, the check is on, otherwise it is off.}
|
||||
|
||||
|
||||
|
@@ -16,19 +16,12 @@
|
||||
#pragma interface "checkbox.h"
|
||||
#endif
|
||||
|
||||
#include "wx/control.h"
|
||||
|
||||
WXDLLEXPORT_DATA(extern const char*) wxCheckBoxNameStr;
|
||||
|
||||
// Checkbox item (single checkbox)
|
||||
class WXDLLEXPORT wxBitmap;
|
||||
class WXDLLEXPORT wxCheckBox: public wxControl
|
||||
class WXDLLEXPORT wxCheckBox : public wxCheckBoxBase
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxCheckBox)
|
||||
|
||||
public:
|
||||
inline wxCheckBox() { }
|
||||
inline wxCheckBox(wxWindow *parent, wxWindowID id, const wxString& label,
|
||||
wxCheckBox() { }
|
||||
wxCheckBox(wxWindow *parent, wxWindowID id, const wxString& label,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize, long style = 0,
|
||||
const wxValidator& validator = wxDefaultValidator,
|
||||
@@ -46,12 +39,13 @@ class WXDLLEXPORT wxCheckBox: public wxControl
|
||||
virtual bool GetValue() const;
|
||||
virtual void MacHandleControlClick( WXWidget control , wxInt16 controlpart );
|
||||
virtual void Command(wxCommandEvent& event);
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxCheckBox)
|
||||
};
|
||||
|
||||
class WXDLLEXPORT wxBitmap;
|
||||
class WXDLLEXPORT wxBitmapCheckBox: public wxCheckBox
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxBitmapCheckBox)
|
||||
|
||||
public:
|
||||
int checkWidth;
|
||||
int checkHeight;
|
||||
@@ -79,6 +73,8 @@ public:
|
||||
virtual void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
|
||||
virtual void SetLabel(const wxBitmap *bitmap);
|
||||
virtual void SetLabel( const wxString & WXUNUSED(name) ) {}
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxBitmapCheckBox)
|
||||
};
|
||||
#endif
|
||||
// _WX_CHECKBOX_H_
|
||||
|
Reference in New Issue
Block a user