dh-assistant-view.h 1.71 KB
Newer Older
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
2
/* SPDX-FileCopyrightText: 2008 Sven Herzberg
3
 * SPDX-License-Identifier: GPL-3.0-or-later
4 5
 */

6 7
#ifndef DH_ASSISTANT_VIEW_H
#define DH_ASSISTANT_VIEW_H
8

Carlos Garcia Campos's avatar
Carlos Garcia Campos committed
9
#include <webkit2/webkit2.h>
10
#include <devhelp/dh-link.h>
11 12 13 14

G_BEGIN_DECLS

#define DH_TYPE_ASSISTANT_VIEW         (dh_assistant_view_get_type ())
15 16 17 18 19 20 21 22 23 24 25 26
#define DH_ASSISTANT_VIEW(i)           (G_TYPE_CHECK_INSTANCE_CAST ((i), DH_TYPE_ASSISTANT_VIEW, DhAssistantView))
#define DH_ASSISTANT_VIEW_CLASS(c)     (G_TYPE_CHECK_CLASS_CAST ((c), DH_TYPE_ASSISTANT_VIEW, DhAssistantViewClass))
#define DH_IS_ASSISTANT_VIEW(i)        (G_TYPE_CHECK_INSTANCE_TYPE ((i), DH_TYPE_ASSISTANT_VIEW))
#define DH_IS_ASSISTANT_VIEW_CLASS(c)  (G_TYPE_CHECK_CLASS_TYPE ((c), DH_ASSISTANT_VIEW))
#define DH_ASSISTANT_VIEW_GET_CLASS(i) (G_TYPE_INSTANCE_GET_CLASS ((i), DH_TYPE_ASSISTANT_VIEW, DhAssistantView))

typedef struct _DhAssistantView      DhAssistantView;
typedef struct _DhAssistantViewClass DhAssistantViewClass;

struct _DhAssistantView {
        WebKitWebView parent_instance;
};
27 28 29

struct _DhAssistantViewClass {
        WebKitWebViewClass parent_class;
30 31 32

        /* Padding for future expansion */
        gpointer padding[12];
33 34
};

35 36 37 38 39 40 41 42 43 44
GType           dh_assistant_view_get_type              (void) G_GNUC_CONST;

GtkWidget *     dh_assistant_view_new                   (void);

gboolean        dh_assistant_view_set_link              (DhAssistantView *view,
                                                         DhLink          *link);

gboolean        dh_assistant_view_search                (DhAssistantView *view,
                                                         const gchar     *str);

45
G_END_DECLS
46

47
#endif /* DH_ASSISTANT_VIEW_H */