@@ -48,35 +48,41 @@ public class SliceLayer : GLib.Object {
4848 public string font {get ; private set ; default = " " ;}
4949 public int width {get ; private set ; default = 0 ;}
5050 public int height {get ; private set ; default = 0 ;}
51- public int position {get ; private set ; default = 0 ;}
51+ public int x {get ; private set ; default = 0 ;}
52+ public int y {get ; private set ; default = 0 ;}
5253 public Color color {get ; private set ; default = new Color ();}
5354
5455 // ///////////////////////////////////////////////////////////////////
5556 // / C'tor, initializes all members of the layer.
5657 // ///////////////////////////////////////////////////////////////////
5758
58- public SliceLayer.file (string icon_file , int icon_size , bool colorize , Visibility visibility ) {
59+ public SliceLayer.file (string icon_file , int icon_size , int x , int y , bool colorize , Visibility visibility ) {
5960 this . layer_type = Type . FILE ;
6061 this . icon_file = icon_file;
6162 this . colorize = colorize;
6263 this . icon_size = icon_size;
64+ this . x = x;
65+ this . y = y;
6366 this . visibility = visibility;
6467 }
6568
66- public SliceLayer.icon (string icon_file , int icon_size , bool colorize , Visibility visibility ) {
69+ public SliceLayer.icon (string icon_file , int icon_size , int x , int y , bool colorize , Visibility visibility ) {
6770 this . layer_type = Type . ICON ;
6871 this . icon_file = icon_file;
6972 this . colorize = colorize;
7073 this . icon_size = icon_size;
74+ this . x = x;
75+ this . y = y;
7176 this . visibility = visibility;
7277 }
7378
74- public SliceLayer.caption (string font , int width , int height , int position , Color color , bool colorize , Visibility visibility ) {
79+ public SliceLayer.caption (string font , int width , int height , int x , int y , Color color , bool colorize , Visibility visibility ) {
7580 this . layer_type = Type . CAPTION ;
7681 this . font = font;
7782 this . width = width;
7883 this . height = height;
79- this . position = position;
84+ this . x = x;
85+ this . y = y;
8086 this . color = color;
8187 this . visibility = visibility;
8288 this . colorize = colorize;
0 commit comments