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

#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
 

Detailed Description

Definition at line 40 of file twobutton.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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:

void fcn::TwoButton::ancestorHidden ( const Event &  e)
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.

int32_t fcn::TwoButton::getDownXOffset ( )
inline

Definition at line 53 of file twobutton.h.

References x_downoffset.

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

Member Data Documentation

Image* fcn::TwoButton::m_downImage
private

Definition at line 60 of file twobutton.h.

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

Image* fcn::TwoButton::m_hoverImage
private

Definition at line 61 of file twobutton.h.

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

Image* fcn::TwoButton::m_upImage
private

Definition at line 59 of file twobutton.h.

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

int32_t fcn::TwoButton::x_downoffset
private

Definition at line 62 of file twobutton.h.

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

int32_t fcn::TwoButton::y_downoffset
private

Definition at line 63 of file twobutton.h.

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


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