Esempio n. 1
0
 public override void Update()
 {
     base.Update();
     label.SetAnchorPoint(label.Width * 0.5f, label.Height * 0.5f);
     label.SetPosition(this.Width * 0.5f, this.Height * 0.5f);
     label.ShowAll();
 }
Esempio n. 2
0
 public ClutterSliderHandleButton(uint width, uint height, int state) : base(width, height, state)
 {
     label = new Text("Sans Bold 10", "", Clutter.Color.New(0.0f, 0.0f, 0.0f, 0.8f));
     AddActor(label);
     label.SetAnchorPoint(label.Width * 0.5f, label.Height * 0.5f);
     label.SetPosition(this.Width * 0.5f, this.Height * 0.5f);
     label.ShowAll();
 }
 public ClutterSliderHandleButton(uint width, uint height, int state)
     : base(width, height, state)
 {
     label = new Text("Sans Bold 10", "", new Clutter.Color(0.0f,0.0f,0.0f,0.8f));
     Add (label);
     label.SetAnchorPoint (label.Width*0.5f, label.Height*0.5f);
     label.SetPosition (this.Width*0.5f,this.Height*0.5f);
     label.ShowAll();
 }