## midori-view

midori-view

## Synopsis

    #include <midori/midori.h>

    enum                MidoriDelay;
    enum                MidoriDownloadType;
                        MidoriView;
                        MidoriViewClass;
    GtkWidget *         midori_view_add_info_bar            (MidoriView *view,
                                                             GtkMessageType message_type,
                                                             const gchar *message,
                                                             GCallback response_cb,
                                                             gpointer user_data,
                                                             const gchar *first_button_text,
                                                             ...);
    gboolean            midori_view_can_go_back             (MidoriView *view);
    gboolean            midori_view_can_go_back_or_forward  (MidoriView *view,
                                                             gint steps);
    gboolean            midori_view_can_go_forward          (MidoriView *view);
    gboolean            midori_view_can_view_source         (MidoriView *view);
    gboolean            midori_view_can_zoom_in             (MidoriView *view);
    gboolean            midori_view_can_zoom_out            (MidoriView *view);
    GtkWidget *         midori_view_duplicate               (MidoriView *view);
    gboolean            midori_view_execute_script          (MidoriView *view,
                                                             const gchar *script,
                                                             gchar **exception);
    const gchar *       midori_view_fallback_extension      (MidoriView *view,
                                                             const gchar *extension);
    const gchar *       midori_view_get_display_title       (MidoriView *view);
    const gchar *       midori_view_get_display_uri         (MidoriView *view);
    MidoriView *        midori_view_get_for_widget          (GtkWidget *web_view);
    GdkPixbuf *         midori_view_get_icon                (MidoriView *view);
    const gchar *       midori_view_get_icon_uri            (MidoriView *view);
    PangoEllipsizeMode  midori_view_get_label_ellipsize     (MidoriView *view);
    const gchar *       midori_view_get_link_uri            (MidoriView *view);
    MidoriLoadStatus    midori_view_get_load_status         (MidoriView *view);
    const gchar *       midori_view_get_next_page           (MidoriView *view);
    const gchar *       midori_view_get_previous_page       (MidoriView *view);
    gdouble             midori_view_get_progress            (MidoriView *view);
    KatzeItem *         midori_view_get_proxy_item          (MidoriView *view);
    GtkWidget *         midori_view_get_proxy_menu_item     (MidoriView *view);
    GtkWidget *         midori_view_get_proxy_tab_label     (MidoriView *view);
    GList *             midori_view_get_resources           (MidoriView *view);
    const gchar *       midori_view_get_selected_text       (MidoriView *view);
    GdkPixbuf *         midori_view_get_snapshot            (MidoriView *view,
                                                             gint width,
                                                             gint height);
    GraniteWidgetsTab * midori_view_get_tab                 (MidoriView *view);
    GtkWidget *         midori_view_get_tab_menu            (MidoriView *view);
    gboolean            midori_view_get_tls_info            (MidoriView *view,
                                                             void *request,
                                                             GTlsCertificate **tls_cert,
                                                             GTlsCertificateFlags *tls_flags,
                                                             gchar **hostname);
    GtkWidget *         midori_view_get_web_view            (MidoriView *view);
    gfloat              midori_view_get_zoom_level          (MidoriView *view);
    void                midori_view_go_back                 (MidoriView *view);
    void                midori_view_go_back_or_forward      (MidoriView *view,
                                                             gint steps);
    void                midori_view_go_forward              (MidoriView *view);
    gboolean            midori_view_has_selection           (MidoriView *view);
    gboolean            midori_view_is_blank                (MidoriView *view);
    void                midori_view_list_plugins            (MidoriView *view,
                                                             GString *markup,
                                                             gboolean html);
    void                midori_view_list_versions           (GString *markup,
                                                             gboolean html);
    GtkWidget *         midori_view_new_with_item           (KatzeItem *item,
                                                             MidoriWebSettings *settings);
    GtkWidget *         midori_view_new_with_title          (const gchar *title,
                                                             MidoriWebSettings *settings,
                                                             gboolean append);
    void                midori_view_populate_popup          (MidoriView *view,
                                                             GtkWidget *menu,
                                                             gboolean manual);
    void                midori_view_print                   (MidoriView *view);
    void                midori_view_reload                  (MidoriView *view,
                                                             gboolean from_cache);
    gchar *             midori_view_save_source             (MidoriView *view,
                                                             const gchar *uri,
                                                             const gchar *outfile);
    void                midori_view_search_text             (MidoriView *view,
                                                             const gchar *text,
                                                             gboolean case_sensitive,
                                                             gboolean forward);
    void                midori_view_set_colors              (MidoriView *view,
                                                             GdkColor *fg_color,
                                                             GdkColor *bg_color);
    void                midori_view_set_html                (MidoriView *view,
                                                             const gchar *data,
                                                             const gchar *uri,
                                                             void *web_frame);
    void                midori_view_set_overlay_text        (MidoriView *view,
                                                             const gchar *text);
    void                midori_view_set_settings            (MidoriView *view,
                                                             MidoriWebSettings *settings);
    void                midori_view_set_tab                 (MidoriView *view,
                                                             GraniteWidgetsTab *tab);
    void                midori_view_set_uri                 (MidoriView *view,
                                                             const gchar *uri);
    void                midori_view_set_zoom_level          (MidoriView *view,
                                                             gfloat zoom_level);

## Description

## Details

### enum MidoriDelay

    typedef enum {
        MIDORI_DELAY_UNDELAYED = -1, /* The view is in a regular undelayed state */
        MIDORI_DELAY_DELAYED = 1, /* The view is delayed but has not displayed any indication of such */
        MIDORI_DELAY_PENDING_UNDELAY = -2 /* The view is delayed and showing a message asking to be undelayed */
    } MidoriDelay;

### enum MidoriDownloadType

    typedef enum {
        MIDORI_DOWNLOAD_CANCEL,
        MIDORI_DOWNLOAD_OPEN,
        MIDORI_DOWNLOAD_SAVE,
        MIDORI_DOWNLOAD_SAVE_AS,
        MIDORI_DOWNLOAD_OPEN_IN_VIEWER,
    } MidoriDownloadType;

### MidoriView

    typedef struct _MidoriView MidoriView;

### MidoriViewClass

    typedef struct _MidoriViewClass MidoriViewClass;

### midori_view_add_info_bar ()

    GtkWidget *         midori_view_add_info_bar            (MidoriView *view,
                                                             GtkMessageType message_type,
                                                             const gchar *message,
                                                             GCallback response_cb,
                                                             gpointer user_data,
                                                             const gchar *first_button_text,
                                                             ...);

### midori_view_can_go_back ()

    gboolean            midori_view_can_go_back             (MidoriView *view);

### midori_view_can_go_back_or_forward ()

    gboolean            midori_view_can_go_back_or_forward  (MidoriView *view,
                                                             gint steps);

### midori_view_can_go_forward ()

    gboolean            midori_view_can_go_forward          (MidoriView *view);

### midori_view_can_view_source ()

    gboolean            midori_view_can_view_source         (MidoriView *view);

### midori_view_can_zoom_in ()

    gboolean            midori_view_can_zoom_in             (MidoriView *view);

### midori_view_can_zoom_out ()

    gboolean            midori_view_can_zoom_out            (MidoriView *view);

### midori_view_duplicate ()

    GtkWidget *         midori_view_duplicate               (MidoriView *view);

### midori_view_execute_script ()

    gboolean            midori_view_execute_script          (MidoriView *view,
                                                             const gchar *script,
                                                             gchar **exception);

### midori_view_fallback_extension ()

    const gchar *       midori_view_fallback_extension      (MidoriView *view,
                                                             const gchar *extension);

### midori_view_get_display_title ()

    const gchar *       midori_view_get_display_title       (MidoriView *view);

### midori_view_get_display_uri ()

    const gchar *       midori_view_get_display_uri         (MidoriView *view);

### midori_view_get_for_widget ()

    MidoriView *        midori_view_get_for_widget          (GtkWidget *web_view);

### midori_view_get_icon ()

    GdkPixbuf *         midori_view_get_icon                (MidoriView *view);

### midori_view_get_icon_uri ()

    const gchar *       midori_view_get_icon_uri            (MidoriView *view);

### midori_view_get_label_ellipsize ()

    PangoEllipsizeMode  midori_view_get_label_ellipsize     (MidoriView *view);

### midori_view_get_link_uri ()

    const gchar *       midori_view_get_link_uri            (MidoriView *view);

### midori_view_get_load_status ()

    MidoriLoadStatus    midori_view_get_load_status         (MidoriView *view);

### midori_view_get_next_page ()

    const gchar *       midori_view_get_next_page           (MidoriView *view);

### midori_view_get_previous_page ()

    const gchar *       midori_view_get_previous_page       (MidoriView *view);

### midori_view_get_progress ()

    gdouble             midori_view_get_progress            (MidoriView *view);

### midori_view_get_proxy_item ()

    KatzeItem *         midori_view_get_proxy_item          (MidoriView *view);

### midori_view_get_proxy_menu_item ()

    GtkWidget *         midori_view_get_proxy_menu_item     (MidoriView *view);

### midori_view_get_proxy_tab_label ()

    GtkWidget *         midori_view_get_proxy_tab_label     (MidoriView *view);

### midori_view_get_resources ()

    GList *             midori_view_get_resources           (MidoriView *view);

### midori_view_get_selected_text ()

    const gchar *       midori_view_get_selected_text       (MidoriView *view);

### midori_view_get_snapshot ()

    GdkPixbuf *         midori_view_get_snapshot            (MidoriView *view,
                                                             gint width,
                                                             gint height);

### midori_view_get_tab ()

    GraniteWidgetsTab * midori_view_get_tab                 (MidoriView *view);

### midori_view_get_tab_menu ()

    GtkWidget *         midori_view_get_tab_menu            (MidoriView *view);

### midori_view_get_tls_info ()

    gboolean            midori_view_get_tls_info            (MidoriView *view,
                                                             void *request,
                                                             GTlsCertificate **tls_cert,
                                                             GTlsCertificateFlags *tls_flags,
                                                             gchar **hostname);

### midori_view_get_web_view ()

    GtkWidget *         midori_view_get_web_view            (MidoriView *view);

### midori_view_get_zoom_level ()

    gfloat              midori_view_get_zoom_level          (MidoriView *view);

### midori_view_go_back ()

    void                midori_view_go_back                 (MidoriView *view);

### midori_view_go_back_or_forward ()

    void                midori_view_go_back_or_forward      (MidoriView *view,
                                                             gint steps);

### midori_view_go_forward ()

    void                midori_view_go_forward              (MidoriView *view);

### midori_view_has_selection ()

    gboolean            midori_view_has_selection           (MidoriView *view);

### midori_view_is_blank ()

    gboolean            midori_view_is_blank                (MidoriView *view);

### midori_view_list_plugins ()

    void                midori_view_list_plugins            (MidoriView *view,
                                                             GString *markup,
                                                             gboolean html);

### midori_view_list_versions ()

    void                midori_view_list_versions           (GString *markup,
                                                             gboolean html);

### midori_view_new_with_item ()

    GtkWidget *         midori_view_new_with_item           (KatzeItem *item,
                                                             MidoriWebSettings *settings);

### midori_view_new_with_title ()

    GtkWidget *         midori_view_new_with_title          (const gchar *title,
                                                             MidoriWebSettings *settings,
                                                             gboolean append);

### midori_view_populate_popup ()

    void                midori_view_populate_popup          (MidoriView *view,
                                                             GtkWidget *menu,
                                                             gboolean manual);

### midori_view_print ()

    void                midori_view_print                   (MidoriView *view);

### midori_view_reload ()

    void                midori_view_reload                  (MidoriView *view,
                                                             gboolean from_cache);

### midori_view_save_source ()

    gchar *             midori_view_save_source             (MidoriView *view,
                                                             const gchar *uri,
                                                             const gchar *outfile);

### midori_view_search_text ()

    void                midori_view_search_text             (MidoriView *view,
                                                             const gchar *text,
                                                             gboolean case_sensitive,
                                                             gboolean forward);

### midori_view_set_colors ()

    void                midori_view_set_colors              (MidoriView *view,
                                                             GdkColor *fg_color,
                                                             GdkColor *bg_color);

### midori_view_set_html ()

    void                midori_view_set_html                (MidoriView *view,
                                                             const gchar *data,
                                                             const gchar *uri,
                                                             void *web_frame);

### midori_view_set_overlay_text ()

    void                midori_view_set_overlay_text        (MidoriView *view,
                                                             const gchar *text);

### midori_view_set_settings ()

    void                midori_view_set_settings            (MidoriView *view,
                                                             MidoriWebSettings *settings);

### midori_view_set_tab ()

    void                midori_view_set_tab                 (MidoriView *view,
                                                             GraniteWidgetsTab *tab);

### midori_view_set_uri ()

    void                midori_view_set_uri                 (MidoriView *view,
                                                             const gchar *uri);

### midori_view_set_zoom_level ()

    void                midori_view_set_zoom_level          (MidoriView *view,
                                                             gfloat zoom_level);