BEAST/BSE - Better Audio System and Sound Engine  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gxkpolygon.hh
Go to the documentation of this file.
1  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
2 #ifndef __GXK_POLYGON_H__
3 #define __GXK_POLYGON_H__
4 
5 #include "gxkutils.hh"
6 
7 G_BEGIN_DECLS
8 
9 /* --- type macros --- */
10 #define GXK_TYPE_POLYGON (gxk_polygon_get_type ())
11 #define GXK_POLYGON(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GXK_TYPE_POLYGON, GxkPolygon))
12 #define GXK_POLYGON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXK_TYPE_POLYGON, GxkPolygonClass))
13 #define GXK_IS_POLYGON(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GXK_TYPE_POLYGON))
14 #define GXK_IS_POLYGON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXK_TYPE_POLYGON))
15 #define GXK_POLYGON_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), GXK_TYPE_POLYGON, GxkPolygonClass))
16 
17 
18 /* --- structures --- */
19 typedef struct {
20  gfloat x1, y1, x2, y2;
21  GtkShadowType draw_type;
23 typedef struct {
24  gfloat xc, yc, xr, yr, sa, ea;
25  GtkShadowType draw_type;
27 typedef struct {
28  GtkWidget parent_instance;
29  guint n_lines;
30  GxkPolygonLine *lines;
31  guint n_arcs;
32  GxkPolygonArc *arcs;
33  guint request_length;
34 } GxkPolygon;
35 typedef struct {
36  GtkWidgetClass parent_class;
38 typedef struct {
39  guint n_lines;
40  GxkPolygonLine *lines;
41  guint n_arcs;
42  GxkPolygonArc *arcs;
43  guint length;
45 
46 
47 /* --- prototypes --- */
48 GType gxk_polygon_get_type (void);
49 gpointer gxk_polygon_new (GxkPolygonGraph *polygon_graph);
51  guint n_lines,
52  GxkPolygonLine *lines);
54  guint n_arcs,
55  GxkPolygonArc *arcs);
57  GxkPolygonGraph *polygon_graph);
59  guint length);
60 extern GxkPolygonGraph gxk_polygon_power;
61 extern GxkPolygonGraph gxk_polygon_stop;
62 extern GxkPolygonGraph gxk_polygon_pause;
63 extern GxkPolygonGraph gxk_polygon_first;
64 extern GxkPolygonGraph gxk_polygon_previous;
65 extern GxkPolygonGraph gxk_polygon_rewind;
66 extern GxkPolygonGraph gxk_polygon_play;
67 extern GxkPolygonGraph gxk_polygon_forward;
68 extern GxkPolygonGraph gxk_polygon_next;
69 extern GxkPolygonGraph gxk_polygon_last;
70 
71 G_END_DECLS
72 
73 #endif /* __GXK_POLYGON_H__ */
gpointer gxk_polygon_new(GxkPolygonGraph *polygon_graph)
Definition: gxkpolygon.cc:92
void gxk_polygon_set_lines(GxkPolygon *self, guint n_lines, GxkPolygonLine *lines)
Definition: gxkpolygon.cc:108
Definition: gxkpolygon.hh:23
Definition: gxkpolygon.hh:27
Definition: gxkpolygon.hh:38
y1
void gxk_polygon_set_length(GxkPolygon *self, guint length)
Definition: gxkpolygon.cc:179
void gxk_polygon_set_arcs(GxkPolygon *self, guint n_arcs, GxkPolygonArc *arcs)
Definition: gxkpolygon.cc:131
Definition: gxkpolygon.hh:35
void gxk_polygon_set_graph(GxkPolygon *self, GxkPolygonGraph *polygon_graph)
Definition: gxkpolygon.cc:153
Definition: gxkpolygon.hh:19