FIFE
|
#include <twobutton.h>
Inherits Button.
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 () |
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.
gcn::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.
gcn::TwoButton::~TwoButton | ( | ) |
Definition at line 51 of file twobutton.cpp.
void gcn::TwoButton::adjustSize | ( | ) |
Definition at line 109 of file twobutton.cpp.
References m_downImage, m_hoverImage, and m_upImage.
Referenced by setDownImage(), setHoverImage(), setUpImage(), and TwoButton().
void gcn::TwoButton::draw | ( | Graphics * | graphics | ) |
Definition at line 59 of file twobutton.cpp.
References gcn::_log, FL_WARN, m_downImage, m_hoverImage, m_upImage, x_downoffset, and y_downoffset.
|
inline |
Definition at line 52 of file twobutton.h.
References x_downoffset.
|
inline |
Definition at line 53 of file twobutton.h.
References y_downoffset.
void gcn::TwoButton::setDownImage | ( | Image * | image | ) |
Definition at line 131 of file twobutton.cpp.
References adjustSize(), and m_downImage.
void gcn::TwoButton::setDownOffset | ( | int32_t | x, |
int32_t | y | ||
) |
Definition at line 54 of file twobutton.cpp.
References x_downoffset, and y_downoffset.
void gcn::TwoButton::setHoverImage | ( | Image * | image | ) |
Definition at line 135 of file twobutton.cpp.
References adjustSize(), and m_hoverImage.
void gcn::TwoButton::setUpImage | ( | Image * | image | ) |
Definition at line 127 of file twobutton.cpp.
References adjustSize(), and m_upImage.
|
private |
Definition at line 57 of file twobutton.h.
Referenced by adjustSize(), draw(), and setDownImage().
|
private |
Definition at line 58 of file twobutton.h.
Referenced by adjustSize(), draw(), setHoverImage(), and TwoButton().
|
private |
Definition at line 56 of file twobutton.h.
Referenced by adjustSize(), draw(), and setUpImage().
|
private |
Definition at line 59 of file twobutton.h.
Referenced by draw(), getDownXOffset(), and setDownOffset().
|
private |
Definition at line 60 of file twobutton.h.
Referenced by draw(), getDownYOffset(), and setDownOffset().