1 /*
2  * pluma-statusbar.h
3  * This file is part of pluma
4  *
5  * Copyright (C) 2005 - Paolo Borelli
6  * Copyright (C) 2012-2021 MATE Developers
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor,
21  * Boston, MA 02110-1301, USA.
22  */
23 
24 /*
25  * Modified by the pluma Team, 2005. See the AUTHORS file for a
26  * list of people on the pluma Team.
27  * See the ChangeLog files for a list of changes.
28  */
29 
30 #ifndef PLUMA_STATUSBAR_H
31 #define PLUMA_STATUSBAR_H
32 
33 #include <gtk/gtk.h>
34 #include <pluma/pluma-window.h>
35 
36 G_BEGIN_DECLS
37 
38 #define PLUMA_TYPE_STATUSBAR		(pluma_statusbar_get_type ())
39 #define PLUMA_STATUSBAR(o)		(G_TYPE_CHECK_INSTANCE_CAST ((o), PLUMA_TYPE_STATUSBAR, PlumaStatusbar))
40 #define PLUMA_STATUSBAR_CLASS(k)	(G_TYPE_CHECK_CLASS_CAST((k), PLUMA_TYPE_STATUSBAR, PlumaStatusbarClass))
41 #define PLUMA_IS_STATUSBAR(o)		(G_TYPE_CHECK_INSTANCE_TYPE ((o), PLUMA_TYPE_STATUSBAR))
42 #define PLUMA_IS_STATUSBAR_CLASS(k)	(G_TYPE_CHECK_CLASS_TYPE ((k), PLUMA_TYPE_STATUSBAR))
43 #define PLUMA_STATUSBAR_GET_CLASS(o)	(G_TYPE_INSTANCE_GET_CLASS ((o), PLUMA_TYPE_STATUSBAR, PlumaStatusbarClass))
44 
45 typedef struct _PlumaStatusbar		PlumaStatusbar;
46 typedef struct _PlumaStatusbarPrivate	PlumaStatusbarPrivate;
47 typedef struct _PlumaStatusbarClass	PlumaStatusbarClass;
48 
49 struct _PlumaStatusbar
50 {
51         GtkStatusbar parent;
52 
53 	/* <private/> */
54         PlumaStatusbarPrivate *priv;
55 };
56 
57 struct _PlumaStatusbarClass
58 {
59         GtkStatusbarClass parent_class;
60 };
61 
62 GType		 pluma_statusbar_get_type		(void) G_GNUC_CONST;
63 
64 GtkWidget	*pluma_statusbar_new			(void);
65 
66 void		 pluma_statusbar_set_window_state	(PlumaStatusbar   *statusbar,
67 							 PlumaWindowState  state,
68 							 gint              num_of_errors);
69 
70 void		 pluma_statusbar_set_overwrite		(PlumaStatusbar   *statusbar,
71 							 gboolean          overwrite);
72 
73 void		 pluma_statusbar_set_cursor_position	(PlumaStatusbar   *statusbar,
74 							 gint              line,
75 							 gint              col);
76 
77 void		 pluma_statusbar_clear_overwrite 	(PlumaStatusbar   *statusbar);
78 
79 void		 pluma_statusbar_flash_message		(PlumaStatusbar   *statusbar,
80 							 guint             context_id,
81 							 const gchar      *format,
82 							 ...) G_GNUC_PRINTF(3, 4);
83 
84 G_END_DECLS
85 
86 #endif
87