46 lines
692 B
C++
46 lines
692 B
C++
#ifdef HAVE_CONFIG_H
|
|
#include <config.h>
|
|
#endif
|
|
|
|
#include "../include/elementaryxx/Check.h"
|
|
|
|
using namespace std;
|
|
|
|
namespace Elmxx {
|
|
|
|
Check::Check (Evasxx::Object &parent)
|
|
{
|
|
o = elm_check_add (parent.obj ());
|
|
|
|
elmInit ();
|
|
}
|
|
|
|
Check::~Check () {}
|
|
|
|
Check *Check::factory (Evasxx::Object &parent)
|
|
{
|
|
return new Check (parent);
|
|
}
|
|
|
|
void Check::setLabel (const std::string &label)
|
|
{
|
|
elm_check_label_set (o, label.c_str ());
|
|
}
|
|
|
|
void Check::setIcon (const Evasxx::Object &icon)
|
|
{
|
|
elm_check_icon_set (o, icon.obj ());
|
|
}
|
|
|
|
void Check::setState (bool state)
|
|
{
|
|
elm_check_state_set (o, state);
|
|
}
|
|
|
|
bool Check::getState () const
|
|
{
|
|
return elm_check_state_get (o);
|
|
}
|
|
|
|
} // end namespace Elmxx
|