File: tepl-code-comment-view.h

package info (click to toggle)
libgedit-tepl 6.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,936 kB
  • sloc: ansic: 18,685; xml: 759; sh: 20; makefile: 9
file content (66 lines) | stat: -rw-r--r-- 2,317 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* SPDX-FileCopyrightText: 2025 - Sébastien Wilmet
 * SPDX-License-Identifier: LGPL-3.0-or-later
 */

#ifndef TEPL_CODE_COMMENT_VIEW_H
#define TEPL_CODE_COMMENT_VIEW_H

#if !defined (TEPL_H_INSIDE) && !defined (TEPL_COMPILATION)
#error "Only <tepl/tepl.h> can be included directly."
#endif

#include <gtksourceview/gtksource.h>

G_BEGIN_DECLS

#define TEPL_TYPE_CODE_COMMENT_VIEW             (tepl_code_comment_view_get_type ())
#define TEPL_CODE_COMMENT_VIEW(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), TEPL_TYPE_CODE_COMMENT_VIEW, TeplCodeCommentView))
#define TEPL_CODE_COMMENT_VIEW_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), TEPL_TYPE_CODE_COMMENT_VIEW, TeplCodeCommentViewClass))
#define TEPL_IS_CODE_COMMENT_VIEW(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TEPL_TYPE_CODE_COMMENT_VIEW))
#define TEPL_IS_CODE_COMMENT_VIEW_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), TEPL_TYPE_CODE_COMMENT_VIEW))
#define TEPL_CODE_COMMENT_VIEW_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), TEPL_TYPE_CODE_COMMENT_VIEW, TeplCodeCommentViewClass))

typedef struct _TeplCodeCommentView         TeplCodeCommentView;
typedef struct _TeplCodeCommentViewClass    TeplCodeCommentViewClass;
typedef struct _TeplCodeCommentViewPrivate  TeplCodeCommentViewPrivate;

struct _TeplCodeCommentView
{
	GObject parent;

	TeplCodeCommentViewPrivate *priv;
};

struct _TeplCodeCommentViewClass
{
	GObjectClass parent_class;

	gpointer padding[12];
};

G_MODULE_EXPORT
GType			tepl_code_comment_view_get_type				(void);

G_MODULE_EXPORT
TeplCodeCommentView *	tepl_code_comment_view_new				(GtkSourceView *view);

G_MODULE_EXPORT
GtkSourceView *		tepl_code_comment_view_get_source_view			(TeplCodeCommentView *code_comment_view);

G_MODULE_EXPORT
gboolean		tepl_code_comment_view_code_comment_is_supported	(TeplCodeCommentView *code_comment_view);

G_MODULE_EXPORT
void			tepl_code_comment_view_comment_lines			(TeplCodeCommentView *code_comment_view,
										 const GtkTextIter   *start_iter,
										 const GtkTextIter   *end_iter);

G_MODULE_EXPORT
void			tepl_code_comment_view_comment_selected_lines		(TeplCodeCommentView *code_comment_view);

G_MODULE_EXPORT
void			tepl_code_comment_view_uncomment_selection		(TeplCodeCommentView *code_comment_view);

G_END_DECLS

#endif /* TEPL_CODE_COMMENT_VIEW_H */