|
Packit |
116408 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
|
|
Packit |
116408 |
/*
|
|
Packit |
116408 |
* Copyright (C) 2018 Sébastien Wilmet <swilmet@gnome.org>
|
|
Packit |
116408 |
*
|
|
Packit |
116408 |
* This program is free software; you can redistribute it and/or
|
|
Packit |
116408 |
* modify it under the terms of the GNU General Public License as
|
|
Packit |
116408 |
* published by the Free Software Foundation; either version 2 of the
|
|
Packit |
116408 |
* License, or (at your option) any later version.
|
|
Packit |
116408 |
*
|
|
Packit |
116408 |
* This program is distributed in the hope that it will be useful,
|
|
Packit |
116408 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
116408 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
116408 |
* General Public License for more details.
|
|
Packit |
116408 |
*
|
|
Packit |
116408 |
* You should have received a copy of the GNU General Public License
|
|
Packit |
116408 |
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
116408 |
*/
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#ifndef DH_WEB_VIEW_H
|
|
Packit |
116408 |
#define DH_WEB_VIEW_H
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#include <webkit2/webkit2.h>
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_BEGIN_DECLS
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#define DH_TYPE_WEB_VIEW (dh_web_view_get_type ())
|
|
Packit |
116408 |
#define DH_WEB_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DH_TYPE_WEB_VIEW, DhWebView))
|
|
Packit |
116408 |
#define DH_WEB_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DH_TYPE_WEB_VIEW, DhWebViewClass))
|
|
Packit |
116408 |
#define DH_IS_WEB_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DH_TYPE_WEB_VIEW))
|
|
Packit |
116408 |
#define DH_IS_WEB_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DH_TYPE_WEB_VIEW))
|
|
Packit |
116408 |
#define DH_WEB_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DH_TYPE_WEB_VIEW, DhWebViewClass))
|
|
Packit |
116408 |
|
|
Packit |
116408 |
typedef struct _DhWebView DhWebView;
|
|
Packit |
116408 |
typedef struct _DhWebViewClass DhWebViewClass;
|
|
Packit |
116408 |
typedef struct _DhWebViewPrivate DhWebViewPrivate;
|
|
Packit |
116408 |
|
|
Packit |
116408 |
struct _DhWebView {
|
|
Packit |
116408 |
WebKitWebView parent;
|
|
Packit |
116408 |
|
|
Packit |
116408 |
DhWebViewPrivate *priv;
|
|
Packit |
116408 |
};
|
|
Packit |
116408 |
|
|
Packit |
116408 |
struct _DhWebViewClass {
|
|
Packit |
116408 |
WebKitWebViewClass parent_class;
|
|
Packit |
116408 |
|
|
Packit |
116408 |
/* Padding for future expansion */
|
|
Packit |
116408 |
gpointer padding[12];
|
|
Packit |
116408 |
};
|
|
Packit |
116408 |
|
|
Packit |
116408 |
GType dh_web_view_get_type (void);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
DhWebView * dh_web_view_new (void);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
const gchar * dh_web_view_get_devhelp_title (DhWebView *view);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
void dh_web_view_set_search_text (DhWebView *view,
|
|
Packit |
116408 |
const gchar *search_text);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
void dh_web_view_search_next (DhWebView *view);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
void dh_web_view_search_previous (DhWebView *view);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
gboolean dh_web_view_can_zoom_in (DhWebView *view);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
gboolean dh_web_view_can_zoom_out (DhWebView *view);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
gboolean dh_web_view_can_reset_zoom (DhWebView *view);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
void dh_web_view_zoom_in (DhWebView *view);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
void dh_web_view_zoom_out (DhWebView *view);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
void dh_web_view_reset_zoom (DhWebView *view);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_END_DECLS
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#endif /* DH_WEB_VIEW_H */
|