#ifdef HAVE_CONFIG_H #include #endif #include "../include/elementaryxx/Layout.h" /* EFL */ #include using namespace std; namespace Elmxx { Layout::Layout (Evasxx::Object &parent) { o = elm_layout_add (parent.obj ()); elmInit (); } Layout::~Layout () {} Layout *Layout::factory (Evasxx::Object &parent) { return new Layout (parent); } bool Layout::setFile (const std::string &file) { return elm_layout_file_set (o, file.c_str (), NULL); } bool Layout::setFile (const std::string &file, const std::string &group) { return elm_layout_file_set (o, file.c_str (), group.c_str ()); } void Layout::setContent (const std::string &swallow, const Evasxx::Object &content) { elm_layout_content_set (o, swallow.c_str (), content.obj ()); } Eflxx::CountedPtr Layout::getEdje () { Evas_Object *eo = elm_layout_edje_get (o); Edjexx::Object *ret_o = Edjexx::Object::wrap (eo); return Eflxx::CountedPtr (ret_o); } } // end namespace Elmxx