#include "Ui/Control.h"
#include "Utils/Callback.h"
+#include<efl_object.eo.h>
#define EVENT_TYPE_CHECK "type_check"
if (auto control = getControl(object, type)) {
return control;
}
- eo_do(object, object = eo_parent_get());
+ object = elm_object_parent_widget_get(object);
}
return nullptr;
int EntryItem::getTextLength() const
{
- Evas_Textblock *textblock = elm_entry_textblock_get(m_Entry);
+ Evas_Object *textblock = elm_entry_textblock_get(m_Entry);
Evas_Textblock_Cursor *cursor = evas_object_textblock_cursor_new(textblock);
evas_textblock_cursor_paragraph_last(cursor);
int length = evas_textblock_cursor_pos_get(cursor);
Evas_Textblock_Cursor *EntryItem::cloneCursor()
{
- Evas_Textblock *textblock = elm_entry_textblock_get(m_Entry);
+ Evas_Object *textblock = elm_entry_textblock_get(m_Entry);
Evas_Textblock_Cursor *cursor = evas_object_textblock_cursor_get(textblock);
Evas_Textblock_Cursor *clone = evas_object_textblock_cursor_new(textblock);
evas_textblock_cursor_copy(cursor, clone);
void EntryItem::splitText(Evas_Textblock_Cursor *cursor, char **textBefore, char **textAfter)
{
- Evas_Textblock *textblock = elm_entry_textblock_get(m_Entry);
+ Evas_Object *textblock = elm_entry_textblock_get(m_Entry);
if (textBefore) {
Evas_Textblock_Cursor *begin = evas_object_textblock_cursor_new(textblock);
evas_textblock_cursor_paragraph_first(begin);
void EntryItem::updateImageSizes()
{
- Evas_Textblock *textblock = elm_entry_textblock_get(m_Entry);
+ Evas_Object *textblock = elm_entry_textblock_get(m_Entry);
Evas_Textblock_Cursor *cursor = evas_object_textblock_cursor_new(textblock);
auto node = evas_textblock_node_format_first_get(textblock);
return;
}
- Evas_Textblock *textblock = elm_entry_textblock_get(m_Entry);
+ Evas_Object *textblock = elm_entry_textblock_get(m_Entry);
Evas_Textblock_Cursor *cursor = evas_object_textblock_cursor_new(textblock);
evas_textblock_cursor_paragraph_char_last(cursor);
removeLineFeed(cursor);
bool EntryItem::hasImage(int imageIndex)
{
- const Evas_Textblock_Node_Format *node = evas_textblock_node_format_first_get(elm_entry_textblock_get(m_Entry));
+ const Evas_Object_Textblock_Node_Format *node = evas_textblock_node_format_first_get(elm_entry_textblock_get(m_Entry));
std::string imageFormat = TAG_HREF_ATTR + std::to_string(imageIndex);
while (node) {