Version: 2.9.4
Public Member Functions
wxToolBarToolBase Class Reference

#include </home/zeitlin/src/wx/github/interface/wx/toolbar.h>

Inheritance diagram for wxToolBarToolBase:

Detailed Description

A toolbar tool represents one item on the toolbar.

It has a unique id (except for the separators), the style (telling whether it is a normal button, separator or a control), the state (toggled or not, enabled or not) and short and long help strings. The default implementations use the short help string for the tooltip text which is popped up when the mouse pointer enters the tool and the long help string for the applications status bar.

Public Member Functions

 wxToolBarToolBase (wxToolBarBase *tbar=NULL, int toolid=wxID_SEPARATOR, const wxString &label=wxEmptyString, const wxBitmap &bmpNormal=wxNullBitmap, const wxBitmap &bmpDisabled=wxNullBitmap, wxItemKind kind=wxITEM_NORMAL, wxObject *clientData=NULL, const wxString &shortHelpString=wxEmptyString, const wxString &longHelpString=wxEmptyString)
 wxToolBarToolBase (wxToolBarBase *tbar, wxControl *control, const wxString &label)
virtual ~wxToolBarToolBase ()
int GetId () const
wxControlGetControl () const
wxToolBarBase * GetToolBar () const
bool IsStretchable () const
bool IsButton () const
bool IsControl () const
bool IsSeparator () const
bool IsStretchableSpace () const
int GetStyle () const
wxItemKind GetKind () const
void MakeStretchable ()
bool IsEnabled () const
bool IsToggled () const
bool CanBeToggled () const
const wxBitmapGetNormalBitmap () const
const wxBitmapGetDisabledBitmap () const
const wxBitmapGetBitmap () const
const wxStringGetLabel () const
const wxStringGetShortHelp () const
const wxStringGetLongHelp () const
wxObjectGetClientData () const
virtual bool Enable (bool enable)
virtual bool Toggle (bool toggle)
virtual bool SetToggle (bool toggle)
virtual bool SetShortHelp (const wxString &help)
virtual bool SetLongHelp (const wxString &help)
void Toggle ()
virtual void SetNormalBitmap (const wxBitmap &bmp)
virtual void SetDisabledBitmap (const wxBitmap &bmp)
virtual void SetLabel (const wxString &label)
void SetClientData (wxObject *clientData)
virtual void Detach ()
virtual void Attach (wxToolBarBase *tbar)
virtual void SetDropdownMenu (wxMenu *menu)
wxMenuGetDropdownMenu () const

List of all members.


Constructor & Destructor Documentation

wxToolBarToolBase::wxToolBarToolBase ( wxToolBarBase *  tbar = NULL,
int  toolid = wxID_SEPARATOR,
const wxString label = wxEmptyString,
const wxBitmap bmpNormal = wxNullBitmap,
const wxBitmap bmpDisabled = wxNullBitmap,
wxItemKind  kind = wxITEM_NORMAL,
wxObject clientData = NULL,
const wxString shortHelpString = wxEmptyString,
const wxString longHelpString = wxEmptyString 
)
wxToolBarToolBase::wxToolBarToolBase ( wxToolBarBase *  tbar,
wxControl control,
const wxString label 
)
virtual wxToolBarToolBase::~wxToolBarToolBase ( ) [virtual]

Member Function Documentation

virtual void wxToolBarToolBase::Attach ( wxToolBarBase *  tbar) [virtual]
bool wxToolBarToolBase::CanBeToggled ( ) const
virtual void wxToolBarToolBase::Detach ( ) [virtual]
virtual bool wxToolBarToolBase::Enable ( bool  enable) [virtual]
const wxBitmap& wxToolBarToolBase::GetBitmap ( ) const
wxObject* wxToolBarToolBase::GetClientData ( ) const
wxControl* wxToolBarToolBase::GetControl ( ) const
const wxBitmap& wxToolBarToolBase::GetDisabledBitmap ( ) const
wxMenu* wxToolBarToolBase::GetDropdownMenu ( ) const
int wxToolBarToolBase::GetId ( ) const
wxItemKind wxToolBarToolBase::GetKind ( ) const
const wxString& wxToolBarToolBase::GetLabel ( ) const
const wxString& wxToolBarToolBase::GetLongHelp ( ) const
const wxBitmap& wxToolBarToolBase::GetNormalBitmap ( ) const
const wxString& wxToolBarToolBase::GetShortHelp ( ) const
int wxToolBarToolBase::GetStyle ( ) const
wxToolBarBase* wxToolBarToolBase::GetToolBar ( ) const
bool wxToolBarToolBase::IsButton ( ) const
bool wxToolBarToolBase::IsControl ( ) const
bool wxToolBarToolBase::IsEnabled ( ) const
bool wxToolBarToolBase::IsSeparator ( ) const
bool wxToolBarToolBase::IsStretchable ( ) const
bool wxToolBarToolBase::IsStretchableSpace ( ) const
bool wxToolBarToolBase::IsToggled ( ) const
void wxToolBarToolBase::MakeStretchable ( )
void wxToolBarToolBase::SetClientData ( wxObject clientData)
virtual void wxToolBarToolBase::SetDisabledBitmap ( const wxBitmap bmp) [virtual]
virtual void wxToolBarToolBase::SetDropdownMenu ( wxMenu menu) [virtual]
virtual void wxToolBarToolBase::SetLabel ( const wxString label) [virtual]
virtual bool wxToolBarToolBase::SetLongHelp ( const wxString help) [virtual]
virtual void wxToolBarToolBase::SetNormalBitmap ( const wxBitmap bmp) [virtual]
virtual bool wxToolBarToolBase::SetShortHelp ( const wxString help) [virtual]
virtual bool wxToolBarToolBase::SetToggle ( bool  toggle) [virtual]
virtual bool wxToolBarToolBase::Toggle ( bool  toggle) [virtual]
void wxToolBarToolBase::Toggle ( )
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines