Anchorblock

Anchorblock is for displaying tet that contains markup with anchors like: <a href=1234>something</> in it. More...


Functions

EAPI Evas_Object * elm_anchorblock_add (Evas_Object *parent)
 Add a new Anchorblock object.
EAPI void elm_anchorblock_text_set (Evas_Object *obj, const char *text)
 Set the text markup of the anchorblock.
EAPI void elm_anchorblock_hover_parent_set (Evas_Object *obj, Evas_Object *parent)
 Set the parent of the hover popup.
EAPI void elm_anchorblock_hover_style_set (Evas_Object *obj, const char *style)
 Set the style that the hover should use.
EAPI void elm_anchorblock_hover_end (Evas_Object *obj)
 Stop the hover popup in the anchorblock.


Detailed Description

Anchorblock is for displaying tet that contains markup with anchors like: <a href=1234>something</> in it.

These will be drawn differently and will be able to be clicked on by the user to display a popup. This popup then is intended to contain extra options such as "call", "add to contacts", "open web page" etc.

Signals that you can add callbacks for are:

anchor,clicked - achor called was clicked. event_info is anchor info - Elm_Entry_Anchorview_Info


Function Documentation

EAPI Evas_Object* elm_anchorblock_add ( Evas_Object *  parent  ) 

Add a new Anchorblock object.

Parameters:
parent The parent object
Returns:
The new object or NULL if it cannot be created

EAPI void elm_anchorblock_hover_end ( Evas_Object *  obj  ) 

Stop the hover popup in the anchorblock.

This will stop the hover popup in the anchorblock if it is currently active.

Parameters:
obj The anchorblock object

EAPI void elm_anchorblock_hover_parent_set ( Evas_Object *  obj,
Evas_Object *  parent 
)

Set the parent of the hover popup.

This sets the parent of the hover that anchorblock will create. See hover objects for more information on this.

Parameters:
obj The anchorblock object
parent The parent the hover should use

EAPI void elm_anchorblock_hover_style_set ( Evas_Object *  obj,
const char *  style 
)

Set the style that the hover should use.

This sets the style for the hover that anchorblock will create. See hover objects for more information

Parameters:
obj The anchorblock object
style The style to use

EAPI void elm_anchorblock_text_set ( Evas_Object *  obj,
const char *  text 
)

Set the text markup of the anchorblock.

This sets the text of the anchorblock to be the text given as text. This text is in markup format with <a href=XXX> beginning an achor with the string link of 'XXX', and </> or </a> ending the link. Other markup can be used dependign on the style support.

Parameters:
obj The anchorblock object
text The text to set, or NULL to clear