|
FIFE
|
#include <twobutton.h>
Inherits Button, and WidgetListener.
Collaboration diagram for fcn::TwoButton:Public Member Functions | |
| TwoButton (Image *up_image=0, Image *down_image=0, Image *hover_file=0, const std::string &caption="") | |
| ~TwoButton () | |
| void | draw (Graphics *graphics) |
| void | adjustSize () |
| void | setUpImage (Image *image) |
| void | setDownImage (Image *image) |
| void | setHoverImage (Image *image) |
| void | setDownOffset (int32_t x, int32_t y) |
| int32_t | getDownXOffset () |
| int32_t | getDownYOffset () |
| virtual void | ancestorHidden (const Event &e) |
Private Attributes | |
| Image * | m_upImage |
| Image * | m_downImage |
| Image * | m_hoverImage |
| int32_t | x_downoffset |
| int32_t | y_downoffset |
Definition at line 40 of file twobutton.h.
| fcn::TwoButton::TwoButton | ( | Image * | up_image = 0, |
| Image * | down_image = 0, |
||
| Image * | hover_file = 0, |
||
| const std::string & | caption = "" |
||
| ) |
Definition at line 38 of file twobutton.cpp.
References adjustSize(), and m_hoverImage.
| fcn::TwoButton::~TwoButton | ( | ) |
Definition at line 53 of file twobutton.cpp.
| void fcn::TwoButton::adjustSize | ( | ) |
Definition at line 111 of file twobutton.cpp.
References m_downImage, m_hoverImage, and m_upImage.
Referenced by setDownImage(), setHoverImage(), setUpImage(), and TwoButton().
Here is the caller graph for this function:
|
virtual |
Definition at line 142 of file twobutton.cpp.
| void fcn::TwoButton::draw | ( | Graphics * | graphics | ) |
Definition at line 61 of file twobutton.cpp.
References fcn::_log, FL_WARN, m_downImage, m_hoverImage, m_upImage, x_downoffset, and y_downoffset.
|
inline |
Definition at line 53 of file twobutton.h.
References x_downoffset.
|
inline |
Definition at line 54 of file twobutton.h.
References y_downoffset.
| void fcn::TwoButton::setDownImage | ( | Image * | image | ) |
Definition at line 133 of file twobutton.cpp.
References adjustSize(), and m_downImage.
| void fcn::TwoButton::setDownOffset | ( | int32_t | x, |
| int32_t | y | ||
| ) |
Definition at line 56 of file twobutton.cpp.
References x_downoffset, and y_downoffset.
| void fcn::TwoButton::setHoverImage | ( | Image * | image | ) |
Definition at line 137 of file twobutton.cpp.
References adjustSize(), and m_hoverImage.
| void fcn::TwoButton::setUpImage | ( | Image * | image | ) |
Definition at line 129 of file twobutton.cpp.
References adjustSize(), and m_upImage.
|
private |
Definition at line 60 of file twobutton.h.
Referenced by adjustSize(), draw(), and setDownImage().
|
private |
Definition at line 61 of file twobutton.h.
Referenced by adjustSize(), draw(), setHoverImage(), and TwoButton().
|
private |
Definition at line 59 of file twobutton.h.
Referenced by adjustSize(), draw(), and setUpImage().
|
private |
Definition at line 62 of file twobutton.h.
Referenced by draw(), getDownXOffset(), and setDownOffset().
|
private |
Definition at line 63 of file twobutton.h.
Referenced by draw(), getDownYOffset(), and setDownOffset().