FIFE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
gcn::TwoButton Class Reference

#include <twobutton.h>

Inherits Button.

+ Collaboration diagram for gcn::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 ()
 

Private Attributes

Image * m_upImage
 
Image * m_downImage
 
Image * m_hoverImage
 
int32_t x_downoffset
 
int32_t y_downoffset
 

Detailed Description

Definition at line 40 of file twobutton.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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().

+ Here is the caller graph for this function:

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.

int32_t gcn::TwoButton::getDownXOffset ( )
inline

Definition at line 52 of file twobutton.h.

References x_downoffset.

int32_t gcn::TwoButton::getDownYOffset ( )
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.

Member Data Documentation

Image* gcn::TwoButton::m_downImage
private

Definition at line 57 of file twobutton.h.

Referenced by adjustSize(), draw(), and setDownImage().

Image* gcn::TwoButton::m_hoverImage
private

Definition at line 58 of file twobutton.h.

Referenced by adjustSize(), draw(), setHoverImage(), and TwoButton().

Image* gcn::TwoButton::m_upImage
private

Definition at line 56 of file twobutton.h.

Referenced by adjustSize(), draw(), and setUpImage().

int32_t gcn::TwoButton::x_downoffset
private

Definition at line 59 of file twobutton.h.

Referenced by draw(), getDownXOffset(), and setDownOffset().

int32_t gcn::TwoButton::y_downoffset
private

Definition at line 60 of file twobutton.h.

Referenced by draw(), getDownYOffset(), and setDownOffset().


The documentation for this class was generated from the following files: