EWebKit  1.0
Functions
ewk_context_menu.h File Reference

Describes the Ewk Context Menu API. More...

#include "ewk_context_menu_item.h"

Go to the source code of this file.

Functions

EAPI Ewk_Context_Menuewk_context_menu_new (void)
 
EAPI Ewk_Context_Menuewk_context_menu_new_with_items (Eina_List *items)
 
EAPI Eina_Bool ewk_context_menu_item_append (Ewk_Context_Menu *menu, Ewk_Context_Menu_Item *item)
 
EAPI Eina_Bool ewk_context_menu_item_remove (Ewk_Context_Menu *menu, Ewk_Context_Menu_Item *item)
 
EAPI Eina_Bool ewk_context_menu_hide (Ewk_Context_Menu *menu)
 
EAPI const Eina_List * ewk_context_menu_items_get (const Ewk_Context_Menu *o)
 
EAPI Eina_Bool ewk_context_menu_item_select (Ewk_Context_Menu *menu, Ewk_Context_Menu_Item *item)
 

Detailed Description

Describes the Ewk Context Menu API.

Function Documentation

EAPI Eina_Bool ewk_context_menu_hide ( Ewk_Context_Menu menu)

Hides the context menu.

Parameters
menuthe context menu to hide
Returns
EINA_TRUE on success, EINA_FALSE on failure
EAPI Eina_Bool ewk_context_menu_item_append ( Ewk_Context_Menu menu,
Ewk_Context_Menu_Item item 
)

Appends the item of the context menu.

Parameters
menuthe context menu
itemthe item to append
Returns
EINA_TRUE on success, EINA_FALSE on failure
EAPI Eina_Bool ewk_context_menu_item_remove ( Ewk_Context_Menu menu,
Ewk_Context_Menu_Item item 
)

Removes the item of the context menu.

Parameters
menuthe context menu
itemthe item to remove
Returns
EINA_TRUE on success, EINA_FALSE on failure
EAPI Eina_Bool ewk_context_menu_item_select ( Ewk_Context_Menu menu,
Ewk_Context_Menu_Item item 
)

Selects the item from the context menu.

Parameters
menuthe context menu
itemthe item is selected
Returns
EINA_TRUE on success or EINA_FALSE on failure
EAPI const Eina_List* ewk_context_menu_items_get ( const Ewk_Context_Menu o)

Gets the list of items.

Parameters
othe context menu to get list of the items
Returns
the list of the items on success or NULL on failure
EAPI Ewk_Context_Menu* ewk_context_menu_new ( void  )

Creates a new Ewk_Context_Menu to be used as a submenu of an existing Ewk_Context_Menu. The context menu is created by the ewk_view and passed as an argument of ewk_view smart callback.

Returns
the pointer to the new context menu
See also
ewk_context_menu_new_with_items
EAPI Ewk_Context_Menu* ewk_context_menu_new_with_items ( Eina_List *  items)

Creates a new Ewk_Context_Menu to be used as a submenu of an existing Ewk_Context_Menu with the given initial items. The context menu is created by the ewk_view and passed as an argument of ewk_view smart callback.

Parameters
itemsthe list of initial items
Returns
the pointer to the new context menu
See also
ewk_context_menu_new