wxWidgets: wxToolBarToolBase Class Reference

| Version: 3.0.4

Public Member Functions | List of all members
wxToolBarToolBase Class Reference

`#include </usr/src/ports/wxWidgets3.0/wxWidgets3.0-3.0.4-1.x86_64/src/wxWidgets-3.0.4/interface/wx/toolbar.h>`

Inheritance diagram for wxToolBarToolBase:
[legend]

## 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
wxControl * | GetControl () 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 wxBitmap & | GetNormalBitmap () const
const wxBitmap & | GetDisabledBitmap () const
const wxBitmap & | GetBitmap () const
const wxString & | GetLabel () const
const wxString & | GetShortHelp () const
const wxString & | GetLongHelp () const
wxObject * | GetClientData () 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)
wxMenu * | GetDropdownMenu () const
Public Member Functions inherited from wxObject
| wxObject ()
| Default ctor; initializes to NULL the internal reference data. More...
| wxObject (const wxObject &other)
| Copy ctor. More...
virtual | ~wxObject ()
| Destructor. More...
virtual wxClassInfo * | GetClassInfo () const
| This virtual function is redefined for every class that requires run-time type information, when using the wxDECLARE_CLASS macro (or similar). More...
wxObjectRefData * | GetRefData () const
| Returns the wxObject::m_refData pointer, i.e. the data referenced by this object. More...
bool | IsKindOf (const wxClassInfo *info) const
| Determines whether this class is a subclass of (or the same class as) the given class. More...
bool | IsSameAs (const wxObject &obj) const
| Returns true if this object has the same data pointer as obj. More...
void | Ref (const wxObject &clone)
| Makes this object refer to the data in clone. More...
void | SetRefData (wxObjectRefData *data)
| Sets the wxObject::m_refData pointer. More...
void | UnRef ()
| Decrements the reference count in the associated data, and if it is zero, deletes the data. More...
void | UnShare ()
| This is the same of AllocExclusive() but this method is public. More...
void | operator delete (void *buf)
| The delete operator is defined for debugging versions of the library only, when the identifier `WXDEBUG` is defined. More...
void * | operator new (size_t size, const wxString &filename=NULL, int lineNum=0)
| The new operator is defined for debugging versions of the library only, when the identifier `WXDEBUG` is defined. More...

## Additional Inherited Members
Protected Member Functions inherited from wxObject
void | AllocExclusive ()
| Ensure that this object's data is not shared with any other object. More...
virtual wxObjectRefData * | CreateRefData () const
| Creates a new instance of the wxObjectRefData-derived class specific to this object and returns it. More...
virtual wxObjectRefData * | CloneRefData (const wxObjectRefData *data) const
| Creates a new instance of the wxObjectRefData-derived class specific to this object and initializes it copying data. More...
Protected Attributes inherited from wxObject
wxObjectRefData * | m_refData
| Pointer to an object which is the object's reference-counted data. More...

## Constructor & Destructor Documentation

## ◆ wxToolBarToolBase() [1/2]

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() [2/2]

wxToolBarToolBase::wxToolBarToolBase | ( | wxToolBarBase * | tbar,
|  | wxControl * | control,
|  | const wxString & | label
| ) |  |

## ◆ ~wxToolBarToolBase()

virtual wxToolBarToolBase::~wxToolBarToolBase | ( |  | ) |
| virtual

## Member Function Documentation

## ◆ Attach()

virtual void wxToolBarToolBase::Attach | ( | wxToolBarBase * | tbar | ) |
| virtual

## ◆ CanBeToggled()

bool wxToolBarToolBase::CanBeToggled | ( |  | ) | const

## ◆ Detach()

virtual void wxToolBarToolBase::Detach | ( |  | ) |
| virtual

## ◆ Enable()

virtual bool wxToolBarToolBase::Enable | ( | bool | enable | ) |
| virtual

## ◆ GetBitmap()

const wxBitmap& wxToolBarToolBase::GetBitmap | ( |  | ) | const

## ◆ GetClientData()

wxObject* wxToolBarToolBase::GetClientData | ( |  | ) | const

## ◆ GetControl()

wxControl* wxToolBarToolBase::GetControl | ( |  | ) | const

## ◆ GetDisabledBitmap()

const wxBitmap& wxToolBarToolBase::GetDisabledBitmap | ( |  | ) | const

## ◆ GetDropdownMenu()

wxMenu* wxToolBarToolBase::GetDropdownMenu | ( |  | ) | const

## ◆ GetId()

int wxToolBarToolBase::GetId | ( |  | ) | const

## ◆ GetKind()

wxItemKind wxToolBarToolBase::GetKind | ( |  | ) | const

## ◆ GetLabel()

const wxString& wxToolBarToolBase::GetLabel | ( |  | ) | const

## ◆ GetLongHelp()

const wxString& wxToolBarToolBase::GetLongHelp | ( |  | ) | const

## ◆ GetNormalBitmap()

const wxBitmap& wxToolBarToolBase::GetNormalBitmap | ( |  | ) | const

## ◆ GetShortHelp()

const wxString& wxToolBarToolBase::GetShortHelp | ( |  | ) | const

## ◆ GetStyle()

int wxToolBarToolBase::GetStyle | ( |  | ) | const

## ◆ GetToolBar()

wxToolBarBase* wxToolBarToolBase::GetToolBar | ( |  | ) | const

## ◆ IsButton()

bool wxToolBarToolBase::IsButton | ( |  | ) | const

## ◆ IsControl()

bool wxToolBarToolBase::IsControl | ( |  | ) | const

## ◆ IsEnabled()

bool wxToolBarToolBase::IsEnabled | ( |  | ) | const

## ◆ IsSeparator()

bool wxToolBarToolBase::IsSeparator | ( |  | ) | const

## ◆ IsStretchable()

bool wxToolBarToolBase::IsStretchable | ( |  | ) | const

## ◆ IsStretchableSpace()

bool wxToolBarToolBase::IsStretchableSpace | ( |  | ) | const

## ◆ IsToggled()

bool wxToolBarToolBase::IsToggled | ( |  | ) | const

## ◆ MakeStretchable()

void wxToolBarToolBase::MakeStretchable | ( |  | ) |

## ◆ SetClientData()

void wxToolBarToolBase::SetClientData | ( | wxObject * | clientData | ) |

## ◆ SetDisabledBitmap()

virtual void wxToolBarToolBase::SetDisabledBitmap | ( | const wxBitmap & | bmp | ) |
| virtual

## ◆ SetDropdownMenu()

virtual void wxToolBarToolBase::SetDropdownMenu | ( | wxMenu * | menu | ) |
| virtual

## ◆ SetLabel()

virtual void wxToolBarToolBase::SetLabel | ( | const wxString & | label | ) |
| virtual

## ◆ SetLongHelp()

virtual bool wxToolBarToolBase::SetLongHelp | ( | const wxString & | help | ) |
| virtual

## ◆ SetNormalBitmap()

virtual void wxToolBarToolBase::SetNormalBitmap | ( | const wxBitmap & | bmp | ) |
| virtual

## ◆ SetShortHelp()

virtual bool wxToolBarToolBase::SetShortHelp | ( | const wxString & | help | ) |
| virtual

## ◆ SetToggle()

virtual bool wxToolBarToolBase::SetToggle | ( | bool | toggle | ) |
| virtual

## ◆ Toggle() [1/2]

virtual bool wxToolBarToolBase::Toggle | ( | bool | toggle | ) |
| virtual

## ◆ Toggle() [2/2]

void wxToolBarToolBase::Toggle | ( |  | ) |