66 */
77
88public interface Gala.Background.Background : Object , Gdk .Paintable {
9+ public struct ColorInformation {
10+ double average_red;
11+ double average_green;
12+ double average_blue;
13+ double mean_luminance;
14+ double luminance_variance;
15+ double mean_acutance;
16+ }
17+
918 public static Background get_for_color (Gdk .RGBA color ) {
1019 return new SolidColor (color);
1120 }
@@ -26,7 +35,7 @@ public interface Gala.Background.Background : Object, Gdk.Paintable {
2635 return new DimBackground (other);
2736 }
2837
29- public abstract Utils . ColorInformation ? get_color_information (int height );
38+ public abstract ColorInformation ? get_color_information (int height );
3039
3140 private class SolidColor : Object , Gdk .Paintable , Background {
3241 public Gdk . RGBA color { get ; construct; }
@@ -35,7 +44,7 @@ public interface Gala.Background.Background : Object, Gdk.Paintable {
3544 Object (color: color);
3645 }
3746
38- public Utils . ColorInformation ? get_color_information (int height ) {
47+ public ColorInformation ? get_color_information (int height ) {
3948 return null ;
4049 }
4150
@@ -60,7 +69,7 @@ public interface Gala.Background.Background : Object, Gdk.Paintable {
6069 Object (texture: texture);
6170 }
6271
63- public Utils . ColorInformation ? get_color_information (int height ) {
72+ public ColorInformation ? get_color_information (int height ) {
6473 var info = texture. get_color_information (height);
6574 if (info == null ) {
6675 return null ;
@@ -108,7 +117,7 @@ public interface Gala.Background.Background : Object, Gdk.Paintable {
108117 Object (texture: texture);
109118 }
110119
111- public Utils . ColorInformation ? get_color_information (int height ) {
120+ public ColorInformation ? get_color_information (int height ) {
112121 return Utils . get_background_color_information (texture, height);
113122 }
114123
0 commit comments