2 * This file is a part of hildon
4 * Copyright (C) 2008 Nokia Corporation, all rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser Public License as published by
8 * the Free Software Foundation; version 2 of the license.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser Public License for more details.
17 #ifndef __HILDON_TEXT_VIEW_H__
18 #define __HILDON_TEXT_VIEW_H__
24 #define HILDON_TYPE_TEXT_VIEW \
25 (hildon_text_view_get_type())
27 #define HILDON_TEXT_VIEW(obj) \
28 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
29 HILDON_TYPE_TEXT_VIEW, HildonTextView))
31 #define HILDON_TEXT_VIEW_CLASS(klass) \
32 (G_TYPE_CHECK_CLASS_CAST ((klass), \
33 HILDON_TYPE_TEXT_VIEW, HildonTextViewClass))
35 #define HILDON_IS_TEXT_VIEW(obj) \
36 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_TEXT_VIEW))
38 #define HILDON_IS_TEXT_VIEW_CLASS(klass) \
39 (G_TYPE_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_TEXT_VIEW))
41 #define HILDON_TEXT_VIEW_GET_CLASS(obj) \
42 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
43 HILDON_TYPE_TEXT_VIEW, HildonTextViewClass))
45 typedef struct _HildonTextView HildonTextView;
47 typedef struct _HildonTextViewClass HildonTextViewClass;
49 struct _HildonTextViewClass
51 GtkTextViewClass parent_class;
54 struct _HildonTextView
61 hildon_text_view_get_type (void) G_GNUC_CONST;
64 hildon_text_view_new (void);
66 #ifndef HILDON_DISABLE_DEPRECATED
68 hildon_text_view_set_buffer (HildonTextView *text_view,
69 GtkTextBuffer *buffer);
72 hildon_text_view_get_buffer (HildonTextView *text_view);
75 hildon_text_view_set_placeholder (HildonTextView *text_view,
81 #endif /* __HILDON_TEXT_VIEW_H__ */