text: Remove unused EO structs

Bad copy & paste?
This commit is contained in:
Jean-Philippe Andre 2017-09-18 22:29:20 +09:00
parent 0a2282f7d7
commit 1e0b005829
2 changed files with 4 additions and 53 deletions

View File

@ -2333,11 +2333,11 @@ _anchor_hover_clicked_cb(void *data, const Efl_Event *event EINA_UNUSED)
static void
_entry_hover_anchor_clicked_do(Evas_Object *obj,
Efl_Ui_Text_Anchor_Info *info)
Elm_Entry_Anchor_Info *info)
{
Evas_Object *hover_parent;
Evas_Coord x, w, y, h, px, py;
Efl_Ui_Text_Anchor_Hover_Info ei;
Elm_Entry_Anchor_Hover_Info ei;
EFL_UI_TEXT_DATA_GET(obj, sd);
@ -5027,7 +5027,7 @@ _text_anchor_mouse_down_cb(void *data, Evas *e EINA_UNUSED,
EFL_UI_TEXT_DATA_GET(obj, pd);
Anchor *an = data;
Efl_Ui_Text_Anchor_Info ei;
Elm_Entry_Anchor_Info ei;
ei.x = ei.y = ei.w = ei.h = 0;
ei.name = an->name;
@ -5042,7 +5042,7 @@ _text_anchor_mouse_up_cb(void *data, Evas *e EINA_UNUSED,
{
EFL_UI_TEXT_DATA_GET(obj, pd);
Efl_Ui_Text_Anchor_Info ei;
Elm_Entry_Anchor_Info ei;
Anchor *an = data;
ei.x = ei.y = ei.w = ei.h = 0;

View File

@ -1,55 +1,6 @@
import elm_general;
import elm_entry;
struct Efl.Ui.Text.Anchor_Info
{
[[EFL UI text anchor information]]
name: string; [[The name of the anchor, as stated in its href.]]
button: int; [[The mouse button used to click on it.]]
x: int; [[Anchor geometry, relative to canvas.]]
y: int; [[Anchor geometry, relative to canvas.]]
w: int; [[Anchor geometry, relative to canvas.]]
h: int; [[Anchor geometry, relative to canvas.]]
}
struct Efl.Ui.Text.Hover_Parent
{
[[EFL text hover parent]]
x: int; [[Hover parent X coordinate]]
y: int; [[Hover parent Y coordinate]]
w: int; [[Hover parent width]]
h: int; [[Hover parent height]]
}
struct Efl.Ui.Text.Anchor_Hover_Info
{
[[EFL text anchor hover information]]
anchor_info: ptr(const(Efl.Ui.Text.Anchor_Info)); [[The actual anchor info.]]
hover: Elm.Hover; [[The hover object to use for the popup.]]
hover_parent: Efl.Ui.Text.Hover_Parent; [[Hover parent widget]]
hover_left : bool; [[Hint indicating if there's space
for content on the left side of
the hover. Before calling the
callback, the widget will make the
necessary calculations to check
which sides are fit to be set with
content, based on the position the
hover is activated and its distance
to the edges of its parent object
]]
hover_right : bool; [[Hint indicating content fits on
the right side of the hover.
See @.hover_left.
]]
hover_top : bool; [[Hint indicating content fits on top
of the hover. @.hover_left.
]]
hover_bottom : bool; [[Hint indicating content fits
below the hover. See
@.hover_left.
]]
}
class Efl.Ui.Text (Efl.Ui.Layout, Elm.Interface_Scrollable, Efl.Ui.Clickable,
Elm.Interface.Atspi.Text, Elm.Interface.Atspi.Text.Editable, Efl.File,
Efl.Ui.Selectable, Efl.Ui.Scrollable, Efl.Ui.Text.Interactive)