1 /*
2  * emblem-effect: Draws an emblem on top of an actor
3  *
4  * Copyright 2012-2020 Stephan Haller <nomad@froevel.de>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301, USA.
20  *
21  *
22  */
23 
24 #ifndef __LIBXFDASHBOARD_EMBLEM_EFFECT__
25 #define __LIBXFDASHBOARD_EMBLEM_EFFECT__
26 
27 #if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
28 #error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
29 #endif
30 
31 #include <clutter/clutter.h>
32 
33 #include <libxfdashboard/types.h>
34 
35 G_BEGIN_DECLS
36 
37 #define XFDASHBOARD_TYPE_EMBLEM_EFFECT				(xfdashboard_emblem_effect_get_type())
38 #define XFDASHBOARD_EMBLEM_EFFECT(obj)				(G_TYPE_CHECK_INSTANCE_CAST((obj), XFDASHBOARD_TYPE_EMBLEM_EFFECT, XfdashboardEmblemEffect))
39 #define XFDASHBOARD_IS_EMBLEM_EFFECT(obj)			(G_TYPE_CHECK_INSTANCE_TYPE((obj), XFDASHBOARD_TYPE_EMBLEM_EFFECT))
40 #define XFDASHBOARD_EMBLEM_EFFECT_CLASS(klass)		(G_TYPE_CHECK_CLASS_CAST((klass), XFDASHBOARD_TYPE_EMBLEM_EFFECT, XfdashboardEmblemEffectClass))
41 #define XFDASHBOARD_IS_EMBLEM_EFFECT_CLASS(klass)	(G_TYPE_CHECK_CLASS_TYPE((klass), XFDASHBOARD_TYPE_EMBLEM_EFFECT))
42 #define XFDASHBOARD_EMBLEM_EFFECT_GET_CLASS(obj)	(G_TYPE_INSTANCE_GET_CLASS((obj), XFDASHBOARD_TYPE_EMBLEM_EFFECT, XfdashboardEmblemEffectClass))
43 
44 typedef struct _XfdashboardEmblemEffect			XfdashboardEmblemEffect;
45 typedef struct _XfdashboardEmblemEffectClass		XfdashboardEmblemEffectClass;
46 typedef struct _XfdashboardEmblemEffectPrivate		XfdashboardEmblemEffectPrivate;
47 
48 struct _XfdashboardEmblemEffect
49 {
50 	/*< private >*/
51 	/* Parent instance */
52 	ClutterEffect						parent_instance;
53 
54 	/* Private structure */
55 	XfdashboardEmblemEffectPrivate		*priv;
56 };
57 
58 struct _XfdashboardEmblemEffectClass
59 {
60 	/*< private >*/
61 	/* Parent class */
62 	ClutterEffectClass					parent_class;
63 };
64 
65 /* Public API */
66 GType xfdashboard_emblem_effect_get_type(void) G_GNUC_CONST;
67 
68 ClutterEffect* xfdashboard_emblem_effect_new(void);
69 
70 const gchar* xfdashboard_emblem_effect_get_icon_name(XfdashboardEmblemEffect *self);
71 void xfdashboard_emblem_effect_set_icon_name(XfdashboardEmblemEffect *self, const gchar *inIconName);
72 
73 gint xfdashboard_emblem_effect_get_icon_size(XfdashboardEmblemEffect *self);
74 void xfdashboard_emblem_effect_set_icon_size(XfdashboardEmblemEffect *self, const gint inSize);
75 
76 gfloat xfdashboard_emblem_effect_get_padding(XfdashboardEmblemEffect *self);
77 void xfdashboard_emblem_effect_set_padding(XfdashboardEmblemEffect *self, const gfloat inPadding);
78 
79 gfloat xfdashboard_emblem_effect_get_x_align(XfdashboardEmblemEffect *self);
80 void xfdashboard_emblem_effect_set_x_align(XfdashboardEmblemEffect *self, const gfloat inAlign);
81 
82 gfloat xfdashboard_emblem_effect_get_y_align(XfdashboardEmblemEffect *self);
83 void xfdashboard_emblem_effect_set_y_align(XfdashboardEmblemEffect *self, const gfloat inAlign);
84 
85 XfdashboardAnchorPoint xfdashboard_emblem_effect_get_anchor_point(XfdashboardEmblemEffect *self);
86 void xfdashboard_emblem_effect_set_anchor_point(XfdashboardEmblemEffect *self, const XfdashboardAnchorPoint inAnchorPoint);
87 
88 G_END_DECLS
89 
90 #endif	/* __LIBXFDASHBOARD_EMBLEM_EFFECT__ */
91