eflxx/elementaryxx/include/elementaryxx/ElmButton.h

46 lines
872 B
C++

#ifndef ELM_BUTTON_H
#define ELM_BUTTON_H
/* STL */
#include <string>
/* EFL */
#include <Elementary.h>
/* ELFxx */
#include "ElmObject.h"
namespace efl {
/*!
* smart callbacks called:
* "clicked" - the user clicked the button
*
* available styles:
* default
* hoversel_vertical
* hoversel_vertical_entry
*/
class ElmButton : public ElmObject
{
public:
static ElmButton *factory (EvasObject &parent);
void setLabel (const std::string &label);
void setIcon (const EvasObject &icon);
void setStyle (const std::string &style);
private:
ElmButton (); // forbid standard constructor
ElmButton (const ElmButton&); // forbid copy constructor
ElmButton (EvasObject &parent); // private construction -> use factory ()
~ElmButton (); // forbid direct delete -> use ElmObject::destroy()
};
} // end namespace efl
#endif // ELM_BUTTON_H