elm_entry: rename some eo methods
cursor_content -> textblock_cursor_content cursor_geometry -> textblock_cursor_geometry probably all cursor methods here should be renamed to something to increase consistency
This commit is contained in:
parent
b3bc06a5be
commit
63bd856fdd
|
@ -4368,7 +4368,7 @@ _elm_entry_select_region_get(Eo *obj, Elm_Entry_Data *sd, int *start, int *end)
|
|||
}
|
||||
|
||||
EOLIAN static Eina_Bool
|
||||
_elm_entry_cursor_geometry_get(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h)
|
||||
_elm_entry_textblock_cursor_geometry_get(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h)
|
||||
{
|
||||
edje_object_part_text_cursor_geometry_get
|
||||
(sd->entry_edje, "elm.text", x, y, w, h);
|
||||
|
@ -4458,7 +4458,7 @@ _elm_entry_cursor_is_visible_format_get(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd)
|
|||
}
|
||||
|
||||
EOLIAN static char*
|
||||
_elm_entry_cursor_content_get(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd)
|
||||
_elm_entry_textblock_cursor_content_get(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd)
|
||||
{
|
||||
return edje_object_part_text_cursor_content_get
|
||||
(sd->entry_edje, "elm.text", EDJE_CURSOR_MAIN);
|
||||
|
|
|
@ -470,7 +470,7 @@ class Elm.Entry (Efl.Ui.Layout, Elm.Interface_Scrollable, Efl.Ui.Clickable,
|
|||
return: Efl.Canvas.Object; [[Textblock object]]
|
||||
}
|
||||
}
|
||||
@property cursor_geometry {
|
||||
@property textblock_cursor_geometry {
|
||||
get {
|
||||
[[This function returns the geometry of the cursor.
|
||||
|
||||
|
@ -478,6 +478,7 @@ class Elm.Entry (Efl.Ui.Layout, Elm.Interface_Scrollable, Efl.Ui.Clickable,
|
|||
or for example in the case of scrolled entry where you want to show the
|
||||
cursor.
|
||||
]]
|
||||
legacy: elm_entry_cursor_geometry_get;
|
||||
return: bool; [[$true on success, $false otherwise]]
|
||||
}
|
||||
values {
|
||||
|
@ -512,7 +513,7 @@ class Elm.Entry (Efl.Ui.Layout, Elm.Interface_Scrollable, Efl.Ui.Clickable,
|
|||
return: bool; [[$true if format node exists, $false otherwise]]
|
||||
}
|
||||
}
|
||||
@property cursor_content {
|
||||
@property textblock_cursor_content {
|
||||
get {
|
||||
[[Get the character pointed by the cursor at its current position.
|
||||
|
||||
|
@ -521,6 +522,7 @@ class Elm.Entry (Efl.Ui.Layout, Elm.Interface_Scrollable, Efl.Ui.Clickable,
|
|||
Only the text is returned, any format that may exist will not be part
|
||||
of the return value. You must free the string when done with \@ref free.
|
||||
]]
|
||||
legacy: elm_entry_cursor_content_get;
|
||||
return: mstring @owned @warn_unused; [[Character]]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue