![]() |
appkit
1.5.1
RoadNarrows Robotics Application Kit
|
GTK window derived button class. More...
#include <WinGtkMenu.h>
Public Member Functions | |
| WinGtkButton (WinButtonType eType, int nEvent, WidgetState eInitState, AlignOp eAlign, const std::string &strAltText, const std::string &strTagNormal, const std::string &strToolTipNormal="", const std::string &strTagActive="", const std::string &strToolTipActive="") | |
| WinGtkButton initialization constructor. More... | |
| WinGtkButton (const WinGtkButton &src) | |
| WinGtkButton copy constructor. More... | |
| virtual | ~WinGtkButton () |
| Destructor. | |
| virtual void * | getNormalImageWidget () |
| Get the normal icon image widget. More... | |
| virtual void * | getActiveImageWidget () |
| Get the active icon image widget. More... | |
Public Member Functions inherited from rnr::WinButton | |
| WinButton (WinButtonType eType, int nEvent, WidgetState eInitState, AlignOp eAlign, const std::string &strAltText, const std::string &strTagNormal, const std::string &strToolTipNormal="", const std::string &strTagActive="", const std::string &strToolTipActive="") | |
| WinButton initialization constructor. More... | |
| WinButton (const WinButton &src) | |
| WinButton copy constructor. More... | |
| virtual | ~WinButton () |
| Destructor. | |
| void * | getCurrentImageWidget () |
| Get the icon image widget associated with the current button state. More... | |
| std::string | getCurrentLabel () |
| Get the text label associated with the current button state. More... | |
| std::string | getCurrentToolTip () |
| Get the tooltip associated with the current button state. More... | |
Protected Member Functions | |
| GtkWidget * | loadIcon (const std::string &strIconPath) |
| Load icon image from file. More... | |
Protected Member Functions inherited from rnr::WinButton | |
| void | copy (const WinButton *pSrc) |
| Deep copy of source to this. More... | |
Protected Attributes | |
| GtkWidget * | m_wImgNormal |
| normal state menu button icon | |
| GtkWidget * | m_wImgActive |
| active state menu button icon | |
Protected Attributes inherited from rnr::WinButton | |
| WinButtonType | m_eType |
| button type | |
| int | m_nEvent |
| button push "mouse click" event | |
| WidgetState | m_eInitState |
| initial button widget state | |
| WidgetState | m_eState |
| current button widget state | |
| AlignOp | m_eAlign |
| left or right alignment | |
| std::string | m_strAltText |
| alternate text for icon(s) | |
| std::string | m_strTagNormal |
| button icon for normal state | |
| std::string | m_strToolTipNormal |
| button tooltip for normal state | |
| std::string | m_strTagActive |
| button icon for active state | |
| std::string | m_strToolTipActive |
| button tooltip for active state | |
Friends | |
| class | WinGtkButtonMenu |
GTK window derived button class.
Definition at line 82 of file WinGtkMenu.h.
| rnr::WinGtkButton::WinGtkButton | ( | WinButtonType | eType, |
| int | nEvent, | ||
| WidgetState | eInitState, | ||
| AlignOp | eAlign, | ||
| const std::string & | strAltText, | ||
| const std::string & | strTagNormal, | ||
| const std::string & | strToolTipNormal = "", |
||
| const std::string & | strTagActive = "", |
||
| const std::string & | strToolTipActive = "" |
||
| ) |
WinGtkButton initialization constructor.
| eType | Button type. |
| nEvent | Event associated with button press (and id). |
| eInitState | Button widget initial state. See GUI Widget State. |
| eAlign | Button alignment. See rnmpwin_align. |
| strAltText | Button alternative text string. |
| strTagNormal | Button visual tag for normal state. Either icon path or text string label. |
| strToolTipNormal | Button tooltip for normal state. |
| strTagActive | Button visual tag for active state. Either icon path or text string label. Empty for no tag. |
| strToolTipActive | Button tooltip for active state. |
Referenced by rnr::WinGtkButtonMenu::addImageButton(), and rnr::WinGtkButtonMenu::addLabelButton().
| WinGtkButton::WinGtkButton | ( | const WinGtkButton & | src | ) |
WinGtkButton copy constructor.
| src | Source button item. |
Definition at line 105 of file WinGtkMenu.cxx.
References loadIcon(), rnr::WinButton::m_eType, rnr::WinButton::m_strTagActive, rnr::WinButton::m_strTagNormal, m_wImgActive, m_wImgNormal, and rnr::WinButtonTypeImage.
|
inlinevirtual |
Get the active icon image widget.
Reimplemented from rnr::WinButton.
Definition at line 142 of file WinGtkMenu.h.
References m_wImgActive.
|
inlinevirtual |
Get the normal icon image widget.
Reimplemented from rnr::WinButton.
Definition at line 131 of file WinGtkMenu.h.
References m_wImgNormal.
|
protected |
Load icon image from file.
| strIconPath | Icon file path. |
Definition at line 132 of file WinGtkMenu.cxx.
Referenced by WinGtkButton().