Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
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 /* --- type macros --- */
8 #define GXK_TYPE_POLYGON (gxk_polygon_get_type ())
9 #define GXK_POLYGON(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GXK_TYPE_POLYGON, GxkPolygon))
10 #define GXK_POLYGON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXK_TYPE_POLYGON, GxkPolygonClass))
11 #define GXK_IS_POLYGON(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GXK_TYPE_POLYGON))
12 #define GXK_IS_POLYGON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXK_TYPE_POLYGON))
13 #define GXK_POLYGON_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), GXK_TYPE_POLYGON, GxkPolygonClass))
14 
15 
16 /* --- structures --- */
17 typedef struct {
18  gfloat x1, y1, x2, y2;
19  GtkShadowType draw_type;
21 typedef struct {
22  gfloat xc, yc, xr, yr, sa, ea;
23  GtkShadowType draw_type;
25 typedef struct {
26  GtkWidget parent_instance;
27  guint n_lines;
28  GxkPolygonLine *lines;
29  guint n_arcs;
30  GxkPolygonArc *arcs;
31  guint request_length;
32 } GxkPolygon;
33 typedef struct {
34  GtkWidgetClass parent_class;
36 typedef struct {
37  guint n_lines;
38  GxkPolygonLine *lines;
39  guint n_arcs;
40  GxkPolygonArc *arcs;
41  guint length;
43 
44 
45 /* --- prototypes --- */
46 GType gxk_polygon_get_type (void);
47 gpointer gxk_polygon_new (GxkPolygonGraph *polygon_graph);
49  guint n_lines,
50  GxkPolygonLine *lines);
52  guint n_arcs,
53  GxkPolygonArc *arcs);
55  GxkPolygonGraph *polygon_graph);
57  guint length);
58 extern GxkPolygonGraph gxk_polygon_power;
59 extern GxkPolygonGraph gxk_polygon_stop;
60 extern GxkPolygonGraph gxk_polygon_pause;
61 extern GxkPolygonGraph gxk_polygon_first;
62 extern GxkPolygonGraph gxk_polygon_previous;
63 extern GxkPolygonGraph gxk_polygon_rewind;
64 extern GxkPolygonGraph gxk_polygon_play;
65 extern GxkPolygonGraph gxk_polygon_forward;
66 extern GxkPolygonGraph gxk_polygon_next;
67 extern GxkPolygonGraph gxk_polygon_last;
68 
69 #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:21
Definition: gxkpolygon.hh:25
Definition: gxkpolygon.hh:36
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:33
void gxk_polygon_set_graph(GxkPolygon *self, GxkPolygonGraph *polygon_graph)
Definition: gxkpolygon.cc:153
Definition: gxkpolygon.hh:17