2
* Copyright (C) 2009 LI Daobing <lidaobing@gmail.com>
4
* ChmSee is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2, or (at your option)
9
* ChmSee is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with ChmSee; see the file COPYING. If not, write to
16
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
* Boston, MA 02110-1301, USA.
20
#ifndef __CHMSEE_IHTML_H__
21
#define __CHMSEE_IHTML_H__
23
#include <glib-object.h>
26
#define CHMSEE_TYPE_IHTML (chmsee_ihtml_get_type())
27
#define CHMSEE_IHTML(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), CHMSEE_TYPE_IHTML, ChmseeIhtml))
28
#define CHMSEE_IS_IHTML(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), CHMSEE_TYPE_IHTML))
29
#define CHMSEE_IHTML_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE((inst), CHMSEE_TYPE_IHTML, ChmseeIhtmlInterface))
31
typedef struct _ChmseeIhtml ChmseeIhtml; /* dummy */
32
typedef struct _ChmseeIhtmlInterface ChmseeIhtmlInterface;
34
struct _ChmseeIhtmlInterface
36
GTypeInterface parent_iface;
38
const gchar* (*get_title) (ChmseeIhtml* self);
39
const gchar* (*get_location) (ChmseeIhtml* self);
40
gboolean (*can_go_back) (ChmseeIhtml* self);
41
gboolean (*can_go_forward) (ChmseeIhtml* self);
44
void (*open_uri) (ChmseeIhtml* self, const gchar* uri);
45
void (*copy_selection) (ChmseeIhtml* self);
46
void (*select_all) (ChmseeIhtml* self);
47
void (*go_back) (ChmseeIhtml* self);
48
void (*go_forward) (ChmseeIhtml* self);
49
void (*increase_size) (ChmseeIhtml* self);
50
void (*decrease_size) (ChmseeIhtml* self);
51
void (*reset_size) (ChmseeIhtml* self);
52
void (*set_variable_font) (ChmseeIhtml* self, const gchar* font);
53
void (*set_fixed_font) (ChmseeIhtml* self, const gchar* font);
54
void (*clear) (ChmseeIhtml* self);
55
void (*shutdown) (ChmseeIhtml* self);
57
GtkWidget* (*get_widget) (ChmseeIhtml* self);
60
GType chmsee_ihtml_get_type(void);
62
const gchar* chmsee_ihtml_get_title(ChmseeIhtml* self);
63
const gchar* chmsee_ihtml_get_location(ChmseeIhtml* self);
64
gboolean chmsee_ihtml_can_go_back(ChmseeIhtml* self);
65
gboolean chmsee_ihtml_can_go_forward(ChmseeIhtml* self);
67
void chmsee_ihtml_open_uri(ChmseeIhtml* self, const gchar* uri);
68
void chmsee_ihtml_copy_selection(ChmseeIhtml* self);
69
void chmsee_ihtml_select_all(ChmseeIhtml* self);
70
void chmsee_ihtml_go_back(ChmseeIhtml* self);
71
void chmsee_ihtml_go_forward(ChmseeIhtml* self);
72
void chmsee_ihtml_increase_size(ChmseeIhtml* self);
73
void chmsee_ihtml_reset_size(ChmseeIhtml* self);
74
void chmsee_ihtml_decrease_size(ChmseeIhtml* self);
75
void chmsee_ihtml_shutdown(ChmseeIhtml* self);
76
void chmsee_ihtml_set_variable_font(ChmseeIhtml* self, const gchar* font);
77
void chmsee_ihtml_set_fixed_font(ChmseeIhtml* self, const gchar* font);
78
void chmsee_ihtml_clear(ChmseeIhtml* self);
79
GtkWidget* chmsee_ihtml_get_widget(ChmseeIhtml* self);