1
/* infinote - Collaborative notetaking application
2
* Copyright (C) 2007-2010 Armin Burgmeier <armin@arbur.net>
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2 of the License, or (at your option) any later version.
9
* This library 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 GNU
12
* Lesser General Public License for more details.
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this library; if not, write to the Free
16
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
#ifndef __INF_TEXT_GTK_VIEWPORT_H__
20
#define __INF_TEXT_GTK_VIEWPORT_H__
22
#include <libinftext/inf-text-user.h>
23
#include <libinfinity/common/inf-user-table.h>
26
#include <glib-object.h>
30
#define INF_TEXT_GTK_TYPE_VIEWPORT (inf_text_gtk_viewport_get_type())
31
#define INF_TEXT_GTK_VIEWPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), INF_TEXT_GTK_TYPE_VIEWPORT, InfTextGtkViewport))
32
#define INF_TEXT_GTK_VIEWPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), INF_TEXT_GTK_TYPE_VIEWPORT, InfTextGtkViewportClass))
33
#define INF_TEXT_GTK_IS_VIEWPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), INF_TEXT_GTK_TYPE_VIEWPORT))
34
#define INF_TEXT_GTK_IS_VIEWPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), INF_TEXT_GTK_TYPE_VIEWPORT))
35
#define INF_TEXT_GTK_VIEWPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), INF_TEXT_GTK_TYPE_VIEWPORT, InfTextGtkViewportClass))
37
typedef struct _InfTextGtkViewport InfTextGtkViewport;
38
typedef struct _InfTextGtkViewportClass InfTextGtkViewportClass;
40
struct _InfTextGtkViewportClass {
41
GObjectClass parent_class;
44
struct _InfTextGtkViewport {
49
inf_text_gtk_viewport_get_type(void) G_GNUC_CONST;
52
inf_text_gtk_viewport_new(GtkScrolledWindow* scroll,
53
InfUserTable* user_table);
56
inf_text_gtk_viewport_get_scrolled_window(InfTextGtkViewport* viewport);
59
inf_text_gtk_viewport_get_user_table(InfTextGtkViewport* viewport);
62
inf_text_gtk_viewport_set_active_user(InfTextGtkViewport* viewport,
66
inf_text_gtk_viewport_get_active_user(InfTextGtkViewport* viewport);
69
inf_text_gtk_viewport_set_show_user_markers(InfTextGtkViewport* viewport,
74
#endif /* __INF_TEXT_GTK_VIEWPORT_H__ */
76
/* vim:set et sw=2 ts=2: */