eflxx/elementaryxx/src/Label.cpp

46 lines
685 B
C++

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "elementaryxx/Label.h"
using namespace std;
namespace Elmxx {
Label::Label (Evasxx::Object &parent)
{
o = elm_label_add (parent.obj ());
elmInit ();
}
Label::~Label () {}
Label *Label::factory (Evasxx::Object &parent)
{
return new Label (parent);
}
void Label::setLineWrap (Elm_Wrap_Type wrap)
{
elm_label_line_wrap_set (o, wrap);
}
Elm_Wrap_Type Label::getLineWrap () const
{
return elm_label_line_wrap_get (o);
}
void Label::setWrapWidth (Evas_Coord w)
{
elm_label_wrap_width_set (o, w);
}
Evas_Coord Label::getWrapWidth () const
{
return elm_label_wrap_width_get (o);
}
} // end namespace Elmxx