OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected 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 ()
 
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...
 

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)
 

Protected Attributes

std::string mImageHighlighted
 
std::string mImageNormal
 
std::string mImagePushed
 

Detailed Description

allows using different image textures depending on the button state

Member Function Documentation

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

Here is the caller graph for this function:

void Gui::ImageButton::onMouseButtonPressed ( int  _left,
int  _top,
MyGUI::MouseButton  _id 
)
protectedvirtual
void Gui::ImageButton::onMouseButtonReleased ( int  _left,
int  _top,
MyGUI::MouseButton  _id 
)
protectedvirtual
void Gui::ImageButton::onMouseLostFocus ( MyGUI::Widget *  _new)
protectedvirtual
void Gui::ImageButton::onMouseSetFocus ( MyGUI::Widget *  _old)
protectedvirtual
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

Member Data Documentation

std::string Gui::ImageButton::mImageHighlighted
protected
std::string Gui::ImageButton::mImageNormal
protected
std::string Gui::ImageButton::mImagePushed
protected

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