105 lines
1.7 KiB
C++
105 lines
1.7 KiB
C++
|
#ifdef HAVE_CONFIG_H
|
||
|
#include <config.h>
|
||
|
#endif
|
||
|
|
||
|
#include "../include/edjexx/Part.h"
|
||
|
#include "../include/edjexx/Edit.h"
|
||
|
#include "../include/edjexx/Base.h"
|
||
|
#include "../include/edjexx/Exceptions.h"
|
||
|
|
||
|
/* EFL */
|
||
|
#include <Edje.h>
|
||
|
#include <Edje_Edit.h>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
namespace Edjexx {
|
||
|
|
||
|
Edit::Edit (Evasxx::Canvas &canvas) :
|
||
|
Edjexx::Object (canvas)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
Edit::Edit (Evasxx::Canvas &canvas, const std::string &filename, const std::string &groupname) :
|
||
|
Edjexx::Object (canvas, filename, groupname)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
const string Edit::getCompiler ()
|
||
|
{
|
||
|
return edje_edit_compiler_get (o);
|
||
|
}
|
||
|
|
||
|
bool Edit::save ()
|
||
|
{
|
||
|
return edje_edit_save (o);
|
||
|
}
|
||
|
|
||
|
void Edit::printInternalStatus ()
|
||
|
{
|
||
|
edje_edit_print_internal_status (o);
|
||
|
}
|
||
|
|
||
|
bool Edit::addGroup (const std::string &name)
|
||
|
{
|
||
|
return edje_edit_group_add (o, name.c_str ());
|
||
|
}
|
||
|
|
||
|
|
||
|
bool Edit::delGroup ()
|
||
|
{
|
||
|
return edje_edit_group_del (o);
|
||
|
}
|
||
|
|
||
|
bool Edit::hasGroup (const std::string &group)
|
||
|
{
|
||
|
return edje_edit_group_exist (o, group.c_str ());
|
||
|
}
|
||
|
|
||
|
bool Edit::setGroupName (const std::string &newName)
|
||
|
{
|
||
|
return edje_edit_group_name_set (o, newName.c_str ());
|
||
|
}
|
||
|
|
||
|
int Edit::getGroupMinWidth ()
|
||
|
{
|
||
|
return edje_edit_group_min_w_get (o);
|
||
|
}
|
||
|
|
||
|
void Edit::setGroupMinWidth (int width)
|
||
|
{
|
||
|
edje_edit_group_min_w_set (o, width);
|
||
|
}
|
||
|
|
||
|
int Edit::getGroupMinHeight ()
|
||
|
{
|
||
|
return edje_edit_group_min_h_get (o);
|
||
|
}
|
||
|
|
||
|
void Edit::setGroupMinHeight (int height)
|
||
|
{
|
||
|
edje_edit_group_min_h_set (o, height);
|
||
|
}
|
||
|
|
||
|
int Edit::getGroupMaxWidth ()
|
||
|
{
|
||
|
return edje_edit_group_max_w_get (o);
|
||
|
}
|
||
|
|
||
|
void Edit::setGroupMaxWidth (int width)
|
||
|
{
|
||
|
edje_edit_group_max_w_set(o, width);
|
||
|
}
|
||
|
|
||
|
int Edit::getGroupMaxHeight ()
|
||
|
{
|
||
|
return edje_edit_group_max_h_get (o);
|
||
|
}
|
||
|
|
||
|
void Edit::setGroupMaxHeight (int height)
|
||
|
{
|
||
|
edje_edit_group_max_h_set(o, height);
|
||
|
}
|
||
|
|
||
|
} // end namespace Edjexx
|