EWebKit  1.0
Typedefs | Functions
ewk_page_group.h File Reference

Describes the Ewk Page Group API. More...

#include "ewk_settings.h"
#include <Eina.h>

Go to the source code of this file.

Typedefs

typedef struct EwkObject Ewk_Page_Group
 

Functions

EAPI Ewk_Page_Groupewk_page_group_create (const char *identifier)
 
EAPI Ewk_Settingsewk_page_group_settings_get (const Ewk_Page_Group *page_group)
 
EAPI Eina_Bool ewk_page_group_user_style_sheet_add (Ewk_Page_Group *page_group, const char *source, const char *base_url, Eina_List *white_list, Eina_List *black_list, Eina_Bool main_frame_only)
 
EAPI Eina_Bool ewk_page_group_user_style_sheets_remove_all (Ewk_Page_Group *page_group)
 

Detailed Description

Describes the Ewk Page Group API.

Typedef Documentation

typedef struct EwkObject Ewk_Page_Group

Declare Ewk_Page_Group as Ewk_Object.

See also
Ewk_Object

Function Documentation

EAPI Ewk_Page_Group* ewk_page_group_create ( const char *  identifier)

Creates a new Ewk_Page_Group.

The returned Ewk_Page_Group object should be unref'ed after use.

Returns
Ewk_Page_Group object on success or NULL on failure
See also
ewk_object_unref
EAPI Ewk_Settings* ewk_page_group_settings_get ( const Ewk_Page_Group page_group)

Gets the Ewk_Settings of this page_group.

Parameters
page_groupEwk_Page_Group object to get Ewk_Settings
Returns
the Ewk_Settings instance or NULL on failure
EAPI Eina_Bool ewk_page_group_user_style_sheet_add ( Ewk_Page_Group page_group,
const char *  source,
const char *  base_url,
Eina_List *  white_list,
Eina_List *  black_list,
Eina_Bool  main_frame_only 
)

Adds the user style sheet to this page group.

Parameters
page_groupewk_page_gorup object to add the user style sheet
sourcethe user style sheet
base_urlbase url
white_listurl list to allow adding the user style sheet
black_listurl list to disallow adding the user style sheet
main_frame_onlya state to apply the user style sheet only to the mainframe
Returns
EINA_TRUE if the user style sheet is added to the page group, or EINA_FALSE otherwise
EAPI Eina_Bool ewk_page_group_user_style_sheets_remove_all ( Ewk_Page_Group page_group)

Remove all the user style sheets from this page group.

Parameters
page_grouppage group object to remove all the user style sheets
Returns
EINA_TRUE if all the user style sheet are removed from the page group, or EINA_FALSE otherwise