OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Attributes | List of all members
Gui::ImageButton Class Reference

allows using different image textures depending on the button state More...

#include <imagebutton.hpp>

Inheritance diagram for Gui::ImageButton:
Collaboration diagram for Gui::ImageButton:

Public Member Functions

MyGUI::IntSize getRequestedSize ()
 
 ImageButton ()
 
void setImage (const std::string &image)
 Set mImageNormal, mImageHighlighted and mImagePushed based on file convention (image_idle.ext, image_over.ext and image_pressed.ext) More...
 

Static Public Member Functions

static void setDefaultNeedKeyFocus (bool enabled)
 

Protected Member Functions

virtual void setPropertyOverride (const std::string &_key, const std::string &_value)
 
virtual void onMouseLostFocus (MyGUI::Widget *_new)
 
virtual void onMouseSetFocus (MyGUI::Widget *_old)
 
virtual void onMouseButtonPressed (int _left, int _top, MyGUI::MouseButton _id)
 
virtual void onMouseButtonReleased (int _left, int _top, MyGUI::MouseButton _id)
 
virtual void onKeySetFocus (MyGUI::Widget *_old)
 
virtual void onKeyLostFocus (MyGUI::Widget *_new)
 

Protected Attributes

std::string mImageHighlighted
 
std::string mImageNormal
 
std::string mImagePushed
 
bool mMouseFocus
 
bool mMousePress
 
bool mKeyFocus
 

Private Member Functions

void updateImage ()
 

Static Private Attributes

static bool sDefaultNeedKeyFocus = true
 

Detailed Description

allows using different image textures depending on the button state

Constructor & Destructor Documentation

Gui::ImageButton::ImageButton ( )

Member Function Documentation

MyGUI::IntSize Gui::ImageButton::getRequestedSize ( )

Here is the caller graph for this function:

void Gui::ImageButton::onKeyLostFocus ( MyGUI::Widget *  _new)
protectedvirtual

Here is the call graph for this function:

void Gui::ImageButton::onKeySetFocus ( MyGUI::Widget *  _old)
protectedvirtual

Here is the call graph for this function:

void Gui::ImageButton::onMouseButtonPressed ( int  _left,
int  _top,
MyGUI::MouseButton  _id 
)
protectedvirtual

Here is the call graph for this function:

void Gui::ImageButton::onMouseButtonReleased ( int  _left,
int  _top,
MyGUI::MouseButton  _id 
)
protectedvirtual

Here is the call graph for this function:

void Gui::ImageButton::onMouseLostFocus ( MyGUI::Widget *  _new)
protectedvirtual

Here is the call graph for this function:

void Gui::ImageButton::onMouseSetFocus ( MyGUI::Widget *  _old)
protectedvirtual

Here is the call graph for this function:

void Gui::ImageButton::setDefaultNeedKeyFocus ( bool  enabled)
static

Here is the caller graph for this function:

void Gui::ImageButton::setImage ( const std::string &  image)

Set mImageNormal, mImageHighlighted and mImagePushed based on file convention (image_idle.ext, image_over.ext and image_pressed.ext)

Here is the caller graph for this function:

void Gui::ImageButton::setPropertyOverride ( const std::string &  _key,
const std::string &  _value 
)
protectedvirtual
void Gui::ImageButton::updateImage ( )
private

Here is the caller graph for this function:

Member Data Documentation

std::string Gui::ImageButton::mImageHighlighted
protected
std::string Gui::ImageButton::mImageNormal
protected
std::string Gui::ImageButton::mImagePushed
protected
bool Gui::ImageButton::mKeyFocus
protected
bool Gui::ImageButton::mMouseFocus
protected
bool Gui::ImageButton::mMousePress
protected
bool Gui::ImageButton::sDefaultNeedKeyFocus = true
staticprivate

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