Example #1
0
 internal GimpColorButton(string title, int width, int height,
     GimpRGB color, ColorAreaType type)
     : base(gimp_color_button_new(title, width, height, ref color, type))
 {
 }
Example #2
0
 public GimpColorButton(string title, int width, int height,
     RGB color, ColorAreaType type)
     : this(title, width, height, color.GimpRGB, type)
 {
 }
Example #3
0
 public GimpColorButton(string title, int width, int height,
     Variable<RGB> variable, ColorAreaType type)
     : this(title, width, height, variable.Value, type)
 {
     ColorChanged += delegate {variable.Value = Color;};
 }
Example #4
0
 static extern IntPtr gimp_color_button_new(string title,
     int width,
     int height,
     ref GimpRGB color,
     ColorAreaType type);
Example #5
0
 static extern void gimp_color_button_set_type(IntPtr button,
     ColorAreaType type);
Example #6
0
 public GimpColorButton(string title, int width, int height,
                        Variable <RGB> variable, ColorAreaType type) :
     this(title, width, height, variable.Value, type)
 {
     ColorChanged += delegate { variable.Value = Color; };
 }
Example #7
0
 public GimpColorButton(string title, int width, int height,
                        RGB color, ColorAreaType type) :
     this(title, width, height, color.GimpRGB, type)
 {
 }
Example #8
0
 internal GimpColorButton(string title, int width, int height,
                          GimpRGB color, ColorAreaType type) :
     base(gimp_color_button_new(title, width, height, ref color, type))
 {
 }
Example #9
0
 extern static void gimp_color_button_set_type(IntPtr button,
                                               ColorAreaType type);
Example #10
0
 extern static IntPtr gimp_color_button_new(string title,
                                            int width,
                                            int height,
                                            ref GimpRGB color,
                                            ColorAreaType type);