Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
gxkled.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_LED_H__
3 #define __GXK_LED_H__
4 
5 #include "gxkutils.hh"
6 
7 /* --- type macros --- */
8 #define GXK_TYPE_LED (gxk_led_get_type ())
9 #define GXK_LED(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GXK_TYPE_LED, GxkLed))
10 #define GXK_LED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXK_TYPE_LED, GxkLedClass))
11 #define GXK_IS_LED(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GXK_TYPE_LED))
12 #define GXK_IS_LED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXK_TYPE_LED))
13 #define GXK_LED_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), GXK_TYPE_LED, GxkLedClass))
14 
15 #define GXK_LED_OFF (0x505050)
16 #define GXK_LED_MAGENTA (0xff50ff)
17 #define GXK_LED_RED (0xff5050)
18 #define GXK_LED_YELLOW (0xffff50)
19 #define GXK_LED_GREEN (0x50ff50)
20 #define GXK_LED_CYAN (0x50ffff)
21 #define GXK_LED_BLUE (0x5050ff)
22 
23 
24 /* --- structures --- */
25 typedef struct {
26  GtkWidget parent_instance;
27  guint color;
28  guint border_width;
29  /* rendering data */
30  guint radius;
31  GdkPixbuf *pixbuf;
32 } GxkLed;
33 typedef struct {
34  GtkWidgetClass parent_class;
35 } GxkLedClass;
36 
37 
38 /* --- prototypes --- */
39 GType gxk_led_get_type (void);
40 gpointer gxk_led_new (guint color);
41 void gxk_led_set_color (GxkLed *self,
42  guint rgb_colors);
43 void gxk_led_set_border_width (GxkLed *self,
44  guint border_width);
45 
46 
47 #endif /* __GXK_LED_H__ */
Definition: gxkled.hh:25
void gxk_led_set_color(GxkLed *self, guint rgb_colors)
Definition: gxkled.cc:116
Definition: gxkled.hh:33
gpointer gxk_led_new(guint color)
Definition: gxkled.cc:102
const char * color(Colors acolor)